/* ========== PROFESSIONAL FRONTEND CSS ========== */

/* Local Fonts */
@font-face {
    font-family: 'Times New Roman';
    src: url('../fonts/Times_New_Roman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KhmerOS Battambang';
    src: url('../fonts/KhmerOS_battambang.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --green-900: #052E16;
    --green-800: #0F4C25;
    --green-700: #14532D;
    --green-600: #16A34A;
    --green-500: #22C55E;
    --green-400: #4ADE80;
    --green-300: #86EFAC;
    --green-200: #BBF7D0;
    --green-50: #F0FDF4;
    --emerald-gradient: linear-gradient(135deg, #052E16 0%, #0F4C25 40%, #16A34A 100%);
    --emerald-light-gradient: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    --purple-700: #6a1b9a;
    --purple-600: #7b1fa2;
    --purple-500: #9c27b0;
    --purple-100: #f3e5f5;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-bg: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15,76,37,0.06);
    --shadow: 0 8px 24px rgba(15,76,37,0.08);
    --shadow-lg: 0 20px 40px rgba(15,76,37,0.12);
    --shadow-glow: 0 0 30px rgba(22,163,74,0.25);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern High-Performance Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 46, 22, 0.08);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    background-clip: content-box;
}

/* Hardware-Accelerated Smooth Touch & Scroll */
body, .chamkarit-public-site {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.fullpage-apple-tree-container {
    contain: strict;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.navbar-area {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Lazy Render Offscreen Elements for 120fps Scrolling */
.services-card, .project-card, .lesson-card, .ebook-card, .news-card, .footer-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

html {
    scroll-behavior: smooth;
}

body,
.chamkarit-public-site {
    font-family: 'Times New Roman', 'KhmerOS Battambang', sans-serif;
    color: #1e293b;
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.khmer {
    font-family: 'KhmerOS Battambang', 'Times New Roman', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Mobile: Full width container */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
    
    .container-custom {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Ensure all sections take full width on mobile */
    section, .section, .hero, .about-section, .services-section, 
    .projects-section, .lessons-section, .ebooks-section, .contact-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure grids are full width */
    .cards-grid, .cards-grid-2, .cards-grid-3, .cards-grid-4,
    .stats-grid, .about-features, .footer-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Topbar */
.top-bar {
    background: rgba(5, 46, 22, 0.85) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1200;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1100;
}

.top-bar-right .dropdown-menu {
    z-index: 1500 !important;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: var(--amber-500);
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch a {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.lang-switch a.active {
    background: var(--green-600);
    color: #fff;
}

.lang-switch a:not(.active):hover {
    background: rgba(255,255,255,0.1);
}

/* Navbar Glassmorphism Sticky Header */
.main-nav {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    box-shadow: 0 4px 24px rgba(15, 76, 37, 0.08) !important;
    border-bottom: 1px solid rgba(22, 163, 74, 0.18) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 8px 32px rgba(15, 76, 37, 0.16) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 12px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 12px;
    position: relative;
    border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-600);
    background: var(--green-50);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    display: none !important;
}

/* ── Chevron rotation when dropdown is open ── */
.dropdown-toggle .fa-chevron-down {
    transition: transform 0.25s ease;
}
.dropdown:hover .dropdown-toggle .fa-chevron-down,
.dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Override Bootstrap 5's display:none on .dropdown-menu.
   We use opacity + visibility + pointer-events for smooth animation. */
.nav-menu .dropdown-menu {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 240px !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(15, 76, 37, 0.18) !important;
    border: 1px solid rgba(22, 163, 74, 0.22) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
    transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.25s !important;
    z-index: 1050 !important;
    padding: 8px !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Invisible hover bridge to prevent gap closing dropdown when moving mouse cursor */
.nav-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* Desktop: show on hover */
@media (min-width: 992px) {
    .nav-menu .dropdown:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

/* Any screen: show when .active (click toggle for mobile) */
.nav-menu .dropdown.active > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    color: #0F4C25 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    background: transparent !important;
    text-transform: capitalize !important;
}

.dropdown-item span {
    text-transform: capitalize !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #DCFCE7 !important;
    color: #16A34A !important;
    transform: translateX(4px) !important;
}

/* ── Nested Flyout Submenu to the RIGHT SIDE ── */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu .dropdown-submenu-right {
    top: -6px !important;
    left: calc(100% + 4px) !important;
    right: auto !important;
    margin-top: 0 !important;
    display: block !important;
    position: absolute !important;
    min-width: 230px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(15, 76, 37, 0.2) !important;
    border: 1px solid rgba(22, 163, 74, 0.22) !important;
    padding: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(10px) !important;
    transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.25s !important;
    z-index: 1060 !important;
}

/* Invisible Hover Bridge for Submenu */
.dropdown-submenu .dropdown-submenu-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    bottom: 0;
    width: 12px;
    background: transparent;
}

/* Desktop Hover Trigger for Flyout Submenu */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-submenu-right {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }
}

/* Active/Touch state for Submenu */
.dropdown-submenu.active > .dropdown-submenu-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
}

/* Submenu chevron animation */
.dropdown-submenu:hover .submenu-arrow {
    transform: translateX(3px);
    color: #16A34A !important;
}

/* Mobile responsive flyout fallback */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-submenu-right {
        position: static !important;
        left: 0 !important;
        top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(22, 163, 74, 0.05) !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        padding-left: 12px !important;
        transform: none !important;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 8px;
    z-index: 1001;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.nav-toggle:hover {
    background: rgba(22, 163, 74, 0.2);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #16A34A;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Show nav-toggle on mobile and tablet (max-width: 991px) */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 16px 20px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        z-index: 1040 !important;
        border-top: 1px solid rgba(22, 163, 74, 0.2) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        gap: 6px !important;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        animation: slideDown 0.3s ease;
    }

    /* Force all direct and nested menu items to float left and align left */
    .nav-menu > *,
    .nav-menu > div,
    .nav-menu > a,
    .nav-menu .nav-link,
    .nav-menu .dropdown,
    .nav-menu .dropdown-menu,
    .nav-menu .dropdown-item,
    .nav-menu .dropdown-submenu,
    .nav-menu .dropdown-submenu-right {
        float: left !important;
        clear: both !important;
        width: 100% !important;
        text-align: left !important;
    }

    .nav-menu .nav-link {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        text-align: left !important;
    }

    .nav-menu .nav-link i {
        float: left !important;
        margin-right: 6px !important;
    }

    .nav-menu .nav-link .fa-chevron-down {
        display: none !important;
    }

    /* Mobile: Main menu dropdown expanded by DEFAULT as a clean left-aligned list */
    .nav-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(22, 163, 74, 0.12) !important;
        background: #f8fafc !important;
        border-radius: 10px !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        padding: 8px 10px !important;
        width: 100% !important;
        min-width: unset !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        float: left !important;
        clear: both !important;
        text-align: left !important;
        pointer-events: auto !important;
    }

    .nav-menu .dropdown.active > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    .nav-menu .dropdown-menu .dropdown-item {
        float: left !important;
        width: 100% !important;
        text-align: left !important;
        clear: both !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .nav-menu .dropdown-menu .dropdown-item i {
        float: left !important;
        margin-right: 6px !important;
    }

    /* Direct list styling on mobile for all submenus with float left */
    .dropdown-submenu {
        position: static !important;
        width: 100% !important;
        display: block !important;
        float: left !important;
        clear: both !important;
        text-align: left !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

    .dropdown-submenu > .dropdown-item {
        font-weight: 700 !important;
        color: #0F4C25 !important;
        background: rgba(22, 163, 74, 0.08) !important;
        border-radius: 6px !important;
        padding: 8px 12px !important;
        margin-bottom: 4px !important;
        float: left !important;
        width: 100% !important;
        text-align: left !important;
    }

    .dropdown-submenu .submenu-arrow {
        display: none !important;
    }

    /* All sub-items rendered directly as an open left-aligned list */
    .dropdown-submenu .dropdown-submenu-right {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
        padding: 0 0 0 16px !important;
        width: 100% !important;
        min-width: unset !important;
        max-height: none !important;
        overflow: visible !important;
        float: left !important;
        clear: both !important;
        text-align: left !important;
    }

    .dropdown-submenu .dropdown-submenu-right .dropdown-item {
        font-size: 0.88rem !important;
        padding: 6px 12px !important;
        color: #4b5563 !important;
        border-left: 2px solid #86efac !important;
        border-radius: 0 6px 6px 0 !important;
        margin-bottom: 3px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        float: left !important;
        width: 100% !important;
        text-align: left !important;
        clear: both !important;
    }

    .dropdown-submenu .dropdown-submenu-right .dropdown-item:hover,
    .dropdown-submenu .dropdown-submenu-right .dropdown-item:active {
        background: rgba(22, 163, 74, 0.1) !important;
        border-left-color: #16A34A !important;
        color: #16A34A !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-600) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,128,864,144C960,160,1056,181,1152,197.3C1248,213,1344,224,1392,229.3L1440,235L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--amber-500);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 .highlight {
    color: var(--amber-500);
}

.hero h1 .khmer-text {
    font-family: 'KhmerOS Battambang', sans-serif;
    font-size: 2.8rem;
    display: block;
    margin-top: 10px;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;

}

.btn-primary {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(15, 76, 37, 0.8) 40%, rgba(22, 163, 74, 0.8) 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.9) 0%, rgba(15, 76, 37, 0.9) 40%, rgba(22, 163, 74, 0.9) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,125,30,0.4);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(15, 76, 37, 0.8) 40%, rgba(22, 163, 74, 0.8) 100%);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.9) 0%, rgba(15, 76, 37, 0.9) 40%, rgba(22, 163, 74, 0.9) 100%);
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background: var(--green-700);
    padding: 60px 0;
    position: relative;
    margin-top: -50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--amber-500);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding-bottom: 78px;
    padding-top: 20px;
}

.section-gray {
    background: var(--gray-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 15px;
}

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

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--green-600);
    margin: 20px auto;
    border-radius: 2px;
}

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

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--amber-400));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(245, 158, 11, 0.15));
    color: var(--green-600);
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--green-600), #0F4C25);
    color: #FBBF24;
    transform: rotateY(360deg);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--green-600);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--green-700);
    gap: 10px;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

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

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

.project-category {
    background: var(--green-100);
    color: var(--green-600);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.project-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    background: var(--gray-bg);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Lesson Card */
.lesson-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--green-200);
}

.lesson-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lesson-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.lesson-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.lesson-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.lesson-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* E-Book Card */
.ebook-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.ebook-cover {
    height: 200px;
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FBBF24;
    font-size: 3rem;
}

.ebook-body {
    padding: 25px;
}

.ebook-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.ebook-body p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ebook-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(15, 76, 37, 0.8) 40%, rgba(22, 163, 74, 0.8) 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ebook-download:hover {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.9) 0%, rgba(15, 76, 37, 0.9) 40%, rgba(22, 163, 74, 0.9) 100%);
    transform: translateY(-2px);
}

/* About Section */
.about-hero {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 3px solid var(--green-600);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--green-700);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-hero {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding: 80px 0;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-info-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(30,125,30,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(15, 76, 37, 0.8) 40%, rgba(22, 163, 74, 0.8) 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.9) 0%, rgba(15, 76, 37, 0.9) 40%, rgba(22, 163, 74, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,125,30,0.3);
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(5, 46, 22, 0.94) 0%,
        rgba(15, 76, 37, 0.90) 50%,
        rgba(5, 46, 22, 0.96) 100%
    ), url('/assets/images/sunrise_trees_bg.jpg') center/cover no-repeat !important;
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16A34A, #FBBF24, #16A34A);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--amber-500);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--amber-500);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--green-700);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Filter System */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(15, 76, 37, 0.8) 40%, rgba(22, 163, 74, 0.8) 100%);
    color: #fff;
    border-color: rgba(22, 163, 74, 0.8);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h1 .khmer-text {
        font-size: 2.2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h1 .khmer-text {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-section {
        margin-top: 0;
        border-radius: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cards-grid,
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero h1 .khmer-text {
        font-size: 1.3rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }
}

/* ========== PROFESSIONAL ADVANCED UI COMPONENTS ========== */

/* Hero Slider Component */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #022c19 0%, #084924 40%, #0d6834 75%, #16a34a 100%);
    color: var(--white);
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-slider-container::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, rgba(22, 163, 74, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    padding: 80px 0 100px 0;
}

.hero-slide.active-slide {
    display: block;
    opacity: 1;
}

.hero-slide-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-slide-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.hero-visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev-btn { left: 20px; }
.slider-nav-btn.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 34px;
    border-radius: 20px;
    background: var(--amber-400);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

/* E-Book Visual Card Component */
.ebook-card-pro {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ebook-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(22, 163, 74, 0.15);
    border-color: var(--green-300);
}

.ebook-cover-wrapper {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #0F4C25 0%, #16A34A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ebook-cover-3d {
    width: 130px;
    height: 170px;
    background: #1e293b;
    border-radius: 4px 12px 12px 4px;
    box-shadow: -8px 12px 25px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
    color: #fff;
    transition: transform 0.4s ease;
    transform: perspective(600px) rotateY(-12deg);
}

.ebook-card-pro:hover .ebook-cover-3d {
    transform: perspective(600px) rotateY(0deg) scale(1.06);
}

.ebook-badge-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: var(--amber-400);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.ebook-content-pro {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebook-content-pro h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ebook-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

/* Custom Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 76, 37, 0.05);
}

/* Category Filter Pills */
.filter-tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-tab-pill {
    padding: 10px 22px;
    border-radius: 30px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab-pill:hover,
.filter-tab-pill.active {
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

/* Quick Search Modal Overlay */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.search-modal-box {
    background: var(--white);
    width: 90%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal-backdrop.show .search-modal-box {
    transform: translateY(0);
}


/* ========== HERO SLIDER LETTER & TEXT ANIMATIONS ========== */

/* Slide-up fade in — base keyframe */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide-in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale fade in — for badge */
@keyframes scaleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Character shimmer highlight sweep */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Glowing pulse — for CTA buttons */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(251, 191, 36, 0.7);
        transform: translateY(-2px) scale(1.02);
    }
}

/* Typewriter cursor blink */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Word reveal — clip path */
@keyframes wordReveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

/* Staggered letter fall-in */
@keyframes letterFallIn {
    from {
        opacity: 0;
        transform: translateY(-30px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Underline draw */
@keyframes underlineDraw {
    from { width: 0; }
    to { width: 100%; }
}

/* ---- Active slide animation classes ---- */

/* Badge (step 1 — 0s delay) */
.active-slide .slide-animate-badge {
    animation: scaleFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* Title line 1 (step 2 — 0.3s) */
.active-slide .slide-animate-title {
    animation: slideUpFadeIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Title highlight word (step 3 — 0.55s) */
.active-slide .slide-animate-highlight {
    animation: slideUpFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
    display: inline-block;
    position: relative;
}

.active-slide .slide-animate-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-400), var(--green-400));
    border-radius: 2px;
    animation: underlineDraw 0.6s ease-out 1.1s both;
    width: 0;
}

/* Subtitle (step 4 — 0.7s) */
.active-slide .slide-animate-subtitle {
    animation: slideUpFadeIn 0.7s ease 0.7s both;
}

/* CTA buttons wrapper (step 5 — 0.95s) */
.active-slide .slide-animate-cta {
    animation: slideUpFadeIn 0.65s ease 0.95s both;
}

/* Primary CTA button pulse after appearing */
.active-slide .slide-cta-primary {
    animation:
        slideUpFadeIn 0.65s ease 0.95s both,
        ctaPulse 2.5s ease-in-out 1.8s infinite;
}

/* Secondary CTA */
.active-slide .slide-cta-secondary {
    animation: slideInLeft 0.6s ease 1.1s both;
}

/* Visual card panel (right side) */
.active-slide .slide-animate-visual {
    animation: slideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Icon in visual card */
.active-slide .slide-animate-icon {
    animation: scaleFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both;
}

/* Card title text */
.active-slide .slide-animate-card-title {
    animation: slideUpFadeIn 0.6s ease 0.9s both;
}

/* Card meta text */
.active-slide .slide-animate-card-meta {
    animation: slideUpFadeIn 0.6s ease 1.05s both;
}

/* Card verify row */
.active-slide .slide-animate-card-verify {
    animation: slideUpFadeIn 0.55s ease 1.2s both;
}

/* Shimmer text effect on title highlight */
.slide-shimmer-text {
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 40%,
        var(--amber-400) 50%,
        #fff 60%,
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.active-slide .slide-shimmer-text {
    animation:
        slideUpFadeIn 0.75s ease 0.35s both,
        textShimmer 3s linear 1.2s infinite;
}

/* Dot indicators enhanced pulse */
@keyframes dotActive {
    0%, 100% { box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); }
    50% { box-shadow: 0 0 18px rgba(251, 191, 36, 1); }
}

.slider-dot.active {
    animation: dotActive 1.8s ease-in-out infinite;
}

/* Nav buttons hover spin */
.slider-nav-btn:hover i {
    animation: slideInLeft 0.25s ease;
}

/* Mobile slide text — simpler animation */
@media (max-width: 768px) {
    .active-slide .slide-animate-badge,
    .active-slide .slide-animate-title,
    .active-slide .slide-shimmer-text,
    .active-slide .slide-animate-subtitle,
    .active-slide .slide-animate-cta,
    .active-slide .slide-cta-primary,
    .active-slide .slide-cta-secondary {
        animation-duration: 0.5s !important;
    }
}

/* ========== CORPORATE PARTNERS & TRUSTED CLIENTS GRID ========== */
.partner-card-pro {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(15, 76, 37, 0.03);
}

.partner-card-pro:hover {
    border-color: var(--green-400);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.15);
    transform: translateY(-5px);
}

.partner-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.partner-card-pro:hover .partner-icon-box {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #ffffff;
}

/* ========== ABOUT US FEATURE CARDS ========== */
.about-pill-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    transition: all 0.35s ease;
    height: 100%;
}

.about-pill-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* ========== CONTACT INQUIRY CARDS ========== */
.contact-info-card {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 100%);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(5, 46, 22, 0.3);
}

.contact-quick-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.contact-quick-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
}

/* ========== NATURAL TREE & LEAF MICRO-ANIMATIONS ========== */

/* Gentle Tree Swaying Animation */
@keyframes treeSway {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(-3deg) translateY(-2px);
    }
    75% {
        transform: rotate(3deg) translateY(1px);
    }
}

/* Floating Leaf Breeze Motion */
@keyframes leafFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

/* Nature Particle Pulse Glow */
@keyframes natureGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.7));
    }
}

/* Apply Tree Sway to Leaf & Seedling Icons */
.tree-sway-icon,
.fa-leaf,
.fa-seedling,
.fa-tree {
    display: inline-block;
    animation: treeSway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Card Hover Leaf Sprout & Glow Effect */
.service-card:hover .service-icon i,
.project-card:hover .project-image i,
.lesson-card:hover .lesson-icon i,
.ebook-card-pro:hover .ebook-cover-3d i,
.partner-card-pro:hover .partner-icon-box i {
    animation: treeSway 1.5s ease-in-out infinite, natureGlow 2s ease-in-out infinite;
}

/* Floating Leaf Decor Accent */
.natural-leaf-floating {
    position: absolute;
    color: rgba(34, 197, 94, 0.25);
    font-size: 1.5rem;
    pointer-events: none;
    animation: leafFloat 5s ease-in-out infinite;
    z-index: 1;
}

.natural-leaf-floating.top-right {
    top: 20px;
    right: 30px;
    animation-delay: 0.5s;
}

.natural-leaf-floating.bottom-left {
    bottom: 20px;
    left: 30px;
    animation-delay: 1.5s;
}

/* Eco Natural Badge Tag */
.eco-nature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: #14532D;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.eco-nature-chip i {
    color: #16A34A;
    animation: treeSway 3s ease-in-out infinite;
}

/* ========== SUNRISE BACKGROUND & GROWING TREE ANIMATIONS ========== */

/* Sprouting & Growing Tree Keyframes */
@keyframes treeGrow {
    0% {
        transform: scale(0.3) translateY(20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.08) translateY(-4px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Beaming Golden Sunrise Rays Keyframes */
@keyframes sunriseBeam {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.04) rotate(1deg);
    }
}

/* Apply Tree Growing Animation to Sapling & Tree Icons */
.tree-grow-anim {
    animation: treeGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Hero Carousel Sunrise Landscape Background */
.hero-slider-container {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(5, 46, 22, 0.80) 0%,
        rgba(15, 76, 37, 0.80) 50%,
        rgba(22, 163, 74, 0.80) 100%
    ), url('/assets/images/sunrise_trees_bg.jpg') center/cover no-repeat !important;
    overflow: hidden;
}

/* Beaming Golden Sunray Rays Glow Overlay */
.hero-slider-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 140%;
    height: 200%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle at 50% 30%,
        rgba(251, 191, 36, 0.25) 0%,
        rgba(245, 158, 11, 0.12) 35%,
        transparent 70%
    );
    pointer-events: none;
    animation: sunriseBeam 6s ease-in-out infinite;
    z-index: 1;
}

/* Section Sunrise Backdrop Treatments */
.sunrise-nature-block,
.bg-about-nature,
.about-section-container {
    position: relative;
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    border-top: 1px solid rgba(22, 163, 74, 0.2);
    border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}

.sunrise-nature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    filter: blur(90px);
    z-index: -1;
}

.sunrise-nature-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120"><path fill="%23ffffff" fill-opacity="0.8" d="M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,43L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z"></path></svg>') bottom/cover no-repeat;
    pointer-events: none;
}

/* Growing Sapling Header Tag */
.sunrise-growing-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FEF3C7, #DCFCE7);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #0F4C25;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.sunrise-growing-tag i {
    color: #D97706;
    animation: treeGrow 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

/* ========== GLASSMORPHISM CARDS & TREE BACKGROUND VARIATIONS ========== */

/* Light Frosted Glass Card Style */
.glass-pro-card {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 12px 32px rgba(15, 76, 37, 0.08), 0 2px 6px rgba(255, 255, 255, 0.5) inset !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.glass-pro-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.22), 0 0 24px rgba(34, 197, 94, 0.35) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
}

/* Dark Frosted Glass Card Style */
.glass-card-dark {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-xl) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s ease !important;
}

.glass-card-dark:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(251, 191, 36, 0.3) !important;
}

/* ==========================================================================
   GROWING TREES NATURE BACKGROUND & FROSTED GLASS CARDS
   (Projects, Services, Lessons, Ebooks, Partners & All Items)
   ========================================================================== */

/* Translucent Section Backgrounds over 80% Green Growing Trees Image */
.bg-services-nature,
.bg-projects-nature,
.bg-ebooks-nature,
.bg-lessons-nature,
.bg-partners-nature,
.bg-contact-nature,
.bg-nature-trees-page,
.section-gray,
.sunrise-nature-block {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    color: #ffffff;
}

/* Glass Card Meta Header */
.glass-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.glass-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
    transition: all 0.3s ease;
}

/* ALL ITEM CARDS ON FRONTEND (Projects, Services, Lessons, Ebooks, Partners) GREEN LIGHT GLASS (50% WHITE OVERLAY MATCH) */
.service-card,
.project-card,
.lesson-card,
.ebook-card-pro,
.partner-card-pro,
.contact-info-card,
.glass-tree-card,
.glass-item-card,
.detail-content-card,
.sidebar-box-card,
.about-pill-card {
    background: rgba(255, 255, 255, 0.65) !important; /* 50%+ White Glass Tint */
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(22, 163, 74, 0.3) !important;
    border-radius: 24px !important;
    color: #0F4C25 !important;
    box-shadow: 0 16px 36px rgba(15, 76, 37, 0.1), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.service-card:hover,
.project-card:hover,
.lesson-card:hover,
.ebook-card-pro:hover,
.partner-card-pro:hover,
.glass-tree-card:hover,
.glass-item-card:hover,
.detail-content-card:hover,
.sidebar-box-card:hover,
.about-pill-card:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    transform: translateY(-8px) scale(1.01) !important;
    border-color: rgba(22, 163, 74, 0.6) !important;
    box-shadow: 0 24px 48px rgba(22, 163, 74, 0.22), 0 0 28px rgba(34, 197, 94, 0.35) !important;
}

/* Green Light Glass for Filter Pills */
.filter-tab-pill,
.filter-tabs-container button {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(22, 163, 74, 0.3) !important;
    color: #0F4C25 !important;
    font-weight: 600 !important;
}

.filter-tab-pill.active,
.filter-tabs-container button.active {
    background: linear-gradient(135deg, #16A34A 0%, #0F4C25 100%) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.35) !important;
}

/* Card Headings & Text Color Contrast for 50% White Background */
.service-card h3,
.project-card h3,
.lesson-card h3,
.ebook-card-pro h3,
.partner-card-pro h6,
.detail-content-card h1,
.detail-content-card h2,
.detail-content-card h3,
.about-pill-card h5,
.section-header h2 {
    color: #0F4C25 !important;
}

.service-card p,
.project-card p,
.lesson-card p,
.ebook-card-pro p,
.partner-card-pro span,
.detail-content-card p,
.about-pill-card p,
.section-header p {
    color: #334155 !important;
}

.partner-card-pro {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

/* Login Page Frosted Glass Card */
.login-glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 4px solid rgba(255, 255, 255, 0.22) !important;
    border-top: 5px solid #22c55e !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(34, 197, 94, 0.3) !important;
}

/* ==========================================================================
   5 DISTINCT GROWING TREE BACKGROUND THEMES & ANIMATIONS
   (Projects, Services, Lessons, Ebooks, Partners)
   ========================================================================== */

/* Keyframes for SVG Growing Trees */
@keyframes branchSprout {
    0% {
        transform: scale(0.2) rotate(-5deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.06) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes sunbeamPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes growthRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tree-trunk-anim {
    animation: branchSprout 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tree-branch-anim {
    animation: branchSprout 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.3s;
}

.tree-leaves-anim,
.tree-canopy-anim,
.blossoms-anim,
.wisdom-leaves-anim,
.paper-leaves-anim,
.oak-leaves-anim {
    animation: branchSprout 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.6s;
}

.sunbeam-pulse {
    transform-origin: center;
    animation: sunbeamPulse 5s ease-in-out infinite;
}

.growth-ring-spin {
    transform-origin: 400px 240px;
    animation: growthRingSpin 24s linear infinite;
}

/* 1. PROJECTS: Cyber Emerald Tech Tree Section Theme (80% Green Overlay) */
.bg-projects-nature,
.projects-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

.bg-projects-nature .glass-tree-card,
.bg-projects-nature .project-card {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.12), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
}

.bg-projects-nature .glass-tree-card:hover,
.bg-projects-nature .project-card:hover {
    border-color: rgba(6, 182, 212, 0.7) !important;
    box-shadow: 0 24px 48px rgba(6, 182, 212, 0.25), 0 0 28px rgba(52, 211, 153, 0.35) !important;
}

/* 2. SERVICES: Golden AgriTech Blooming Canopy Section Theme (80% Green Overlay) */
.bg-services-nature,
.services-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

.bg-services-nature .glass-tree-card,
.bg-services-nature .service-card {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
}

.bg-services-nature .glass-tree-card:hover,
.bg-services-nature .service-card:hover {
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 24px 48px rgba(245, 158, 11, 0.25), 0 0 28px rgba(34, 197, 94, 0.35) !important;
}

/* 3. LESSONS: Wisdom & Knowledge Academy Tree Section Theme (80% Green Overlay) */
.bg-lessons-nature,
.lessons-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

.bg-lessons-nature .glass-tree-card,
.bg-lessons-nature .lesson-card {
    border-color: rgba(13, 148, 136, 0.4) !important;
    box-shadow: 0 16px 36px rgba(13, 148, 136, 0.12), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
}

.bg-lessons-nature .glass-tree-card:hover,
.bg-lessons-nature .lesson-card:hover {
    border-color: rgba(45, 212, 191, 0.7) !important;
    box-shadow: 0 24px 48px rgba(13, 148, 136, 0.25), 0 0 28px rgba(59, 130, 246, 0.3) !important;
}

/* 4. EBOOKS: Library Book-Sapling Forest Section Theme (80% Green Overlay) */
.bg-ebooks-nature,
.ebooks-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

.bg-ebooks-nature .glass-tree-card,
.bg-ebooks-nature .ebook-card-pro {
    border-color: rgba(217, 119, 6, 0.4) !important;
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.12), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
}

.bg-ebooks-nature .glass-tree-card:hover,
.bg-ebooks-nature .ebook-card-pro:hover {
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 24px 48px rgba(217, 119, 6, 0.25), 0 0 28px rgba(251, 191, 36, 0.35) !important;
}

/* 5. PARTNERS: Corporate Ecosystem Root & Oak Section Theme (80% Green Overlay) */
.bg-partners-nature,
.partners-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

.bg-partners-nature .glass-tree-card,
.bg-partners-nature .partner-card-pro {
    border-color: rgba(15, 76, 37, 0.4) !important;
    box-shadow: 0 16px 36px rgba(15, 76, 37, 0.12), 0 2px 6px rgba(255, 255, 255, 0.8) inset !important;
}

.bg-partners-nature .glass-tree-card:hover,
.bg-partners-nature .partner-card-pro:hover {
    border-color: rgba(234, 179, 8, 0.7) !important;
    box-shadow: 0 24px 48px rgba(15, 76, 37, 0.25), 0 0 28px rgba(234, 179, 8, 0.35) !important;
}

/* 6. CONTACT: Nature Contact Section Theme (80% Green Overlay) */
.bg-contact-nature,
.contact-section-container {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%),
                url('/assets/images/sunrise_trees_bg.jpg') center/cover fixed no-repeat !important;
    position: relative;
    overflow: hidden;
}

/* 80% Green Nature Frosted Overlay with Blur for Growing Tree Backdrops */
.growing-tree-bg-container {
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
}

.growing-tree-bg-green-50-overlay,
.growing-tree-bg-green-60-overlay,
.growing-tree-bg-green-80-overlay {
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.80) 0%, rgba(15, 76, 37, 0.80) 50%, rgba(22, 163, 74, 0.80) 100%) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}

.svg-growing-tree {
    filter: blur(1.5px);
    transition: filter 0.3s ease;
}

/* ALL TITLES UPPERCASE STYLING */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.section-header h2,
.section-header h3,
.section-title,
.slide-animate-title,
.slide-animate-card-title,
.service-card h3,
.project-card h3,
.lesson-card h3,
.ebook-card-pro h3,
.partner-card-pro h6,
.detail-content-card h1,
.detail-content-card h2,
.detail-content-card h3,
.about-pill-card h5,
.footer-title,
.sunrise-growing-tag,
.card-title,
.page-title,
.nav-link,
.dropdown-item,
.hero-title {
    text-transform: uppercase !important;
}

/* ========== QR Converter Styles ========== */
.qr-converter-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 2rem;
}

.qr-converter-header {
    background: linear-gradient(135deg, #16A34A 0%, #0F4C25 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.qr-converter-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.qr-converter-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.qr-converter-body {
    padding: 2rem;
}

.qr-input-group {
    margin-bottom: 1.5rem;
}

.qr-input-group label {
    font-weight: 600;
    color: #0F4C25;
    margin-bottom: 0.5rem;
    display: block;
}

.qr-input-group input,
.qr-input-group select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.qr-input-group input:focus,
.qr-input-group select:focus {
    border-color: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    outline: none;
}

.qr-color-picker {
    height: 50px !important;
    cursor: pointer;
}

.qr-logo-preview {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.qr-generate-btn {
    background: linear-gradient(135deg, #16A34A 0%, #0F4C25 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.qr-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.4);
}

.qr-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.qr-result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    text-align: center;
}

.qr-result-container h4 {
    color: #0F4C25;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.qr-result-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.qr-download-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.qr-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.qr-history-section {
    margin-top: 2rem;
}

.qr-history-toggle {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.qr-history-toggle:hover {
    background: #e5e7eb;
}

.qr-history-card {
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1rem;
    overflow: hidden;
}

.qr-history-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.qr-history-item:hover {
    background: #f3f4f6;
}

.qr-history-item:last-child {
    border-bottom: none;
}

.qr-history-url {
    font-size: 0.9rem;
    color: #374151;
    word-break: break-all;
}

.qr-history-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.qr-history-size {
    background: #16A34A;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.alert-link:hover {
    text-decoration: none;
}

/* QR Converter Responsive Design */
@media (max-width: 768px) {
    .qr-converter-body {
        padding: 1.5rem;
    }

    .qr-converter-header h2 {
        font-size: 1.5rem;
    }

    .qr-result-image {
        max-height: 300px;
    }
}

/* QR Converter Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-result-container {
    animation: fadeIn 0.5s ease;
}

.qr-history-card {
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   GLOBAL FRONTEND FONT SIZE CONTROL
   Title = 14px, All Paragraphs = 13px, All Links = 12px
   ========================================================================== */

/* 1. All Titles & Headings in Frontend (14px Max) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
th, .card-title, .card-header, .form-label,
.title, .heading, .section-title, .hero-title, .page-title,
.post-title, .news-title, .service-title, .project-title,
.ebook-title, .lesson-title, .modal-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* 2. All Paragraphs, Body Text, Inputs & Form Elements (13px) */
p, td, div, span, input, select, textarea, label, button,
.lead, article, section, form, body, .card-text, .text-muted,
.form-control, .form-select, .form-check-label {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* 3. All Links, Navigation Items, and Buttons (12px) */
a, .btn, .nav-link, .page-link, .dropdown-item,
a.btn, a.nav-link, .navbar-nav .nav-link, .footer-link, .breadcrumb-item a {
    font-size: 12px !important;
}

/* ==========================================================================
   HOME PAGE STYLES (Extracted from Home.tsx)
   ========================================================================== */

/* Hero Slider */
.hero-slider-container {
    min-height: 450px;
}

.hero-slide-content {
    text-align: center;
}

.slide-animate-icon {
    border-radius: 20px;
    padding: 2px 8px;
}

.slider-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* News Slider */
.news-slider-container {
    max-height: 450px;
    overflow-y: auto;
}

.news-card-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-overlay {
    padding: 15px;
    background: linear-gradient(135deg, rgba(22, 163, 74) 0%, rgba(15, 76, 37) 100%);
    backdrop-filter: blur(5px);
    border-radius: 0 0 8px 8px;
}

.news-card-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    font-size: 15px;
}

/* Project Preview */
.slider-preview-container {
    max-height: 450px;
    overflow-y: auto;
}

.preview-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.preview-item-icon {
    font-size: 1.1rem;
}

.preview-item-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.preview-item-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Service Icons */
.service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.service-icon-green {
    background: rgba(22, 163, 74, 0.15);
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.service-icon-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-icon-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.service-icon-pink {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Service Cards */
.service-tab-container {
    width: 100%;
    max-width: 100%;
}

.tab-chevron {
    font-size: 13px;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-overlay-icon {
    font-size: 1.2rem;
    color: #fff;
}

.service-card-fallback-icon {
    font-size: 3rem;
    color: #fff;
}

.service-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-badge {
    align-self: flex-start;
}

.service-card-title {
    font-size: 1.1rem;
}

.service-card-footer {
    margin-top: auto;
    width: 100%;
}

/* Additional Utility Classes for Home.tsx */
.align-self-start {
    align-self: flex-start;
}

.border-radius-20 {
    border-radius: 20px;
}

.border-radius-20-pad-2-8 {
    border-radius: 20px;
    padding: 2px 8px;
}

.border-radius-30 {
    border-radius: 30px;
}

.flex-align-center-gap-10-mb-8 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.grid-auto-fit-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.flex-1-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.font-size-0-65 {
    font-size: 0.65rem;
}

.font-size-0-6 {
    font-size: 0.6rem;
}

.font-size-1-1 {
    font-size: 1.1rem;
}

.font-size-1-2-white {
    font-size: 1.2rem;
    color: #fff;
}

.font-size-12 {
    font-size: 12px;
}

.font-size-12-600-upper {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.font-size-13 {
    font-size: 13px;
}

.font-size-1-white {
    font-size: 1rem;
    color: #fff;
}

.font-size-3-white {
    font-size: 3rem;
    color: #fff;
}

.font-bold-700-white-15 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    font-size: 15px;
}

.font-bold-700-14-5-1-3 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.height-100-col {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.line-height-1-8 {
    line-height: 1.8;
}

.margin-top-15-flex-center-gap-8 {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.margin-top-auto {
    margin-top: auto;
}

.margin-top-auto-width-100 {
    margin-top: auto;
    width: 100%;
}

.max-height-450-auto {
    max-height: 450px;
    overflow-y: auto;
}

.max-width-900-90vh-auto {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.min-height-450 {
    min-height: 450px;
}

.pad-15-gradient-blur-radius-0-0-8-8 {
    padding: 15px;
    background: linear-gradient(135deg, rgba(22, 163, 74) 0%, rgba(15, 76, 37) 100%);
    backdrop-filter: blur(5px);
    border-radius: 0 0 8px 8px;
}

.pad-20-flex-1-col {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pos-rel-height-100-hidden {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.pos-rel-height-120-radius-8-mb-15 {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pos-rel-height-140-radius-8-mb-15 {
    position: relative;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pos-rel-height-180-radius-4-4-0-0 {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.pos-rel-height-180-radius-8-12-0-0 {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 12px 0 0;
}

.width-100-height-100-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.width-100-height-100-cover-radius-8-pointer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.width-100-max-100 {
    width: 100%;
    max-width: 100%;
}

.icon-box-42-green {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-42-yellow {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #FEF3C7;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(128, 238, 131, 0.50);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: rgba(128, 238, 131, 0.20);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.next-btn {
    left: auto;
    right: 2px;
}

/* Hero Slide Elements */
.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-slide-item.active-slide {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 8px;
    z-index: 1;
}

.hero-slide-content-inner {
    position: relative;
    z-index: 2;
    padding: 4px;
    background: rgb(102, 153, 0, 0.8);
    border-radius: 0 0 8px 8px;
    backdrop-filter: none;
}

.slide-icon-inner {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.slide-icon-shadow {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.4);
}

.slide-icon-margin-4 {
    margin: 0 auto 4px auto;
}

/* News Card Elements */
.news-card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card-date-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgb(102, 153, 0, 0.4);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
}

.news-card-badge {
    background: #DCFCE7;
    color: #16A34A;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Project Preview Card */
.project-preview-card {
    display: block;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s;
    min-height: 100px;
    text-decoration: none;
}

.project-preview-card:hover {
    transform: translateX(5px);
}

/* Service Tab Navigation */
.service-tab-nav {
    width: 100%;
    max-width: 100%;
}

.tab-nav-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: 2px solid #86efac;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35);
}

.tab-nav-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(22,163,74,0.45);
}

/* Category Tabs Container */
.category-tabs-container {
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    flex: 1;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.filter-tab-pill {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 30px;
    padding: 8px 22px;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* Service Card Icon Overlay */
.service-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 1;
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    color: #FBBF24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-fallback,
.project-card-fallback,
.lesson-card-fallback {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 12px 0 0;
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    color: #FBBF24;
}

/* Project Icon Overlay */
.project-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 1;
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    color: #FBBF24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ebook Download Button */
.ebook-download-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35);
    border: 2px solid #86efac;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lesson Icon Overlay */
.lesson-icon-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 1;
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    color: #FBBF24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Guest Login Page */
.guest-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: linear-gradient(135deg, rgba(5,46,22,0.80), rgba(15,76,37,0.80)), url("/assets/images/sunrise_trees_bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    overflow: hidden;
}

.login-glass-card-styled {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    box-sizing: border-box;
    background: rgba(5, 46, 22, 0.68);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-top: 5px solid #22c55e;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(34, 197, 94, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo-img {
    max-height: 75px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

.login-logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.login-title {
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 4px;
    font-size: 20px;
    text-transform: uppercase;
}

.login-badge {
    letter-spacing: 1px;
}

.login-error {
    background: rgba(217,35,15,.35);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.login-success {
    background: rgba(34,197,94,.35);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #86efac;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.login-label {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.login-input-icon {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    color: #fbbf24;
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: #fff;
    padding: 14px 16px 14px 44px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.login-input-password {
    padding: 14px 44px 14px 44px;
}

.login-password-toggle {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
}

.login-forgot-link {
    color: #86efac;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-forgot-link:hover {
    color: #4ade80;
}

.login-submit-btn {
    margin-top: 16px;
    background: linear-gradient(135deg, #22C55E 0%, #15803D 50%, #0F4C25 100%);
    color: #fff;
    border: 1px solid rgba(74, 222, 128, 0.5);
    border-radius: 14px;
    padding: 15px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-divider {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-signup-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-signup-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.login-home-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-home-link:hover {
    color: #fff;
}

.icon-yellow {
    color: #fbbf24;
}

/* Profile Settings Page */
.profile-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid #16A34A;
    position: relative;
}

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

.profile-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.hidden-file-input {
    display: none;
}

/* ShortLinkConverter Page */
.converter-container {
    position: relative;
    z-index: 5;
}

.converter-banner {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 40%, #16A34A 100%);
}

.short-link-text {
    font-size: 14px;
}

.qr-code-canvas {
    border-radius: 8px;
    image-rendering: pixelated;
}

.max-width-250 {
    max-width: 250px;
}

.auth-modal-backdrop {
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
}

/* DocumentConverter Page */
.doc-converter-container {
    position: relative;
    z-index: 5;
}

.doc-converter-banner {
    background: linear-gradient(135deg, #022C22 0%, #065F46 40%, #059669 100%);
}

.doc-upload-border-dashed {
    border-style: dashed;
}

.doc-download-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 3px 8px rgba(22,163,74,0.3);
    border: 2px solid #86efac;
    text-decoration: none;
}

.max-width-200 {
    max-width: 200px;
}

.font-size-12 {
    font-size: 12px;
}

/* ServiceDetail Page */
.service-detail-header {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 60%, #16A34A 100%);
    padding: 60px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.breadcrumb-small {
    font-size: 0.85rem;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fbbf24;
}

.service-image-wrapper {
    position: relative;
}

.service-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.service-detail-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    z-index: 1;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon {
    font-size: 1.5rem;
    color: #fff;
}

.sticky-sidebar {
    top: 100px;
}

.service-cta-btn {
    background: linear-gradient(135deg, #16A34A 0%, #0F4C25 100%);
}

.lesson-detail-badge {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lesson-detail-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15,76,37,0.8), rgba(22,163,74,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* EbookDetail Page */
.ebook-detail-header {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ebook-image-wrapper {
    position: relative;
    display: inline-block;
}

.ebook-cover-image {
    width: 170px;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ebook-icon-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    z-index: 1;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebook-icon {
    font-size: 1rem;
    color: #fff;
}

.ebook-cover-fallback {
    width: 170px;
    height: 230px;
}

.font-size-0-7 {
    font-size: 0.7rem;
}

.font-size-0-65 {
    font-size: 0.65rem;
}

.ebook-card {
    border-radius: 16px;
}

.ebook-description {
    font-size: 1.05rem;
    line-height: 1.8;
}

.ebook-info-card {
    border-radius: 16px;
    background: #F0FDF4;
}

.ebook-download-btn {
    border-radius: 30px;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
}

.ebook-chapter-icon {
    width: 40px;
    height: 50px;
    background: #0F4C25;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ProjectDetail Page */
.project-detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

/* Ebooks Page */
.ebooks-header {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    padding: 80px 0 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.max-width-650 {
    max-width: 650px;
}

.max-width-500 {
    max-width: 500px;
}

.ebooks-filter-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ebooks-filter-tabs {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.max-width-260 {
    max-width: 260px;
}

.ebook-card-image-wrapper {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.ebook-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.font-size-0-6 {
    font-size: 0.6rem;
}

.ebook-card-btn {
    border-radius: 20px;
}

.ebook-download-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35);
    border: 2px solid #86efac;
    text-decoration: none;
}

/* Lessons Page */
.lessons-hero {
    background: linear-gradient(135deg, #022c19 0%, #084924 40%, #0d6834 75%, #16a34a 100%);
    padding: 80px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lessons-hero-bg {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,222,128,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.lessons-hero-content {
    position: relative;
    z-index: 1;
}

.lessons-filter-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tab-pill-small {
    padding: 6px 16px;
    font-size: 0.84rem;
}

.max-width-280 {
    max-width: 280px;
}

.lesson-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lesson-instructor-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #DCFCE7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size-0-75 {
    font-size: 0.75rem;
}

.lesson-cta-section {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    padding: 60px 0;
    color: #fff;
}

.max-width-580 {
    max-width: 580px;
}

.border-radius-30 {
    border-radius: 30px;
}

/* ========== FRONTEND COMPONENT & PAGE CLASSES ========== */

/* Topbar & Profile Dropdown */
.frontend-profile-dropdown {
    position: relative;
}

.frontend-profile-btn {
    color: inherit;
    padding: 0 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.frontend-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 6px;
    overflow: hidden;
}

.frontend-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frontend-profile-chevron {
    font-size: 0.65rem;
}

.frontend-profile-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1500;
}

.frontend-profile-header {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.frontend-profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0F4C25;
}

.frontend-profile-email {
    font-size: 0.75rem;
    color: #666;
}

.frontend-profile-item {
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.frontend-profile-item:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.frontend-profile-item i {
    font-size: 0.9rem;
}

.frontend-profile-divider {
    margin: 6px 0;
    border-top: 1px solid #eee;
}

.frontend-profile-logout-btn {
    padding: 8px 14px;
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.frontend-profile-logout-btn:hover {
    background: #fef2f2;
}

/* Navbar Brand & Logo */
.nav-brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-brand-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0F4C25, #16A34A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.nav-brand-logo-icon {
    font-size: 1rem;
    color: #fbbf24;
}

.nav-brand-title {
    color: #0F4C25;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
}

.nav-brand-title-highlight {
    color: #16A34A;
}

.nav-dropdown-caret {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-submenu-arrow {
    font-size: 0.75rem;
    opacity: 0.7;
}

.nav-item-icon-sm {
    font-size: 0.85rem;
}

.nav-item-capitalize {
    text-transform: capitalize;
}

/* Language Switcher in Navbar */
.frontend-lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.frontend-lang-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.frontend-lang-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.frontend-lang-option.active {
    background: rgba(22, 163, 74, 0.15);
}

.frontend-lang-flag {
    font-size: 16px;
}

.frontend-lang-flag.dimmed {
    opacity: 0.5;
}

.frontend-lang-label {
    font-size: 13px;
    font-weight: 600;
    color: #0F4C25;
}

.frontend-lang-label.dimmed {
    opacity: 0.5;
}

.frontend-lang-track {
    width: 36px;
    height: 18px;
    border-radius: 9px;
    background: #16A34A;
    position: relative;
    transition: background 0.3s ease;
}

.frontend-lang-track.kh {
    background: #64748b;
}

.frontend-lang-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.frontend-lang-thumb.kh {
    left: 20px;
}

/* Video Downloader Actions & Elements */
.video-dl-wrapper {
    position: relative;
    z-index: 2;
}

.video-dl-player-box {
    min-height: 220px;
    background-color: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.video-dl-iframe {
    width: 100%;
    height: 230px;
    border: none;
    border-radius: 12px;
}

.video-dl-video-tag {
    width: 100%;
    max-height: 230px;
    border-radius: 12px;
}

.video-dl-thumb-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.75;
}

.video-dl-progress-bar {
    height: 10px;
}

.video-dl-action-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 3px 8px rgba(22,163,74,0.3);
    border: 2px solid #86efac;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.video-dl-action-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.video-dl-action-icon {
    font-size: 12px;
}

/* Document Converter Actions */
.doc-download-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 3px 8px rgba(22,163,74,0.3);
    border: 2px solid #86efac;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.doc-download-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.doc-download-icon {
    font-size: 12px;
}

.doc-upload-box {
    position: relative;
    border: 2px dashed #16A34A;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.3s ease;
}

.doc-upload-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.max-width-200 {
    max-width: 200px;
}

.lesson-card-btn {
    border-radius: 25px;
    background: linear-gradient(135deg, #16A34A, #0F4C25);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.lesson-track-card {
    padding: 28px 22px;
}

/* Projects Page */
.projects-hero {
    background: linear-gradient(135deg, #022c19 0%, #084924 40%, #0d6834 75%, #16a34a 100%);
    padding: 80px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.projects-filter-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.projects-filter-tabs {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.max-width-260 {
    max-width: 260px;
}

.project-card-btn {
    white-space: nowrap;
}

.projects-cta-section {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    padding: 60px 0;
    color: #fff;
}

.video-dl-wrapper-z {
    z-index: 2;
}

.cursor-pointer {
    cursor: pointer;
}

/* Services Page */
.services-hero {
    background: linear-gradient(135deg, #022c19 0%, #084924 40%, #0d6834 75%, #16a34a 100%);
    padding: 80px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.services-stats-wrapper {
    margin-top: 20px;
}

.services-filter-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.services-category-nav {
    width: 100%;
}

.services-nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.max-width-320 {
    max-width: 320px;
}

.min-width-240 {
    min-width: 240px;
}

.service-card-image-wrapper {
    position: relative;
    height: 140px;
    overflow: hidden;
    border-radius: 8px 12px 0 0;
    margin-bottom: 16px;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.font-size-0-78 {
    font-size: 0.78rem;
}

.font-size-0-82 {
    font-size: 0.82rem;
}

.services-cta-section {
    background: linear-gradient(135deg, #052E16 0%, #0F4C25 50%, #16A34A 100%);
    padding: 60px 0;
    color: #fff;
}

.max-width-600 {
    max-width: 600px;
}

.services-nav-scroll-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: 2px solid #86efac;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35);
    flex-shrink: 0;
    outline: none;
}

.font-size-13 {
    font-size: 13px;
}

.services-step-card {
    padding: 28px 22px;
    text-align: center;
}

.service-category-badge {
    background: #DCFCE7;
    color: #166534;
}

.services-category-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.services-step-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.5rem;
}

.services-step-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* QrConverter Page */
.qr-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.qr-color-preview {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.qr-file-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.qr-frames-scroll {
    max-height: 360px;
    overflow-y: auto;
}

.qr-color-input {
    height: 42px;
    width: 50px;
}

.qr-modal-backdrop {
    background-color: rgba(0,0,0,0.6);
}

.min-width-80 {
    min-width: 80px;
}

.font-size-0-7em {
    font-size: 0.7em;
}

.align-self-start {
    align-self: flex-start;
}

.max-width-130 {
    max-width: 130px;
}

.max-width-280 {
    max-width: 280px;
}

.position-relative-z-5 {
    position: relative;
    z-index: 5;
}

.font-size-12 {
    font-size: 12px;
}

.qr-preview-sticky {
    position: sticky;
    top: 90px;
    z-index: 100;
    transition: top 0.3s ease;
}

.display-none {
    display: none;
}

/* ──────────────────────────────────────────────
   Social Login Buttons (Google & Facebook)
   ────────────────────────────────────────────── */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 16px 0;
    gap: 12px;
}

.social-login-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.social-login-divider-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.social-login-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.social-login-google {
    background: #ffffff;
    color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.social-login-google:hover {
    background: #f1f5f9;
    color: #111827 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.social-login-facebook {
    background: #1877F2;
    color: #ffffff !important;
    border: 1px solid rgba(24, 119, 242, 0.8);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-login-facebook:hover {
    background: #166fe5;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────────
   Universal Green Gradient Glass Buttons
   ────────────────────────────────────────────── */
:root {
    --green-glass-grad: linear-gradient(135deg, rgba(34, 197, 94, 0.88) 0%, rgba(22, 163, 74, 0.92) 50%, rgba(15, 76, 37, 0.96) 100%);
    --green-glass-grad-hover: linear-gradient(135deg, rgba(74, 222, 128, 0.96) 0%, rgba(34, 197, 94, 0.96) 50%, rgba(21, 128, 61, 1) 100%);
    --green-glass-soft-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(22, 163, 74, 0.22) 100%);
}

/* Primary Green Gradient Glass (Solid Accent) */
.btn-primary,
.btn-success,
.btn-warning,
.btn-brand,
.btn-submit,
.btn-glass-primary,
.ebook-download-btn,
.project-card-btn,
button[type="submit"].btn,
.chamkarit-public-site .btn-primary,
.chamkarit-public-site .btn-success,
.chamkarit-public-site .btn-warning {
    background: var(--green-glass-grad) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-brand:hover,
.btn-submit:hover,
.btn-glass-primary:hover,
.ebook-download-btn:hover,
.project-card-btn:hover,
button[type="submit"].btn:hover,
.chamkarit-public-site .btn-primary:hover,
.chamkarit-public-site .btn-success:hover,
.chamkarit-public-site .btn-warning:hover {
    background: var(--green-glass-grad-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-primary:active,
.btn-success:active,
.btn-warning:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3) !important;
}

/* Secondary / Outline Frosted Green Glass (e.g. Preview, Show More, View Details) */
.btn-outline,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-light,
.ebook-card-btn,
.btn-glass-outline,
.chamkarit-public-site .btn-outline-success,
.chamkarit-public-site .btn-outline-warning,
.chamkarit-public-site .btn-outline-light {
    background: var(--green-glass-soft-grad) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(134, 239, 172, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-light:hover,
.ebook-card-btn:hover,
.btn-glass-outline:hover,
.chamkarit-public-site .btn-outline-success:hover,
.chamkarit-public-site .btn-outline-warning:hover,
.chamkarit-public-site .btn-outline-light:hover {
    background: var(--green-glass-grad) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

/* Light Background Content Override for Outline buttons */
.section:not(.text-white) .btn-outline-success:not(:hover),
.container-custom .bg-white .btn-outline-success:not(:hover),
.ebooks-filter-section .btn-outline-success:not(:hover) {
    color: #0F4C25 !important;
    text-shadow: none !important;
    border-color: rgba(22, 163, 74, 0.4) !important;
}

/* Green Gradient Glass on Learn More / Service Link */
.service-link,
.btn-learn-more,
.service-card .service-link,
.lesson-card-btn {
    background: var(--green-glass-grad) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.service-link:hover,
.btn-learn-more:hover,
.service-card .service-link:hover,
.lesson-card-btn:hover {
    background: var(--green-glass-grad-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}








