/* English Biiga Brand Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --brand-blue: #0056D2;
    /* "English" Blue */
    --brand-red: #D92D20;
    /* "Biiga" Red */

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #FF4B1F 0%, #FF9068 100%);
    /* Icon Gradient approximation */
    --blue-gradient: linear-gradient(135deg, #0056D2 0%, #002D72 100%);

    /* Neutrals */
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #64748B;

    /* UI Elements */
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-brand-blue {
    color: var(--brand-blue);
}

.text-brand-red {
    color: var(--brand-red);
}

.bg-brand-blue {
    background-color: var(--brand-blue) !important;
}

.bg-brand-red {
    background-color: var(--brand-red) !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--brand-blue);
    padding: 0.375rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text-english {
    color: var(--brand-blue);
}

.brand-text-biiga {
    color: var(--brand-red);
}

.brand-logo {
    width: 5rem;
    padding: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .brand-logo {
    border-radius: 5%;
    border: 2px solid white;
    width: 3.5rem;
    /* Slightly smaller on scroll */
}

#english_biiga {
    font-family: 'Poppins', 'Outfit', sans-serif;
    display: inline-block;
    font-weight: 800;
    font-size: 1em;
    letter-spacing: -0.02em;
    /* Modern, bold sans-serif font */
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.scrolled .nav-link::after {
    background-color: var(--white);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--white) !important;
    opacity: 1;
}

/* Adjust buttons in scrolled navbar */
.navbar.scrolled .btn-outline-dark {
    color: white;
    border-color: white;
}

.navbar.scrolled .btn-outline-dark:hover {
    background: white;
    color: var(--brand-blue);
}

/* User button (btn-outline-primary) in scrolled navbar */
.navbar.scrolled .btn-outline-primary {
    color: white !important;
    border-color: white !important;
}

.navbar.scrolled .btn-outline-primary:hover {
    background: white !important;
    color: var(--brand-blue) !important;
    border-color: white !important;
}

/* Logout button link in scrolled navbar */
.navbar.scrolled .btn-link.text-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.scrolled .btn-link.text-secondary:hover {
    color: white !important;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Buttons */
.btn-brand {
    background: var(--brand-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: #0044a5;
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-brand-red {
    background: var(--brand-red);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand-red:hover {
    background: #b91c10;
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(to bottom right, #F0F7FF, #FFF5F5);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.shape-blue {
    background: rgba(0, 86, 210, 0.1);
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-red {
    background: rgba(217, 45, 32, 0.1);
    width: 300px;
    height: 300px;
    bottom: 0;
    left: -50px;
}

/* Bubbles Animation */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-up linear infinite;
    will-change: transform;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Programs Section */
.program-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    height: 100%;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--brand-blue);
    z-index: 10;
}

.program-card.red-top::before {
    background: var(--brand-red);
}

.program-card.gradient-top::before {
    background: black;
}

.program-card-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0; /* Remove bottom margin since it's now inline with title */
    background: #F1F5F9;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Locations Section */
.locations-desc {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .locations-desc {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media (min-width: 1200px) {
    .locations-desc {
        margin-left: 15%;
        margin-right: 15%;
    }
}

.location-badge {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.location-badge {
    cursor: default;
}

.location-badge.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-badge.clickable:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.location-badge.clickable:active {
    transform: translateY(0);
}

/* Center Info Dropdown */
.center-info-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.center-info-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.center-info-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.center-info-dropdown.show .center-info-content {
    transform: scale(1);
}

.center-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: white !important;
    border: 3px solid #D92D20 !important;
    border-radius: 50% !important;
    padding: 1rem !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.center-info-close:hover {
    background: var(--brand-red) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 6px 16px rgba(217, 45, 32, 0.5) !important;
}

.center-info-close::before,
.center-info-close::after {
    content: '' !important;
    position: absolute !important;
    width: 60% !important;
    height: 2px !important;
    background-color: #D92D20 !important;
    border-radius: 2px !important;
    transition: background-color 0.3s ease !important;
}

.center-info-close::before {
    transform: rotate(45deg) !important;
}

.center-info-close::after {
    transform: rotate(-45deg) !important;
}

.center-info-close:hover::before,
.center-info-close:hover::after {
    background-color: white !important;
}

.center-info-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.center-info-title {
    color: var(--brand-blue);
    font-weight: 700;
}

.center-info-body {
    padding: 1.5rem 2rem 2rem;
}

.center-info-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-info-details {
    margin-top: 1.5rem;
}

.center-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.center-info-item i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.center-info-item strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.center-info-item a {
    color: var(--brand-red);
}

.center-info-item a:hover {
    text-decoration: underline !important;
}

/* Action Buttons */
.center-action-buttons {
    margin-top: 0.75rem;
}

.btn-call-action {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none !important;
    flex: 1;
    min-width: 120px;
}

.btn-call-action:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    text-decoration: none !important;
}

.btn-call-action:active {
    transform: translateY(0);
}

.btn-whatsapp-action {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    text-decoration: none !important;
    flex: 1;
    min-width: 120px;
}

.btn-whatsapp-action:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0f7569 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    text-decoration: none !important;
}

.btn-whatsapp-action:active {
    transform: translateY(0);
}

.btn-call-action i,
.btn-whatsapp-action i {
    font-size: 1.1rem;
}

/* Enrollment Button - Better readability */
.btn-enrollment {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    color: var(--brand-blue) !important;
    border: 2px solid var(--brand-blue) !important;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.15);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-enrollment:hover {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0044a5 100%);
    color: white !important;
    border-color: var(--brand-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 210, 0.3);
    text-decoration: none !important;
}

.btn-enrollment:active {
    transform: translateY(0);
}

.btn-enrollment i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .center-info-content {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .center-info-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .center-info-body {
        padding: 1.5rem;
    }
    
    .center-info-image {
        height: 180px;
        margin-bottom: 1rem;
    }
    
    .center-info-title {
        font-size: 1.25rem;
    }
    
    .center-info-item {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .center-info-item strong {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .center-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-call-action,
    .btn-whatsapp-action {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .center-info-close {
        width: 2.5rem !important;
        height: 2.5rem !important;
        padding: 0.75rem !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        border-width: 2.5px !important;
    }
    
    .center-info-close::before,
    .center-info-close::after {
        width: 55% !important;
        height: 1.75px !important;
    }
}

@media (max-width: 480px) {
    .center-info-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .center-info-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .center-info-body {
        padding: 1.25rem;
    }
    
    .center-info-image {
        height: 150px;
    }
    
    .center-info-title {
        font-size: 1.1rem;
        padding-right: 3rem;
    }
    
    .center-info-item {
        font-size: 0.9rem;
    }
    
    .btn-call-action,
    .btn-whatsapp-action {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .center-info-close {
        width: 2.25rem !important;
        height: 2.25rem !important;
        padding: 0.625rem !important;
        top: 0.625rem !important;
        right: 0.625rem !important;
        border-width: 2px !important;
    }
    
    .center-info-close::before,
    .center-info-close::after {
        width: 50% !important;
        height: 1.5px !important;
    }
}

/* Testimonials */
.testimonial-card {
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #CBD5E1;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 80px 0 30px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: white;
}

/* Language Switcher */
.lang-switcher {
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    padding: 4px;
    display: flex;
    align-items: center;
    background: white;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--brand-blue);
    color: white;
}

/* Utilities */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Dropdown (Modal) */
.video-dropdown {
    position: fixed;
    top: -100%;
    /* Start off-screen */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 95%;
    background: transparent;
    padding: 10px;
    z-index: 2000;
    /* High z-index to sit on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy drop effect */
    pointer-events: none;
}

.video-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

.video-dropdown.active {
    top: 50%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-dropdown.active::before {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 45, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 45, 32, 0);
    }
}

/* TV Player Styles */
.tv-outer-container {
    max-width: 1024px;
    margin: auto;
}

.tv-monitor {
    background: rgb(0, 0, 0);
    position: relative;
    border-top: 3px solid #888;
    margin: 5%;
    padding: 0.5% 2% 4% 2%;
    border-radius: 10px;
    border-bottom-left-radius: 50% 2%;
    border-bottom-right-radius: 50% 2%;
    transition: margin-right 1s;
}

.tv-monitor:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 3%;
    left: 36%;
    height: 0.5%;
    width: 28%;
    background: #ddd;
    border-radius: 50%;
    box-shadow: 0 0 3px 0 white;
}

.tv-screen {
    position: relative;
    background-color: #777;
    background-size: cover;
    background-position: top center;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

.afrohk-text {
    font-size: 1rem;
    color: white;
}

.tv-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.tv-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .tv-logo {
        width: 40px;
        height: 40px;
    }
    
    .afrohk-TV .afrohk-text {
        font-size: 0.875rem;
    }
}

.afrohk {
    color: rgb(6, 3, 3) !important;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}

.afrohk-2 {
    color: rgb(255, 255, 255);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(0, 0, 0);
}

.tv {
    letter-spacing: 0.2rem;
    color: rgb(43, 102, 241);
}

.tv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 10;
}

@media all and (min-width: 560px) {
    .tv-monitor {
        -webkit-animation: tvflicker 0.2s infinite alternate;
        -moz-animation: tvflicker 0.5s infinite alternate;
        -o-animation: tvflicker 0.5s infinite alternate;
        animation: tvflicker 0.5s infinite alternate;
    }

    @-webkit-keyframes tvflicker {
        0% {
            box-shadow: 0 0 100px 0 rgba(200, 235, 255, 0.4);
        }

        100% {
            box-shadow: 0 0 95px 0 rgba(200, 230, 255, 0.45);
        }
    }

    @-moz-keyframes tvflicker {
        0% {
            box-shadow: 0 0 100px 0 rgba(225, 235, 255, 0.4);
        }

        100% {
            box-shadow: 0 0 60px 0 rgba(200, 220, 255, 0.6);
        }
    }

    @-o-keyframes tvflicker {
        0% {
            box-shadow: 0 0 100px 0 rgba(225, 235, 255, 0.4);
        }

        100% {
            box-shadow: 0 0 60px 0 rgba(200, 220, 255, 0.6);
        }
    }

    @keyframes tvflicker {
        0% {
            box-shadow: 0 0 100px 0 rgba(225, 235, 255, 0.4);
        }

        100% {
            box-shadow: 0 0 60px 0 rgba(200, 220, 255, 0.6);
        }
    }
}

/* Smiley Icon Styles */
.smiley-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.smiley-float {
    position: absolute;
    animation: smiley-float-up linear infinite;
    will-change: transform;
    opacity: 0.7;
}

@keyframes smiley-float-up {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.smiley-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.icon-wrapper {
    position: relative;
    overflow: visible;
}

.icon-wrapper .smiley-icon {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.program-card:hover .smiley-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Statistics Section */
#statistics {
    background: var(--brand-blue);
    position: relative;
    overflow: hidden;
}

#statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.95) 0%, rgba(0, 45, 114, 0.95) 100%);
    z-index: 0;
}

#statistics .container {
    position: relative;
    z-index: 1;
}

#statistics .section-title h2 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#statistics .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    color: var(--white);
    transform: scale(1.1);
}

#statistics h3 {
    color: var(--white);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#statistics .lead {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    #statistics h3 {
        font-size: 2.5rem;
    }
}

/* Lesson Cards - BiigaClassroom */
.lesson-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
}

.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset, rgba(0, 86, 210, 0.3) 0px 10px 20px -5px !important;
}

.lesson-thumbnail {
    position: relative;
    overflow: hidden;
}

.lesson-thumbnail img {
    transition: transform 0.3s ease;
}

.lesson-card:hover .lesson-thumbnail img {
    transform: scale(1.1);
}

.lesson-thumbnail-placeholder {
    position: relative;
}

.lesson-thumbnail-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.1) 0%, rgba(217, 45, 32, 0.1) 100%);
}

/* BiigaCoins Icon */
.biiga-coin {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    padding: 2px !important;
    background: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
    flex-shrink: 0;
    box-sizing: border-box;
}

.biiga-coin img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gallery Section Styles - Premium Masonry */
.gallery-masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .gallery-masonry {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transform: translateZ(0); /* Fix for webkit column rendering */
}

.gallery-card-premium {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}

.gallery-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 86, 210, 0.25);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    transform-origin: center center;
}

.gallery-card-premium:hover .gallery-img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 86, 210, 0.9) 0%, rgba(0, 86, 210, 0.4) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.gallery-card-premium:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 1.5rem;
}

.gallery-card-premium:hover .gallery-content {
    transform: translateY(0);
}

/* Premium Gallery Modal */
#galleryModal .modal-content {
    background: transparent;
}

#galleryModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: all 0.3s ease;
    background-size: 1.5rem;
}

#galleryModal .btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
    color: var(--brand-blue);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: -20px;
}

.gallery-nav-btn.next {
    right: -20px;
}

@media (max-width: 991px) {
    .gallery-nav-btn.prev {
        left: 10px;
    }
    .gallery-nav-btn.next {
        right: 10px;
    }
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Premium Testimonial Carousel */
.testimonial-card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 86, 210, 0.15);
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    color: rgba(0, 86, 210, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card-premium:hover .testimonial-quote-icon {
    color: rgba(0, 86, 210, 0.1);
    transform: scale(1.1) rotate(5deg);
}

.testimonial-avatar-premium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #003c96 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 86, 210, 0.3);
}

.testimonial-name {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.1rem;
}

.testimonial-rating-premium {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    font-style: italic;
}

.testimonial-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-nav-btn:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 86, 210, 0.3);
}

.testimonial-nav-btn:active {
    transform: translateY(0);
}

/* Section Backgrounds */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 84, 228, 0.671);
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* Ensure content is above background */
.z-2 {
    z-index: 2;
}

/* Payment Section Improvements */
.payment-feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
}

.payment-feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-brand-blue-light {
    background-color: rgba(0, 86, 210, 0.1);
}

.bg-brand-red-light {
    background-color: rgba(217, 45, 32, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.payment-visual-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    position: relative;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.payment-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.payment-plan-option {
    background: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-plan-option:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.payment-plan-option.border-brand-blue:hover {
    border-color: var(--brand-blue);
}

.payment-plan-option.border-brand-red:hover {
    border-color: var(--brand-red);
}

.opacity-10 {
    opacity: 0.1;
}