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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

/* Updated header and nav styles */
header {
    width: 100%;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    height: 60px;
    margin-right: 20px;
    overflow: hidden;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo svg {
    height: 105px; /* Slightly larger for better cropping */
    width: auto;
    margin-top: 12px; /* Adjusted to center the visible portion */
    transition: transform 0.3s ease;
}

.logo svg:hover {
    transform: scale(1.05);
}

nav {
    flex-grow: 1;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

nav ul li {
    padding: 5px 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Existing wrapper and content styles */
.page-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
}

.container {
    width: 100%;
    background-color: var(--container-bg);
    border-color: var(--border-color);
    padding-top: 20px;  /* Add padding to top of container */
}

.container h1 {
    text-align: center;
    margin: 30px 0;
    color: var(--primary-dark);
}

.rate-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.rate {
    background-color: var(--container-bg);
    border-color: var(--border-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 3px solid var(--accent);
}

#buy-exchange-rate, #sell-exchange-rate {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
    text-align: center;
}

.rate h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

#last-update {
    text-align: center;
    color: #666;
    margin-top: 13px;
}

/* Rate label styling */
.rate-label {
    font-size: 1.6em;
    font-weight: 560;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 10px;
}

/* Make sure tooltip doesn't change label styling */
.tooltip.rate-label {
    display: block;
    font-size: 1.6em;
    font-weight: 560;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 10px;
}

/* Dark mode adjustments */
[data-theme="dark"] .rate-label,
[data-theme="dark"] .tooltip.rate-label {
    color: var(--accent);
}

/* Existing ad styles */
.ads {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Add SVG refinements */
.ads svg text {
    font-family: 'Roboto', sans-serif;
    fill: #666;
}

.ads-side svg {
    width: 100%;
    height: 100%;
}

.ads-top, .ads-bottom {
    height: 100px;
    margin: 10px 0;
}

.ads-top {
    margin-bottom: 40px;  /* Increase spacing between ad and title */
}

.ads-side {
    position: sticky;
    top: 20px;
    width: 160px;
    height: 600px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.ads-left {
    left: calc(50% - 760px);
}

.ads-right {
    right: calc(50% - 760px);
}

/* Existing footer styles */
footer {
    background-color: var(--primary-dark);  /* Change to dark background */
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    text-align: center;
    margin: 20px 0;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav li {
    margin: 5px 10px;
}

footer .footer-nav a {
    color: #DE9E35 !important; /* Gold text for all modes */
    text-decoration: none;
    margin: 0 10px;
}

footer .footer-nav a:hover {
    color: #ffffff !important; /* White color on hover */
}

.footer-nav a {
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: none;  /* Remove default background */
}

.footer-nav a:hover {
    color: #DE9E35;  /* Gold color on hover */
    background-color: rgba(0, 0, 0, 0.2);  /* Dark background only on hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.disclaimer {
    font-style: italic;
    opacity: 0.7;        /* Slightly more subtle for disclaimer */
}

/* Variation indicators styling */
.variation {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.variation.positive {
    color: var(--success);
    background-color: rgba(40, 167, 69, 0.1);
}

.variation.negative {
    color: var(--danger);
    background-color: rgba(220, 53, 69, 0.1);
}

.variation.neutral {
    color: var(--neutral);
    background-color: rgba(108, 117, 125, 0.1);
}

/* Icon styling */
.variation i {
    margin-right: 4px;
}

/* Updated media queries */
@media (max-width: 1520px) {
    .ads-side {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav a {
        padding: 5px 0;
        display: block;
    }
}

/* Add after your existing .variation styles */
:root {
    --primary-dark: #003a41;    /* Dark teal */
    --primary: #179486;         /* Teal */
    --accent: #DE9E35;         /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f9fa;
    --border-color: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --neutral: #6c757d;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #2C3E50;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(0,0,0,0.1);
}

/* Dark mode styles */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --container-bg: #2C3E50;
    --border-color: #444;
    --article-heading-color: #DE9E35; /* Accent color for article headings in dark mode */
    --article-subheading-color: #3DBFAC; /* Lighter teal for h3 in dark mode */
    --info-box-bg-dark: rgba(23, 148, 134, 0.25); /* Slightly more visible info boxes */
    --warning-box-bg-dark: rgba(222, 158, 53, 0.25); /* Slightly more visible warning boxes */
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #2C3E50;
    --container-bg: #ffffff;
    --border-color: #ddd;
}

.converter-box {
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 35px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.converter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #DE9E35 15%,
        #DE9E35 85%,
        transparent 100%
    );
}

[data-theme="dark"] .converter-box {
    border: 1px solid rgba(222, 158, 53, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.converter-box h2 {
    color: var(--text-color);  /* Reverted to original color */
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 500;
}

.converter-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;  /* Updated to align with inputs */
    gap: 15px;
    justify-content: center;
}

.converter-input {
    display: flex;
    gap: 10px;
}

.converter-input input {
    width: 150px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.converter-input select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}

#swap-currencies {
    background: #009B3A;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

#swap-currencies:hover {
    background: #007c2e;
}

/* Remove old theme switch styles */
.theme-switch-wrapper {
    display: none;
}

/* Add new dark mode button styles */
.dark-mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode-btn:hover i {
    transform: rotate(15deg);
}

/* Dark mode specific styles */
[data-theme="dark"] .dark-mode-btn {
    border-color: rgba(222, 158, 53, 0.3);
}

[data-theme="dark"] .dark-mode-btn:hover {
    background: rgba(222, 158, 53, 0.1);
    border-color: rgba(222, 158, 53, 0.4);
}

/* Theme switch styles */
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
    margin: 0;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #009B3A;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .fa-sun,
.slider .fa-moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: .4s;
}

.slider .fa-sun {
    left: 8px;
    color: #FFD700;
    opacity: 0;
}

.slider .fa-moon {
    right: 8px;
    color: #2C3E50;
}

input:checked + .slider .fa-sun {
    opacity: 1;
}

input:checked + .slider .fa-moon {
    opacity: 0;
}

/* Update dark mode specific styles */
[data-theme="dark"] .slider {
    background-color: #2C3E50;
}

[data-theme="dark"] .slider:before {
    background-color: #009B3A;
}

.converter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.converter-group label {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
}

/* Dark mode text colors */
[data-theme="dark"] h1,
[data-theme="dark"] .rate h2 {
    color: #DE9E35;  /* Using the existing gold/yellow color from the palette */
}

[data-theme="dark"] .crypto-table {
    background-color: var(--container-bg);
    color: var(--text-color);
}

[data-theme="dark"] .crypto-table th {
    background-color: #009B3A;
    color: #ffffff;
}

[data-theme="dark"] .crypto-table td {
    border-color: var(--border-color);
}

[data-theme="dark"] .disclaimer {
    background-color: var(--container-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .ads rect {
    fill: #2C3E50;
}

[data-theme="dark"] .ads text {
    fill: #DE9E35;
}

[data-theme="dark"] footer {
    background-color: var(--container-bg);
    color: var(--text-color);
}

[data-theme="dark"] .footer-nav a {
    color: #ffffff;
    background-color: rgba(222, 158, 53, 0.1);  /* Subtle gold tint background */
}

[data-theme="dark"] .footer-nav a:hover {
    color: #DE9E35;
    background-color: rgba(222, 158, 53, 0.2);  /* Stronger gold tint on hover */
}

[data-theme="dark"] .footer-bottom p {
    color: #ffffff;      /* Keep white text in dark mode */
}

/* Add these new styles */
.footer-nav {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.footer-nav span {
    color: var(--text-color);
}

.about-content,
.contact-content {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
}

/* Update ad placeholder style */
.ads text {
    font-size: 16px;
}

/* Update ads to be clickable */
.ads-bottom {
    cursor: pointer;
    margin: 20px 0;
    text-align: center;
}

.ads-bottom a {
    display: block;
    transition: opacity 0.3s ease;
}

.ads-bottom a:hover {
    opacity: 0.9;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    /* Hide side ads on mobile */
    .ads-side {
        display: none;
    }

    /* Adjust main content */
    .main-content {
        margin: 0;
        padding: 10px;
        width: 100%;
    }

    /* Adjust header and navigation */
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    /* Adjust rate container */
    .rate-container {
        flex-direction: column;
        gap: 20px;
    }

    .rate {
        width: 100%;
        margin: 0;
    }

    /* Adjust converter */
    .converter-container {
        flex-direction: column;
        gap: 20px;
    }

    .converter-group {
        width: 100%;
    }

    .converter-input {
        width: 100%;
        justify-content: center;
    }

    .converter-input input {
        width: 60%;
    }

    /* Adjust swap button position */
    #swap-currencies {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* Adjust theme switch position */
    .theme-switch-wrapper {
        top: auto;
        bottom: 80px;
        right: 20px;
        background-color: var(--container-bg);
        padding: 5px;
        border-radius: 34px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Adjust footer */
    footer {
        padding: 20px 10px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav span {
        display: none;
    }

    /* Adjust ads */
    .ads-top, .ads-bottom {
        margin: 10px 0;
    }

    .ads svg {
        height: 80px;
    }

    /* Adjust heading sizes */
    h1 {
        font-size: 1.5em;
        text-align: center;
    }

    .rate h2 {
        font-size: 1.2em;
    }

    /* Adjust containers */
    .container {
        padding: 15px;
        margin: 10px 0;
    }

    /* Adjust logo size */
    .logo svg {
        width: 80px;
        height: 80px;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-nav li {
        margin: 5px 0;
    }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
    .converter-input {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .converter-input input {
        width: 80%;
    }

    .converter-input select {
        width: 80%;
    }
}

/* Add new variation label styles */
.variation-label {
    font-size: 0.7em;
    color: var(--neutral);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: center;
}

[data-theme="dark"] .variation-label {
    color: rgba(222, 158, 53, 0.6);  /* Subtle gold color from palette */
}

/* Update existing variation styles */
.variation span {
    font-size: 0.75em;
    opacity: 0.8;
}

#buy-exchange-rate,
#sell-exchange-rate {
    text-align: center;
    margin: 10px 0;
}

.variation-label,
#buy-variation-hour,
#buy-variation-day,
#sell-variation-hour,
#sell-variation-day {
    text-align: center;
}

/* Update ad container styles */
.ads img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove AdSense specific styles */
.adsbygoogle {
    display: none;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-section ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 15px 0;
}

.about-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

.about-section ul li:before {
    content: "•";
    color: #DE9E35;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.disclaimer-box {
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

[data-theme="dark"] .about-section h2 {
    color: #DE9E35;
}

h1 {
    margin-top: 0;  /* Reset top margin since container has padding */
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    font-size: 2em;
}

.ads-top {
    margin-bottom: 40px;  /* Increase spacing between ad and title */
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 240px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Dark mode adjustments */
[data-theme="dark"] .tooltip .tooltiptext {
    background-color: #555;
    color: #fff;
}

[data-theme="dark"] .tooltip .tooltiptext::after {
    border-color: #555 transparent transparent transparent;
}

/* Crypto table styles */
.crypto-table-container {
    margin: 40px 0;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table th {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.crypto-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

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

.crypto-table tr:hover {
    background-color: var(--hover-bg);
}

.loading {
    padding: 30px;
    text-align: center;
    color: var(--text-color);
}

.info-section {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.info-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

[data-theme="dark"] .info-section h2 {
    color: #DE9E35;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 30px auto;
    line-height: 1.6;
    color: var(--text-color);
}

.footer-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.footer-description h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95em;
}

.terms-container {
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 30px 0;
}

.terms-disclaimer {
    border-left: 4px solid #DE9E35;
    padding: 20px 30px;
    background: rgba(222, 158, 53, 0.05);
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
}

.terms-disclaimer p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 0.2px;
}

.terms-section {
    margin: 40px 0;
}

.terms-section:first-child {
    margin-top: 0;
}

.terms-section h2 {
    color: #DE9E35;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.terms-section p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1.05em;
}

.terms-section ul li::before {
    content: "•";
    color: #DE9E35;
    position: absolute;
    left: 8px;
    font-size: 1.2em;
}

/* Dark mode adjustments */
[data-theme="dark"] .terms-disclaimer {
    background: rgba(222, 158, 53, 0.08);
}

[data-theme="dark"] .terms-container {
    border: 1px solid rgba(222, 158, 53, 0.1);
}

.youtube-news {
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 40px 0;
}

.youtube-news h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 500;
}

.youtube-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.youtube-video {
    flex: 0 0 560px; /* Adjust width as needed */
    max-width: 100%;
}

.youtube-video iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
}

.youtube-video {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.youtube-video h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.youtube-video .video-description {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

[data-theme="dark"] .youtube-video {
    background: var(--container-bg-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.youtube-news {
    padding: 2rem 0;
    background: var(--bg-color);
}

.youtube-videos {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.youtube-video {
    background: var(--container-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    border: 1px solid rgba(222, 158, 53, 0.1);
}

.youtube-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(222, 158, 53, 0.2);
}

.youtube-video h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--text-color);
}

.youtube-video h3 strong {
    color: #DE9E35;
    font-weight: 600;
}

.youtube-video h3:hover {
    color: #009B3A;
    transition: color 0.2s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    border-left: 3px solid #DE9E35;
    padding-left: 1rem;
    background: linear-gradient(to right, rgba(222, 158, 53, 0.05), transparent);
}

[data-theme="dark"] .youtube-video {
    background: var(--container-bg-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(222, 158, 53, 0.15);
}

[data-theme="dark"] .youtube-video:hover {
    border-color: rgba(222, 158, 53, 0.3);
}

[data-theme="dark"] .youtube-video h3:hover {
    color: #00b344;
}

[data-theme="dark"] .video-description {
    background: linear-gradient(to right, rgba(222, 158, 53, 0.1), transparent);
}

/* Responsive grid layouts */
@media (min-width: 768px) {
    .youtube-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .youtube-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .youtube-video {
        padding: 1rem;
    }

    .youtube-video h3 {
        font-size: 1.1rem;
    }

    .video-description {
        font-size: 0.9rem;
    }
}

[data-theme="dark"] .youtube-video {
    background: var(--container-bg-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.variation-hover {
    position: relative;
    cursor: help;
}

.previous-price {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--container-bg);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    z-index: 100;
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .previous-price {
    background: var(--container-bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.previous-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: inherit;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.variation-hover:hover .previous-price {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

[data-theme="dark"] .previous-price {
    background: var(--container-bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .previous-price::after {
    background: var(--container-bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.hover-indicator {
    font-size: 0.85em;
    color: var(--primary);
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: help;
    margin-left: 4px;
}

.variation-hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.variation-text {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

.hover-indicator {
    font-size: 0.85em;
    color: var(--primary);
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: help;
}

.variation-hover:hover .hover-indicator {
    opacity: 1;
    transform: scale(1.1);
    color: #DE9E35;
}

/* Add subtle pulse animation */
@keyframes subtle-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hover-indicator {
    animation: subtle-pulse 2s infinite;
}

[data-theme="dark"] .hover-indicator {
    color: #DE9E35;
    opacity: 0.8;
}

/* Article content improvements for dark mode */
[data-theme="dark"] .guide-content h2,
[data-theme="dark"] .article-content h2 {
    color: var(--article-heading-color);
    border-bottom-color: var(--article-subheading-color);
}

[data-theme="dark"] .guide-content h3,
[data-theme="dark"] .article-content h3 {
    color: var(--article-subheading-color);
    font-weight: 600;
}

/* Info and warning boxes in dark mode */
[data-theme="dark"] .info-box {
    background-color: var(--info-box-bg-dark);
    border-left-color: var(--primary);
}

[data-theme="dark"] .warning-box {
    background-color: var(--warning-box-bg-dark);
    border-left-color: var(--accent);
}

/* Better contrast for article intro in dark mode */
[data-theme="dark"] .article-intro {
    color: #ffffff;
    border-left-color: var(--article-subheading-color);
}

/* Improve blockquote readability in dark mode */
[data-theme="dark"] blockquote {
    color: #e0e0e0;
    border-left-color: var(--article-heading-color);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
}

/* Better contrast for table headers in dark mode */
[data-theme="dark"] .comparison-table th,
[data-theme="dark"] .wallet-table th {
    background-color: var(--primary);
}

/* Improve card headers visibility */
[data-theme="dark"] .wallet-card-header,
[data-theme="dark"] .strategy-card-header {
    background-color: var(--primary);
    color: #ffffff;
}

/* Table of contents links in dark mode */
[data-theme="dark"] .table-of-contents a {
    color: var(--article-subheading-color);
}

[data-theme="dark"] .table-of-contents a:hover {
    color: var(--accent);
}

/* ===== Article Styles ===== */
/* These styles apply to all article pages */

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

.article-content h2 {
    margin-top: 40px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.article-content h3 {
    margin-top: 25px;
    color: var(--primary-dark);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 40px;
    font-size: 0.9em;
    color: var(--neutral);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-meta .date {
    display: flex;
    align-items: center;
}

.article-meta .date i {
    margin-right: 5px;
}

.article-meta .author {
    display: flex;
    align-items: center;
}

.article-meta .author i {
    margin-right: 5px;
}

.article-intro {
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

/* Information boxes for articles */
.info-box {
    background-color: rgba(23, 148, 134, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.stat-box {
    background-color: rgba(222, 158, 53, 0.1);
    border: 1px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
}

.stat-box .stat-label {
    font-size: 0.9em;
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

blockquote {
    font-style: italic;
    border-left: 5px solid var(--accent);
    padding-left: 20px;
    margin: 30px 0;
    color: var(--text-color);
}

/* Article conclusion boxes */
.article-conclusion {
    background-color: var(--container-bg);
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-conclusion-note {
    background-color: rgba(23, 148, 134, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Images in articles */
.section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Table of contents */
.table-of-contents {
    background-color: var(--container-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.table-of-contents ol {
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--primary);
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Sources section */
.article-sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.article-sources h3 {
    margin-bottom: 15px;
}

.article-sources ol {
    padding-left: 20px;
}

.article-sources li {
    margin-bottom: 10px;
}

/* Related articles section */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 20px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-article-card {
    background-color: var(--container-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

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

.related-article-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.related-article-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Emphasis text */
.emphasis {
    font-style: italic;
    color: var(--primary-dark);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin: 20px 0;
}

/* Dark mode adjustments for article elements */
[data-theme="dark"] .info-box {
    background-color: rgba(23, 148, 134, 0.2);
}

[data-theme="dark"] .stat-box {
    background-color: rgba(222, 158, 53, 0.2);
}

[data-theme="dark"] .article-content h3 {
    color: var(--accent);
}

[data-theme="dark"] .article-intro {
    color: var(--text-light);
}

[data-theme="dark"] .emphasis {
    color: var(--accent);
}

[data-theme="dark"] .article-conclusion-note {
    background-color: rgba(23, 148, 134, 0.2);
}

[data-theme="dark"] .related-article-card h4 {
    color: var(--accent);
}

/* Glossary specific styles */
.glossary-term {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.glossary-term h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.glossary-term-tag {
    display: inline-block;
    background-color: rgba(23, 148, 134, 0.1);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

[data-theme="dark"] .glossary-term-tag {
    background-color: rgba(23, 148, 134, 0.2);
    color: var(--accent);
}

/* FAQ specific styles */
.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.faq-question:before {
    content: "Q";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.faq-answer {
    padding-left: 25px;
    position: relative;
}

.faq-answer:before {
    content: "A";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive adjustments for articles */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .section-image {
        margin: 20px auto;
    }
}

/* ===== FAQ/Q&A Page Specific Styles ===== */

.question-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.question-section:last-child {
    border-bottom: none;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.faq-question:before {
    content: "Q";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.faq-answer {
    padding-left: 25px;
    position: relative;
}

.faq-answer:before {
    content: "A";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Dark mode adjustment for Q&A */
[data-theme="dark"] .faq-question {
    color: var(--accent);
}

/* ===== Savings Protection Guide Specific Styles ===== */

/* Strategy Cards */
.strategy-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.strategy-card {
    background-color: var(--container-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.strategy-card-header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 1.2em;
}

.strategy-card-content {
    padding: 20px;
    flex-grow: 1;
}

.strategy-card ul {
    padding-left: 20px;
    margin: 15px 0;
}

.strategy-card li {
    margin-bottom: 8px;
}

.strategy-card-footer {
    background-color: rgba(0,0,0,0.03);
    padding: 12px 20px;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Warning Box */
.warning-box {
    background-color: rgba(222, 158, 53, 0.1);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    overflow-x: auto;
    display: block;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-weight: 500;
}

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

.comparison-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.rating-high {
    color: #28a745;
}

.rating-medium {
    color: #ffc107;
}

.rating-low {
    color: #dc3545;
}

/* Allocation Chart */
.allocation-chart {
    padding: 20px;
    margin: 20px 0;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.allocation-chart h3 {
    text-align: center;
    margin-bottom: 20px;
}

.chart-segment {
    height: 40px;
    display: flex;
    margin-bottom: 10px;
}

.chart-segment .segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.9em;
}

.chart-segment .segment-1 { background-color: var(--primary); }
.chart-segment .segment-2 { background-color: var(--accent); }
.chart-segment .segment-3 { background-color: #6c757d; }
.chart-segment .segment-4 { background-color: #28a745; }
.chart-segment .segment-5 { background-color: #dc3545; }

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color-1 { background-color: var(--primary); }
.legend-color-2 { background-color: var(--accent); }
.legend-color-3 { background-color: #6c757d; }
.legend-color-4 { background-color: #28a745; }
.legend-color-5 { background-color: #dc3545; }

/* Quiz */
.quiz-container {
    background-color: rgba(23, 148, 134, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.quiz-question {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.quiz-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quiz-options {
    margin-top: 10px;
}

.quiz-option {
    padding: 10px;
    margin: 5px 0;
    background-color: var(--container-bg);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quiz-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Guide Content - rename to be consistent with article-content */
.guide-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

.guide-content h2 {
    margin-top: 40px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.guide-content h3 {
    margin-top: 25px;
    color: var(--primary-dark);
}

.guide-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Dark mode adjustments */
[data-theme="dark"] .warning-box {
    background-color: rgba(222, 158, 53, 0.2);
}

[data-theme="dark"] .quiz-option:hover,
[data-theme="dark"] .comparison-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .strategy-card-footer {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .strategy-card-container {
        grid-template-columns: 1fr;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Guide Article Containers */
.guides-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.guide-article-container {
    background-color: var(--container-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-article-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.guide-article-image {
    height: 240px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.guide-article-content {
    padding: 25px;
}

.guide-article-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.article-meta-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--neutral);
}

.article-date {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.article-date i, .article-reading-time i {
    margin-right: 5px;
}

.article-reading-time {
    display: flex;
    align-items: center;
}

.guide-article-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.guide-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    gap: 10px;
}

.article-tag {
    background-color: rgba(0, 155, 58, 0.1);
    color: var(--primary);
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 4px;
}

.read-more-link {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.read-more-link i {
    margin-left: 5px;
}

.read-more-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

.all-guides-link {
    text-align: center;
    margin-top: 30px;
}

.primary-button {
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

.primary-button i {
    margin-left: 8px;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Section title styling */
.section-title {
    color: var(--primary-dark);
    font-size: 1.8em;
    text-align: center;
    margin: 40px 0 25px;
    font-weight: 500;
}

/* Dark mode adjustments */
[data-theme="dark"] .guide-article-content h3 {
    color: var(--accent);
}

[data-theme="dark"] .article-tag {
    background-color: rgba(0, 155, 58, 0.3);
}

[data-theme="dark"] .section-title {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guides-container {
        grid-template-columns: 1fr;
    }
    
    .guide-article-image {
        height: 180px;
    }
    
    .guide-article-content {
        padding: 20px;
    }
    
    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-date {
        margin-bottom: 5px;
    }
}

/* Text slider styles */
.intro-text-container {
    margin: 25px 0;
    position: relative;
    min-height: 67px;  
    padding-bottom: 5px; /* Added padding at the bottom */
}

.intro-text-slider .slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease;
    width: 100%;
    text-align: center;
}

.intro-text-slider .slide.active {
    opacity: 1;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
    position: absolute;  /* Position absolutely */
    bottom: 0;  /* Place at bottom of container */
    left: 0;
    right: 0;  /* Stretch across container width */
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.indicator.active {
    background-color: #009B3A;
}