/*
 * Dowry Calculator - Main Stylesheet
 * Mobile-first responsive design for dowrycalculator.films.name
 * Last updated: December 2025
 */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --secondary-color: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.site-logo img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.main-nav a:hover {
    background-color: var(--bg-light);
    text-decoration: none;
}

.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--primary-color);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    margin: 2px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {

    /* FORCEFUL Global Mobile Overflow Fix */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .main-content,
    .calculator-container,
    .content-section,
    .contact-section,
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    select,
    input,
    .form-group select,
    .form-group input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
        z-index: 999;
    }

    .mobile-nav-overlay.active {
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
        gap: 0.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
        text-align: left;
        border: 1px solid var(--border-color);
    }

    .main-nav a.active {
        border-color: var(--primary-color);
    }

    .site-logo {
        font-size: 1rem;
    }

    .site-logo img {
        width: 24px;
        height: 24px;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Hero Section Mobile */
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-intro {
        font-size: 0.9375rem;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .btn-jump-calculator {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    /* Calculator Form Mobile */
    .calculator-container {
        padding: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .calculator-container h2 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .calculator-container>p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .calculator-form {
        gap: 0.5rem;
        width: 100%;
    }

    .form-group {
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
        display: block;
    }

    .form-group select,
    .form-group input {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Placeholder contrast for select */
    .form-group select option[value=""] {
        color: #9ca3af;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
    }

    .form-actions .btn,
    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    /* Result Display Mobile */
    .result-container {
        padding: 1.25rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .result-warning {
        padding: 1rem;
    }

    .result-cta {
        display: block;
        text-align: center;
        padding: 0.875rem 1.25rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    /* Content Sections Mobile */
    .content-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.125rem;
    }

    /* Step Cards Mobile */
    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    /* Fact Cards Mobile */
    .fact-card {
        padding: 1rem;
    }

    .fact-icon {
        font-size: 1.5rem;
    }

    /* Purpose Columns Mobile */
    .purpose-do,
    .purpose-dont {
        padding: 1rem;
    }

    .purpose-do h3,
    .purpose-dont h3 {
        font-size: 1rem;
    }

    /* FAQ Section Mobile */
    .faq-container {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    /* Contact Cards Mobile */
    .contact-cards {
        gap: 0.625rem;
        margin-top: 0.75rem;
    }

    .contact-card {
        flex-direction: row;
        align-items: center;
        gap: 0.625rem;
        padding: 0.625rem 0.75rem;
    }

    .contact-card-icon {
        padding: 0.375rem;
    }

    .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card-content h3 {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }

    .contact-handle {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .contact-desc {
        font-size: 0.6875rem;
        line-height: 1.3;
        display: none;
    }

    /* Disclaimer Badge Mobile */
    .disclaimer-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        line-height: 1.4;
    }

    /* Important Note Mobile */
    .important-note {
        padding: 0.875rem 1rem;
    }

    .important-note p {
        font-size: 0.875rem;
    }

    /* FORCEFUL Contact Cards Mobile Fix */
    .contact-cards {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .contact-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-direction: row !important;
        padding: 0.75rem !important;
        gap: 0.625rem !important;
    }

    .contact-card * {
        color: #ffffff !important;
    }

    .contact-card h3,
    .contact-card .contact-handle,
    .contact-card .contact-desc,
    .contact-card p,
    .contact-card span {
        color: #ffffff !important;
    }

    .contact-card-icon {
        padding: 0.375rem !important;
        flex-shrink: 0 !important;
    }

    .contact-card-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .contact-card-content {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .contact-card-content h3 {
        font-size: 0.9375rem !important;
        margin-bottom: 0.125rem !important;
    }

    .contact-handle {
        font-size: 0.8125rem !important;
        margin-bottom: 0.125rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        word-break: break-all !important;
    }

    .contact-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .contact-desc {
        font-size: 0.75rem !important;
        display: none !important;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    min-height: calc(100vh - 200px);
}

.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-intro {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    font-size: 1.0625rem;
}

.disclaimer-badge {
    display: inline-block;
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid #fcd34d;
}

/* Jump to Calculator Button */
.btn-jump-calculator {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 8px 15px -3px rgba(220, 38, 38, 0.5);
    }
}

/* ========================================
   CALCULATOR FORM
   ======================================== */
.calculator-container {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group select,
.form-group input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background-color: #f8f9fa;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* ========================================
   RESULT DISPLAY
   ======================================== */
.result-container {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container.hidden {
    display: none;
}

.result-amount {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.result-warning {
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.result-warning p {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.result-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.result-cta:hover {
    background-color: #047857;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.content-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content {
    flex: 1;
}

.step-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.important-note {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.important-note p {
    margin: 0;
    font-size: 0.9375rem;
    color: #92400e;
}

/* ========================================
   WHY DOWRY IS WRONG SECTION
   ======================================== */
.why-dowry-wrong-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.fact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.fact-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.fact-content {
    flex: 1;
}

.fact-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.fact-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.facts-conclusion {
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

/* ========================================
   AWARENESS PURPOSE SECTION
   ======================================== */
.awareness-purpose-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.purpose-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.purpose-do,
.purpose-dont {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.purpose-do {
    border: 2px solid #22c55e;
}

.purpose-dont {
    border: 2px solid var(--primary-color);
}

.purpose-do h3,
.purpose-dont h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

.purpose-do h3 {
    color: #166534;
}

.purpose-dont h3 {
    color: var(--primary-dark);
}

.purpose-do ul,
.purpose-dont ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.purpose-do li,
.purpose-dont li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-dark);
}

.purpose-do li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.purpose-dont li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive for new sections */
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .purpose-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-container {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

.faq-answer {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--bg-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bg-light);
    font-size: 0.875rem;
}

.footer-cta-link {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-cta-link:hover {
    color: #fca5a5;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-link svg {
    flex-shrink: 0;
}

.social-x {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
}

.social-threads {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.social-email {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

/* Circular Social Icons for Footer */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-icon svg {
    flex-shrink: 0;
}

/* 4-Column Footer Grid for Desktop */
@media (min-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.contact-card-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    color: #ffffff;
}

.contact-handle {
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-desc {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
    color: #ffffff;
}

.contact-card-x {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.contact-card-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card-threads {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
}

.contact-card-email {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
}

/* Info Grid for Contact Page */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

/* Emergency Info Box */
.emergency-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
}

.emergency-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.emergency-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.emergency-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #fecaca;
}

.emergency-info li:last-child {
    border-bottom: none;
}

.emergency-note {
    font-size: 0.875rem;
    color: var(--primary-dark);
    margin: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 1rem 2rem;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .main-nav {
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .main-content {
        padding: 1rem 2rem 2rem;
    }

    .hero-section {
        padding: 1.5rem 2rem;
    }

    .calculator-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        grid-column: 1 / -1;
    }

    .result-value {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    /* Contact page responsive */
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .calculator-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-actions {
        grid-column: 1 / -1;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   BLOG ARTICLE PAGE STYLES
   ======================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Blog Article Container */
.blog-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Article Header */
.article-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.article-header h1 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 1rem 0 0.75rem;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Article Content */
.article-content {
    padding: 2rem;
    line-height: 1.8;
}

.article-intro {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content h2 {
    font-size: 1.375rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-top: 0.5rem;
}

.article-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-dark);
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content li strong {
    color: var(--text-dark);
}

/* Alert/Info Box in Articles */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.alert-info {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Article Footer */
.article-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
}

/* Related Posts Section - Distinct from Article */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius);
    border: 2px solid #86efac;
}

.related-posts h2 {
    font-size: 1.25rem;
    color: #166534;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: none;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-post-card {
    display: block;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid #bbf7d0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-post-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.related-post-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Responsive for Blog Articles */
@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2.25rem;
    }

    .article-content {
        padding: 2.5rem 3rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   BLOG LISTING STYLES
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-full-content {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.blog-full-content h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-full-content h3:first-child {
    margin-top: 0;
}

.blog-full-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-full-content ul,
.blog-full-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-full-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Read More Button */
.btn-read-more {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-read-more:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Blog Container & Loading */
.blog-container {
    min-height: 300px;
}

.blog-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Admin Guide Section */
.admin-guide {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-left: 4px solid #3b82f6;
}

.admin-guide h2 {
    color: #1e40af;
    border-bottom: none;
}

.admin-guide code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
}

.post-template-details {
    margin-top: 1rem;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-template-details summary {
    padding: 1rem;
    cursor: pointer;
    background-color: var(--bg-light);
    transition: background-color 0.2s ease;
}

.post-template-details summary:hover {
    background-color: var(--border-color);
}

.post-template-details[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.code-block {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Blockquote for blog */
.blog-full-content blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-dark);
}

/* Figure/Image in blog */
.blog-full-content figure {
    margin: 1.5rem 0;
}

.blog-full-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.blog-full-content figcaption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .blog-card-content {
        padding: 2rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   SHARE BUTTONS - Cross-browser compatible
   ======================================== */
.btn-share {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-share:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
}

.btn-twitter {
    background-color: #1DA1F2 !important;
    color: #ffffff !important;
}

.btn-facebook {
    background-color: #4267B2 !important;
    color: #ffffff !important;
}

.btn-copy {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.btn-copy.copied {
    background-color: #059669 !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .site-header,
    .site-footer,
    .btn,
    .form-actions {
        display: none;
    }

    body {
        background-color: white;
    }

    .calculator-container,
    .result-container,
    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========================================
   BLOG ARTICLE STYLES
   ======================================== */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Data Tables */
.data-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.data-table th,
.data-table td,
.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.data-table th,
.comparison-table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.data-table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.data-table tbody tr:hover,
.comparison-table tbody tr:hover {
    background-color: #fef2f2;
}

/* Info and Warning Boxes */
.warning-box,
.info-box,
.cta-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.warning-box {
    background-color: #fef2f2;
    border-left: 4px solid var(--primary-color);
}

.warning-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-box {
    background-color: #ecfdf5;
    border-left: 4px solid var(--secondary-color);
}

.info-box h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.cta-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid var(--primary-color);
    text-align: center;
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cta-box .btn {
    margin-top: 1rem;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-header h1 {
        font-size: 2.5rem;
    }
}

.article-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.article-card h3 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile responsive tables */
@media (max-width: 767px) {

    .data-table,
    .comparison-table {
        font-size: 0.8125rem;
    }

    .data-table th,
    .data-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   ARTICLE FEATURED IMAGES
   ======================================== */
.article-featured-image {
    margin: 1.5rem 0 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-featured-image figcaption {
    background-color: var(--bg-light);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   BLOG CARD HORIZONTAL LAYOUT
   ======================================== */

/* Desktop: Horizontal side-by-side layout */
.blog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image container - 30% width on desktop */
.blog-card-image {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.02);
}

/* Content container - 70% width on desktop */
.blog-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-content .blog-category {
    margin-bottom: 0.5rem;
}

.blog-card-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.blog-card-content .blog-meta {
    margin-bottom: 0.75rem;
}

.blog-card-content .blog-excerpt {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-content .read-more-btn {
    align-self: flex-start;
}

/* Blog grid - single column for horizontal cards */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mobile: Stacked vertical layout */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .blog-card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-card-content h2 {
        font-size: 1.125rem;
    }
}