/* Modern Poker Dictionary Design System */
:root {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #3498DB;
    --background: #F8F9FA;
    --text: #2C3E50;
    --text-light: #6C757D;
    --text-dark: #1a2530;
    --white: #FFFFFF;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --radius: 8px;
    --primary-light: #3A5875;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
#header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Main Container */
.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.container-full {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
}

.container-trust {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 120px;
}

.container-trust h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.75rem;
    line-height: 1.2;
}

.container-trust h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.container-trust p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.container-trust ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.container-trust ul li {
    margin-bottom: 0.5rem;
}

/* Content Area */
.content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.term-article h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.term-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

/* Sidebar */
#term-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.related-terms {
    list-style: none;
}

.related-terms li {
    margin-bottom: 0.75rem;
}

.related-terms a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-terms a:hover {
    color: var(--accent);
}

/* Category List in Sidebar */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--background);
    color: var(--accent);
    padding-left: 1rem;
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-bar {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
}

.search-button {
    padding: 0.8rem 2rem;
    white-space: nowrap;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: #c0392b;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-card h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.category-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Guide Cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.guide-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.guide-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.1rem;
}

.update-list, .quick-links {
    list-style: none;
    padding: 0;
}

.update-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--background);
}

.update-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.update-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

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

.quick-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Category Filters */
.filter-widget .category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-widget .category-filter {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--background);
    width: 100%;
    text-align: left;
}

.filter-widget .category-filter:hover {
    background: var(--accent);
    color: var(--white);
    padding-left: 1.5rem;
}

.filter-widget .category-filter.active {
    background: var(--primary);
    color: var(--white);
    padding-left: 1.5rem;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.category-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    background: #f0f0f0;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.category-tag:hover {
    background: #e8e8e8;
    color: #444;
}

/* Term Card Styles */
.term-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.term-card h3 {
    margin: 0;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.term-card h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.term-card h3 a:hover {
    color: var(--accent);
}

.term-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.term-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    margin-bottom: 0.25rem;
}

.read-more:hover {
    color: var(--primary);
}

.term-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Article Cards - No Image Version */
.article-card-no-image {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 5px solid var(--accent);
}

.article-card-no-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-articles .article-card-no-image {
    grid-column: span 2;
    background-color: #f8f9fa;
    border-left: 5px solid var(--secondary);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.featured-articles .article-card-no-image .article-content {
    padding: 2.5rem;
}

.featured-articles .article-card-no-image h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.featured-articles .article-card-no-image p {
    font-size: 1.1rem;
    color: var(--text);
}

.featured-articles .article-card-no-image .article-category {
    background-color: var(--secondary);
    color: white;
}

.featured-articles .article-card-no-image .article-date {
    color: var(--text-light);
}

.featured-articles .article-card-no-image .read-more {
    color: var(--secondary);
    border-color: transparent;
}

.featured-articles .article-card-no-image .read-more:hover {
    border-color: var(--secondary);
}

.article-card-no-image.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #3A5875, #1a2530);
    color: white;
    border-left: none;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.article-card-no-image.featured .article-content {
    padding: 3rem;
}

.article-card-no-image.featured h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: white;
}

.article-card-no-image.featured p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-card-no-image.featured .article-category {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.article-card-no-image.featured .article-date {
    color: rgba(255, 255, 255, 0.8);
}

.article-card-no-image.featured .read-more {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

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

.article-card-no-image .article-category {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-no-image h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-card-no-image p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card-no-image .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-card-no-image .article-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-card-no-image .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.article-card-no-image .read-more:hover {
    border-color: var(--primary);
}

/* Terms Grid Layout */
.terms-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .terms-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .terms-list {
        grid-template-columns: 1fr;
    }
}

/* Category Grid on Homepage */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-card h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.category-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Letter Navigation */
.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.letter-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.letter-nav a[data-letter="all"] {
    width: auto;
    padding: 0 1rem;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.letter-nav a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.letter-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.letter-nav a.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Category Filters in Sidebar */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-filter {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s ease;
    background: var(--background);
    min-width: 175px;
    min-height: 3rem;
}

.category-filter:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateX(0.5rem);
}

.category-filter.active {
    background: var(--primary);
    color: var(--white);
    transform: translateX(0.5rem);
}

/* Letter Sections */
.letter-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.letter-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.5rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-results p {
    color: var(--text-light);
    margin: 0;
}

/* Footer Styles */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .category-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-section ul {
        align-items: center;
    }
    
    .footer-section a:hover {
        transform: none;
    }
}

/* Sidebar Styles */
.sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
}

.sidebar h3 {
    color: var(--primary);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-filter {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s ease;
    background: var(--background);
    min-height: 3rem;
}

.category-filter:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateX(0.5rem);
}

.category-filter.active {
    background: var(--primary);
    color: var(--white);
    transform: translateX(0.5rem);
}

/* Typography and Spacing */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

h2 {
    margin: 1.5em 0 0.8em;  
    padding-top: 0.5em;     
    font-size: 24px;
    color: var(--primary);
}

h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: -0.5rem 0 1.5rem;
}

/* Glossary Styles */
.glossary-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1200px) {
    .glossary-list {
        grid-template-columns: 1fr;
    }
}

.wpglossary {
    margin-top: 0.8em;
}

.glossary-list {
    margin: 0.8em 0;
    column-count: 2;
    column-gap: 1.5em;
    max-height: 600px;     
}

.glossary-item {
    margin-bottom: 0.3em;  
    padding: 0.2em 0;      
    break-inside: avoid;
}

.glossary-item + .glossary-item {
    border-top: 1px solid var(--border);  
}

/* Popular Terms Section */
.popular-terms {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.popular-terms h2 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.popular-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glossary-list {
        grid-template-columns: 1fr;
    }
    
    .glossary-item {
        margin-bottom: 1rem;
    }
    
    .popular-terms-grid {
        grid-template-columns: 1fr;
    }
}

.quick-start {
    margin-bottom: 1.2em;
}

.browse-category {
    margin-top: 1.5em;
}

@media screen and (max-width: 768px) {
    .glossary-list {
        column-count: 1;
        max-height: none;
    }
    
    h2 {
        margin: 1.2em 0 0.6em;
    }
}

/* Hero Variations */
.hero-small {
    min-height: 200px;
    padding: 2rem 0;
}

/* Guide Styles */
.guides-section {
    margin-bottom: 4rem;
}

.guide-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -1.25rem -1.25rem 1.25rem -1.25rem;
}

/* Article Styles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-articles .article-grid {
    grid-template-columns: 1fr;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.featured .article-image {
    height: 400px;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--background);
}

.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .article-card.featured {
        grid-template-columns: 1fr;
    }
    
    .featured .article-image {
        height: 200px;
    }
}

/* Strategy Article Styles */
.article-hero {
    background: linear-gradient(to right, var(--primary), #34495e);
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
    display: none;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.guide-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.guide-article h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.guide-article h2.main-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.guide-article h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.article-toc {
    background: #f5f7f9;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.article-toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
}

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

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

.article-toc a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-toc a:hover {
    color: var(--accent);
}

.article-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

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

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

.strategy-tip {
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.strategy-tip h4 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.strategy-tip p {
    margin-bottom: 0;
}

.next-steps {
    background: #f5f7f9;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.next-steps h3 {
    margin-top: 0;
    color: var(--primary);
}

.next-steps ul {
    margin-bottom: 0;
}

.read-more-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.read-more-button:hover {
    background: #2980b9;
}

.strategy-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.strategy-card-content {
    padding: 1.5rem;
}

.strategy-card h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 1rem;
}

.strategy-card p {
    margin-bottom: 1rem;
}

.strategy-card ul {
    margin-bottom: 0;
}

.featured-article {
    background: #f5f7f9;
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.featured-article h3 {
    margin-top: 0;
    color: var(--primary);
}

.conclusion {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
}

/* Header Images for Articles and Hero Sections */
.article-header-image,
.hero-header-image {
    width: 100%;
    max-width: 700px; /* Limit maximum width */
    height: auto;
    display: block;
    margin-left: auto;  /* Center the image */
    margin-right: auto; /* Center the image */
    margin-bottom: 1.5em; /* Adjust as needed for spacing */
    border-radius: 8px;   /* Optional: for rounded corners */
    object-fit: cover;    /* Ensures the image covers the allocated space */
    max-height: 300px;    /* Reduced max-height */
}
