/* ============================================================
   Amu Digital World & Cyber Cafe - Main Stylesheet
   Modern Premium Design | Bootstrap 5 Enhanced
   CSS Version: 2.2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Brand Colors */
    --primary: #0D6EFD;
    --primary-dark: #0a58ca;
    --primary-light: #cfe2ff;
    --secondary: #198754;
    --secondary-dark: #146c43;
    --secondary-light: #d1e7dd;
    --accent: #FF6B00;
    --accent-dark: #e05c00;
    --accent-light: #fff3e0;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Semantic Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(13, 110, 253, 0.08);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --section-py: 80px;
    --section-py-sm: 50px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 30px rgba(13, 110, 253, 0.25);
    --shadow-accent: 0 8px 30px rgba(255, 107, 0, 0.25);

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

    /* Header */
    --header-height: 70px;
    --topbar-height: 40px;
}

/* ============================================================
   Dark Mode
   ============================================================ */
[data-theme="dark"] {
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --white: #1e293b;
}

/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

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

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ============================================================
   Selection
   ============================================================ */
::selection { background: var(--primary); color: white; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    padding: 6px 0;
    position: relative;
    z-index: 1001;
}

.topbar a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: var(--transition-fast);
}

.topbar a:hover { color: white; }

.topbar .topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 8px;
}

.topbar .topbar-item i { font-size: 0.85rem; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.main-header {
    background: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .main-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.brand-text .site-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.2;
    display: block;
}

.brand-text .site-tagline {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.3px;
    display: block;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-secondary) !important;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.dark-mode-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    min-height: 580px;
    position: relative;
    /* display:flex removed — it overrides Bootstrap carousel show/hide mechanism.
       All slide items would be visible at once. Use .hero-content padding for spacing. */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.85) 0%,
        rgba(25, 135, 84, 0.75) 100%
    );
}

/* Default gradient when no image */
.hero-bg.no-image {
    background: linear-gradient(
        135deg,
        #0D6EFD 0%,
        #0056cc 40%,
        #198754 100%
    );
}

.hero-bg.no-image::after { display: none; }

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.7s ease;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 12px;
    font-weight: 500;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 550px;
    animation: fadeInUp 0.9s ease;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 1s ease;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInRight 0.8s ease;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 30px;
    animation: fadeInUp 1.1s ease;
}

.hero-stat {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    transition: var(--transition);
}

.carousel-indicators [data-bs-target].active {
    background-color: white;
    width: 28px;
    border-radius: 5px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    margin-bottom: 50px;
}

.section-header .section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

[data-theme="dark"] .section-header .section-badge {
    background: rgba(13, 110, 253, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 550px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 12px 0 0;
}

/* ============================================================
   NOTICE BOARD
   ============================================================ */
.notice-section {
    background: linear-gradient(135deg, #fff9f0 0%, #fff3e0 100%);
    padding: 20px 0;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

[data-theme="dark"] .notice-section {
    background: linear-gradient(135deg, rgba(255,107,0,0.05) 0%, rgba(255,107,0,0.08) 100%);
}

.notice-label {
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.notice-marquee-container {
    overflow: hidden;
    flex: 1;
}

.notice-marquee {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.notice-marquee:hover { animation-play-state: paused; }

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 24px;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
    border-right: 2px solid var(--accent);
}

.notice-item .badge-priority {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.notice-item a { color: var(--primary); font-weight: 600; margin-left: 6px; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: var(--section-py) 0; background: var(--bg-primary); }

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-img-badge {
    position: absolute;
    bottom: 24px;
    right: -12px;
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-primary);
}

.about-img-badge .badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-img-badge .badge-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
}

.about-feature {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-feature .feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: var(--section-py) 0; background: var(--bg-secondary); }

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light), rgba(13,110,253,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.7rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card .service-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.service-card .service-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}

.service-card .service-btn {
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
}

/* ============================================================
   GOVERNMENT PORTAL LINKS
   ============================================================ */
.portals-section { padding: var(--section-py) 0; background: var(--bg-primary); }

.portal-category-tabs .nav-pills .nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
}

.portal-category-tabs .nav-pills .nav-link.active,
.portal-category-tabs .nav-pills .nav-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portal-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.portal-link-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.portal-link-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.portal-link-name {
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
}

.portal-link-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.portal-link-card .arrow-icon {
    margin-left: auto;
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.portal-link-card:hover .arrow-icon { opacity: 1; }

/* ============================================================
   TOOLS SECTION
   ============================================================ */
.tools-section { padding: var(--section-py) 0; background: var(--bg-secondary); }

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    text-align: center;
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
    color: inherit;
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary-light), rgba(25,135,84,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: var(--secondary);
    transition: var(--transition);
}

.tool-card:hover .tool-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    transform: scale(1.1);
}

.tool-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.tool-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   APPOINTMENT SECTION
   ============================================================ */
.appointment-section {
    padding: var(--section-py) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.appointment-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.appointment-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.appointment-info-box {
    position: relative;
    z-index: 2;
    color: white;
}

.appointment-info-box h2 {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.appointment-info-box p { color: rgba(255,255,255,0.85); }

.appt-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.appt-feature .feat-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: var(--section-py) 0; background: var(--bg-primary); }

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.blog-card:hover .blog-img-wrapper img { transform: scale(1.08); }

.blog-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
    display: flex;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a:hover { color: var(--primary); }

.blog-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section { padding: var(--section-py) 0; background: var(--bg-secondary); }

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1.5px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.testimonial-card .review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-designation {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: var(--section-py) 0; background: var(--bg-primary); }

.faq-section .accordion-item {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 18px 20px;
    border-radius: var(--radius-md) !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: invert(32%) sepia(86%) saturate(3000%) hue-rotate(214deg) brightness(97%) contrast(104%);
}

.faq-section .accordion-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 20px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section { padding: var(--section-py) 0; background: var(--bg-secondary); }

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13,110,253,0.85) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay .overlay-icon {
    color: white;
    font-size: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding-top: 60px;
}

.footer-brand .brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.footer-brand .brand-tagline {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}

.footer-about { font-size: 0.86rem; line-height: 1.7; color: #94a3b8; margin-top: 14px; }

.footer-social { display: flex; gap: 8px; margin-top: 18px; }

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.86rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '\F231';
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-links a:hover { color: white; padding-left: 4px; }

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    color: #94a3b8;
    align-items: flex-start;
}

.footer-contact-item .contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-contact-item a { color: #94a3b8; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 0.82rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: white;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: var(--transition);
    animation: float-bounce 2s infinite;
}

.float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: white;
}

.float-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.float-btn-call {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    animation-delay: 0.3s;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.float-btn .pulse-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    animation: pulse-ring 2s linear infinite;
    opacity: 0;
}

.float-btn-whatsapp .pulse-ring { border-color: #25D366; }
.float-btn-call .pulse-ring { border-color: var(--primary); }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================================
   POPUP NOTICE MODAL
   ============================================================ */
.popup-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-notice-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.4s ease;
    border-top: 4px solid var(--accent);
}

/* ============================================================
   BUTTONS (Custom Overrides)
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0847c8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #0d5c38);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), #cc5100);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    color: var(--text-primary);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-section {
    background: var(--bg-secondary);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
}

.breadcrumb-item.active { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   TOOLS PAGE - Individual Tools
   ============================================================ */
.tool-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
}

.tool-result {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 2px solid var(--primary);
    margin-top: 20px;
}

.tool-result .result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.tool-result .result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 44px;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.bg-card { background: var(--bg-card) !important; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 991.98px) {
    :root {
        --section-py: 60px;
    }
    
    .hero-carousel .carousel-item { min-height: 480px; }
    
    /* Mobile navbar dropdown panel */
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
        border: 1.5px solid var(--border-color);
        position: relative;
        z-index: 1050; /* sit above hero section */
        width: 100%;
    }

    /* Ensure .show class makes the collapse visible (Bootstrap + vanilla fallback) */
    .navbar-collapse.show {
        display: block !important;
    }

    /* Ensure navbar toggler icon is always visible */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 110, 253, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .topbar .topbar-item.d-none-mobile { display: none !important; }
    
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .hero-stat { padding: 10px 16px; }
    
    .appointment-form-card { padding: 24px; }
}

@media (max-width: 767.98px) {
    :root {
        --section-py: 50px;
        --section-py-sm: 35px;
    }
    
    .hero-carousel .carousel-item { min-height: 380px; }
    .hero-content { padding: 50px 0; }
    
    .hero-buttons .btn { font-size: 0.85rem; padding: 8px 18px; }
    
    .topbar { display: none; }
    
    .section-header { margin-bottom: 35px; }
    
    .about-img-badge { right: 0; }
    
    .floating-buttons { bottom: 16px; right: 16px; }
    
    .float-btn { width: 44px; height: 44px; font-size: 1.2rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.6rem; }
    .newsletter-form { flex-direction: column; }
    .hero-stats { gap: 10px; }
    .hero-stat { flex: 1; min-width: 100px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .topbar, .main-header, .floating-buttons, .scroll-top, .main-footer { display: none !important; }
    body { font-size: 12pt; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   CARD HOVER EFFECTS
   ============================================================ */
.hover-lift {
    transition: var(--transition);
}

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

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1.5px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light), rgba(13,110,253,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 14px;
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.inner-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
    padding: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.inner-hero h1 { color: white; font-size: clamp(1.5rem, 3vw, 2rem); }
.inner-hero p { color: rgba(255,255,255,0.85); }

/* ============================================================
   AUTHOR BOX - Blog Detail Page
   ============================================================ */
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.author-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.author-box-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(13,110,253,0.15);
}
.author-box-placeholder {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    font-weight: 800;
}
.author-box-content { flex: 1; min-width: 0; }
.author-box-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}
.author-box-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.author-box-designation {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.author-box-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 576px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
}
[data-theme="dark"] .author-box {
    background: var(--bg-card);
    border-color: var(--border-color);
}
