footer .container {
    background-color: transparent !important;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
 }

 /* layout style */
body {
    margin-top: 0px; /* Adjust this value based on your navbar height */
    background-color: #f5f7fa;
    color: #333333;
    line-height: 1.6;
}

:root{
    --primary: #0984e3;
    --accent: #00b894;
    --muted: #6c757d;
    --card-radius: 18px;
    --btn-radius: 999px;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
}

/* Modern base tweaks */
html,body{height:100%;}
body{
    background: linear-gradient(180deg, #f7fbfd 0%, #f5f7fa 100%);
    color: #222f3d;
    line-height: 1.65;
    font-family: 'Roboto', sans-serif;
}

.blog-page,
.post-page,
.article-view-page,
.post-page .post-content {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
}

.post-page .post-content,
.post-page .post-content p,
.post-page .post-content li,
.post-page .post-content blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
}

.article-view-page .article-content,
.article-view-page .article-content p,
.article-view-page .article-content li,
.article-view-page .article-content blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
}

.post-page .post-content h1,
.post-page .post-content h2,
.post-page .post-content h3,
.post-page .post-content h4,
.post-page .post-content h5,
.post-page .post-content h6 {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

.post-page .post-content a {
    color: var(--primary);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(9, 132, 227, 0.08), transparent 22%),
                radial-gradient(circle at bottom right, rgba(0, 184, 148, 0.06), transparent 18%);
    pointer-events: none;
    opacity: 0.8;
}

.container{max-width:1200px}
.section-title{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--primary);}
.section-title i{font-size:1.05rem}
.section-legend{color:var(--muted);font-size:.95rem;margin-bottom:1rem}

/* Construction page styles */
.construction-page__container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(9, 132, 227, 0.12), transparent 24%),
                radial-gradient(circle at bottom right, rgba(0, 184, 148, 0.1), transparent 20%),
                linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.construction-card {
    width: min(100%, 980px);
    padding: 3rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: center;
}

.construction-visual {
    display: grid;
    place-items: center;
    min-height: 260px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 100%);
    border: 1px solid rgba(9, 132, 227, 0.12);
}

.construction-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0984e3 0%, #00b894 100%);
    color: #ffffff;
    font-size: 3.5rem;
    box-shadow: 0 20px 40px rgba(9, 132, 227, 0.2);
}

.construction-copy {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.construction-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1rem;
    border-radius: 999px;
    font-size: .95rem;
    color: #0966c5;
    background: rgba(9, 132, 227, 0.08);
    border: 1px solid rgba(9, 132, 227, 0.12);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.construction-copy h1 {
    font-size: clamp(2.75rem, 4vw, 4.5rem);
    line-height: 1.03;
    margin: 0;
    letter-spacing: -.03em;
    color: #0f172a;
}

.construction-description {
    max-width: 640px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
}

.construction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.construction-actions .btn {
    min-width: 170px;
    padding: 0.92rem 1.55rem;
    font-weight: 600;
}

.construction-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.construction-details strong {
    display: block;
    font-size: 1rem;
    color: #111827;
    margin-bottom: .45rem;
}

.construction-details p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .construction-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .construction-visual {
        min-height: 240px;
    }

    .construction-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .construction-page__container {
        padding: 2rem 1rem;
    }

    .construction-card {
        padding: 2rem;
        gap: 1.5rem;
    }

    .construction-copy h1 {
        font-size: 2.5rem;
    }
}

/* Admin panel / modern dashboard styles */
.card,
.admin-panel-card {
    border-radius: var(--card-radius);
    background: var(--surface);
    overflow: hidden;
}

.card.shadow-sm,
.card.shadow-lg {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

.admin-panel-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-info,
.btn-danger {
    border-radius: var(--btn-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0777c9;
    border-color: #0777c9;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background: var(--primary);
}

.form-control {
    border-radius: 14px;
    border: 1px solid rgba(145, 158, 171, 0.22);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.12);
}

.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table thead th {
    background: rgba(13, 110, 253, 0.05);
    border-bottom: none;
    color: #1f2a48;
    font-weight: 600;
}

.table tbody tr {
    background: #ffffff;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.table td,
.table th {
    vertical-align: middle;
    border-top: none;
}

.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.modal-header,
.modal-footer {
    border: none;
}

.modal-body {
    padding: 1.5rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(9, 132, 227, 0.08);
    color: #0d6efd !important;
}

.admin-footer,
footer {
    border-top: 1px solid rgba(13, 110, 253, 0.12);
    color: #6b7280;
    background: #f7f9fc;
}

.admin-footer .text-muted {
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
}

/* Buttons */
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:#0777c9;border-color:#0777c9}
.btn-outline-primary{color:var(--primary);border-color:var(--primary)}
.btn-outline-primary:hover{background:var(--primary);color:#fff}

/* Cards: unified modern look */
.card{border-radius:var(--card-radius);overflow:hidden}
.card.border-0{border:0}
.card .card-img-top{width:100%;height:auto;display:block}
.shadow-lg{box-shadow:0 10px 30px rgba(17,24,39,0.06)!important}
.shadow-sm{box-shadow:0 6px 18px rgba(17,24,39,0.04)!important}

/* Section spacing */
section{padding-top:3rem;padding-bottom:3rem}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.solving-simply {
    font-family: 'pacifico', cursive;
    font-size: 0.75rem;
    color: olive;
    letter-spacing: 1px;
    margin-top: 0.12rem;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}



/* Navbar style */

nav  {
    background-color: #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2.5rem;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}
.brand-name {
    font-family: 'poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3436;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-name:hover {
    color: #0984e3;
    transform: translateY(-1px);
}
.header-logo {
    height: 26px;
    width: auto;
    transition: transform 0.3s ease;
}
.nav-links {
    display: flex;
    gap: 1.0rem;
    align-items: center;
}
.nav-links a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    font-family: 'poppins', sans-serif;
}
.nav-links a:hover {
    color: #0984e3;
    transform: translateY(-1px);
}

/* Footer style */
footer {
    background-color: #2d3436;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}
footer .container {
    background-color: black !important;
}
.footer-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap:1rem;
}
.footer p{
    margin: 0;
    font-size: 0.95rem;
}
.footer a {
    color: #0984e3;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #6c5ce7;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}  
.footer-links a {
    margin: 0 8px;
    color: #007bff;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* Shared footer styles for all public pages */
.sd-footer {
    --sd-footer-bg: #000000;
    --sd-footer-surface: rgba(255, 255, 255, 0.04);
    --sd-footer-border: rgba(255, 255, 255, 0.14);
    --sd-footer-text: rgba(255, 255, 255, 0.88);
    --sd-footer-heading: #ffffff;
    --sd-footer-accent: #ffffff;
    --sd-footer-accent-2: #d9d9d9;
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 2rem;
    color: var(--sd-footer-text);
    background: var(--sd-footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sd-footer__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    pointer-events: none;
    opacity: 0.5;
}
.sd-footer__glow--one { width: 220px; height: 220px; top: 6%; left: -50px; background: rgba(255, 255, 255, 0.08); }
.sd-footer__glow--two { width: 260px; height: 260px; right: -70px; bottom: 14%; background: rgba(255, 255, 255, 0.06); }

.sd-footer__container { position: relative; z-index: 1; }
.sd-footer__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}
.sd-footer__section {
    padding: 1.4rem;
    background: var(--sd-footer-surface);
    border: 1px solid var(--sd-footer-border);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(0,0,0,0.35);
}
.sd-footer__brand-section,
.sd-footer__section--collapsible,
.sd-footer__section--newsletter { grid-column: span 3; }

.sd-footer__brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.sd-footer__logo-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    color: var(--sd-footer-heading);
    border: 1px solid rgba(255,255,255,0.08);
}
.sd-footer__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--sd-footer-heading);
}
.sd-footer__tagline,
.sd-footer__newsletter-copy {
    margin: 0 0 1rem;
    line-height: 1.75;
    color: var(--sd-footer-text);
}
.sd-footer__brand-section .sd-footer__tagline { max-width: 20rem; }

.sd-footer__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sd-footer__section-heading h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--sd-footer-heading);
}
.sd-footer__toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--sd-footer-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--sd-footer-text);
    font-weight: 700;
    cursor: pointer;
}
.sd-footer__toggle i { transition: transform 0.25s ease; }
.sd-footer__section[aria-expanded="true"] .sd-footer__toggle i { transform: rotate(180deg); }

.sd-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.sd-footer__socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sd-footer-heading);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.sd-footer__socials a:hover,
.sd-footer__socials a:focus-visible {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    color: #ffffff;
}

.sd-footer__links,
.sd-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sd-footer__links li + li { margin-top: 0.7rem; }
.sd-footer__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--sd-footer-text);
    text-decoration: none;
}
.sd-footer__links a i {
    font-size: 0.8rem;
    opacity: 0.65;
    transform: translateX(-4px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.sd-footer__links a:hover,
.sd-footer__links a:focus-visible,
.sd-footer__contact-list a:hover,
.sd-footer__contact-list a:focus-visible,
.sd-footer__bottom a:hover,
.sd-footer__bottom a:focus-visible { color: #ffffff; }

.sd-footer__contact-list {
    display: grid;
    gap: 0.9rem;
    color: var(--sd-footer-text);
}
.sd-footer__contact-list div {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.sd-footer__contact-list a { color: inherit; text-decoration: none; }

.sd-footer__newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}
.sd-footer__newsletter-form input {
    width: 100%;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    color: var(--sd-footer-text);
}
.sd-footer__newsletter-form button {
    padding: 0.95rem 1.3rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #4d4d4d, #ffffff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.sd-footer__newsletter-form button:hover,
.sd-footer__newsletter-form button:focus-visible { filter: brightness(1.05); }

.sd-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 0.95rem;
}
.sd-footer__copyright { margin: 0; }
.sd-footer__legal { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }

.sd-scroll-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    background: olivedrab; /* Default Olive Green */
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, 
                visibility 0.25s ease, 
                transform 0.25s ease, 
                background 0.25s ease, 
                color 0.25s ease;
    z-index: 999;
}

/* যখন স্ক্রল করলে বাটন দেখা যাবে */
.sd-scroll-top.is-visible { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* Hover বা Focus অবস্থায় */
.sd-scroll-top:hover, 
.sd-scroll-top:focus-visible { 
    transform: translateY(-4px); 
    background: #556B2F; /* Dark Olive Green */
    color: #ffffff; /* White text for contrast */
}

@media (max-width: 1199.98px) {
    .sd-footer__brand-section,
    .sd-footer__section--collapsible,
    .sd-footer__section--newsletter { grid-column: span 4; }
}

@media (max-width: 991.98px) {
    .sd-footer__top { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .sd-footer__brand-section,
    .sd-footer__section--collapsible,
    .sd-footer__section--newsletter { grid-column: span 6; }
}

@media (max-width: 767.98px) {
    .sd-footer { padding: 3rem 0 1.5rem; }
    .sd-footer__top { grid-template-columns: 1fr; gap: 1.25rem; }
    .sd-footer__section { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; }
    .sd-footer__section-heading { margin-bottom: 0; }
    .sd-footer__toggle { display: inline-flex; }
    .sd-footer__section[data-collapsible="true"] .sd-footer__links,
    .sd-footer__section[data-collapsible="true"] .sd-footer__contact-list,
    .sd-footer__section[data-collapsible="true"] .sd-footer__newsletter-copy,
    .sd-footer__section[data-collapsible="true"] .sd-footer__newsletter-form { display: none; }
    .sd-footer__section[data-collapsible="true"][aria-expanded="true"] .sd-footer__links,
    .sd-footer__section[data-collapsible="true"][aria-expanded="true"] .sd-footer__contact-list,
    .sd-footer__section[data-collapsible="true"][aria-expanded="true"] .sd-footer__newsletter-copy,
    .sd-footer__section[data-collapsible="true"][aria-expanded="true"] .sd-footer__newsletter-form { display: block; }
    .sd-footer__newsletter-form { grid-template-columns: 1fr; }
    .sd-footer__bottom { flex-direction: column; align-items: flex-start; }
    .sd-footer__legal { width: 100%; }
    .sd-scroll-top { left: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 16px; }
}

@media (prefers-color-scheme: light) {
    .sd-footer {
        background: #000000;
        border-top-color: rgba(255,255,255,0.14);
    }
    .sd-footer__glow--one,
    .sd-footer__glow--two { opacity: 0.16; }
    .sd-footer__logo-icon { background: rgba(255,255,255,0.06); color: #ffffff; }
    .sd-footer__socials a,
    .sd-footer__toggle,
    .sd-footer__newsletter-form input { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.14); color: #ffffff; }
    .sd-footer__links a:hover,
    .sd-footer__contact-list a:hover,
    .sd-footer__bottom a:hover { color: #ffffff; }
}

.sd-footer__brand-badge,
.sd-footer__contact-item i,
.sd-footer__brand-section .sd-footer__logo-icon {
    color: #ffffff;
}

/* Public page-specific styles moved from individual page templates */

/* Chatbot page */
.chatbot-shell {
    min-height: calc(100vh - 120px);
    background:
        radial-gradient(circle at top left, rgba(16, 108, 201, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(17, 185, 143, 0.12), transparent 26%),
        linear-gradient(180deg, #f6fbff 0%, #eef6fc 100%);
}
.chat-header {
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem 1.8rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #0c3b58 0%, #146c92 48%, #158d6e 100%);
    color: #fff;
    box-shadow: 0 26px 70px rgba(8, 45, 66, 0.16);
}
.chat-header::before {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.chat-header__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.chat-header__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.8rem;
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}
.chat-header__text {
    position: relative;
    z-index: 1;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}
.chat-header__panel,
.chat-sidecard,
.chat-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.chat-header__panel {
    position: relative;
    z-index: 1;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}
.chat-header__panel-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.chat-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.chat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7fffd4;
    box-shadow: 0 0 0 4px rgba(127, 255, 212, 0.18);
}
.chat-model-label {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}
.chat-model-selector {
    width: 100%;
    margin-top: 0.45rem;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(12px);
}
.chat-model-selector:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 130, 255, 0.18);
    border-color: #7dcfff;
}
.chat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}
.chat-stat {
    padding: 1rem 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
}
.chat-stat strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}
.chat-stat span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.chat-sidecard {
    padding: 1.4rem 1.35rem;
    background: rgba(255, 255, 255, 0.92);
}
.chat-sidecard__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.chat-sidecard__title {
    margin: 0;
    color: #153042;
    font-size: 1.3rem;
}
.chat-sidecard__subtitle {
    margin: 0.45rem 0 0;
    color: #536875;
    font-size: 0.94rem;
    line-height: 1.6;
    max-width: 32rem;
}
.chat-prompts,
.chat-sidecard__grid {
    display: grid;
    gap: 0.88rem;
}
.chat-prompts {
    margin-bottom: 1.25rem;
}
.chat-prompt {
    width: 100%;
    text-align: left;
    padding: 1rem 1.1rem;
    border: 1px solid #e2ecf4;
    border-radius: 18px;
    background: #fff;
    color: #183245;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chat-prompt:hover {
    transform: translateY(-1px);
    border-color: #0b7285;
    box-shadow: 0 16px 30px rgba(11, 114, 133, 0.08);
}
.chat-sidecard__section {
    padding: 1rem 1rem 0.95rem;
    border-radius: 20px;
    background: #f7fbff;
}
.chat-sidecard__section h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #134257;
}
.chat-sidecard__section p {
    margin: 0;
    color: #546d7a;
    line-height: 1.7;
    font-size: 0.95rem;
}
.chat-sidecard__grid {
    margin-top: 1.2rem;
}
.chat-tip {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f4f7fb;
}
.chat-tip i {
    margin-top: 0.25rem;
    color: #196f7d;
    font-size: 1.15rem;
}
.chat-tip strong {
    display: block;
    color: #14313d;
    margin-bottom: 0.18rem;
}
.chat-tip span {
    color: #5f7684;
    line-height: 1.7;
    font-size: 0.92rem;
}
.chat-card__toolbar,
.chat-card__footer {
    padding: 1rem 1.1rem;
}
.chat-card__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5edf4;
}
.chat-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #38606a;
    font-weight: 700;
}
.chat-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17b26a;
    box-shadow: 0 0 0 5px rgba(23, 178, 106, 0.15);
}
.chat-clear-btn {
    border-radius: 14px;
    border: 1px solid #d3e3eb;
    color: #173042;
    background: #fff;
    font-weight: 700;
    min-width: 140px;
}
.chat-clear-btn:hover {
    background: #f2f8fd;
    border-color: #a7c6d8;
}
.chat-messages {
    min-height: 520px;
    max-height: 520px;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    background: #ffffff;
    border-bottom: 1px solid #e9f1f7;
    border-radius: 0 0 28px 28px;
}
.chat-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    color: #6f8d9d;
    min-height: 100%;
    gap: 0.85rem;
}
.chat-placeholder i {
    font-size: 3.4rem;
    opacity: 0.28;
}
.message {
    display: flex;
    flex-direction: column;
    max-width: 84%;
    gap: 0.45rem;
}
.message.user {
    align-self: flex-end;
}
.message.bot {
    align-self: flex-start;
}
.message-content {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    line-height: 1.7;
    word-break: break-word;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    max-width: 100%;
}
.message.user .message-content {
    background: linear-gradient(135deg, #0d7c68 0%, #1ba78b 100%);
    color: #fff;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 24px;
}
.message.bot .message-content {
    background: #f7fbff;
    color: #163342;
    border: 1px solid #e6eef6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 24px;
}
.message-meta {
    font-size: 0.8rem;
    color: #5b7280;
    padding: 0 0.2rem;
}
.message-source {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
}
.message-source.faq {
    background: #e9f3ff;
    color: #1c4aa6;
}
.message-source.ai {
    background: #e8fbf2;
    color: #0d7c68;
}
.typing .message-content {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #93a7b5;
    animation: chat-bounce 1.2s infinite ease-in-out;
}
.dot:nth-child(2) {
    animation-delay: 0.15s;
}
.dot:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes chat-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
.chat-card__footer {
    border-top: 1px solid #e5edf4;
}
.chat-inputrow {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.chat-input {
    min-height: 58px;
    border-radius: 18px;
    border-color: #d7e2eb;
    box-shadow: inset 0 1px 3px rgba(7, 22, 34, 0.08);
}
.chat-input:focus {
    border-color: #0b7285;
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.18);
}
.chat-send-btn {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b7285 0%, #17b26a 100%);
    border-color: #0b7285;
    color: #fff;
    flex-shrink: 0;
}
.chat-send-btn:hover,
.chat-send-btn:focus {
    background: linear-gradient(135deg, #0a6271 0%, #14936b 100%);
    border-color: #0a6271;
    color: #fff;
}
.chat-inputhint {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    color: #6f8d9d;
}
@media (max-width: 991.98px) {
    .chat-header__panel-row { grid-template-columns: 1fr; }
    .chat-messages { max-height: 480px; }
}
@media (max-width: 767.98px) {
    .chat-header,
    .chat-sidecard,
    .chat-card { border-radius: 22px; }
    .chat-header { padding: 1.2rem; }
    .chat-inputrow { align-items: stretch; }
    .message { max-width: 100%; }
    .chat-header__panel, .chat-status-chip, .chat-model-selector { width: 100%; }
}

/* Checkout page */
.checkout-page {
    background: linear-gradient(120deg, #f8fafc 0%, #e3f2fd 100%);
}
.checkout-page .card {
    border-radius: 1.5rem !important;
}

/* Signup diagnostics page */
body.signup-diagnostics-page {
    font-family: monospace;
    padding: 20px;
    background: #f5f5f5;
}
.signup-diagnostics-page .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
}
.signup-diagnostics-page h1 {
    color: #333;
}
.signup-diagnostics-page .check {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.signup-diagnostics-page .check-label {
    font-weight: bold;
    color: #666;
}
.signup-diagnostics-page .check-value {
    text-align: right;
    color: #333;
}
.signup-diagnostics-page .pass { color: green; }
.signup-diagnostics-page .fail { color: red; }
.signup-diagnostics-page .warn { color: orange; }
.signup-diagnostics-page .section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}
.signup-diagnostics-page .section-title {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Diagnostic page */
body.diagnostics-page {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}
.diagnostics-page .container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}
.diagnostics-page h1 { color: #333; border-bottom: 3px solid #0066cc; padding-bottom: 10px; }
.diagnostics-page h2 { color: #0066cc; margin-top: 30px; }
.diagnostics-page .status {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid;
}
.diagnostics-page .status.ok { background: #e6ffe6; color: #00cc00; border-left-color: #00cc00; }
.diagnostics-page .status.error { background: #ffe6e6; color: #cc0000; border-left-color: #cc0000; }
.diagnostics-page .status.warning { background: #ffe6cc; color: #ff9900; border-left-color: #ff9900; }
.diagnostics-page .btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}
.diagnostics-page .btn-primary { background: #0066cc; color: white; }
.diagnostics-page .btn-primary:hover { background: #0052a3; }
.diagnostics-page .btn-success { background: #00aa00; color: white; }
.diagnostics-page .btn-success:hover { background: #008800; }
.diagnostics-page .btn-secondary { background: #666; color: white; }
.diagnostics-page .btn-secondary:hover { background: #555; }
.diagnostics-page table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.diagnostics-page table th, .diagnostics-page table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
.diagnostics-page table th { background: #f0f0f0; font-weight: bold; }
.diagnostics-page pre { background: #f0f0f0; padding: 15px; border-radius: 5px; overflow-x: auto; }
.diagnostics-page .test-result { margin: 20px 0; padding: 15px; background: #f9f9f9; border-radius: 5px; }
.diagnostics-page .loading { color: #666; font-style: italic; }

/* Exam answers page */
.exam-answers-page .exam-answers-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.exam-answers-page .exam-answers-header {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.exam-answers-page .exam-answers-title {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}
.exam-answers-page .exam-answers-title h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}
.exam-answers-page .exam-code-display { margin: 1rem 0; }
.exam-answers-page .exam-code-display code {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.exam-answers-page .exam-answers-subtitle {
    margin: 1rem 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}
.exam-answers-page .exam-answers-content { padding: 2rem; }
.exam-answers-page .answer-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafbfc;
}
.exam-answers-page .answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.exam-answers-page .answer-header h3 {
    margin: 0;
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: 600;
}
.exam-answers-page .question-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.exam-answers-page .meta-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.exam-answers-page .question-text {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #2563eb;
}
.exam-answers-page .question-text strong {
    color: #374151;
    display: block;
    margin-bottom: 0.5rem;
}
.exam-answers-page .answer-content {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #10b981;
}
.exam-answers-page .answer-text,
.exam-answers-page .answer-explanation {
    margin-bottom: 1rem;
}
.exam-answers-page .answer-text strong,
.exam-answers-page .answer-explanation strong {
    color: #059669;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.exam-answers-page .answer-explanation strong {
    color: #d97706;
}
.exam-answers-page .exam-not-found,
.exam-answers-page .exam-no-code {
    padding: 3rem 2rem;
    text-align: center;
}
.exam-answers-page .exam-not-found h1,
.exam-answers-page .exam-no-code h1 {
    color: #dc2626;
    margin-bottom: 1rem;
}
.exam-answers-page .exam-not-found-message,
.exam-answers-page .exam-no-code-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.exam-answers-page .exam-not-found-tips {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
    padding: 0;
    list-style: none;
}
.exam-answers-page .exam-not-found-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.exam-answers-page .exam-not-found-tips li:before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    margin-right: 0.5rem;
}
.exam-answers-page .exam-not-found-actions,
.exam-answers-page .exam-code-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.exam-answers-page .exam-code-form {
    max-width: 400px;
    margin: 2rem auto 0;
    text-align: left;
}
.exam-answers-page .exam-code-form .form-group {
    margin-bottom: 1rem;
}
.exam-answers-page .exam-code-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}
.exam-answers-page .exam-code-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
.exam-answers-page .exam-code-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.exam-answers-page .exam-code-form .form-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.exam-answers-page .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}
.exam-answers-page .btn-primary {
    background: #2563eb;
    color: white;
}
.exam-answers-page .btn-primary:hover {
    background: #1d4ed8;
    color: white;
}
.exam-answers-page .btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}
.exam-answers-page .btn-outline-secondary:hover {
    background: #f9fafb;
    color: #374151;
}
@media (max-width: 768px) {
    .exam-answers-page .exam-answers-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    .exam-answers-page .exam-answers-title {
        padding: 1.5rem 1rem;
    }
    .exam-answers-page .exam-answers-title h1 {
        font-size: 2rem;
    }
    .exam-answers-page .exam-answers-content {
        padding: 1rem;
    }
    .exam-answers-page .answer-item {
        padding: 1rem;
    }
    .exam-answers-page .answer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .exam-answers-page .exam-not-found,
    .exam-answers-page .exam-no-code {
        padding: 2rem 1rem;
    }
    .exam-answers-page .exam-not-found-actions,
    .exam-answers-page .exam-code-form {
        flex-direction: column;
        align-items: center;
    }
    .exam-answers-page .exam-code-form {
        text-align: center;
    }
}

/* Question & answer page */
.qa-page .search-card,
.qa-page .qa-card,
.qa-page .callout-card {
    border-radius: 1.35rem;
}
.qa-page .qa-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qa-page .qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.08);
}
.qa-page .qa-meta {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.qa-page .qa-meta span {
    display: inline-flex;
    align-items: center;
}
.qa-page .qa-badge {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.qa-page .bn-font {
    font-family: 'Noto Sans Bengali', sans-serif;
}
.qa-page .search-label {
    font-weight: 600;
}

/* Session test page */
body.session-test-page {
    font-family: monospace;
    padding: 20px;
    background: #f0f0f0;
}
.session-test-page .box {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #0066cc;
}
.session-test-page strong { color: #0066cc; }
.session-test-page .error { border-left-color: #cc0000; }
.session-test-page .success { border-left-color: #00cc00; }

/* FAQ page */
body.faq-page {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(21, 122, 115, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(24, 94, 224, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #edf4f7 100%);
    color: #163042;
}
.faq-page .faq-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}
.faq-page .faq-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 1.75rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #082b35 0%, #0d4962 52%, #157a73 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(8, 43, 53, 0.18);
    animation: fadeInDown 0.6s ease-out;
}
.faq-page .faq-header::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.faq-page .faq-header__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.faq-page .faq-header__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.25rem;
    align-items: center;
}
.faq-page .faq-header h1 {
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
}
.faq-page .faq-header p {
    font-size: 1.03rem;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 400;
    line-height: 1.75;
    max-width: 58ch;
    margin: 0;
}
.faq-page .faq-header__panel {
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}
.faq-page .faq-header__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.faq-page .faq-stat {
    padding: 0.9rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}
.faq-page .faq-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.faq-page .faq-stat span {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.faq-page .faq-search {
    position: relative;
    margin-bottom: 18px;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
.faq-page .faq-search input {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px 16px 54px;
    font-size: 1rem;
    border: 1px solid #d6e2e8;
    border-radius: 18px;
    background-color: #fbfdff;
    transition: all 0.3s ease;
    box-shadow: none;
}
.faq-page .faq-search input:focus {
    outline: none;
    border-color: #157a73;
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(21, 122, 115, 0.12);
}
.faq-page .faq-search input::placeholder {
    color: #999;
}
.faq-page .faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    padding: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.faq-page .category-btn {
    padding: 12px 18px;
    background-color: white;
    border: 1px solid #d6e2e8;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #1b3446;
}
.faq-page .category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(21, 122, 115, 0.12);
    border-color: #157a73;
    color: #0d6957;
}
.faq-page .category-btn.active {
    background: linear-gradient(135deg, #0d7c68 0%, #16927b 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(13, 124, 104, 0.22);
}
.faq-page .faq-item {
    margin-bottom: 14px;
    border: 1px solid #dde7ed;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    animation: fadeInUp 0.5s ease-out;
}
.faq-page .faq-item:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: #bfd4dd;
    transform: translateY(-2px);
}
.faq-page .faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font: inherit;
    font-weight: 700;
    color: #1a3345;
    transition: all 0.3s ease;
    user-select: none;
    text-align: left;
}
.faq-page .faq-question:hover {
    background: rgba(21, 122, 115, 0.04);
}
.faq-page .faq-question.active {
    background: linear-gradient(135deg, #f2f9f8 0%, #eef7fb 100%);
    color: #0f2a3c;
}
.faq-page .faq-question span:first-child {
    flex: 1;
    margin-right: 20px;
    text-align: left;
}
.faq-page .faq-toggle {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef5f8;
    color: #173042;
}
.faq-page .faq-toggle.active {
    transform: rotate(180deg);
    background: #0d7c68;
    color: #fff;
}
.faq-page .faq-answer {
    padding: 0 20px 22px;
    background-color: white;
    color: #526978;
    line-height: 1.8;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-top: 1px solid #edf2f6;
    font-size: 0.98em;
}
.faq-page .faq-answer.active {
    display: block;
}
.faq-page .faq-answer ol,
.faq-page .faq-answer ul {
    margin: 15px 0;
    padding-left: 25px;
}
.faq-page .faq-answer li {
    margin: 8px 0;
}
.faq-page .faq-answer strong {
    color: #0d6957;
    font-weight: 600;
}
.faq-page .faq-answer a {
    color: #0d6fb8;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed currentColor;
    transition: color 0.3s ease;
}
.faq-page .faq-answer a:hover {
    color: #0a5790;
}
.faq-page .faq-category-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #123046;
    margin-top: 32px;
    margin-bottom: 16px;
    position: relative;
}
.faq-page .faq-category-title:first-of-type {
    margin-top: 0;
}
.faq-page .faq-category-title::before {
    content: '▸';
    margin-right: 10px;
    opacity: 0.7;
}
.faq-page .no-results {
    text-align: center;
    margin-top: 16px;
    padding: 18px 20px;
    color: #5a7282;
    font-size: 1rem;
    border-radius: 18px;
    background: #f5f9fc;
    border: 1px dashed #cedce5;
    animation: fadeInUp 0.4s ease-out;
}
.faq-page .no-results::before {
    content: '🔍';
    display: block;
    font-size: 3em;
    margin-bottom: 20px;
}
.faq-page .contact-support {
    background: linear-gradient(135deg, #eef9f5 0%, #f5fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 28px 24px;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    animation: fadeInUp 0.6s ease-out;
}
.faq-page .contact-support h3 {
    color: #123046;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.faq-page .contact-support p {
    color: #5a7282;
    margin: 0 auto 16px;
    font-size: 1rem;
    max-width: 56ch;
    line-height: 1.7;
}
.faq-page .contact-support a {
    display: inline-block;
    margin: 0;
    padding: 13px 20px;
    background-color: #fff;
    color: #173042;
    border-radius: 14px;
    border: 1px solid #d6e2e8;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: none;
}
.faq-page .contact-support a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(21, 122, 115, 0.12);
}
.faq-page .contact-support__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.faq-page .contact-support__primary {
    background: linear-gradient(135deg, #0d7c68 0%, #16927b 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .faq-page .faq-header h1 {
        font-size: 2em;
    }
    .faq-page .faq-header p {
        font-size: 1em;
    }
    .faq-page .faq-question {
        padding: 15px;
    }
    .faq-page .faq-question span:first-child {
        margin-right: 10px;
        font-size: 0.95em;
    }
    .faq-page .faq-answer {
        padding: 15px;
    }
    .faq-page .faq-categories {
        justify-content: flex-start;
    }
    .faq-page .category-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    .faq-page .contact-support {
        padding: 25px 20px;
    }
    .faq-page .contact-support h3 {
        font-size: 1.3em;
    }
    .faq-page .contact-support a {
        display: block;
        margin: 10px 0;
    }
}
@media (max-width: 480px) {
    .faq-page .faq-container {
        padding: 20px 15px;
    }
    .faq-page .faq-header h1 {
        font-size: 1.6em;
    }
    .faq-page .faq-category-title {
        font-size: 1.3em;
        margin-top: 35px;
    }
    .faq-page .faq-question {
        padding: 12px 15px;
    }
    .faq-page .faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 1.1em;
    }
    .faq-page .no-results::before {
        font-size: 2em;
    }
}

/* Article page content */
.article-view-page .article-content {
    line-height: 1.8;
    color: #333;
}
.article-view-page .article-content p {
    margin-bottom: 1.5rem;
}
.article-view-page .article-content h2,
.article-view-page .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0984e3;
}
.article-view-page .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
@media print {
    body.article-view-page .container > .row > .col-lg-4 { display: none; }
    body.article-view-page .container > .row > .col-lg-8 > .mt-4 { display: none; }
    body.article-view-page .card-header { background-color: #0984e3 !important; color: white !important; }
    body.article-view-page { font-size: 12px; }
}

/* Product details page */
.product-details-shell {
    background:
        radial-gradient(circle at top left, rgba(13, 124, 104, 0.12), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #eef5f7 100%);
    min-height: calc(100vh - 120px);
}
.product-hero,
.detail-panel {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}
.product-hero { padding: 1.25rem; }
.product-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #d9e8ef 0%, #f4f8fb 100%);
    min-height: 100%;
}
.product-media__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-media__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}
.product-summary { padding: 0.35rem 0.2rem; }
.product-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.product-chip {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #dff4ee;
    color: #0d6957;
    font-size: 0.8rem;
    font-weight: 700;
}
.product-chip--soft {
    background: #eef4fb;
    color: #385470;
}
.product-summary__title {
    font-family: "Merriweather", serif;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    color: #102434;
    margin-bottom: 0.9rem;
}
.product-summary__rating,
.review-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #5d7382;
}
.product-stars {
    color: #f4b000;
    display: inline-flex;
    gap: 0.12rem;
}
.product-summary__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem;
    margin: 1rem 0 0.5rem;
}
.product-summary__price {
    font-size: 2rem;
    font-weight: 800;
    color: #0b7b54;
}
.product-summary__mrp {
    font-size: 1rem;
    color: #7a8f9e;
    text-decoration: line-through;
}
.product-summary__stock {
    font-weight: 700;
    margin-bottom: 1rem;
}
.is-available { color: #0b7b54; }
.is-unavailable { color: #b42318; }
.product-summary__description {
    color: #496171;
    line-height: 1.75;
}
.product-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.detail-panel { padding: 1.25rem; }
.detail-panel__head { margin-bottom: 1rem; }
.detail-panel__title {
    margin-bottom: 0.4rem;
    color: #12283a;
    font-size: 1.3rem;
}
.detail-panel__text {
    color: #607786;
    line-height: 1.65;
}
.review-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.review-score__value {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #102434;
}
.review-score__caption { color: #607786; }
.rating-breakdown { display: grid; gap: 0.75rem; }
.rating-breakdown__row {
    display: grid;
    grid-template-columns: 64px 1fr 32px;
    gap: 0.75rem;
    align-items: center;
    color: #516878;
}
.rating-breakdown__bar {
    height: 10px;
    border-radius: 999px;
    background: #e6eef2;
    overflow: hidden;
}
.rating-breakdown__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f4b000 0%, #f59e0b 100%);
    border-radius: inherit;
}
.review-form .form-control,
.review-form .form-select {
    border-radius: 16px;
    border-color: #d7e2eb;
    min-height: 50px;
}
.review-form textarea.form-control { min-height: 140px; }
.review-list { display: grid; gap: 1rem; }
.review-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
    border: 1px solid #e0e8ef;
}
.review-card__name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #102434;
}
.review-card__title {
    margin: 0.8rem 0 0.4rem;
    font-size: 1rem;
    color: #183245;
}
.review-card__text {
    color: #516878;
    line-height: 1.7;
}
.review-card__verified {
    color: #0d7c68;
    font-weight: 700;
}
.review-empty {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #f4f8fb;
    color: #5d7382;
    border: 1px dashed #d4e0e8;
}
.detail-btn {
    border-radius: 14px;
    padding: 0.8rem 1.15rem;
    font-weight: 700;
}
.detail-btn--primary {
    background: linear-gradient(135deg, #0d7c68 0%, #16927b 100%);
    border-color: #0d7c68;
    color: #fff;
}
.detail-btn--primary:hover {
    background: linear-gradient(135deg, #0b6857 0%, #127764 100%);
    border-color: #0b6857;
    color: #fff;
}
.detail-btn--ghost {
    background: #fff;
    border-color: #cfe0e6;
    color: #173042;
}
.detail-btn--ghost:hover {
    background: #f2f7fa;
    color: #102434;
}
@media (max-width: 767.98px) {
    .product-hero,
    .detail-panel {
        border-radius: 22px;
    }
    .product-summary__actions {
        flex-direction: column;
    }
    .product-summary__actions form,
    .product-summary__actions button,
    .detail-btn {
        width: 100%;
    }
    .rating-breakdown__row {
        grid-template-columns: 56px 1fr 28px;
    }
}

/* Subscriptions page */
.subscription-shell {
    min-height: calc(100vh - 120px);
    background:
        radial-gradient(circle at top left, rgba(13, 124, 104, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(24, 94, 224, 0.08), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #edf4f7 100%);
}
.subscription-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #082b35 0%, #0d4962 52%, #157a73 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(8, 43, 53, 0.18);
}
.subscription-hero::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.subscription-hero__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.subscription-hero__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.8rem;
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    max-width: 11ch;
}
.subscription-hero__text {
    position: relative;
    z-index: 1;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}
.subscription-hero__panel,
.subscription-panel {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.subscription-hero__panel {
    position: relative;
    z-index: 1;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}
.subscription-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}
.subscription-stat {
    padding: 0.9rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}
.subscription-stat strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}
.subscription-stat span {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.subscription-panel {
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.88);
}
.subscription-panel__title {
    margin: 0;
    color: #153042;
    font-size: 1.25rem;
    font-weight: 800;
}
.subscription-panel__text {
    color: #475569;
    line-height: 1.75;
}
.subscription-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.subscription-badges .badge {
    white-space: normal;
}
.subscription-panel .btn {
    width: 100%;
}

/* Study material page */
.study-material-page {
    background: linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
    min-height: calc(100vh - 120px);
}
.study-hero {
    padding: 0.2rem 1.6rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #10213b 0%, #1f4d8d 54%, #67b1ff 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(16, 33, 59, 0.18);
}
.study-hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.study-hero__title {
    font-family: "Merriweather", serif;
    font-size: clamp(1.8rem, 3.3vw, 2.6rem);
}
.study-hero__text {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.88);
}
.study-content,
.study-resources {
    line-height: 1.8;
    font-size: 1rem;
    color: #1f2937;
}
.study-content img,
.study-resources img {
    max-width: 100%;
    height: auto;
}
.protected-study-content {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.study-preview,
.topic-preview {
    color: #4b5565;
    line-height: 1.7;
}
.glossary-term {
    text-decoration: underline dotted #0d6efd;
    text-underline-offset: 0.18em;
    cursor: pointer;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 0.2rem;
    padding: 0 0.08rem;
    transition: background-color 0.2s ease;
}
.glossary-term:hover,
.glossary-term:focus {
    background: rgba(13, 110, 253, 0.16);
    outline: none;
}
.word-meaning-text {
    white-space: pre-line;
    color: #334155;
    line-height: 1.65;
}
.word-meaning-image-wrap {
    border-radius: 1rem;
    overflow: hidden;
    background: #eff6ff;
}
.word-meaning-image {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #f8fafc;
}
.word-meaning-image-note {
    color: #64748b;
    font-size: 0.92rem;
}
.chapter-block + .chapter-block {
    border-top: 1px solid #e5edf8;
    padding-top: 1.25rem;
}
.chapter-title {
    font-weight: 700;
    color: #132238;
}
.topic-list {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 145px;
    aspect-ratio: 1 / 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.topic-card strong {
    font-size: 0.92rem;
    line-height: 1.3;
}
.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.topic-card--completed {
    border-color: #198754;
    background: #ecfdf5;
}
.topic-completed-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 1;
    font-size: 0.7rem;
    padding: 0.35rem 0.45rem;
}
.topic-preview {
    color: #4b5565;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    overflow: hidden;
    font-size: 0.84rem;
}
@media (max-width: 991.98px) {
    .study-hero {
        padding: 1.15rem 1.2rem;
    }
    .topic-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .topic-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .topic-list {
        grid-template-columns: 1fr;
    }
}
@media print {
    @page {
        margin: 0.45in;
    }

    body.study-material-body {
        margin: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }

    body.study-material-body::before,
    body.study-material-body nav,
    body.study-material-body .navbar,
    body.study-material-body .store-hero,
    body.study-material-body .study-material-page > .card:not(.study-topic-detail-card),
    body.study-material-body #classAccordion,
    body.study-material-body .sd-footer,
    body.study-material-body footer {
        display: none !important;
    }

    body.study-material-body .study-material-page {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.study-material-body .study-topic-detail-card,
    body.study-material-body .study-topic-detail-card .card-body {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.study-material-body .study-topic-detail-card > .card-body > .d-flex,
    body.study-material-body .study-topic-detail-card .alert-info,
    body.study-material-body .study-print-button {
        display: none !important;
    }

    body.study-material-body .study-copy-guard {
        display: block !important;
        position: static !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 10.5pt;
        line-height: 1.35;
        break-before: auto !important;
        page-break-before: auto !important;
    }

    body.study-material-body .study-copy-guard,
    body.study-material-body .study-copy-guard * {
        visibility: visible !important;
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    body.study-material-body .glossary-term {
        box-shadow: none !important;
    }
    body.study-material-body .glossary-term {
        background: transparent !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    body.study-material-body .study-content,
    body.study-material-body .study-resources {
        font-size: 10.5pt !important;
        break-before: auto !important;
        page-break-before: auto !important;
    }

    body.study-material-body .study-content *,
    body.study-material-body .study-resources * {
        max-width: 100% !important;
        break-before: auto !important;
        page-break-before: auto !important;
    }

    body.study-material-body .study-content > :first-child,
    body.study-material-body .study-resources > :first-child {
        margin-top: 0 !important;
        break-before: auto !important;
        page-break-before: auto !important;
    }

    body.study-material-body .study-content p,
    body.study-material-body .study-content div,
    body.study-material-body .study-content li,
    body.study-material-body .study-content table,
    body.study-material-body .study-content tr,
    body.study-material-body .study-resources p,
    body.study-material-body .study-resources div,
    body.study-material-body .study-resources li,
    body.study-material-body .study-resources table,
    body.study-material-body .study-resources tr {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }
}

/* Store page */
.store-shell {
    background:
        radial-gradient(circle at top left, rgba(11, 143, 110, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(24, 94, 224, 0.08), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #edf4f7 100%);
    min-height: auto;
}
.store-hero {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f5771 0%, #176f82 55%, #1f9da4 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(8, 43, 53, 0.12);
}
.store-hero.compact-hero {
    padding: 0.95rem 1rem;
}
.store-hero::before {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -22px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.store-hero__panel {
    position: relative;
    z-index: 1;
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}
.store-hero__panel--compact { padding: 0.8rem; }
.store-hero__stats--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}
.store-hero__actions--compact {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.store-hero__title {
    max-width: 46ch;
    margin-bottom: 0.6rem;
    font-family: "Merriweather", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.08;
}
.store-hero__text {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}
.store-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.store-section--subscriptions {
    border-left: 3px solid rgba(11, 143, 110, 0.85);
    padding-left: 0.85rem;
}
.store-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.store-stat {
    padding: 0.65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}
.store-stat__value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}
.store-stat__label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.74);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.store-toolbar,
.store-section {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}
.store-toolbar__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #173042;
}
.store-toolbar__icon { left: 0.85rem; }
.store-toolbar__select {
    min-height: 48px;
    padding-left: 2.6rem;
    border-radius: 16px;
}
.store-toolbar__summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
}
.store-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.store-empty {
    padding: 0.9rem 1rem;
    border-radius: 18px;
}
.store-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}
.store-card__media {
    position: relative;
    width: 100%;
    padding-bottom: 68%;
    overflow: hidden;
    background: linear-gradient(135deg, #d7e6ee 0%, #edf5f8 100%);
}
.store-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.store-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.95rem;
}
.store-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}
.store-card__type,
.store-card__category {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #eef6f7;
    color: #0d5d68;
    font-size: 0.72rem;
    font-weight: 700;
}
.store-card__rating {
    color: #486171;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.store-card__title {
    margin-bottom: 0.45rem;
    font-size: 0.98rem;
    line-height: 1.4;
}
.store-card__text {
    color: #5b7181;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}
.store-card__stars {
    display: flex;
    gap: 0.1rem;
    margin: 0.5rem 0 0.85rem;
    font-size: 0.82rem;
}
.store-card__pricing {
    margin-bottom: 0.85rem;
}
.store-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a7a52;
    line-height: 1.1;
}
.store-card__mrp {
    color: #758b99;
    font-size: 0.82rem;
}
.store-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.store-btn {
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    font-weight: 700;
    border-width: 1px;
    font-size: 0.9rem;
}
.store-btn--primary {
    background: linear-gradient(135deg, #0d7c68 0%, #16927b 100%);
    border-color: #0d7c68;
    color: #fff;
}
.store-btn--primary:hover {
    background: linear-gradient(135deg, #0b6857 0%, #127764 100%);
    border-color: #0b6857;
    color: #fff;
}
.store-btn--ghost {
    background: #fff;
    border-color: #cfe0e6;
    color: #173042;
}
.store-btn--ghost:hover {
    background: #f2f7fa;
    border-color: #b8d0d8;
    color: #102434;
}
.store-btn--light {
    background: #fff;
    border-color: #fff;
    color: #0b4c59;
}
.store-btn--light:hover {
    background: #eef8fb;
    border-color: #eef8fb;
    color: #0a404b;
}
.store-btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.store-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
@media (max-width: 991.98px) {
    .store-section__head,
    .store-toolbar__summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .store-hero__title { max-width: none; }
}
@media (max-width: 767.98px) {
    .store-hero,
    .store-toolbar,
    .store-section {
        padding: 1rem;
        border-radius: 22px;
    }
    .store-hero__stats,
    .store-card__actions {
        grid-template-columns: 1fr;
    }
}

/* Student dashboard page */
.gradient-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd 0%, #32d6ff 100%);
    color: white;
    box-shadow: 0 24px 60px rgba(13, 110, 253, 0.18);
}
.dashboard-modern-surface {
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08) !important;
}
.dashboard-summary .card {
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 24px;
    min-height: 150px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.05);
}
.dashboard-summary .stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}
.dashboard-summary .stat-label { color: #6c757d; }
.dashboard-fast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
}
.dashboard-fast-actions .btn {
    min-width: 120px;
    max-width: 100%;
    flex: 1 1 150px;
    padding: 0.55rem 0.85rem;
    border-radius: 1.25rem;
}
.dashboard-fast-actions .btn i {
    width: 1.1rem;
    text-align: center;
}
.welcome-card-layout {
    display: grid;
    grid-template-columns: 3fr 5fr;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.welcome-stats {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}
.welcome-stat-tile {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    backdrop-filter: blur(6px);
}
.welcome-stat-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 0.35rem;
}
.welcome-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}
.welcome-stat-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}
.welcome-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 320px;
    min-width: 0;
}
.welcome-card-meta { flex: 1 1 auto; }
.welcome-card-actions {
    flex: 0 1 auto;
    min-width: 250px;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.welcome-card-actions .dashboard-fast-actions {
    width: 100%;
    justify-content: flex-end;
}
@media (max-width: 991.98px) {
    .dashboard-fast-actions .btn {
        flex: 1 1 calc(50% - 0.65rem);
    }
    .welcome-card-layout {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .welcome-card-main { width: 100%; }
    .welcome-card-actions {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding-top: 1rem;
    }
}
@media (max-width: 575.98px) {
    .dashboard-fast-actions .btn { flex: 1 1 100%; }
}
.subscription-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.subscription-badges .badge { white-space: normal; }
.profile-details-card { min-height: 100%; }
.topic-status {
    min-width: 170px;
    max-width: 220px;
    flex: 0 0 auto;
    word-break: break-word;
}
.topic-status .small { line-height: 1.3; }
.card, .list-group-item {
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}
.activity-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    align-items: end;
    min-height: 100px;
}
.activity-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(13, 110, 253, 0.08);
    min-height: 80px;
}
.activity-bar-fill {
    width: 100%;
    background: #0d6efd;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0;
}
.activity-chart-label {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: #6c757d;
    word-break: break-word;
}
.alert-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 1rem;
    background: rgba(255, 193, 7, 0.18);
    color: #856404;
    font-size: 0.82rem;
}
.progress-section .card { border-radius: 22px; }
.progress-summary-card {
    border-radius: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.progress-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}
.topic-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 20px;
    background: #ffffff;
}
.topic-card .list-group-item {
    border: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.topic-card .list-group-item:hover { background: #f8f9fa; }
.profile-modal-shell {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), rgba(50, 214, 255, 0.03));
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 24px;
}
.profile-modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #32d6ff 100%);
    color: #ffffff;
    border: 0;
    border-radius: 24px 24px 0 0;
}
.welcome-avatar,
.edit-profile-avatar,
.profile-modal-avatar {
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
.welcome-avatar { width: 96px; height: 96px; }
.edit-profile-avatar,
.profile-modal-avatar { width: 110px; height: 110px; }
.profile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}
.profile-info-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}
.profile-info-card p { margin-bottom: 0.85rem; }
.profile-label {
    color: #6c757d;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.2rem;
}
.profile-value {
    font-weight: 600;
    color: #0f172a;
}
.profile-modal-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
}

/* registration form style */
  .registration-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .form-label {
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 0.5rem;
  }
  


/* login form style */
.login-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  align-content: center;
  align-items: center;
}   

.form-label {
    color: #495057;
}

.hidden {
  display: none;
}

/* card style*/

/* News & Gallery custom styles */
.news-gallery .carousel-img {
    height: 320px;
    object-fit: cover;
}
.news-gallery .caption-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Article cards styling - matching service section */
.news-gallery .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.news-gallery .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.news-gallery .card-body {
    padding: 1.5rem;
}

.news-gallery .card {
    display: flex;
    flex-direction: column;
}

.news-gallery .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-gallery .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.news-gallery .card-text {
    font-size: 0.8rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
    margin-bottom: 0.5rem;
}

/* Make text even smaller on mobile */
@media (max-width: 767px) {
    .news-gallery .card-title {
        font-size: 0.9rem;
    }
    .news-gallery .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.8em;
    }
}
/* unified article-thumb wrapper (keeps 4:3 ratio) */
.news-gallery .article-thumb-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 0.75rem 0.75rem 0 0;
    max-height: 160px; /* Control maximum height */
}

.news-gallery .article-thumb-wrapper::before {
    content: '';
    display: block;
    padding-top: 75%; /* Maintain 4:3 aspect ratio */
}

.news-gallery .article-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* small CTA card under the carousel on the left */
.news-gallery .gallery-cta-card {
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}
.news-gallery .gallery-cta-card .card-body {
    padding: 1rem 1.25rem;
}

@media (max-width: 767px) {
    .news-gallery .article-thumb-wrapper {
        padding-top: 60%; /* slightly shorter on mobile */
    }
    .news-gallery .gallery-cta-card { margin-top: .75rem; }
}

/* Admin dashboard small polish */
.admin-dashboard .card { transition: transform .15s ease, box-shadow .15s ease; }
.admin-dashboard .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(17,24,39,0.08); }
.admin-dashboard .card .me-3 { width:48px; height:48px; display:flex; align-items:center; justify-content:center; font-size:1.1rem }
.admin-dashboard .quick-actions .btn { text-align:left }

/* Shared admin workspace UI */
.admin-shell {
    padding: 2rem 0 2.5rem;
}

.admin-page {
    display: grid;
    gap: 1.25rem;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.admin-hero-card {
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(13, 110, 253, 0));
    border: 1px solid rgba(13, 110, 253, 0.24);
    overflow: hidden;
}

.admin-hero-card .admin-section-body {
    background: #ffffff;
    padding: 1.75rem 1.5rem;
    border-radius: 24px;
}

.admin-hero-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-hero-summary-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1rem;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.hero-summary-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.16);
    color: #0d6efd;
    font-size: 1rem;
}

.admin-hero-summary-card span,
.admin-hero-summary-card strong {
    display: block;
}

.admin-hero-summary-card strong {
    margin-top: 0.2rem;
    font-size: 1.55rem;
    color: #10243b;
}

.admin-section-card.admin-hero-card {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
}

.admin-section-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.admin-page-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 0.75rem;
}

.admin-page-banner-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(13, 110, 253, 0.14);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.admin-page-banner-chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    font-size: 1rem;
}

.admin-page-banner-chip.secondary i {
    background: #198754;
}

.admin-page-banner-chip.neutral i {
    background: #6c757d;
}

.admin-page-banner-chip span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #566b8a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-page-banner-chip strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.98rem;
    color: #132238;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-board-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.admin-board-card.empty-card {
    grid-column: span 2;
    background: rgba(242, 247, 255, 0.9);
}

.board-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.board-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #132238;
}

.board-card-desc {
    margin: 0.35rem 0 0;
    color: #566b8a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.board-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.board-card-label {
    display: block;
    font-size: 0.75rem;
    color: #6f7f91;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.admin-board-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #192a42;
}

.admin-board-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-board-card-actions .btn {
    min-height: 40px;
}

.admin-board-card .admin-delete-confirmation {
    display: none;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 245, 245, 0.95);
    border: 1px solid rgba(220, 53, 69, 0.15);
    margin-top: 0.5rem;
}

.admin-board-card .admin-delete-confirmation.is-visible {
    display: block;
}

.admin-board-card .admin-actions {
    justify-content: flex-start;
}

.admin-board-card code {
    display: inline-flex;
    padding: 0.25rem 0.45rem;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-size: 0.92rem;
}

.admin-board-card .admin-page-eyebrow {
    font-size: 0.82rem;
}

.admin-board-card.empty-card .admin-section-copy {
    color: #5f6f82;
}

.admin-board-card.empty-card .admin-page-eyebrow i {
    font-size: 1rem;
}

.admin-action-grid .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-action-grid .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(13, 110, 253, 0.3);
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(245, 250, 255, 0.95);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.hero-stat .admin-stat-label {
    margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
    .hero-stat-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
    .admin-hero-counts,
    .admin-hero-actions {
        flex-direction: column;
    }
    .admin-hero-count {
        width: 100%;
    }
    .crm-input-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.dashboard-summary-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-summary-card .admin-stat-label {
    color: #66788a;
    font-size: 0.85rem;
}

.dashboard-summary-card .admin-stat-value {
    margin-top: 0.55rem;
    font-size: 1.75rem;
}

.admin-hero-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-hero-count {
    padding: 1rem 1rem;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 18px;
    color: #10243b;
    display: grid;
    gap: 0.5rem;
}

.hero-count-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.18);
    color: #0d6efd;
    font-size: 1rem;
}

.admin-hero-count strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.55rem;
    color: #0d6efd;
}

.dashboard-banner-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.03));
    border: 1px solid rgba(13, 110, 253, 0.18);
    box-shadow: 0 16px 34px rgba(13, 110, 253, 0.08);
}

.dashboard-banner-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    min-width: 210px;
}

.dashboard-banner-chip.secondary {
    background: rgba(255, 255, 255, 0.88);
}

.dashboard-banner-chip i {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 1rem;
}

.dashboard-banner-chip span {
    display: block;
    color: #1b3768;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-banner-chip strong {
    display: block;
    color: #132238;
    margin-top: 0.2rem;
    font-size: 1rem;
}

.admin-page-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.admin-page-banner-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-page-banner-chip.secondary {
    background: rgba(245, 247, 255, 0.92);
}

.admin-page-banner-chip.neutral {
    background: rgba(249, 250, 251, 0.96);
}

.admin-page-banner-chip i {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.95rem;
}

.admin-page-banner-chip span {
    display: block;
    color: #506580;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-page-banner-chip strong {
    display: block;
    color: #142a44;
    margin-top: 0.1rem;
    font-size: 0.95rem;
}

.summary-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.summary-card-icon.primary { background: #0d6efd; }
.summary-card-icon.info { background: #3b83f7; }
.summary-card-icon.success { background: #198754; }
.summary-card-icon.warning { background: #fd7e14; }

.hero-stat-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(13, 110, 253, 0.14);
    color: #0d6efd;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.crm-entry-form {
    margin-top: 0.5rem;
}

.crm-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.crm-entry-form .form-select,
.crm-entry-form .form-control {
    background: #f9fbff;
}

.crm-entry-form .btn {
    min-width: 110px;
}

.admin-action-card-grid .admin-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-action-card {
    align-items: flex-start;
}

.admin-action-icon {
    font-size: 1.1rem;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stat-highlight {
    background: linear-gradient(180deg, #eff8ff 0%, #ffffff 100%);
    border-color: rgba(13, 110, 253, 0.16);
}

.admin-dashboard-alert {
    border-color: rgba(220, 53, 69, 0.2);
    background: rgba(255, 247, 247, 0.95);
}

.admin-dashboard-alert .admin-page-eyebrow {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.admin-dashboard-alert .btn-danger {
    min-height: 44px;
}

.admin-page-header.compact {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.16);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.08);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    background: #ffffff;
    padding: 1.3rem;
    border-radius: 26px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.04);
}

.admin-page-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 0.75rem;
    padding: 0.9rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfbfd 0%, #eef4ff 100%);
    border: 1px solid rgba(13, 110, 253, 0.10);
}

.admin-section-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #f8f9ff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.admin-table-wrap {
    background: #ffffff;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.admin-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.09);
    color: #0d6efd;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-page-title {
    margin: 0.55rem 0 0.35rem;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    color: #132238;
}

.admin-page-copy {
    max-width: 64ch;
    margin: 0;
    color: #5f6f82;
    font-size: 0.97rem;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    grid-column: span 2;
    min-height: 100%;
    padding: 1rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-stat-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #738295;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stat-value {
    display: block;
    color: #132238;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-stat-meta {
    margin-top: 0.35rem;
    color: #607287;
    font-size: 0.88rem;
}

.admin-grid {
    display: grid;
    gap: 1.25rem;
}

.admin-grid.dashboard-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
}

.admin-section-card {
    border-radius: 24px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.admin-section-card .card-body,
.admin-section-body {
    padding: 1.2rem 1.25rem;
}

.content-editor {
    min-height: 16rem;
    font-family: inherit;
}

.summary-stack {
    display: grid;
    gap: 0.85rem;
}

.summary-item {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    background: rgba(242, 247, 255, 0.9);
}

.summary-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6f7f91;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-item strong {
    display: block;
    color: #10243b;
    font-size: 0.97rem;
    line-height: 1.4;
}

.selection-status {
    padding: 1rem 1rem;
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.08);
    color: #0f3c70;
    font-weight: 600;
}

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.tips-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #4f5f78;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #0d6efd;
    font-weight: 700;
}

.admin-section-head,
.admin-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #14263d;
}

.admin-section-copy {
    margin: 0.25rem 0 0;
    color: #6f7f91;
    font-size: 0.92rem;
}

.admin-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #eff5ff;
    color: #245bb8;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 0.6rem;
}

.admin-table thead th {
    padding: 0.8rem 0.95rem;
    border: 0;
    background: #eef4fb;
    color: #27415f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table thead th:first-child {
    border-radius: 14px 0 0 14px;
}

.admin-table thead th:last-child {
    border-radius: 0 14px 14px 0;
}

.admin-table tbody tr {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.admin-table tbody td {
    padding: 0.95rem;
    border: 0;
    vertical-align: middle;
    color: #243447;
}

.admin-table tbody td:first-child {
    border-radius: 16px 0 0 16px;
}

.admin-table tbody td:last-child {
    border-radius: 0 16px 16px 0;
}

.admin-table .row-title {
    display: block;
    font-weight: 600;
    color: #10243b;
}

.admin-table .row-meta {
    display: block;
    margin-top: 0.2rem;
    color: #718196;
    font-size: 0.85rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-badge.success {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.admin-badge.neutral {
    background: rgba(108, 117, 125, 0.12);
    color: #56616d;
}

.admin-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.admin-empty-state {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #7a8798;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-action-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-action-card:hover,
.admin-action-card:focus {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.18);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.admin-action-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #4aa3ff);
    color: #fff;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.admin-action-card.secondary .admin-action-icon {
    background: linear-gradient(135deg, #198754, #55b888);
}

.admin-action-card.warning .admin-action-icon {
    background: linear-gradient(135deg, #fd7e14, #ffb366);
}

.admin-action-card.neutral .admin-action-icon {
    background: linear-gradient(135deg, #475569, #7b8798);
}

.admin-action-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #132238;
}

.admin-action-copy {
    margin: 0.2rem 0 0;
    color: #6e7e90;
    font-size: 0.85rem;
}

.admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-list-item:last-child {
    padding-bottom: 0;
}

.admin-list-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #132238;
}

.admin-list-copy {
    margin: 0.18rem 0 0;
    color: #728295;
    font-size: 0.85rem;
}

.admin-list-meta {
    color: #728295;
    font-size: 0.82rem;
    white-space: nowrap;
}

.admin-delete-confirmation {
    display: none;
    margin-top: 0.55rem;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.14);
    background: #fff8f8;
    box-shadow: 0 10px 22px rgba(220, 53, 69, 0.08);
}

.admin-delete-confirmation.is-visible {
    display: block;
}

.admin-delete-copy {
    margin: 0 0 0.55rem;
    color: #6f4b53;
    font-size: 0.84rem;
}

.admin-form-note {
    color: #708195;
    font-size: 0.84rem;
}

.admin-section-card .modal-title,
.modal .modal-title {
    font-weight: 700;
    color: #14263d;
}

.modal .form-label {
    font-weight: 600;
    color: #203246;
}

.modal .form-control,
.modal .form-select {
    min-height: 3rem;
}

.modal textarea.form-control {
    min-height: auto;
}

.admin-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    color: #6f7f91;
    font-size: 0.88rem;
}

@media (max-width: 1199.98px) {
    .admin-stat-card {
        grid-column: span 6;
    }
}

@media (max-width: 991.98px) {
    .admin-page-header,
    .admin-section-head,
    .admin-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header-actions {
        justify-content: flex-start;
    }

    .admin-grid.dashboard-layout,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .admin-shell {
        padding-top: 1.25rem;
    }

    .admin-page-header,
    .admin-section-card .card-body,
    .admin-section-body {
        padding: 1rem;
    }

    .admin-stat-grid {
        gap: 0.75rem;
    }

    .admin-stat-card {
        grid-column: span 12;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.8rem 0.75rem;
    }
}

.admin-page-header .btn,
.admin-header-actions .btn,
.admin-section-card .btn {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.admin-page-header .btn:hover,
.admin-header-actions .btn:hover,
.admin-section-card .btn:hover {
    transform: translateY(-1px);
}

.admin-table tbody tr {
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.35) rgba(15, 23, 42, 0.08);
}

.admin-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.admin-table-wrap::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
}

.admin-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.28);
    border-radius: 999px;
}

.admin-section-card,
.admin-page-header {
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-section-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.admin-header-actions .btn {
    min-height: 44px;
}

/* Study material: book-like reading styles */
.content-area {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.85;
    color: #1e1e1e;
    max-width: 72ch; /* comfortable measure */
    margin: 1.25rem auto;
    padding: 2.2rem 2.4rem;
    background: #fcfbf8; /* soft paper tone */
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(17,24,39,0.03);
    text-align: justify;
    hyphens: auto;
}
.content-area p { margin-bottom: 1.05rem; font-size: 1rem; }
.content-area h2, .content-area h3, .content-area h4 { font-family: 'Merriweather', serif; margin-top: 1.15rem; margin-bottom: 0.6rem; color: #162029 }
.content-area img { max-width: 100%; display: block; margin: 1rem auto; border-radius: 4px }

/* Drop cap for the first paragraph */
.content-area p:first-of-type::first-letter {
    float: left;
    font-size: 3.6rem;
    line-height: 0.8;
    padding-right: 0.65rem;
    padding-top: 0.04rem;
    font-weight: 700;
    color: var(--primary);
}

/* Slightly increase font on larger screens */
@media (min-width: 992px) {
    .content-area { font-size: 19px; padding: 2.6rem 3rem; }
    .content-area p { font-size: 1.02rem }
    .content-area p:first-of-type::first-letter { font-size: 4rem }
}

/* Reduce measure & padding on small screens for readability */
@media (max-width: 767px) {
    .content-area { max-width: 100%; padding: 1rem; font-size: 16px; line-height: 1.7 }
    .content-area p:first-of-type::first-letter { font-size: 2.6rem }
}

/* Lustria reading variant: elegant display serif for topics */
.content-area.lustria {
    font-family: 'Lustria', 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    letter-spacing: 0.2px;
    line-height: 1.95;
    color: #111317;
}
.content-area.lustria p { margin-bottom: 1.1rem; }
.content-area.lustria p:first-of-type::first-letter {
    color: #094a86; /* slightly darker accent */
}

/* Font variant helpers */
.content-area.font-merriweather { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }
.content-area.font-roboto { font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif; }
.content-area.font-lustria { font-family: 'Lustria', 'Merriweather', Georgia, serif; }
.content-area.font-notoserifbengali { font-family: 'Noto Serif Bengali', 'Merriweather', Georgia, serif; }

/* Utility font classes used across templates */
.book-font { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }
.bn-font {
    font-family: 'Kalpurush', 'Noto Serif Bengali', 'Hind Siliguri', serif;
    font-size: 18px;
    letter-spacing: 0.02em;
    line-height: 1.8;
    color: #1c1c1c;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: common-ligatures;
}


