/* ============================================================
   LMS Frontend — Page Styles
   ============================================================ */

:root {
    --primary:    #4f46e5;
    --secondary:  #7c3aed;
    --success:    #10b981;
    --text:       #1e293b;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --bg:         #f8fafc;
    --card-bg:    #ffffff;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 1px 4px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;   /* horizontal scroll band */
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 5rem 1.5rem;
    color: white;
    text-align: center;
    width: 100%;
}

.hero-section h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.hero-section p  { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto 2rem; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem;
    background: white; color: var(--primary);
    border-radius: 30px; font-weight: 700; font-size: .95rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.2); }

.btn-hero-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem;
    background: transparent; color: white;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 30px; font-weight: 600; font-size: .95rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); border-color: white; }

/* ── Section ───────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: white; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .tag {
    display: inline-block;
    padding: .3rem .9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.section-header p  { color: var(--muted); max-width: 560px; margin: 0 auto; }

.container-custom { max-width: 1500px; margin: 0 auto; }

/* ── Course Cards ──────────────────────────────────────── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.course-thumb {
    width: 100%; height: 160px; object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.course-thumb-placeholder {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2.5rem;
}
.course-body { padding: 1rem; }
.course-title { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; line-height: 1.4; }
.course-meta  { font-size: .8rem; color: var(--muted); }
.course-price { font-weight: 800; color: var(--primary); font-size: 1.05rem; }

.badge-free { background: #d1fae5; color: #065f46; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-paid { background: #dbeafe; color: #1e40af; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; }

/* ── Features ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text);
}

.feature-card p {
    font-size: .83rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 1.5rem;
    text-align: center;
    color: white;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .75rem; }
.cta-section p  { opacity: .85; margin-bottom: 1.75rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem 0;
}

.footer-container { max-width: 1500px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1rem;
}
.footer-logo img { height: 36px; border-radius: 8px; }
.footer-logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}
.footer-logo span { font-weight: 700; color: white; font-size: .95rem; }

.footer-brand p { font-size: .83rem; line-height: 1.7; margin-bottom: 1rem; }

.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 1.1rem; text-decoration: none;
    transition: all .3s;
    border: 1px solid rgba(255,255,255,.1);
}
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-2px); border-color: var(--primary); }

.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
    color: #94a3b8; text-decoration: none; font-size: .83rem;
    display: flex; align-items: center; gap: .4rem;
    transition: color .2s;
}
.footer-col ul li a:hover { color: white; }
.footer-col ul li a i { font-size: .7rem; }

.footer-contact li {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: .6rem; font-size: .83rem;
}
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-contact li a { color: #94a3b8; text-decoration: none; }
.footer-contact li a:hover { color: white; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0;
    flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .8rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: #64748b; text-decoration: none; font-size: .8rem; transition: color .2s; }
.footer-bottom-links a:hover { color: white; }

/* ── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 3rem 1.5rem;
    color: white;
    text-align: center;
}
.page-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: .25rem .85rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p  { opacity: .85; max-width: 560px; margin: 0 auto; font-size: .95rem; }

/* ── Filter Bar ────────────────────────────────────────── */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .45rem .85rem;
    font-size: .85rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .2s;
}
.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--primary); }
.filter-bar input { flex: 1; min-width: 180px; }

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}
.empty-state i { font-size: 3.5rem; opacity: .4; display: block; margin-bottom: 1rem; }
.empty-state h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }

/* ── Info Cards (About, Contact etc) ───────────────────── */
.info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 100%;
}
.info-card .info-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    margin-bottom: 1rem;
}
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.info-card p  { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Simple Grid ───────────────────────────────────────── */
.simple-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.simple-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
@media (max-width: 900px) {
    .simple-grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
    .simple-grid-3, .simple-grid-2 { grid-template-columns: 1fr; }
}

/* ── Topper Card ───────────────────────────────────────── */
.topper-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.topper-card:hover { transform: translateY(-3px); }
.topper-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem; font-weight: 800;
    margin: 0 auto .75rem;
}
.topper-card .rank {
    display: inline-block;
    background: #fef3c7; color: #92400e;
    border-radius: 20px; padding: .15rem .6rem;
    font-size: .72rem; font-weight: 700;
    margin-bottom: .5rem;
}
.topper-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.topper-card p  { font-size: .8rem; color: var(--muted); margin: 0; }

/* ── Blog Card ─────────────────────────────────────────── */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2.5rem;
}
.blog-body { padding: 1.1rem; }
.blog-tag {
    display: inline-block;
    background: var(--nav-active-bg, #ede9fe); color: var(--primary);
    border-radius: 20px; padding: .15rem .6rem;
    font-size: .7rem; font-weight: 700;
    margin-bottom: .5rem;
}
.blog-body h5 { font-size: .92rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.4; }
.blog-body p  { font-size: .8rem; color: var(--muted); margin: 0; }

/* ── Quiz Card ─────────────────────────────────────────── */
.quiz-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 1rem;
    transition: transform .2s;
    text-decoration: none; color: var(--text);
}
.quiz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quiz-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem; flex-shrink: 0;
}
.quiz-card h5 { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.quiz-card p  { font-size: .78rem; color: var(--muted); margin: 0; }

/* ── Contact Form ──────────────────────────────────────── */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem .9rem;
    font-size: .88rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    margin-bottom: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.contact-form label { font-size: .83rem; font-weight: 600; display: block; margin-bottom: .3rem; }
.btn-submit {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.75rem;
    background: var(--primary); color: white;
    border: none; border-radius: 30px;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .2s, transform .2s;
}
.btn-submit:hover { background: #3730a3; transform: translateY(-1px); }
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-section { padding: 3rem 1rem; }
    .section { padding: 2.5rem 1rem; }
    /* 2-col grids to 1-col on mobile */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns:1fr 1.4fr"],
    [style*="grid-template-columns:1fr 1.2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Homepage Sections (Admin Managed) ─────────────────── */

/* Section Title Underline */
.section-title-underline {
    display: inline-block;
    padding-bottom: .4rem;
    border-bottom: 4px solid var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

/* ── Our Impact ──────────────────────────────────────────── */
.impact-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.impact-item {
    text-align: center;
}

.impact-pentagon {
    width: 110px;
    height: 110px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    transition: transform .3s ease;
}

.impact-pentagon:hover {
    transform: scale(1.08);
}

.impact-value {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.impact-label {
    font-size: .65rem;
    opacity: .9;
    margin-top: .2rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Why Choose ──────────────────────────────────────────── */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.why-choose-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.why-choose-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.why-choose-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.why-choose-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.why-choose-desc {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Popular Category ────────────────────────────────────── */
.popular-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.category-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: .5rem;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto .5rem;
}

.category-name {
    font-size: .85rem;
    font-weight: 600;
}

/* ── Study Materials Section ─────────────────────────────── */
.study-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.study-material-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.study-material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.sm-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.sm-card-body {
    flex: 1;
}

.sm-card-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.sm-card-desc {
    font-size: .8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.sm-card-badge {
    display: inline-block;
    background: #ede9fe;
    color: #6366f1;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 20px;
    margin-top: .4rem;
}

/* ── Responsive for Homepage Sections ────────────────────── */
@media (max-width: 768px) {
    .impact-grid {
        gap: 1rem;
    }
    .impact-pentagon {
        width: 90px;
        height: 90px;
    }
    .impact-value {
        font-size: 1.2rem;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .popular-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .study-materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .popular-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-pentagon {
        width: 80px;
        height: 80px;
    }
    .impact-value {
        font-size: 1rem;
    }
    .impact-label {
        font-size: .55rem;
    }
}

/* ── Floating Action Button (Contact) ────────────────────── */
.fab-contact-wrapper {
    position: fixed;
    bottom: 24px;
    right: 10px;
    z-index: 9950;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    position: relative;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, .5);
}

.fab-main .fab-icon-close {
    display: none;
}

.fab-open .fab-main {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, .4);
}

.fab-open .fab-main .fab-icon-open {
    display: none;
}

.fab-open .fab-main .fab-icon-close {
    display: block;
}

/* Pulse animation */
.fab-main::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: fab-pulse 2s infinite;
    z-index: -1;
}

@keyframes fab-pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.fab-open .fab-main::before {
    animation: none;
}

/* Options */
.fab-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.8);
    transition: all .3s cubic-bezier(.68, -.55, .27, 1.55);
}

.fab-open .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    transition: transform .2s ease;
}

.fab-option:hover {
    transform: scale(1.05);
    color: white;
}

.fab-option i {
    font-size: 1.1rem;
}

.fab-call {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.fab-apply {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .fab-contact-wrapper {
        bottom: 16px;
        right: 16px;
    }
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .fab-option {
        padding: 8px 14px;
        font-size: .8rem;
    }
    .fab-option span {
        display: inline;
    }
}

/* ── Hero Slider (Slick) ─────────────────────────────────── */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 30, 70, 0.6) 0%, rgba(65, 51, 91, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-slide-overlay h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: .75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero-slide-overlay p {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-slider .slick-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-slider .slick-dots li {
    display: inline-block;
    margin: 0 4px;
}

.hero-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: background .3s;
}

.hero-slider .slick-dots li.slick-active button {
    background: white;
    transform: scale(1.2);
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.hero-slider .slick-prev::before,
.hero-slider .slick-next::before {
    display: none !important;
    content: '' !important;
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
    background: rgba(255,255,255,.4);
}

.hero-slider .slick-prev {
    left: 20px;
}

.hero-slider .slick-next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 300px;
    }
    .hero-slider .slick-prev,
    .hero-slider .slick-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .hero-slider .slick-prev { left: 10px; }
    .hero-slider .slick-next { right: 10px; }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 220px;
    }
}


/* ── Events Section ──────────────────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.event-date-badge {
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .9;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--text);
}

.event-desc {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .5rem;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.event-meta i {
    color: var(--primary);
    margin-right: .2rem;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap .2s;
}

.event-link:hover {
    gap: .5rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Banners Section ─────────────────────────────────────── */
.banners-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.banner-item {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
}

.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ── Custom HTML Section ─────────────────────────────────── */
.custom-html-section {
    overflow: hidden;
}

.custom-html-content {
    line-height: 1.7;
    font-size: .95rem;
}

.custom-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Banner Slider */
.banner-slider { margin: 0 -8px; }
.banner-slide { padding: 0 8px; }
.banner-img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; max-height: 300px; }
