@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    /* Soothing and Calming Color Palette */
    --bg-light: #f7f9f6;        /* Soft sage cream */
    --bg-surface: #ffffff;      /* White for cards and widgets */
    --bg-accent: #eef3eb;       /* Calming soft green tint */
    --border-color: #e2e8df;    /* Light organic green-gray border */
    
    --text-dark: #1e2826;       /* Deep slate/forest green text */
    --text-muted: #5a6b65;      /* Muted gray-green */
    
    /* Brand Accent Colors */
    --accent-teal: #148f86;     /* Calming therapeutic teal */
    --accent-teal-hover: #0d6b64;
    --accent-sage: #5b8266;     /* Organic sage green */
    --accent-gold: #c69b35;     /* Warm therapeutic gold */
    --accent-gold-hover: #a88126;
    --accent-rose: #d6827a;     /* Soft reassuring rose */
    
    --accent-color: var(--accent-teal);
    
    --font-title: 'DM Serif Display', serif;
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Lora', serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(30, 40, 38, 0.03);
    --shadow-md: 0 8px 30px rgba(30, 40, 38, 0.06);
    --border-radius: 12px;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--accent-teal-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* Header Masthead & Navigation */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.site-logo {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-icon-wrapper {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-sage) 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(20, 143, 134, 0.12);
    transition: var(--transition);
}

.logo-icon-wrapper i {
    color: #ffffff !important;
}

.site-logo:hover .logo-icon-wrapper {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 14px rgba(20, 143, 134, 0.22);
}

.site-logo span {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-teal);
    margin-left: -5px;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-teal);
    background-color: var(--bg-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
}

.hero-section {
    background-color: #f7f9f6;
    background-image: 
        radial-gradient(at 10% 20%, rgba(20, 143, 134, 0.06) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(91, 130, 102, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(214, 130, 122, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 90%, rgba(198, 155, 53, 0.05) 0px, transparent 50%);
    padding: 5.5rem 0 4.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-color: var(--bg-light);
    clip-path: ellipse(60% 10px at 50% 100%);
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--bg-surface);
}

.btn-primary:hover {
    background-color: var(--accent-teal-hover);
    color: var(--bg-surface);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-accent);
}

/* Main Layout & Grid */
.homepage-layout {
    width: 100%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Home Tests Layout */
.tests-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.test-home-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.test-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-teal);
}

.test-home-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-home-info h4 {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.test-home-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Article Cards */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

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

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

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

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    align-self: flex-start;
    background-color: var(--bg-accent);
    color: var(--accent-sage);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.read-more {
    font-weight: 600;
    color: var(--accent-teal);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Sidebar Widgets */
.homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-accent);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Spotlight Widget */
.spotlight-widget {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.spotlight-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    z-index: 1;
}

.spotlight-img-wrapper {
    height: 160px;
    overflow: hidden;
}

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

.spotlight-content {
    padding: 1.25rem;
}

.spotlight-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.spotlight-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.spotlight-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Fact Widget */
.fact-widget {
    background-color: var(--bg-accent);
    border-color: #d1dfcf;
}

.fact-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-style: italic;
}

.widget-btn {
    background: none;
    border: none;
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.widget-btn:hover {
    color: var(--accent-teal-hover);
}

/* Article Details Page */
.article-container {
    width: 100%;
    max-width: 800px;
    min-width: 0;
    overflow-x: hidden;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-title-detail {
    font-size: 2.25rem;
    line-height: 1.25;
}

.article-cover-img-wrapper {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 400px;
}

.article-cover-img {
    width: 100%;
    object-fit: cover;
}

/* Bullet Box (Summary) */
.summary-bullets-box {
    background-color: var(--bg-accent);
    border-left: 4px solid var(--accent-sage);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 2.5rem;
}

.summary-bullets-box h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.summary-bullets-box ul {
    padding-left: 1.25rem;
}

.summary-bullets-box li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* TOC (Table of Contents) */
.toc-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-item {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.toc-item-h3 {
    padding-left: 1rem;
    font-size: 0.9rem;
}

/* Article Body Typography */
.article-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem 0;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-teal);
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-accent);
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* Alert blocks inside body */
.article-body blockquote.note {
    border-left-color: var(--accent-sage);
}

.article-body blockquote.important {
    border-left-color: var(--accent-rose);
    background-color: #fdf5f5;
}

/* Markdown Tables & Responsive Wrappers */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-soft);
}

.table-responsive table {
    width: 100%;
    min-width: 600px; /* Forces scrollbar on narrow screens for readability */
    border-collapse: collapse;
    margin: 0 !important;
    font-size: 0.95rem;
}

.table-responsive th, .table-responsive td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-dark);
}

.table-responsive th:last-child, .table-responsive td:last-child {
    border-right: none;
}

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

.table-responsive th {
    background-color: var(--bg-accent);
    font-weight: 700;
    color: var(--accent-teal-hover);
}

.table-responsive tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Footnotes */
.footnotes {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ Accordion (automatically compiled) */
.faq-section-wrapper {
    margin-top: 3rem;
    border-top: 2px solid var(--bg-accent);
    padding-top: 2rem;
}

.faq-title-main {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    font-size: 1.05rem;
    outline: none;
    user-select: none;
    color: var(--text-dark);
}

.faq-answer {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-accent);
    padding-top: 0.75rem;
}

/* Read Next Section */
.read-next-section {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.read-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.read-next-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.read-next-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-teal);
}

.read-next-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.read-next-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: normal;
}

.read-next-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Alert Block & Note Box Styling overrides */
.alert-block, .article-note-box {
    border-left: 4px solid var(--accent-teal) !important;
    background-color: var(--bg-accent) !important;
    padding: 1.25rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
    box-shadow: var(--shadow-soft) !important;
    font-family: var(--font-body), serif !important;
}

.alert-block-important, .alert-block-warning, .alert-block-caution {
    border-left-color: var(--accent-rose) !important;
    background-color: #fdf3f2 !important; /* soft rose tint */
}

.alert-block-tip {
    border-left-color: var(--accent-sage) !important;
    background-color: var(--bg-light) !important;
}

.alert-block-note {
    border-left-color: var(--accent-teal) !important;
    background-color: var(--bg-accent) !important;
}

.alert-title, .article-note-box strong {
    font-family: var(--font-title) !important;
    font-size: 1.15rem !important;
    font-weight: normal !important;
    color: var(--text-dark) !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.alert-block p, .article-note-box p {
    font-style: normal !important; /* Avoid italicizing entire warning blocks! */
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: var(--text-dark) !important;
    margin: 0 !important;
}

/* Search Box and Ticker */
.inner-search-section {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.search-box {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-box:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 143, 134, 0.1);
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cat-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn:hover, .cat-btn.active {
    background-color: var(--accent-teal);
    color: #ffffff;
    border-color: var(--accent-teal);
}

/* Interactive Test UI Components */
.test-hub-header {
    background: linear-gradient(135deg, #d3e5e1 0%, #e8f0ed 100%);
    padding: 4rem 0 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.test-container {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.test-progress-container {
    margin-bottom: 2.5rem;
}

.test-progress-bar {
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.test-progress-fill {
    height: 100%;
    background-color: var(--accent-teal);
    width: 0%;
    transition: width 0.3s ease;
}

.test-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.question-card {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.question-card.active {
    display: block;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.option-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.option-item:hover {
    background-color: var(--bg-accent);
    border-color: var(--accent-teal);
}

.option-item.selected {
    background-color: var(--bg-accent);
    border-color: var(--accent-teal);
    color: var(--accent-teal-hover);
    box-shadow: 0 0 0 1px var(--accent-teal);
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-item.selected .option-radio {
    border-color: var(--accent-teal);
}

.option-item.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--accent-teal);
    border-radius: 50%;
}

.test-controls {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.test-results-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.results-hero {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.results-badge {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin: 1rem 0;
}

.results-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contacts-widget {
    background-color: #fdfaf3;
    border: 1px solid #f3ebd4;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.contacts-widget h4 {
    color: var(--accent-gold-hover);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contacts-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid #eedcba;
    border-radius: 8px;
    padding: 1rem;
}

.contact-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-phone {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-gold-hover);
}

.contact-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer & Support Partners */
.support-partners-section {
    background-color: var(--bg-accent);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
}

.support-partners-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.support-partners-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.support-link {
    color: var(--text-muted);
}

.support-link:hover {
    color: var(--accent-teal);
}

.support-separator {
    color: #cdd8ca;
}

.site-footer {
    background-color: var(--text-dark);
    color: #e2e8e5;
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
}

.site-footer a {
    color: #b9cfc8;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-family: var(--font-title);
    font-weight: normal;
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand h2 span {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-teal);
    margin-left: 2px;
}

.footer-brand p {
    line-height: 1.6;
    color: #b9cfc8;
}

.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-weight: 700;
}

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

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #2e3c39;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #93ab9f;
}

/* Article Two-Column Sidebar Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.article-main-col {
    min-width: 0;
}

.article-sidebar-col {
    position: sticky;
    top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget .widget-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.sidebar-widget .widget-title i {
    color: var(--accent-teal);
}

.summary-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-bullets-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.summary-bullets-list li::before {
    content: "•";
    color: var(--accent-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

.toc-item {
    margin-bottom: 0.65rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
    display: block;
}

.toc-link:hover, .toc-link.active {
    color: var(--accent-teal);
    font-weight: 600;
    padding-left: 4px;
}

/* Recent Posts Widget Styling Overrides */
.recent-posts-links a {
    color: var(--text-dark) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: var(--transition) !important;
}

.recent-posts-links a:hover {
    color: var(--accent-teal) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .article-main-col {
        width: 100%;
        min-width: 0;
    }
    
    .article-sidebar-col {
        position: static;
        width: 100%;
    }

    .tests-home-grid {
        grid-template-columns: 1fr 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem; /* Compact padding to fit mobile viewport */
    }

    .tests-home-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.15rem;
    }
    
    /* Compact logo size on mobile to prevent stretching */
    .site-logo {
        font-size: 1.45rem;
    }
    
    .logo-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    /* Wrap meta details so they don't stretch the page width */
    .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Mobile Header Hamburger slide down */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem;
        position: relative;
    }
    
    .nav-toggle-text {
        display: none; /* Hide MENU text to save precious space */
    }
    
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        font-size: 1.25rem; /* Pure icon toggle look */
        color: var(--text-dark);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        border-radius: 6px;
        transition: var(--transition);
    }
    
    .nav-toggle:hover, .nav-toggle.active {
        background-color: var(--bg-accent);
        color: var(--accent-teal);
    }
    
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: var(--shadow-premium);
        z-index: 100;
    }
    
    .site-nav.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .article-container {
        padding: 2rem 1.25rem;
    }
    .article-title-detail {
        font-size: 1.75rem;
    }
    .test-container {
        padding: 1.5rem;
    }
    .sidebar-widget {
        padding: 1.25rem;
    }
    .read-next-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
