/* --- SEBOREIK DERMATIT REHBERI: PREMIUM MEDICAL STYLING --- */

/* Reset & CSS Variables */
:root {
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-glow: rgba(79, 70, 229, 0.15);
    
    /* Medical accent colors */
    --accent-teal: #0d9488;
    --accent-amber: #d97706;
    --accent-coral: #e11d48;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --sidebar-width: 300px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

/* Scroll Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    transition: width 0.1s ease;
}

/* Header Section */
header.premium-header {
    max-width: var(--max-width);
    margin: 40px auto 30px auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.03);
}

header.premium-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb-separator {
    color: var(--border);
    font-weight: 400;
    font-size: 0.9rem;
}

/* Title & Meta */
h1.main-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a 30%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.meta-item:hover {
    background-color: var(--accent-light);
    color: var(--primary);
}

.meta-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.meta-item:hover .meta-icon {
    color: var(--primary);
}

/* EEAT Author / Reviewer Cards */
.eeat-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    z-index: 2;
    position: relative;
    margin-bottom: 2rem;
}

.eeat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eeat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -10px rgba(99, 102, 241, 0.12);
}

.eeat-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
}

.eeat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.eeat-name {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-title);
    font-size: 1.15rem;
    line-height: 1.3;
}

.eeat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content Layout Grid */
.layout-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar TOC */
aside.toc-sidebar {
    position: sticky;
    top: 25px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.03);
}

aside.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

aside.toc-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

aside.toc-sidebar h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-title);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-nav a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.4;
    padding: 0.25rem 0;
}

.toc-nav a:hover, .toc-nav a.active {
    color: var(--primary);
    transform: translateX(4px);
}

.toc-nav a.active {
    font-weight: 700;
}

/* Main Content Area */
main.article-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.03);
}

/* Section Formatting */
section.article-section {
    margin-bottom: 5rem;
    scroll-margin-top: 40px;
}

section.article-section:last-of-type {
    margin-bottom: 2rem;
}

section.article-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

section.article-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
}

section.article-section h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-title);
    margin: 2.5rem 0 1.25rem 0;
}

section.article-section p {
    color: var(--text-body);
    margin-bottom: 1.75rem;
    text-align: justify;
}

/* Custom Highlight / Callout Boxes */
.summary-box {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.summary-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Info Box / Doctor comment */
.doctor-callout {
    background-color: rgba(13, 148, 136, 0.03);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-left: 5px solid var(--accent-teal);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.doctor-callout-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Warning Box */
.warning-callout {
    background-color: rgba(225, 29, 72, 0.03);
    border: 1px solid rgba(225, 29, 72, 0.15);
    border-left: 5px solid var(--accent-coral);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.warning-callout-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-coral);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* List Elements */
section.article-section ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

section.article-section li {
    margin-bottom: 0.5rem;
    color: var(--text-body);
    position: relative;
    padding-left: 0.5rem;
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.table-premium {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.table-premium th, .table-premium td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.table-premium th {
    background-color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-title);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-premium tr:last-child td {
    border-bottom: none;
}

.table-premium tr:hover td {
    background-color: #f8fafc;
}

/* Visual timeline components */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--border);
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.timeline-badge {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -15px;
    top: 8px;
    z-index: 2;
}

.timeline-content {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    flex: 1;
}

.timeline-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

/* Infographic Loop */
.loop-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 3rem 0;
    text-align: center;
}

.loop-step {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.loop-step:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.loop-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: bold;
    z-index: 10;
}

.loop-number {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.loop-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-title);
}

/* FAQ Accordion Section */
.faq-section {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px -5px rgba(99, 102, 241, 0.08);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.faq-answer-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-body);
}

/* References */
ol.references-list {
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

ol.references-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

ol.references-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

ol.references-list a:hover {
    text-decoration: underline;
}

/* Related articles grid */
.related-articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.related-card {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    background-color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.related-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

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

/* Final CTA */
.cta-box {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin-top: 5rem;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Footer Section */
footer.premium-footer {
    max-width: var(--max-width);
    margin: 40px auto 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

/* Floating Table of Contents for Mobile */
.mobile-toc-trigger {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 500;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Slide in drawer for mobile TOC */
.mobile-toc-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-toc-drawer.open {
    display: block;
    opacity: 1;
}

.mobile-toc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80%;
    background-color: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 2.5rem 2rem;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toc-drawer.open .mobile-toc-content {
    transform: translateY(0);
}

.mobile-toc-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Responsiveness (Mobile layout updates) */
@media (max-width: 1024px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    
    aside.toc-sidebar {
        display: none; /* Hide sidebar in medium/small screens */
    }
    
    .mobile-toc-trigger {
        display: inline-flex;
    }
    
    main.article-body {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    header.premium-header {
        padding: 2rem;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    h1.main-title {
        font-size: 2rem;
    }
    
    .eeat-container {
        grid-template-columns: 1fr;
    }
    
    main.article-body {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .loop-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .loop-step:not(:last-child)::after {
        content: '↓';
        right: auto;
        bottom: -20px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .related-articles {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
}

/* YMYL & EEAT Disclaimer Box Styling */
.disclaimer-short-box {
    background-color: rgba(217, 119, 6, 0.02);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.disclaimer-badge {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent-amber);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin-top: 0.15rem;
}

.disclaimer-full-box {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 4rem 0 2rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.disclaimer-full-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-title);
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.disclaimer-full-box h3 .badge-ymyl {
    font-size: 0.75rem;
    background-color: var(--accent-light);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
}

.disclaimer-full-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-title);
    margin: 1.5rem 0 0.5rem 0;
}

.disclaimer-full-box ul {
    margin-left: 1.25rem !important;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem !important;
    list-style-type: disc !important;
}

.disclaimer-full-box li {
    margin-bottom: 0.4rem;
    color: var(--text-body);
}

/* --- Public Form Element Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-title);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    color: var(--text-title);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

/* --- Public Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-title);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

/* --- Public Alert Boxes --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(225, 29, 72, 0.05);
    color: var(--accent-coral);
    border-color: rgba(225, 29, 72, 0.2);
}

/* --- Q&A Container Responsiveness --- */
@media (max-width: 1024px) {
    .qa-container {
        grid-template-columns: 1fr !important;
    }
    
    .category-box {
        position: static !important;
        margin-bottom: 1.5rem;
    }
    
    .qa-wrapper {
        grid-template-columns: 1fr !important;
    }
}


