/* ============================================
   SIP SAVIYA - PREMIUM DUAL-THEME STYLESHEET
   Light & Dark Mode with Premium Feel
   ============================================ */

/* ============================================
   THEME VARIABLES - Light (Default)
   ============================================ */
:root {
    /* ප්‍රධාන තද නිල් පාට (Header, Titles, Main Components) - Sipsaviya Deep Blue */
    --primary: #0B359E;
    --primary-dark: #002D80;
    --primary-light: #3b66f5;
    --primary-gradient: linear-gradient(135deg, #0B359E 0%, #002D80 100%);

    /* Secondary පාට - Bright Electric Blue (Buttons, Links, Active States) */
    --secondary: #0062FF;
    --secondary-dark: #0046b8;
    --secondary-light: #5495ff;
    --secondary-gradient: linear-gradient(135deg, #0062FF 0%, #3b82f6 100%);

    /* කැපී පෙනෙන (Accent) පාට - Past Papers/Badges සඳහා රන්වන්/තැඹිලි පාට */
    --accent: #FFA500;
    --accent-light: #FFC04D;
    --accent-gradient: linear-gradient(135deg, #FFA500 0%, #FF6F00 100%);

    /* Success & Danger (Image එකේ විදිහටම Clean Soft Colors) */
    --success: #00C851;
    --success-light: #a3f7bf;
    --danger: #ff4444;
    --danger-light: #ffabe7;

    /* Neutral Dark (Light theme එකේ අකුරු සහ borders වලට) */
    --dark: #0B132A;
    --dark-light: #1E293B;
    --dark-card: #F8FAFC;
    --dark-border: #CBD5E1;

    /* Light Theme Base (Clean White & Soft Blue) */
    --light: #FFFFFF;
    --light-card: #FFFFFF;
    --light-border: #E2ECFC;

    /* සාමාන්‍ය කියවන අකුරු වල පාට (Text Colors) */
    --text-primary: #0B132A;   /* තද නිල්/කළු */
    --text-secondary: #334155; /* Neutral Slate */
    --text-muted: #64748B;     /* Muted Grey */
    --text-light: #FFFFFF;     /* White text */

    /* Premium Gold */
    --gold: #FFA500;
    --gold-light: #FFD073;
    --gold-gradient: linear-gradient(135deg, #FFA500 0%, #FF8F00 100%);

    /* Exam Gradients (Past papers/School papers badges වලට) */
    --ol-gradient: linear-gradient(135deg, #FFA500 0%, #FF6F00 100%);
    --al-gradient: linear-gradient(135deg, #00C851 0%, #007E33 100%);

    /* Shadows (Clean & Soft Drop Shadows) */
    --shadow-sm: 0 2px 4px rgba(11, 35, 158, 0.04);
    --shadow: 0 4px 12px rgba(11, 35, 158, 0.08);
    --shadow-lg: 0 10px 25px rgba(11, 35, 158, 0.12);
    --shadow-xl: 0 20px 35px rgba(11, 35, 158, 0.16);
    --shadow-glow: 0 0 20px rgba(0, 98, 255, 0.25);
    --shadow-gold: 0 4px 15px rgba(255, 165, 0, 0.3);

    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Backgrounds (Image එකේ තියෙන ලස්සන Soft Blue Gradient එක) */
    --bg-dark: #FFFFFF;
    --bg-dark-gradient: linear-gradient(180deg, #E2ECFC 0%, #FFFFFF 100%);
    --bg-light: #E2ECFC;
    --bg-light-gradient: linear-gradient(180deg, #E2ECFC 0%, #FFFFFF 100%);

    /* බෝක්ස් වල පසුබිම් පාට (Card & Background Colors) */
    --card-bg: #FFFFFF;
    --card-bg-hover: #F1F6FF;
    --card-border: #E2ECFC;
    --card-border-hover: #BBD2F9;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(226, 236, 252, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

    /* Footer (Image එකේ යටම තියෙන Dark Blue/Black look එක) */
    --footer-bg: linear-gradient(180deg, #0B132A 0%, #050A14 100%);
    --footer-text: #94A3B8;
    --footer-heading: #FFFFFF;

    /* Scrollbar */
    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #0B359E;
    --scrollbar-thumb-hover: #0062FF;

    /* Notification */
    --notif-success-bg: rgba(0, 200, 81, 0.95);
    --notif-error-bg: rgba(255, 68, 68, 0.95);
    --notif-info-bg: rgba(0, 98, 255, 0.95);
}

/* ============================================
    DARK THEME VARIABLES (Sipsaviya Dark Premium)
   ============================================ */
[data-theme="dark"] {
    --primary: #5495ff;
    --primary-dark: #0062FF;
    --primary-light: #94bfff;
    --primary-gradient: linear-gradient(135deg, #0062FF 0%, #0B359E 100%);

    --secondary: #0062FF;
    --secondary-dark: #0046b8;
    --secondary-light: #5495ff;
    --secondary-gradient: linear-gradient(135deg, #0062FF 0%, #002D80 100%);

    --accent: #FFA500;
    --accent-light: #FFC04D;
    --accent-gradient: linear-gradient(135deg, #FFA500 0%, #FF8F00 100%);

    --success: #00C851;
    --success-light: #6ee7b7;
    --danger: #ff4444;
    --danger-light: #fca5a5;

    --dark: #F1F5F9;
    --dark-light: #E2E8F0;
    --dark-card: #151D30;
    --dark-border: #24324F;

    --light: #0B132A;
    --light-card: #111A2E;
    --light-border: #1E2942;

    /* Text Colors - Inverted for dark */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-light: #0B132A;

    --gold: #FFA500;
    --gold-light: #FFD073;
    --gold-gradient: linear-gradient(135deg, #FFA500 0%, #FF8F00 100%);

    --ol-gradient: linear-gradient(135deg, #FFA500 0%, #FF6F00 100%);
    --al-gradient: linear-gradient(135deg, #00C851 0%, #007E33 100%);

    /* Shadows - Deep Dark Tech Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);
    --shadow-xl: 0 20px 35px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px rgba(0, 98, 255, 0.15);
    --shadow-gold: 0 4px 15px rgba(255, 165, 0, 0.2);

    /* Backgrounds - Deep Premium Navy */
    --bg-dark: #000e29;
    --bg-dark-gradient: linear-gradient(180deg, #0B132A 0%, #050A14 100%);
    --bg-light: #010923;
    --bg-light-gradient: linear-gradient(180deg, #0B132A 0%, #050A14 100%);

    /* Card Backgrounds - Deep Slate Blue */
    --card-bg: #000f30;
    --card-bg-hover: #16223B;
    --card-border: #1e294200;
    --card-border-hover: #00081a;

    /* Glassmorphism - Dark */
    --glass-bg: rgba(11, 19, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Footer - Full Dark Black */
    --footer-bg: linear-gradient(180deg, #050A14 0%, #000000 100%);
    --footer-text: #64748B;
    --footer-heading: #FFFFFF;

    /* Scrollbar - Dark */
    --scrollbar-track: #050A14;
    --scrollbar-thumb: #0B359E;
    --scrollbar-thumb-hover: #0062FF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle i {
    transition: var(--transition);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: inline-block;
}

.theme-toggle .fa-moon {
    display: none;
}

/* ============================================
   NAVIGATION - Premium Glass
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: var(--glass-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.51);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo i {
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-contacts {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9998;
}

.floating-contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    border: none;
}

.floating-contact-btn:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.floating-contact-btn.whatsapp {
    background: linear-gradient(135deg, #00ff5e 0%, #077c6f 100%);
}

.floating-contact-btn.telegram {
    background: linear-gradient(135deg, #00aaff 0%, #005f99 100%);
}

.floating-contact-btn .tooltip {
    position: absolute;
    right: 65px;
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateX(10px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.floating-contact-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--dark-card);
}

.floating-contact-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-contact-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   ADS BANNERS - Premium
   ============================================ */
.ad-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 25px;
    transition: var(--transition);
    cursor: pointer;
}

.ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.ad-banner-top {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0) 0%, rgba(0, 60, 255, 0) 50%, rgba(0, 68, 255, 0) 100%);
    border: 1px solid rgba(99, 101, 241, 0);
}

.ad-banner-side {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid var(--card-border);
    min-height: 250px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.ad-banner-inline {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.2);
}

.ad-banner-hero {
    background: var(--gold-gradient);
    color: rgba(255, 255, 255, 0.149);
    font-weight: 700;
    font-size: 1.1rem;
}

.ad-banner-hero:hover {
    box-shadow: var(--shadow-gold);
}

.ad-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.ad-banner-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.ad-banner-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.ad-banner-text strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.ad-banner-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    background: repeating-linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.03),
        rgba(99, 102, 241, 0.03) 10px,
        rgba(99, 102, 241, 0.06) 10px,
        rgba(99, 102, 241, 0.06) 20px
    );
    border: 2px dashed rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.ad-placeholder:hover {
    border-color: var(--primary-light);
    background: repeating-linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.05),
        rgba(99, 102, 241, 0.05) 10px,
        rgba(99, 102, 241, 0.1) 10px,
        rgba(99, 102, 241, 0.1) 20px
    );
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--primary-light);
}

/* Ad Grid Layout */
.ad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.ad-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ad-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   HERO SECTION - Premium
   ============================================ */
/* ============================================
   HERO SECTION - Modern Split Premium Redesign
   ============================================ */
.hero-section {
    padding: 160px 20px 100px 20px;
    
    /* Background Image සහ Dark Gradient Overlay එක */
    background: linear-gradient(135deg, rgba(9, 36, 56, 0.252) 0%, rgba(19, 65, 139, 0) 100%), 
                url('images/background photo/background new.png') !important;
    
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative;
    overflow: hidden;
}

/* Split Layout Grid Setup */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* --------------------------------------------
   LEFT SIDE - Heading & Main Buttons
   -------------------------------------------- */
.hero-left h1 {
    font-family: 'Playfair Display', 'Noto Sans Sinhala', serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.497);
}

.hero-left h1 span {
    background: linear-gradient(135deg, #070e50 0%, #0a138d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-left p {
    font-family: 'Noto Sans Sinhala', 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.501);
}

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

.btn-main-primary, .btn-main-secondary {
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-main-primary {
    background: var(--secondary-gradient);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.btn-main-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(6, 182, 212, 0.5);
}

.btn-main-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-main-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --------------------------------------------
   RIGHT SIDE - 3 Feature Buttons Stack (Floating)
   -------------------------------------------- */
.feature-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Base Box Styles */
.feature-btn {
    background: rgba(255, 255, 255, 0.684);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    color: rgb(0, 0, 0) !important;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Page load vē eddī entrance animation eka */
    opacity: 0;
    transform: translateX(50px);
    animation: featureSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 🌟 [CRITICAL EFFECT] Box thuna pavi pavi thiyena animation eka ekathu kirima (Infinite Floating) */
.feature-buttons-stack a:nth-child(1) { 
    animation: featureSlideIn 0.8s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               floatingPastPapers 1s ease-in-out infinite alternate; 
}
.feature-buttons-stack a:nth-child(2) { 
    animation: featureSlideIn 0.8s 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               floatingShortNotes 2.5s ease-in-out infinite alternate; 
}
.feature-buttons-stack a:nth-child(3) { 
    animation: featureSlideIn 0.8s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               floatingVideos 3s ease-in-out infinite alternate; 
}

/* Icons & text wrappers */
.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-red   { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-blue  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.feature-text {
    flex-grow: 1;
}

.feature-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.feature-text p {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.85rem;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.4;
}

.arrow-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Mouse Hover karaddi vena athiri badu effect */
.feature-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.feature-btn:hover .arrow-icon {
    color: white;
    transform: translateX(5px);
}

.paper-glow:hover { box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4); }
.notes-glow:hover { box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4); }
.video-glow:hover { box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4); }

/* ============================================
   🌟 ANIMATIONS LOGIC (PAVI PAVI THIYENA VIDIYA)
   ============================================ */
@keyframes featureSlideIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Box 1 floating path */
@keyframes floatingPastPapers {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-8px) scale(1.01); }
}

/* Box 2 floating path (vasi pramaṇaya venas) */
@keyframes floatingShortNotes {
    0% { transform: translateY(-4px) scale(1.01); }
    100% { transform: translateY(6px) scale(0.99); }
}

/* Box 3 floating path */
@keyframes floatingVideos {
    0% { transform: translateY(4px) scale(0.99); }
    100% { transform: translateY(-10px) scale(1.01); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-left h1 { font-size: 2.4rem; }
    .hero-main-buttons { justify-content: center; }
    .feature-btn { text-align: left; }
    /* Mobile valadi floating adu karanna katha vena nisa */
    .feature-buttons-stack a:nth-child(1),
    .feature-buttons-stack a:nth-child(2),
    .feature-buttons-stack a:nth-child(3) { animation: featureSlideIn 0.8s forwards !important; }
}
/* ============================================
   SECTIONS COMMON - Premium
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   GRADES SECTION - Premium
   ============================================ */
.grades-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.grades-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 35, 223, 0) 0%, transparent 70%);
    top: 50%;
    left: -100px;
    border-radius: 50%;
}

[data-theme="dark"] .grades-section::before {
    background: radial-gradient(circle, rgba(102, 145, 231, 0) 0%, transparent 70%);
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grade-card {
    background:#fffefe89;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color:(#000000);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.grade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #000000;
    transform: scaleX(0);
    transition: var(--transition);
}

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

.grade-card:hover {
    border-color: #ffffff94;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: var(--card-bg-hover);
}

.grade-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.grade-label {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 500;
}

.grade-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #005f99;
}

/* ============================================
   O/L & A/L SPECIAL CARDS SIZE BIGGER & PREMIUM
   ============================================ */

/* O/L සහ A/L කාඩ් දෙක අඩංගු Container එක */
.special-grades-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

/* 🌟 O/L සහ A/L බොත්තම් (Cards) වල ප්‍රමාණය විශාල කිරීම */
.special-grade-card {
    flex: 1;
    min-height: 160px; /* උස වැඩි කර ඇත */
    padding: 30px 25px; /* ඇතුළත ඉඩ (Padding) වැඩි කර ඇත */
    border-radius: 24px; /* දාර වඩාත් රවුම් කර ඇත */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.144) 0%, rgba(255, 255, 255, 0.16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* වම් පැත්තේ තියෙන Icon එක විශාල කිරීම */
.special-grade-card .card-icon {
    width: 75px;  /* Icon රවුමේ පළල */
    height: 75px; /* Icon රවුමේ උස */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; /* Icon එකේ Size එක */
    flex-shrink: 0;
}

/* වර්ණ ගැන්වීම් (Gradients) */
.ol-card .card-icon { background: linear-gradient(135deg, #ff4e50, #f9d423); }
.al-card .card-icon { background: linear-gradient(135deg, #00c6ff, #0072ff); }

/* මැද තියෙන අකුරු (Text) විශාල කිරීම */
.special-grade-info {
    flex-grow: 1;
    padding-left: 25px;
    text-align: left;
}

.special-grade-info h3 {
    font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
    font-size: 1.6rem; /* O/L, A/L අකුරු වල සයිස් එක */
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.special-grade-info p {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.95rem; /* විස්තරයේ අකුරු සයිස් එක */
    color: #94a3b8 !important;
    margin: 0 !important;
}

/* දකුණු පැත්තේ තියෙන ඊතලය (Arrow Icon) */
.special-grade-card .arrow-icon {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

/* 🌟 Mouse එක උඩට ගෙනියද්දී (Hover) සිදුවන ලස්සන වෙනස්කම් */
.special-grade-card:hover {
    transform: translateY(-8px) scale(5.03); /* කාඩ් එක උඩට පාවී ලොකු වීම */
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.ol-card:hover { box-shadow: 0 20px 40px rgba(255, 78, 80, 0.3); }
.al-card:hover { box-shadow: 0 20px 40px rgba(0, 114, 255, 0.3); }

.special-grade-card:hover .arrow-icon {
    color: white;
    transform: translateX(6px); /* ඊතලය දකුණට ගමන් කිරීම */
}

/* Mobile Responsive (Phone එකෙන් බලද්දී කාඩ් දෙක එකක් යට එකක් ලස්සනට වැටීමට) */
@media (max-width: 768px) {
    .special-grades-container {
        flex-direction: column;
        gap: 20px;
    }
    .special-grade-card {
        width: 100%;
        min-height: 130px;
        padding: 20px;
    }
    .special-grade-info h3 { font-size: 1.4rem; }
}

/* ============================================
   EXAMS SECTION - Premium
   ============================================ */
.exams-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    position: relative;
}

.exam-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.exam-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.exam-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
    pointer-events: none;
}

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

.ol-card {
    border-top: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, var(--card-bg) 100%);
}

.ol-card:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.1);
}

.al-card {
    border-top: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, var(--card-bg) 100%);
}

.al-card:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
}

.exam-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.ol-card .exam-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--accent);
}

.al-card .exam-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
    color: var(--primary);
}

.exam-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.exam-card > p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.exam-features {
    list-style: none;
    margin-bottom: 25px;
}

.exam-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exam-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.btn-exam {
    width: 100%;
    justify-content: center;
    background: var(--dark);
    color: white;
    border: none;
}

.ol-card .btn-exam {
    background: var(--ol-gradient);
}

.al-card .btn-exam {
    background: var(--al-gradient);
}

.btn-exam:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESOURCES SECTION - Premium
   ============================================ */
.resources-section {
    padding: 80px 20px;
    background: var(--bg-light);
    position: relative;
}

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

.resource-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
}

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

.resource-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(5deg);
}

.pdf-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.03) 100%);
    color: var(--danger);
}

.video-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.03) 100%);
    color: #3b82f6;
}

.notes-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.03) 100%);
    color: var(--accent);
}

.paper-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
    color: var(--success);
}

.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER - Premium Dark
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 20px 20px;
    border-top: 1px solid var(--card-border);
}

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

.footer-section .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--footer-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--footer-heading);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul a:hover {
    color: var(--footer-heading);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .ad-grid-2,
    .ad-grid-3 {
        grid-template-columns: 1fr;
    }

    .floating-contacts {
        right: 15px;
        bottom: 20px;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .theme-toggle {
        top: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        border-top: 1px solid var(--card-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .grades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .ad-banner-side {
        writing-mode: horizontal-tb;
        min-height: 90px;
    }

    .floating-contact-btn .tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .grades-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grade-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats {
        gap: 15px;
    }

    .stat-item {
        padding: 10px 15px;
    }
}
/* ============================================
   GRADE PAGE STYLES (Grade.html) - Premium
   ============================================ */
/* ============================================
   GRADE PAGE - HEADER NEW BLUE BOX STYLE
   ============================================ */
.grade-header {
    /* වීදුරු පෙනුම වෙනුවට පිටුවේ ප්‍රධාන එක ලබා දීම */
    background: linear-gradient(135deg, #ffffff92 0%, #ffffffa3 100%) !important; 
    padding: 35px 20px !important;
    text-align: center !important;
    border-radius: 16px !important; /* වටේ ලස්සනට රවුම් කිරීම */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 20px auto 30px auto !important; /* දෙපැත්තෙන් ඉඩ තබා මැදට ගැනීම */
    max-width: 1200px !important; /* විෂය කාඩ්පත් වල පළලටම සමාන කිරීම */
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important; /* යටින් පාවෙන සෙවනැල්ලක් දීම */
}

/* Header එක උඩින් වැටෙන සිහින් රේඛාව ලස්සන පාට කිරීම */
.grade-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100 !important;
    height: 4px !important;
    background: var(--secondary-gradient, linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%)) !important;
}

/* "Grade X" කියන ප්‍රධාන අකුරු සියල්ල පිරිසිදුව පාට කිරීම */
.grade-header h1 {
    font-size: 2.3rem !important;
    color: #000000 !important; /* සම්පූර්ණ අකුරු පැහැය */
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

/* සිංහලෙන් ලියවෙන කොටස (Span) ලස්සන සයන් නිල්/කොළ පාටකින් කැපී පෙනෙන්න හැදීම */
.grade-header h1 span {
    background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* යටින් තියෙන කුඩා විස්තර අකුරු (Subtitle) */
.grade-header p {
    color: #021023 !important; /* ලස්සන අළු/සුදු පාටක් */
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.back-btn:hover {
    gap: 12px;
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
    pointer-events: none;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
    background: var(--card-bg-hover);
}

.subject-header {
    padding: 25px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.subject-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(200%) rotate(30deg); }
}

.subject-header i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.subject-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    z-index: 1;
}

.subject-content {
    padding: 25px;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.resource-link:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: var(--primary-light);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.resource-link i {
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.resource-link:hover i {
    transform: scale(1.1);
}

.resource-link .fa-file-pdf {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.resource-link .fa-play-circle {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.resource-link .fa-sticky-note {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.resource-link .fa-school {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.resource-link .fa-book {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.resource-info {
    flex: 1;
}

.resource-info span {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
}

.resource-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.no-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--card-border);
}

/* Stream tabs for A/L */
.stream-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.stream-tab {
    padding: 10px 25px;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stream-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.stream-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--card-border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

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

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Notification */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: var(--notif-success-bg);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: var(--notif-error-bg);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: var(--notif-info-bg);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================
   CUSTOM SECTION BACKGROUND IMAGES VIA BACKGROUND utility
   ============================================ */
section, .pdf-page, .lesson-page, .grade-page {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Obviate white backgrounds to make section images visible. 
   You can add background-image: url('your-image.jpg') directly to these classes or inline style! */
#home, #grades, #exams, #resources, #about ,.hero-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.167), rgba(0, 0, 0, 0.129)) , url('images/background photo/background new.png') ; /* Add your image URL here, e.g., url('bg.jpg') */
}

.section-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
 #home , .hero-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.167), rgba(0, 0, 0, 0.129)) , url('images/background photo/background new.png') ; /* Add your image URL here, e.g., url('bg.jpg') */
}

.section-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* PDF වල තියෙන ලෝගෝ එක රතු පාට කිරීම */
.fa-file-pdf, .fa-pdf, [class*="fa-file-pdf"] {
    color: #e22626 !important; /* මෙතනට ලස්සන රතු පාටක Hex Code එකක් දීලා තියෙනවා */
}
/* --- Clickable Ads Configuration --- */
.ad-banner {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px; /* පින්තූරය හොඳින් පෙනීමට අවම උස */
    border-radius: 12px;
}

/* ඇතුළත ඇති පැරණි Text/Icons සැඟවීමට (පින්තූරය පමණක් පෙන්වීමට) */
.ad-banner[data-img] .ad-banner-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.6); /* හොවර් කළ විට පසුබිම අඳුරු වීමට */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

/* මවුස් එක උඩට ගෙන ගිය විට (Hover) ඇතුළත විස්තර පෙනීමට අවශ්‍ය නම් */
.ad-banner[data-img]:hover .ad-banner-content {
    opacity: 0;
}

.ad-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* AD ලේබල් එක පින්තූරය උඩින් ලස්සනට තැබීමට */
.ad-banner .ad-banner-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
}
/* --- Pages Background Fix with Overlay --- */


#home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.208), rgba(0, 0, 0, 0.17)), url('images/background photo/home new.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
} 
/* 1. පොත් සාප්පුවේ (Book Store) පසුබිම මඳක් සුදු/අඳුරු මිශ්‍ර කර පැහැදිලි කිරීම */
.bookstore-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.192)), url('images/background photo/home new.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* 2. Grades පිටුවේ පසුබිම මඳක් සුදු/අඳුරු මිශ්‍ර කර පැහැදිලි කිරීම */
.grade-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.108), rgba(0, 0, 0, 0.168)), url('images/background photo/background new.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* 3. PDF පිටුවේ පසුබිම මඳක් සුදු/අඳුරු මිශ්‍ර කර පැහැදිලි කිරීම */
.pdf-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.201), rgba(0, 0, 0, 0.19)), url('images/background photo/background new.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
/* --- Home Page Grade Section Background Fix --- */
#grades {
    position: relative !important;
    /* පින්තූරය උඩින් 85% ක සුදු Overlay එකක් එකතු කිරීම */
    background-image: linear-gradient(rgba(248, 250, 252, 0.126), rgba(248, 250, 252, 0.115)), url('images/background photo/background new.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Section එකේ ප්‍රධාන මාතෘකාව තද කළු කර කැපී පෙනීමට සැලැස්වීම */
#grades .section-header h2 {
    color: #000000f0 !important;
    font-weight: 700 !important;
}
#grades .section-header p {
    color: #334155 !important;
}
/* ============================================
   FLOATING WHATSAPP & TELEGRAM BUTTONS ANIMATION
   ============================================ */

/* 1. බොත්තම් දෙක නිතරම ලස්සනට ගැහෙන්න (Pulse) ඇනිමේෂන් එක දීම */
.floating-whatsapp, 
.floating-telegram,
[class*="whatsapp"], 
[class*="telegram"] {
    animation: floatingPulse 2.5s infinite ease-in-out !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* WhatsApp බොත්තම තත්පර 0.5ක් ප්‍රමාද වී ඇනිමේට් වීම (දෙකම එකපාර ගැහෙන්නේ නැතිව මාරුවෙන් මාරුවට ගැහෙන්න) */
.floating-whatsapp, [class*="whatsapp"] {
    animation-delay: 0.5s !important;
}

/* 2. Mouse එක උඩට ගිය විට (Hover) බොත්තම පොඩ්ඩක් ලොකු වී කැරකෙන Effect එක */
.floating-whatsapp:hover, 
.floating-telegram:hover,
[class*="whatsapp"]:hover, 
[class*="telegram"]:hover {
    transform: scale(1.15) rotate(8deg) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3) !important;
    animation-play-state: paused !important; /* Hover කරගෙන ඉන්නකොට ගැහෙන එක නවතී */
}

/* 3. නිතරම ගැහෙන (Pulse) ඇනිමේෂන් එකේ වැඩකිදම් (Keyframes) */
@keyframes floatingPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-6px) scale(1.04); /* පොඩ්ඩක් උඩට ගොස් ලොකු වේ */
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25); /* සෙවනැල්ල ලොකු වේ */
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}
/* Container on Left Bottom Corner */
.sipsaviya-side-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

.sipsaviya-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* -------------------------------------------
   ROUND APP BUTTONS (Toggles)
------------------------------------------- */
.circle-app-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Brand Button Themes */
.insta-circle {
    background: linear-gradient(45deg, #f09433, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.4);
}
.fb-circle {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.4);
}

.circle-app-btn i {
    font-size: 19px;
    transition: all 0.3s ease;
}

.circle-app-btn .arrow-toggle-icon {
    font-size: 10px;
    margin-top: 2px;
}

/* Hover effect on App Button */
.circle-app-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Button pulse ripple animation */
.btn-ripple {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: ripplePulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes ripplePulse {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}


/* -------------------------------------------
   PREMIUM GLASS CARDS 
------------------------------------------- */
.premium-glass-card {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 240px; /* Size optimized so it's not too big */
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 15, 30, 0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    
    /* Animation Properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    transform-origin: bottom left;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dynamic Rotating Border Effect */
.card-glow-border {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 20%, #0b8389, #0f6cbe, #ae135b, #af4d06, transparent 80%);
    animation: rotateGlow 4s linear infinite;
    z-index: 1;
}

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

/* Card Content Overlay to protect glass background */
.card-inner-content {
    position: relative;
    z-index: 2;
    margin: 3px; /* Creates the border width */
    background: rgba(255, 255, 255, 0.186);
    border-radius: 17px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circular Badges inside card */
.brand-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 12px;
}
.insta-badge { background: linear-gradient(45deg, #f09433, #bc1888); }
.fb-badge { background: #1877F2; }

.card-inner-content h3 {
    margin: 0 0 6px 0;
    color: #000000;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-inner-content p {
    margin: 0 0 16px 0;
    color: #000000;
    font-size: 12px;
    line-height: 1.5;
}

/* Premium Glowing Buttons Inside Card */
.action-glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insta-glow-btn {
    background: linear-gradient(90deg, #fd1d1d, #fcb045);
    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.3);
}
.insta-glow-btn:hover {
    box-shadow: 0 6px 20px rgba(253, 29, 29, 0.5);
    transform: translateY(-2px);
}

.fb-glow-btn {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}
.fb-glow-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
    transform: translateY(-2px);
}


/* -------------------------------------------
   ACTIVE STATES (CLICK කරාම වෙනස් වන ශෛලිය)
------------------------------------------- */
.sipsaviya-widget.active .premium-glass-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow turns upside down and changes smoothly */
.sipsaviya-widget.active .arrow-toggle-icon {
    transform: rotate(180deg);
}

/* ============================================
   THEME TOGGLE BUTTON STYLES
   ============================================ */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 15px;
    z-index: 1000;
}

.theme-toggle-btn:hover {
    background: var(--accent, #f59e0b);
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
/* ============================================
   NAVBAR LINKS & THEME TOGGLE ALIGNMENT
   ============================================ */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin-left: auto; /* සියලුම ලිංක්ස් දකුණු පැත්තට තල්ලු කිරීම */
    margin-right: 20px; /* ලිංක්ස් සහ තීම් බොත්තම අතර පරතරය */
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main, #ffffff);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 0; 
    z-index: 1000;
}

.theme-toggle-btn:hover {
    background: var(--accent, #f59e0b);
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .nav-links {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] body {
    background-color: #041234b7 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .grades-section,
[data-theme="dark"] .exams-section,
[data-theme="dark"] .resources-section,
[data-theme="dark"] .about-section {
    background: #0a1d49 !important;
}

[data-theme="dark"] .grade-card,
[data-theme="dark"] .exam-card,
[data-theme="dark"] .feature-btn,
[data-theme="dark"] .book-card {
    background: #092756a4 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .grade-card h3,
[data-theme="dark"] .exam-card h3,
[data-theme="dark"] .feature-text h3 {
    color: #ffffff !important;
}
/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE STYLES (For All Pages - Screens less than 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. පොදු Layout සහ Typography සකස් කිරීම */
    body {
        font-size: 14px; /* Phone එකට ගැලපෙන පොදු අකුරු ප්‍රමාණය */
        overflow-x: hidden; /* Screen එක දෙපැත්තට හෙල්ලීම (horizontal scroll) නැවැත්වීමට */
    }

    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 2. NAVIGATION BAR (Mobile Menu එක) */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px; /* Navbar එකේ උස අනුව */
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--light-card, #ffffff);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 25px;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    /* JavaScript වලින් active class එකක් දැම්මාම Menu එක එළියට එන්න */
    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block !important; /* Phone එකේදී විතරක් ඉරි කෑලි 3 පෙනෙන්න */
        cursor: pointer;
    }

    /* 3. HERO / BANNER SECTIONS (සියලුම පිටුවල ප්‍රධාන බැනර්) */
    .hero, .hero-section {
        padding: 100px 15px 40px 15px !important;
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1, .hero h1 {
        font-size: 1.8rem !important; /* ලොකු මාතෘකා Phone එකට ගැලපෙන්න කුඩා කළා */
        line-height: 1.3;
    }

    /* 4. GRADES, EXAMS & BOOKS GRIDS (සියලුම Grid Layouts Phone එකට 1 හෝ 2 බැගින් හැදීම) */
    .grades-grid, .exams-grid, .books-grid, .ad-grid-2 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 15px !important;
        padding: 10px 15px !important;
    }

    /* Grade Cards වල padding සහ පෙනුම */
    .grade-card, .exam-card, .book-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px; /* Card එකක් ඕනෑවට වඩා මහත වීම වැළැක්වීමට */
    }

    /* 5. FLOATING CONTACT BUTTONS (Phone එකේදී ලස්සනට යටින් තියන්න) */
    .floating-contacts {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* 6. FOOTER RESPONSIVE (යටම කොටස එක යටට එක හැදීම) */
    footer, .footer-container {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
        padding: 40px 20px !important;
    }

    .footer-col {
        width: 100% !important;
    }
}
/* Main Wrapper */
.sipsaviya-advanced-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px; /* Layout එකට ගැලපෙන්න පළල වැඩිකරා */
    margin: 25px auto;
    z-index: 999;
}

/* PaperZone Style Search Container */
.pz-search-box-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.323); /* Glassmorphism look */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 35px;
    padding: 5px; /* බටන් එක ඇතුලෙන් ලස්සනට හිටින්න */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.pz-search-box-container:focus-within {
    border-color: #0072ff;
    box-shadow: 0 10px 30px rgba(7, 47, 95, 0.47);
    background: rgba(255, 255, 255, 0.18);
}

/* 1. Input Block Styling */
.pz-input-block {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 15px;
}

.pz-search-icon {
    color: #2a2a2a;
    font-size: 16px;
    margin-right: 12px;
}

#pzSearchInput {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-size: 15px;
    color: #ffffff; /* Sipsaviya dark banner එක උඩ පේන්න සුදු පාටින් */
    font-family: 'Inter', system-ui, sans-serif;
}

#pzSearchInput::placeholder {
    color: #202123;
    opacity: 0.8;
}

/* 2. Category Dropdown Block */
.pz-category-block {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* මැදින් වෙන් කරන ඉර */
    padding: 0 15px;
    height: 30px;
}

#pzCategorySelect {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding-right: 20px;
    font-family: inherit;
}

/* Dropdown option වල පසුබිම (කළු පැහැති නිසා සුදු අකුරු පෙනේ) */
#pzCategorySelect option {
    background: #0d1426;
    color: #fff;
}

.pz-arrow-icon {
    position: absolute;
    right: 15px;
    color: #a8b2d1;
    font-size: 11px;
    pointer-events: none;
}

/* 3. Search Button */
.pz-search-btn {
    background: #0072ff; /* Sipsaviya Blue Theme */
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pz-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}


/* -------------------------------------------
   SUGGESTIONS DROPDOWN (යටින් එන ලැයිස්තුව)
------------------------------------------- */
.pz-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(13, 20, 38, 0.95); /* Dark Glass Look */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    max-height: 300px;
    overflow-y: auto;
    display: none; /* මුලින් හංගලා තියෙන්නේ */
    animation: pzSlideDown 0.2s ease-out;
}

@keyframes pzSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pz-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.pz-suggest-item:last-child { border-bottom: none; }
.pz-suggest-item:hover { background: rgba(255, 255, 255, 0.08); }

.pz-item-title {
    color: #ffffff;
    font-size: 14px;
}

.pz-item-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 114, 255, 0.2);
    color: #00c6ff;
}

.pz-no-results {
    padding: 20px;
    text-align: center;
    color: #a8b2d1;
    font-size: 14px;
}