/* ============================================
   MAIN STYLES - Fiin Credit Website
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fiin Credit Brand Colors - Lavender Blue Theme */
    --primary-color: #7D80E8;
    --primary-dark: #5A5DAA;
    --primary-light: #9A9DE8;
    --secondary-color: #8B8FD9;
    --accent-color: #B4B7F0;
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.lead-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* Page Sections */
.page-section {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

.articles-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Featured Article Card - Large and prominent */
.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
}

.article-card.featured .article-card-image {
    height: 100%;
    min-height: 350px;
}

.article-card.featured .article-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card.featured .article-card-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.article-card.featured .article-card-description {
    display: block;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

.article-card-description .article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all var(--transition-fast);
    display: inline-block;
    margin: 0 2px;
}

.article-card-description .article-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    background-color: var(--bg-light);
    padding: 2px 4px;
    border-radius: 4px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

.article-card-content {
    padding: var(--spacing-md);
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.article-card-description {
    display: none;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: var(--spacing-md);
    backdrop-filter: blur(5px);
}

.article-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    max-width: 95%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.article-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.article-modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.article-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.article-modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.article-modal-images {
    width: 100%;
}

.article-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.article-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
}

.article-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.article-gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.article-gallery-image.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    z-index: 3000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    cursor: zoom-out;
    background: transparent;
    padding: 0;
    object-fit: contain;
    filter: brightness(1.0) contrast(1.0);
}

.article-content-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) auto;
    box-shadow: var(--shadow-sm);
    display: block;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.article-content-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.article-content-image.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 3000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    cursor: zoom-out;
    background: transparent;
    padding: 0;
    object-fit: contain;
    filter: brightness(1.0) contrast(1.0);
}

/* Overlay when image is expanded */
body:has(.article-content-image.expanded)::before,
body:has(.article-gallery-image.expanded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2999;
    cursor: pointer;
}

.article-modal-body {
    padding: var(--spacing-md);
}

.article-modal-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-line;
}

.article-modal-text .article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all var(--transition-fast);
    display: inline-block;
    margin: 0 2px;
}

.article-modal-text .article-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    background-color: var(--bg-light);
    padding: 2px 4px;
    border-radius: 4px;
}

.article-modal-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.article-modal-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Article Page Styles */
body:has(.article-page-section) {
    padding-top: 1.5rem !important;
}

.article-page-section .page-section {
    padding-top: 0;
    padding-bottom: var(--spacing-xl);
    margin-top: 0;
}

.article-page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 var(--spacing-lg) 0;
}

.article-back-button-wrapper {
    position: sticky;
    top: 72px;
    z-index: 99;
    background: transparent;
    padding: 0;
    margin: 0 auto var(--spacing-sm) auto;
    max-width: 1000px;
}

.article-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.article-back-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.article-page-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    /* Seamless with body above */
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: var(--spacing-sm);
}

.article-page-gallery[style*="display: none"] {
    display: none !important;
}

.article-page-body {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: var(--spacing-sm);
}

.article-page-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-line;
}

.article-page-text .article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all var(--transition-fast);
    display: inline-block;
    margin: 0 2px;
}

.article-page-text .article-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    background-color: var(--bg-light);
    padding: 2px 4px;
    border-radius: 4px;
}

#articleLinkContainer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
}

/* Scrollbar styling for modal */
.article-modal-content::-webkit-scrollbar {
    width: 8px;
}

.article-modal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.article-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.article-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* About Page Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.about-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

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

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.about-card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.about-card-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Statistics */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: grid;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

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

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card-text {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .page-section {
        padding: var(--spacing-lg) 0;
    }
    
    .articles-section {
        padding: var(--spacing-lg) 0;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .lead-text {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .article-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .article-card.featured {
        grid-template-columns: 1fr;
        margin-bottom: var(--spacing-sm);
    }
    
    .article-card.featured .article-card-image {
        min-height: 250px;
    }
    
    .article-card.featured .article-card-content {
        padding: var(--spacing-md);
    }
    
    .article-card.featured .article-card-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .article-card.featured .article-card-description {
        font-size: 1rem;
    }
    
    .article-card-content {
        padding: var(--spacing-sm);
    }
    
    .article-card-title {
        font-size: 1.125rem;
    }
    
    .article-modal-content {
        max-width: 95%;
        margin: var(--spacing-sm);
        max-height: 95vh;
    }
    
    .article-modal-header {
        padding: var(--spacing-sm);
    }
    
    .article-modal-title {
        font-size: 1.25rem;
    }
    
    .article-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .article-modal-body {
        padding: var(--spacing-sm);
    }
    
    .article-modal-image {
        max-height: 250px;
    }
    
    .article-modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .article-gallery-image {
        height: 150px;
    }
    
    body:has(.article-page-section) {
        padding-top: 1.25rem !important;
    }
    
    .article-page-section .page-section {
        padding-top: 0;
        padding-bottom: var(--spacing-xl);
        margin-top: 0;
    }
    
    .article-back-button-wrapper {
        top: 62px;
        padding: 0;
        margin: 0 auto var(--spacing-xs) auto;
    }
    
    .article-page-content {
        padding: 0 0 var(--spacing-md) 0;
    }
    
    .article-back-button {
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .article-page-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .article-page-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .article-page-body {
        padding: var(--spacing-md);
    }
    
    .article-page-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-modal-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
    
    .contact-form-wrapper,
    .contact-card {
        padding: var(--spacing-sm);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .about-card {
        padding: var(--spacing-sm);
    }
    
    .about-card-title {
        font-size: 1.25rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-submit {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .page-section {
        padding: var(--spacing-md) 0;
    }
    
    .articles-section {
        padding: var(--spacing-md) 0;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }
    
    .lead-text {
        font-size: 0.95rem;
        padding: 0 var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .articles-grid {
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
    }
    
    .article-card.featured .article-card-image {
        min-height: 200px;
    }
    
    .article-card.featured .article-card-content {
        padding: var(--spacing-sm);
    }
    
    .article-card.featured .article-card-title {
        font-size: 1.25rem;
    }
    
    .article-card.featured .article-card-description {
        font-size: 0.95rem;
    }
    
    .article-card-image {
        height: 180px;
    }
    
    .article-card-content {
        padding: var(--spacing-xs);
    }
    
    .article-card-title {
        font-size: 1rem;
    }
    
    .article-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .article-modal-header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .article-modal-title {
        font-size: 1.125rem;
    }
    
    .article-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .article-modal-body {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .article-modal-image {
        max-height: 200px;
    }
    
    .article-modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }
    
    .article-gallery-image {
        height: 120px;
    }
    
    .article-modal-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    body:has(.article-page-section) {
        padding-top: 1rem !important;
    }
    
    .article-page-section .page-section {
        padding-top: 0.5rem;
        margin-top: 0;
    }
    
    .article-back-button-wrapper {
        top: 58px;
        padding: 0;
        margin: 0 auto var(--spacing-xs) auto;
    }
    
    .article-page-content {
        padding: 0 0 var(--spacing-sm) 0;
    }
    
    .article-back-button {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .article-page-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
        line-height: 1.4;
    }
    
    .article-page-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }
    
    .article-page-body {
        padding: var(--spacing-sm);
    }
    
    .article-page-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .article-gallery-image {
        height: 120px;
    }
    
    .contact-grid {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .contact-form-wrapper,
    .contact-card {
        padding: var(--spacing-xs);
    }
    
    .contact-card-title {
        font-size: 1.125rem;
    }
    
    .form-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .about-card {
        padding: var(--spacing-xs);
    }
    
    .about-icon {
        font-size: 2.5rem;
    }
    
    .about-card-title {
        font-size: 1.125rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-xs);
    }
    
    .footer-content {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-title {
        font-size: 1.125rem;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-description,
    .footer-links a,
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-sm);
        font-size: 0.85rem;
    }
}

