/* 
 * Emancipation - Core Stylesheet
 * Theme: Deep Teal, Charcoal Blue, Muted Gold
 */

:root {
    --primary: #1F5A66;
    --primary-dark: #163640;
    --accent: #C8A24D;
    --secondary: #6B7280;
    --background: #F7F5EF;
    --surface: #FFFFFF;
    --text-main: #1F2933;
    --border: #D9D6CE;

    --primary-rgb: 31, 90, 102;
    --primary-dark-rgb: 22, 54, 64;
    --accent-rgb: 200, 162, 77;
    --text-rgb: 31, 41, 51;

    /* Legacy aliases retained so admin/content-driven templates keep working. */
    --color-navy: var(--text-main);
    --color-dark: var(--primary-dark);
    --color-blue: var(--primary);
    --color-blue-dark: var(--primary-dark);
    --color-red: var(--accent);
    --brand-red: var(--color-red);
    --color-yellow: var(--accent);
    --color-white: var(--surface);
    --color-light-bg: var(--background);
    --color-border: var(--border);
    --color-muted-text: var(--secondary);

    --dark: var(--primary-dark);
    --accent-yellow: var(--accent);
    --accent-blue: var(--primary);
    --light-bg: var(--background);
    --text-color: var(--text-main);
    --text-light: var(--secondary);
    --border-color: var(--border);
    --shadow-sm: 0 2px 8px rgba(var(--text-rgb),0.05);
    --shadow-md: 0 8px 18px rgba(var(--text-rgb),0.10);
    --shadow-lg: 0 16px 36px rgba(var(--text-rgb),0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ── Text Selection — themed ───────────────────────────────────── */
::selection {
    background: var(--color-blue);
    color: #ffffff;
    text-shadow: none;
}
::-moz-selection {
    background: var(--color-blue);
    color: #ffffff;
    text-shadow: none;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--surface);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--dark);
}

.btn-accent:hover {
    background-color: #B38D3E;
    color: var(--dark);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--dark);
    color: var(--surface);
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
}

.announcement-bar a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Top Header Bar */
.top-header-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.85rem;
    padding: 10px 0;
    position: relative;
    z-index: 1001;
}

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

.top-header-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-header-left a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.top-header-left a:hover {
    opacity: 0.8;
}

.top-header-right {
    display: flex;
    gap: 12px;
}

.top-header-right a {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.top-header-right a:hover {
    background: white;
    color: var(--color-blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .top-header-bar .container {
        flex-direction: column;
        gap: 12px;
    }
    .top-header-left {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* Header & Navbar */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 8px 28px rgba(var(--text-rgb),0.12);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--surface);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ── Toppers golden pill button ────────────────────────────────── */
.nav-toppers-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #D7BB73 0%, var(--accent) 62%, #A98235 100%);
    color: var(--text-main) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 7px 16px !important;
    border-radius: 100px;
    letter-spacing: 0.03em;
    box-shadow:
        0 4px 14px rgba(var(--accent-rgb), 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition:
        transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.25s ease,
        filter 0.25s ease !important;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* Shimmer sweep */
.nav-toppers-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 70%; height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.38) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.nav-toppers-btn:hover::before { left: 160%; }

.nav-toppers-btn:hover {
    color: var(--text-main) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(var(--accent-rgb), 0.42),
        inset 0 1px 0 rgba(255,255,255,0.40);
    filter: brightness(1.08);
}
.nav-toppers-btn:active {
    transform: translateY(-1px) scale(1.02);
}
.nav-toppers-btn .fa-trophy {
    font-size: 0.85em;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-main);
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

/* ── Navbar scale down for intermediate screens ───────────────── */
@media (min-width: 993px) and (max-width: 1200px) {
    .navbar {
        gap: 14px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links > li > a {
        font-size: 0.86rem;
    }
    .logo img {
        width: 180px;
        max-height: 40px !important;
    }
    .header-enroll-btn {
        padding: 8px 16px !important;
        font-size: 0.88rem !important;
        min-width: 88px;
    }
    .nav-toppers-btn {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--surface);
}

/* Header polish */
.announcement-bar {
    padding: 7px 0;
    font-weight: 700;
}

.announcement-bar .container {
    max-width: 1280px;
}

.top-header-bar {
    padding: 8px 0;
}

.top-header-bar .container,
.site-header .container {
    max-width: 1280px;
}

.top-header-left {
    gap: 18px;
}

.top-header-left a {
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.top-header-left i {
    width: 16px;
    text-align: center;
}

.top-header-right a {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.18);
}

.site-header {
    border-bottom: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 8px 28px rgba(var(--text-rgb),0.16);
}

.navbar {
    gap: 22px;
    min-height: 86px;
    padding: 12px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 6px 10px;
}

.logo img {
    width: clamp(190px, 19vw, 245px);
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(10px, 1.25vw, 22px);
    min-width: 0;
}

.nav-links > li > a {
    position: relative;
    font-size: 0.96rem;
    padding: 14px 0;
}

.nav-links > li > a:not(.nav-toppers-btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.nav-links > li > a:not(.nav-toppers-btn):hover::after {
    transform: scaleX(1);
}

.nav-dropdown-toggle i {
    font-size: 0.72em;
    transition: transform 0.22s ease;
}

.nav-links li:hover > .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-menu a {
    padding: 11px 18px;
}

.header-enroll-btn {
    flex: 0 0 auto;
    padding: 12px 22px;
    min-width: 96px;
    border-radius: 8px;
    font-size: 0.94rem;
    line-height: 1.2;
    background: var(--primary);
    border: 1.5px solid var(--primary);
    color: var(--surface);
    box-shadow: none;
}

.header-enroll-btn:hover {
    background: var(--primary-dark);
    border-color: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(var(--text-rgb), 0.78), rgba(var(--text-rgb), 0.78)), url('../images/hero-bg.jpg') center/cover;
    color: var(--surface);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: var(--surface);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Features/Stats Section */
.stats-section {
    padding: 40px 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Course Cards */
.section-padding {
    padding: 80px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-yellow);
    opacity: 0.95;
    z-index: 3;
}

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-yellow);
    color: var(--dark);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

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

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-title a {
    color: var(--dark);
}

.course-title a:hover {
    color: var(--color-blue);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-blue);
}

.course-price s {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 5px;
}

/* Home Notice Preview */
.home-notices-section {
    background: #fff;
    padding: 70px 0;
}

.home-notices-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home-notices-header h2 {
    margin-bottom: 0;
}

.home-notices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-notice-card {
    position: relative;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--notice-color);
    border-radius: var(--radius);
    padding: 22px;
    min-height: 220px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(var(--primary-dark-rgb),0.10);
}

.home-notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--notice-color);
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.home-notice-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.82rem;
}

.home-notice-meta span {
    color: var(--notice-color);
    font-weight: 800;
    text-transform: uppercase;
}

.home-notice-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    padding-right: 18px;
}

.home-notice-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.home-notice-pin {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--accent);
    transform: rotate(35deg);
}

/* Blog Listing */
.blog-list-hero {
    background:
        linear-gradient(135deg, rgba(var(--primary-dark-rgb),0.96), rgba(var(--text-rgb),0.90)),
        url('../images/logo.png') center/260px no-repeat;
    color: #fff;
    padding: 70px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-list-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-dark));
}

.blog-hero-kicker,
.blog-detail-category {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero-kicker {
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 7px 14px;
    margin-bottom: 16px;
}

.blog-list-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 14px;
}

.blog-list-hero h1 span {
    color: var(--accent-yellow);
}

.blog-list-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
}

.blog-list-section {
    background: #fff;
}

.blog-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb),0.26);
    box-shadow: 0 16px 36px rgba(var(--primary-dark-rgb),0.12);
}

.blog-card-img {
    height: 205px;
    overflow: hidden;
    background: var(--light-bg);
}

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

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

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

.blog-card-category {
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 1.17rem;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: var(--dark);
}

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

.blog-card p {
    color: var(--text-light);
    font-size: 0.94rem;
    margin-bottom: 18px;
}

.blog-card-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    color: var(--text-light);
    font-size: 0.84rem;
}

.blog-card-meta a {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination .btn {
    min-width: 42px;
    padding: 9px 14px;
}

.blog-sidebar-box,
.blog-empty-state {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.blog-sidebar-box {
    padding: 24px;
    position: sticky;
    top: 115px;
}

.blog-sidebar-box h3 {
    display: inline-block;
    font-size: 1.16rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

.blog-sidebar-box ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.blog-sidebar-box a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 6px;
}

.blog-sidebar-box a i {
    color: var(--accent-blue);
    font-size: 0.72rem;
}

.blog-sidebar-box a.active,
.blog-sidebar-box a:hover {
    background: #fff;
    color: var(--primary);
}

.blog-empty-state {
    text-align: center;
    padding: 58px 22px;
}

/* Blog Detail */
.blog-detail-hero {
    background:
        linear-gradient(135deg, rgba(248,249,250,0.96), rgba(255,255,255,0.98)),
        radial-gradient(circle at top left, rgba(var(--primary-rgb),0.12), transparent 34%);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0 52px;
}

.blog-detail-hero-inner {
    max-width: 920px;
    text-align: center;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 22px;
}

.blog-detail-category {
    background: var(--accent-blue);
    color: #fff;
    padding: 7px 16px;
    margin-bottom: 16px;
}

.blog-detail-hero h1 {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 16px;
}

.blog-detail-excerpt {
    max-width: 760px;
    margin: 0 auto 22px;
    color: var(--text-light);
    font-size: 1.08rem;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 18px 24px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.94rem;
}

.blog-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-detail-shell {
    max-width: 1060px;
    padding-top: 42px;
    padding-bottom: 80px;
}

.blog-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(var(--primary-dark-rgb),0.16);
    margin-bottom: 42px;
    background: #fff;
}

.blog-featured-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.blog-reading-layout {
    display: grid;
    grid-template-columns: 78px minmax(0, 820px);
    justify-content: center;
    gap: 26px;
    align-items: start;
}

.blog-share-panel {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.blog-share-panel span {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-share-panel a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.blog-share-panel a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.blog-content-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: 0 14px 36px rgba(29,29,29,0.08);
}

.blog-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-color);
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.38rem;
}

.blog-content p {
    margin-bottom: 1.4rem;
}

.blog-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1.6rem 0;
    box-shadow: var(--shadow-sm);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
}

.blog-content ul {
    list-style: disc;
}

.blog-content ol {
    list-style: decimal;
}

.blog-content li {
    margin-bottom: 0.65rem;
    padding-left: 0.2rem;
}

.blog-content blockquote {
    border-left: 5px solid var(--accent);
    margin: 1.8rem 0;
    color: var(--text-light);
    background: var(--light-bg);
    padding: 1.2rem 1.35rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.blog-tags {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.blog-tags strong {
    display: block;
    margin-bottom: 12px;
    color: var(--dark);
}

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

.blog-tags span {
    display: inline-flex;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 6px 11px;
    border-radius: 100px;
    font-size: 0.84rem;
    font-weight: 600;
}

.blog-bottom-cta {
    margin-top: 34px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-dark), var(--color-navy));
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}

.blog-bottom-cta span,
.blog-bottom-cta strong {
    display: block;
}

.blog-bottom-cta span {
    color: var(--accent-yellow);
    font-weight: 800;
    margin-bottom: 4px;
}

.blog-bottom-cta strong {
    color: #fff;
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--surface);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo {
    margin-bottom: 20px;
    background-color: white;
    padding: 10px;
    border-radius: var(--radius);
    display: inline-block;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
}

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

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

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

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

.social-links a:hover {
    background-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Floating Elements */
.floating-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.float-whatsapp {
    background-color: #25D366;
}

.float-call {
    background-color: var(--accent);
    color: var(--text-main);
    border: 2px solid var(--surface);
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.float-call:hover {
    background-color: var(--primary-dark);
    color: var(--surface);
    border-color: var(--accent);
}

.float-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Floating Notifications */
.floating-notification {
    position: fixed;
    bottom: 60px;
    left: 20px;
    background-color: var(--surface);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    border-radius: var(--radius);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.floating-notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 24px;
    color: var(--accent-yellow);
}

.notification-content {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
}

/* Flash Offer Popup */
.flash-offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.flash-offer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.flash-offer-popup {
    background-color: var(--surface);
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.flash-offer-overlay.show .flash-offer-popup {
    transform: scale(1);
}

.offer-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.offer-image {
    width: 40%;
    background-color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.offer-image img {
    max-width: 100%;
}

.offer-details {
    width: 60%;
    padding: 30px;
}

.offer-discount {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.offer-timer {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.timer-box {
    background-color: var(--light-bg);
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 60px;
}

.timer-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.timer-box small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ── Form Controls (public pages) ─────────────────────────────── */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--color-navy);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.form-control::placeholder {
    color: var(--secondary);
    font-size: 0.88rem;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Bottom Notification Bar */
.bottom-notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 10px 40px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards 1s;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.bottom-notification-bar a {
    color: var(--accent-yellow);
    text-decoration: underline;
    font-weight: bold;
}

.bottom-notification-bar a:hover {
    color: white;
}

.bottom-notification-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bottom-notification-close:hover {
    opacity: 1;
}

/* Adjust body padding so footer isn't covered */
body {
    padding-bottom: 40px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE-FIRST
   ════════════════════════════════════════════════════════════════ */

/* ── Global overflow guard ─────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── Nav mobile drawer ─────────────────────────────────────────── */
@media (max-width: 992px) {

    /* Slide-down drawer */
    .nav-links {
        display: flex !important;          /* always in DOM */
        position: fixed;
        top: 0;
        left: 0;
        width: 82vw;
        max-width: 320px;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 4px 0 30px rgba(0,0,0,0.18);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1100;
        padding: 72px 0 24px;
        transform: translateX(-110%);
        transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Backdrop */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1099;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-backdrop.active {
        display: block;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links > li > a {
        padding: 15px 22px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1rem;
        color: var(--dark);
        font-weight: 600;
    }
    .nav-links > li > a::after {
        display: none;
    }
    .nav-dropdown-toggle i {
        margin-left: auto;
    }

    /* Golden toppers in mobile nav */
    .nav-links .nav-toppers-btn {
        margin: 4px 16px;
        padding: 11px 18px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        display: none;
        padding: 0;
    }
    .nav-links li.open .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 11px 28px; font-size: 0.92rem; color: var(--text-light); }
    .dropdown-menu a:hover { background: var(--background); color: var(--primary); }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: var(--light-bg);
        z-index: 1101;
        position: relative;
    }

    /* Enroll Now CTA — hide on small, show below nav */
    .navbar > .btn-primary { display: none; }

    /* Flash offer */
    .flash-offer-popup { flex-direction: column; }
    .offer-image, .offer-details { width: 100%; }

    /* Blog pages */
    .blog-list-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar-box {
        position: static;
    }
    .blog-reading-layout {
        grid-template-columns: 1fr;
    }
    .blog-share-panel {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 8px;
    }
    .home-notices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Tablet tweaks (640–992px) ─────────────────────────────────── */
@media (min-width: 641px) and (max-width: 992px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Container padding */
    .container { padding: 0 16px; }

    /* Sections */
    .section-padding { padding: 52px 0; }

    /* Stats */
    .stats-section { padding: 32px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stat-item h3 { font-size: 1.6rem; }

    /* Course grid — single col */
    .course-grid { grid-template-columns: 1fr; gap: 20px; }
    .course-card { max-width: 480px; margin-inline: auto; width: 100%; }

    /* Section headings */
    h2 { font-size: 1.6rem; }
    .section-title { margin-bottom: 2rem; }

    /* Top header bar */
    .top-header-bar .container {
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px;
        text-align: center;
    }
    .top-header-left {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 0.82rem;
    }

    /* Navbar — tighter */
    .navbar { padding: 12px 0; }
    .navbar {
        min-height: 70px;
    }
    .logo img {
        width: 190px;
        max-height: 42px;
    }

    /* Hero heading */
    .hero h1 { font-size: 2rem; }

    /* Blog pages */
    .blog-list-hero {
        padding: 52px 0 46px;
        background-size: 180px auto;
    }
    .blog-list-hero h1,
    .blog-detail-hero h1 {
        font-size: 2.15rem;
    }
    .blog-list-hero p,
    .blog-detail-excerpt {
        font-size: 0.98rem;
    }
    .blog-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card {
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }
    .blog-detail-hero {
        padding: 46px 0 38px;
    }
    .blog-detail-shell {
        padding-top: 28px;
        padding-bottom: 52px;
    }
    .blog-featured-image {
        margin-bottom: 26px;
    }
    .blog-featured-image img {
        max-height: 360px;
    }
    .blog-content-card {
        padding: 28px 22px;
    }
    .blog-content {
        font-size: 1rem;
        line-height: 1.78;
    }
    .blog-content h2 {
        font-size: 1.42rem;
    }
    .blog-content h3 {
        font-size: 1.22rem;
    }
    .blog-bottom-cta {
        align-items: stretch;
        flex-direction: column;
    }
    .blog-bottom-cta .btn {
        width: 100%;
    }
    .home-notices-section {
        padding: 52px 0;
    }
    .home-notices-header {
        align-items: stretch;
        flex-direction: column;
    }
    .home-notices-header .btn {
        width: 100%;
    }
    .home-notices-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 52px 0 16px; }

    /* Floating action buttons */
    .floating-container {
        bottom: 52px;
        right: 12px;
        gap: 10px;
    }
    .float-btn { width: 50px; height: 50px; font-size: 20px; }

    /* Floating notification */
    .floating-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        bottom: 56px;
    }

    /* Inquiry section — already handled in index.php but ensure grid collapses */
    #inquiry .container > div {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    #inquiry > .container > div > div:first-child { order: 2; }
    #inquiry > .container > div > div:last-child  { order: 1; }

    /* Bottom notification bar */
    .bottom-notification-bar {
        font-size: 0.82rem;
        padding: 10px 36px 10px 16px;
        text-align: left;
    }

    /* Flash popup */
    .flash-offer-popup { width: 95%; }
    .offer-details { padding: 20px 18px; }

    /* CTA section */
    section[style*="background-color: var(--primary)"] a.btn { width: 100%; max-width: 300px; }
}

/* ── Small phones (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .section-padding { padding: 40px 0; }

    /* Stats — 2 col tightly */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item { padding: 12px 8px; }
    .stat-item i { font-size: 1.8rem; }
    .stat-item h3 { font-size: 1.4rem; }
    .stat-item p { font-size: 0.8rem; }

    /* Toppers carousel nav arrows — pull back inside */
    #ht-wrapper > button:first-of-type { left: 4px !important; }
    #ht-wrapper > button:last-of-type  { right: 4px !important; }

    /* Scroll top button */
    #scroll-top-btn { bottom: 70px; right: 12px; width: 40px; height: 40px; font-size: 0.9rem; }

    /* Bottom bar */
    .bottom-notification-bar { font-size: 0.78rem; }

    /* Announcement bar */
    .announcement-bar { font-size: 0.8rem; }

    /* Headings */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    /* Buttons full-width on tiny screens */
    .hero-btns { flex-direction: column; align-items: center; }
}

/* ── Tiny phones (≤ 360px) ─────────────────────────────────────── */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { max-width: 290px; }
    .logo img {
        width: 165px;
        max-height: 36px;
    }
}



/* ════════════════════════════════════════════════════════════════
   SMOOTH PAGE SYSTEM
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Smooth scroll & font rendering ─────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── 2. Page load fade-in ───────────────────────────────────────── */
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
main {
    animation: page-fade-in 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── 3. Global interaction polish ──────────────────────────────── */
a, button, .btn, .float-btn { transition: all 0.28s cubic-bezier(0.25,0.46,0.45,0.94); }

/* ── 4. Scroll-reveal system ────────────────────────────────────── */
[data-reveal] {
    will-change: transform, opacity;
    transition:
        opacity  0.70s cubic-bezier(0.22,1,0.36,1),
        transform 0.70s cubic-bezier(0.22,1,0.36,1);
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

[data-reveal="fade"]  { opacity: 0; }
[data-reveal="up"]    { opacity: 0; transform: translateY(40px); }
[data-reveal="down"]  { opacity: 0; transform: translateY(-40px); }
[data-reveal="left"]  { opacity: 0; transform: translateX(-50px); }
[data-reveal="right"] { opacity: 0; transform: translateX(50px); }
[data-reveal="scale"] { opacity: 0; transform: scale(0.88); }

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── 5. Scroll-to-top button ────────────────────────────────────── */
#scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 22px;
    z-index: 1200;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb),0.34);
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.25s ease;
    pointer-events: none;
}
#scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#scroll-top-btn:hover {
    box-shadow: 0 8px 28px rgba(var(--primary-rgb),0.42);
    transform: translateY(-3px) scale(1.10);
}
#scroll-top-btn:active { transform: translateY(0) scale(1.02); }

/* ── 6. Card hover smoothness ───────────────────────────────────── */
.course-card {
    transition:
        transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.35s ease !important;
}

/* ── 7. Dropdown smooth open ────────────────────────────────────── */
.dropdown-menu {
    transition:
        opacity 0.28s cubic-bezier(0.22,1,0.36,1),
        transform 0.28s cubic-bezier(0.22,1,0.36,1),
        visibility 0.28s !important;
}

/* ── 8. Image lazy-load crossfade ───────────────────────────────── */
img { transition: opacity 0.4s ease; }
img.lazy { opacity: 0; }
img.lazy.loaded { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════
   WhatsApp Pulse Ring — grabs user attention without being annoying
   ══════════════════════════════════════════════════════════════════ */
.float-whatsapp {
    overflow: visible; /* let the ring show outside the button */
}

.wa-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: wa-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: .7; }
    70%  { transform: translate(-50%, -50%) scale(1.7); opacity: 0;  }
    100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0;  }
}

/* Second ring — offset timing so it feels continuous */
.float-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: wa-pulse 2.2s ease-out 1.1s infinite;
    pointer-events: none;
}

/* ── FAQ / details accordion arrow flip ─────────────────────────── */
details[open] summary .fa-chevron-down,
details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}
details summary .fa-chevron-down,
details summary i.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* ── Ranchi / Jharkhand page responsive ─────────────────────────── */
@media (max-width: 768px) {
    details summary { font-size: .88rem !important; padding: 14px 16px !important; }
}
