/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    /* Color Palette */
    --primary-blue: #004080;
    --secondary-blue: #002d5a;
    --accent-gold: #ffcc00;
    --accent-hover: #e6b800;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;

    /* Gradients & Accents */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --gradient-gold: linear-gradient(135deg, #ffcc00, #ffdb4d);
    --gradient-hero: linear-gradient(to bottom, #ffffff, #f0f8ff);
    /* Subtle top fade */
    --gradient-card: linear-gradient(to right, var(--primary-blue), var(--accent-gold));

    /* Variables */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-blue);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.8rem;
    color: #ccc;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
    color: var(--secondary-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Official Top Bar */
.official-bar {
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
    /* Subtle gradient */
    text-align: center;
    padding: 15px 10px;
    border-top: 5px solid var(--accent-gold);
    /* Gold accent on top */
    border-bottom: 4px solid var(--secondary-blue);
    position: relative;
    box-shadow: inset 0 -10px 20px -10px rgba(0, 0, 0, 0.05);
    /* Inner shadow for depth */
}

.official-bar::after {
    /* Optional: Subtle pattern overlay or shine effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--primary-blue) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.03;
    pointer-events: none;
}

.official-bar img {
    margin: 0 auto;
    max-height: 120px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Pop the logo slightly */
    transition: transform 0.3s ease;
}

.official-bar:hover img {
    transform: scale(1.02);
    /* Gentle zoom on hover */
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.main-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-header p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
    padding: 15px 0;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 1.1em;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-blue);
    background-color: rgba(0, 64, 128, 0.05);
    transform: translateY(-2px);
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a.active {
    color: var(--secondary-blue);
    background-color: rgba(255, 204, 0, 0.1);
}

/* CTA Button Styling for 'Oferta' */
.nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.2);
}

.nav-links a.nav-cta:hover {
    box-shadow: 0 6px 15px rgba(0, 64, 128, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

.nav-links a.nav-cta i {
    color: #fff;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* Ensure button is above other elements */
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
        padding: 15px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        gap: 10px;
        gap: 10px;
        animation: slideDown 0.3s ease forwards;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        justify-content: flex-start;
        padding: 12px 15px;
        width: 100%;
        /* Full width for clickable area */
        box-sizing: border-box;
    }

    .nav-links a:hover {
        transform: translateX(5px);
    }

    .nav-links a.nav-cta {
        justify-content: center;
        margin-top: 10px;
        text-align: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle seperation */
}

.hero h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 500;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-image {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-image.top-focus {
    object-position: top;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
    /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue), #0056b3);
    /* Subtle Gradient */
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent-gold);
    background-image: var(--gradient-gold);
    color: var(--secondary-blue);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-accent:hover {
    background: #ffdb4d;
    /* Review */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
    /* Gold Glow */
}

/* Grid System & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
    padding: 40px 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.grid-3-balanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 1024px) {
    .grid-3-balanced {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3-balanced {
        grid-template-columns: 1fr;
    }
}


.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* Gradient top bar handled by ::before */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-card);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.icon-box {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    background: rgba(255, 204, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card .btn {
    border-radius: 0;
    width: 100%;
    padding: 15px;
}

/* Footer */
footer {
    background: var(--secondary-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    /* Pushes footer to bottom if content is short */
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

footer small {
    display: block;
    margin-top: 15px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 60px 20px;
    }

}

/* --- ANIMATIONS & POLISH --- */

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Staggered delays for grids (optional simple approach) */
.grid>div:nth-child(2) {
    transition-delay: 0.1s;
}

.grid>div:nth-child(3) {
    transition-delay: 0.2s;
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

.btn-accent {
    animation: pulse-gold 3s infinite;
}

/* Mobile Touch Feedback */
@media (hover: none) {

    .btn:active,
    .nav-links a:active,
    .card:active {
        transform: scale(0.96);
        transition: transform 0.1s;
    }
}

/* Smooth Slide for Mobile Menu */
@media (max-width: 992px) {
    .nav-links {
        transform-origin: top;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s;
        /* Replaced animation with transition for smoother toggle */
        animation: none;
        transform: scaleY(0);
        opacity: 0;
        display: flex;
        /* Always flex, but hidden via transform/opacity/visibility */
        visibility: hidden;
    }

    .nav-links.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }
}

/* Utilities for Guide Pages */
.video-container {
    margin: 30px auto;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Stil YouTube aspect ratio 16:9 */
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Asigură că, conținutul este vizibil fără decupare */
}

.note {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-left: 5px solid #ffeeba;
    margin-top: 20px;
    border-radius: var(--radius-md);
    font-size: 0.95em;
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    position: relative;
    border-radius: var(--radius-lg);
}

.close-modal {
    color: var(--white);
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-gold);
}

/* PDF Viewer Styles */
/* PDF Viewer Styles */
/* PDF Viewer Styles */
.pdf-compact {
    max-width: 700px !important;
    /* Slightly wider for better presence */
    margin: 0 auto 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* Deeper, softer shadow */
    overflow: hidden;
    /* Card Container properties */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-gold);
    /* Gold Brand Accent */
    transition: transform 0.3s ease;
}

.pdf-compact:hover {
    transform: translateY(-5px);
    /* Subtle lift effect */
}

.pdf-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.pdf-controls .btn {
    border-radius: 50px;
    /* Pill shaped buttons */
    padding: 8px 20px;
    font-size: 0.9rem;
    box-shadow: none;
    border: 1px solid #eee;
    background: #f8f9fa;
    color: var(--primary-blue);
}

.pdf-controls .btn:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.2);
}

.pdf-controls #fullscreen-btn {
    background: rgba(255, 204, 0, 0.1);
    /* Subtle Gold BG */
    color: #b38f00;
    border-color: transparent;
}

.pdf-controls #fullscreen-btn:hover {
    background: var(--accent-gold);
    color: var(--secondary-blue);
}


.pdf-canvas-container {
    background: #333;
    /* Darker background for contrast */
    padding: 30px;
    text-align: center;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(#444 1px, transparent 1px);
    background-size: 20px 20px;
    /* Subtle pattern */
}

.pdf-footer {
    padding: 25px;
    background: #fff;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pdf-download-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pdf-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pdf-fullscreen .pdf-controls {
    border-radius: 0 !important;
    background: #f0f0f0 !important;
    padding: 15px 20px !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pdf-fullscreen .pdf-canvas-container {
    flex-grow: 1;
    border-radius: 0 !important;
    padding: 40px !important;
    min-height: 100%;
}

.pdf-fullscreen .pdf-footer {
    display: none;
    /* Ascunde subsolul de descărcare în modul ecran complet pentru a economisi spațiu */
}

.pdf-fullscreen canvas {
    max-height: 85vh !important;
    /* Încadrare confortabilă în înălțimea ecranului */
    max-width: 90vw !important;
    /* Încadrare în lățimea ecranului */
    width: auto !important;
    height: auto !important;
    /* Menține raportul de aspect */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Video Row Layout (PDF is now above this) */
.presentation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.presentation-side {
    width: 100%;
}

/* Ensure video card fills the side container */
.presentation-side .video-card {
    width: 100%;
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   RESPONSIVE LAYOUT UTILITIES (Added for Mobile Optimization)
   ----------------------------------------------------------- */

/* Flexible 3-Column Layout Container */
.responsive-3-col {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: nowrap;
    /* Default to no wrap on desktop */
    align-items: flex-start;
    justify-content: center;
}

/* Sidebar Columns (Videos) */
.sidebar-col {
    flex: 0 0 auto;
    width: 250px;
    /* Slightly wider for better video presentation */
    max-width: 250px;
}

/* Center Column (Main Content) */
.center-col {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
    max-width: 800px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .responsive-3-col {
        flex-wrap: wrap;
        /* Allow wrapping on medium screens */
    }

    .sidebar-col {
        width: 100%;
        /* Full width on smaller screens */
        max-width: 100%;
        margin-bottom: 20px;
        order: 2;
        /* Move videos below main content typically, or adjust as needed */
    }

    /* If we want videos at the bottom, we can use order. 
       Assuming main content is naturally second, valid order would be:
       Title/Intro (if outside) -> Main Content -> Videos
    */

    .center-col {
        width: 100%;
        max-width: 100%;
        order: 1;
        /* Main content first on mobile */
        margin-bottom: 30px;
    }

    /* Specific adjustments for Oferta/EPAS video sidebars when stacked */
    .sidebar-col h4 {
        text-align: left;
        /* Align headers left on mobile */
        padding-left: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Stack everything */
    .responsive-3-col {
        flex-direction: column;
    }

    .sidebar-col {
        width: 100%;
    }

    .video-container,
    .sidebar-col>div {
        /* ensure embedded video containers are responsive */
        height: auto;
    }

    /* Adjust PDF frames */
    iframe[src*="pdf"] {
        height: 500px !important;
        /* Adjusted height for mobile */
    }
}

/* Deprecated within this layout, but class used above - styles handled inline or via utility */

@media (max-width: 992px) {

    /* Stack videos when screen is too narrow for side-by-side */


    /* -----------------------------------------------------------
    EXISTING LAYOUT PRESERVED BELOW
    ----------------------------------------------------------- */
    .presentation-layout {
        grid-template-columns: 1fr;
    }

    .presentation-side {
        width: 100%;
        max-width: 700px;
        margin: 0 auto 20px;
    }
}

/* Adjusted Video Styles */
.video-container {
    position: relative;
    background: #000;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

.video-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Featured Card Style (extracted from erasmus.html) */
.featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    border-left: 4px solid var(--primary-blue);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.featured-card-content {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card-image {
    flex: 1;
    min-width: 200px;
    background: #000;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
    opacity: 0.9;
}

.featured-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.featured-card .meta {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.featured-card .description {
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.85rem;
}

.featured-card .btn-small {
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Audio Player Styles */
#audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    transition: transform 0.3s ease, background 0.3s ease;
}

#audio-controls:hover {
    background: rgba(200, 0, 0, 1);
    transform: scale(1.05);
}

#volume-slider {
    width: 100px;
    cursor: pointer;
    height: 5px;
    accent-color: white;
}

/* --- School Offer Section Styles (PDF REPLICA) --- */
.offer-html-container {
    background: #e6e6fa;
    /* Light lavender background matching PDF */
    padding: 60px 40px;
    border-radius: 0;
    /* Removing border radius for paper look or keeping it subtle */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Times New Roman', Times, serif;
    /* Serif font matching PDF */
    color: #333;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: hidden;
    /* Prevent container from causing page scroll */
}

@media (max-width: 768px) {
    .offer-html-container {
        padding: 30px 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ... (intervening code unchanged) ... */

/* Offer Table Styles */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    /* Visual boundary */
}

.offer-table {
    width: 100%;
    min-width: 600px;
    /* Force scroll on small devices */
    border-collapse: collapse;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
}

.offer-table th,
.offer-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    /* Ensure text wraps */
    word-wrap: break-word;
    /* Break long words */
}

.offer-table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.offer-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.offer-table tr:hover {
    background-color: #f1f1f1;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    font-family: sans-serif;
}

.badge.dual {
    background-color: #28a745;
    /* Green for Dual */
}

.badge.stat {
    background-color: #007bff;
    /* Blue for Stat */
}

/* Partners Grid */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.partner-item {
    background: white;
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--secondary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    font-family: sans-serif;
}

.partner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
}


/* --- ANIMATIONS (Safe Polish) --- */

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}


/* -----------------------------------------------------------
NEW LAYOUT: Sidebar Left (Videos) + Content Right (Presentation)
----------------------------------------------------------- */
.layout-sidebar-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.layout-sidebar-left .sidebar-videos {
    flex: 0 0 350px;
    /* Fixed width for video sidebar */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layout-sidebar-left .content-presentation {
    flex: 1;
    /* Takes remaining space */
    min-width: 0;
    /* Prevents overflow */
    overflow-x: hidden;
    /* Ensure no horizontal scroll on container level */
}

/* Response Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* Ensure images in offer content don't overflow */
.offer-html-container img {
    max-width: 100%;
    height: auto;
}

/* Ensure offer content itself is contained */
.offer-html-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive adjustments for the new layout */
@media (max-width: 992px) {
    .layout-sidebar-left {
        flex-direction: column;
    }

    .layout-sidebar-left .sidebar-videos {
        width: 100%;
        max-width: 100%;
        flex: initial;
        margin-top: 30px;
        /* Space between presentation and videos on mobile */
        order: 2;
        /* Videos below presentation on mobile */
    }

    .layout-sidebar-left .content-presentation {
        order: 1;
    }

    /* Optional: grid for videos on mobile when stacked? */
    .layout-sidebar-left .sidebar-videos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .layout-sidebar-left .sidebar-videos {
        grid-template-columns: 1fr;
        /* Stack videos on very small screens */
    }
}