/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2d5a4e;
    --accent-color: #4a9b8e;
    --text-color: #e0e8f0;
    --light-bg: #1e3d4f;
    --white: #ffffff;
    --border-color: #2a5a4a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
    --dark-blue: #0d1b2a;
    --dark-green: #1b4332;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Load Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.6s ease-out;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    box-shadow: var(--shadow);
    z-index: 999;
    padding: 1rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 2px solid var(--accent-color);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    display: block;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
}

.mobile-menu ul li a:hover {
    background: rgba(74, 155, 142, 0.2);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../image/hero-bg.svg') center/cover;
    opacity: 0;
    display: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeIn 1s ease-out;
}

/* Card Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.6s ease-out backwards;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card p {
    color: var(--text-color);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Ensure hero section also has border */
section.hero {
    border-bottom: 2px solid var(--accent-color);
}

.section-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cards-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Info Cards */
.info-card {
    text-align: center;
}

.info-card img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.read-more-btn:hover {
    background: #3a7a6d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Article Page Styles */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: 1px solid var(--accent-color);
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(30, 61, 82, 0.9) 0%, rgba(50, 100, 88, 0.9) 100%);
}

.back-link::before {
    content: '← ';
    margin-right: 0.5rem;
}

/* Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--accent-color);
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.info-table th {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    color: var(--white);
    font-weight: 600;
}

.info-table tr:hover {
    background: rgba(74, 155, 142, 0.2);
}

/* Table Wrapper for Mobile */
.table-wrapper {
    width: 100%;
    overflow-x: visible;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

/* Accordion Styles */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(27, 67, 50, 0.9) 100%);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(20, 40, 60, 0.9) 0%, rgba(35, 80, 60, 0.9) 100%);
}

.accordion-header h3 {
    color: var(--white);
    font-size: 1.2rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 1.5rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out backwards;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 1.5rem;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.timeline-item img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-item:hover img {
    transform: scale(1.02);
}

.accordion-content img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.accordion-content:hover img {
    transform: scale(1.01);
}

/* Process Diagram */
.process-diagram {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    border-radius: 8px;
    position: relative;
    animation: slideUp 0.6s ease-out backwards;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.process-step:last-child::after {
    display: none;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(13, 27, 42, 0.5);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

button[type="submit"]:hover {
    background: #3a7a6d;
}

/* Map Container */
.map-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Interactive Test */
.interactive-test {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.8) 0%, rgba(45, 90, 78, 0.8) 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--accent-color);
}

.test-question {
    margin-bottom: 1.5rem;
}

.test-question h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-option {
    padding: 1rem;
    background: rgba(13, 27, 42, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.test-option:hover {
    border-color: var(--accent-color);
    background: rgba(74, 155, 142, 0.2);
}

.test-option.selected {
    border-color: var(--accent-color);
    background: rgba(74, 155, 142, 0.3);
}

.test-option input[type="radio"] {
    margin-right: 0.5rem;
}

.test-submit-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.test-submit-btn:hover {
    background: #3a7a6e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.test-submit-btn:active {
    transform: translateY(0);
}

/* Test Results Modal */
.test-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.test-modal-content {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.95) 0%, rgba(45, 90, 78, 0.95) 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-modal-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.test-modal-close {
    color: var(--text-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.test-modal-close:hover,
.test-modal-close:focus {
    color: var(--accent-color);
}

.test-result-summary {
    margin-bottom: 1.5rem;
}

.test-recommendations ul {
    list-style: none;
    padding: 0;
}

.test-recommendations li {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .test-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .test-modal-content h2 {
        font-size: 1.5rem;
    }

    .test-submit-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        justify-content: space-between;
    }

    /* Completely hide navigation in mobile - ensure it doesn't take space */
    .header-container nav,
    header nav,
    nav {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
        flex: 0 0 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    nav ul,
    .header-container nav ul,
    header nav ul {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    nav li,
    .header-container nav li,
    header nav li {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    nav a,
    .header-container nav a,
    header nav a,
    nav a[href="contacts.html"],
    nav a[href*="contacts"],
    .header-container nav a[href="contacts.html"],
    .header-container nav a[href*="contacts"],
    header nav a[href="contacts.html"],
    header nav a[href*="contacts"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        text-indent: -9999px !important;
    }

    /* Ensure logo and burger menu are visible and properly positioned */
    .logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 auto !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 auto !important;
    }

    .mobile-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        text-align: center;
    }

    .cards-grid,
    .cards-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1.5rem !important;
    }

    .timeline-item::before {
        left: 10px !important;
    }

    .process-step::after {
        display: none;
    }

    .process-diagram {
        flex-direction: column;
    }

    section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .section-title {
        text-align: center;
        font-size: 1.5rem;
    }

    .section-subtitle {
        text-align: center;
        font-size: 1rem;
    }

    .info-card {
        text-align: center;
    }

    .info-card img {
        max-height: 250px;
    }

    .communication-card-img {
        max-height: 250px;
    }

    .article-container {
        padding: 1rem;
        text-align: center;
    }

    .article-header h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .article-content {
        font-size: 1rem;
        text-align: left;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    /* Table Mobile Styles - Scale down to fit */
    .table-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 0;
        margin: 2rem 0;
        overflow: visible;
    }

    .info-table {
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        transform: scale(0.88);
        transform-origin: center top;
        font-size: 0.85rem;
        display: table;
    }

    .info-table th,
    .info-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .info-table th {
        font-size: 0.85rem;
        padding: 0.6rem 0.3rem;
    }

    /* Alternative: Smaller scale on very small screens */
    @media (max-width: 480px) {
        .table-wrapper {
            margin: 1.5rem 0;
        }

        .info-table {
            transform: scale(0.72);
            font-size: 0.75rem;
        }

        .info-table th,
        .info-table td {
            padding: 0.4rem 0.25rem;
            font-size: 0.7rem;
        }

        .info-table th {
            font-size: 0.75rem;
            padding: 0.5rem 0.25rem;
        }
    }

    /* Extra small screens */
    @media (max-width: 360px) {
        .info-table {
            transform: scale(0.65);
            font-size: 0.7rem;
        }

        .info-table th,
        .info-table td {
            padding: 0.35rem 0.2rem;
            font-size: 0.65rem;
        }

        .info-table th {
            font-size: 0.7rem;
            padding: 0.45rem 0.2rem;
        }
    }

    /* Center all content */
    .card {
        text-align: center;
        margin: 0 auto;
    }

    /* Grid layouts for mobile */
    div[style*="grid-template-columns"],
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .responsive-grid > div {
        text-align: center;
    }

    .responsive-grid img {
        margin: 0 auto;
        display: block;
    }

    /* Contact form mobile */
    .contact-form {
        max-width: 100%;
        margin: 2rem auto;
        padding: 1.5rem;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    /* Map container mobile */
    .map-container {
        height: 300px;
        margin: 1rem 0;
    }

    /* Hero image mobile */
    .hero-image {
        opacity: 0.3;
    }

    /* Center all text content - but allow overrides for specific elements */
    section > p,
    section > h1,
    section > h2,
    section > h3 {
        text-align: center;
    }

    /* Don't center article content paragraphs */
    .article-content p {
        text-align: left;
    }

    /* Center cards and sections */
    .card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Center images */
    img {
        display: block;
        margin: 0 auto;
    }

    /* Center buttons */
    button, .read-more-btn, .back-link {
        margin: 0 auto;
        display: block;
    }

    /* Center form elements */
    .form-group {
        text-align: left;
    }

    .form-group label {
        text-align: left;
    }

    /* Center contact info */
    .contact-form h3 {
        text-align: center;
    }

    /* Ensure sections are centered */
    section > * {
        text-align: center;
    }

    section > div {
        margin: 0 auto;
    }

    /* Table container centering */
    .table-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Communication Card Image */
.communication-card-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(27, 67, 50, 0.95) 100%);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.thank-you-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.98) 0%, rgba(27, 67, 50, 0.98) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

.thank-you-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9b8e 0%, rgba(74, 155, 142, 0.5) 100%);
    border-radius: 12px 12px 0 0;
}

.thank-you-checkmark {
    margin: 2rem auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.5s ease 0.2s backwards;
}

.thank-you-checkmark svg {
    filter: drop-shadow(0 4px 8px rgba(74, 155, 142, 0.4));
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.thank-you-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.thank-you-message {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.thank-you-next-steps {
    background: rgba(13, 27, 42, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.thank-you-next-steps h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.thank-you-next-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.thank-you-next-steps li {
    counter-increment: step-counter;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
}

.thank-you-next-steps li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

.thank-you-close-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.thank-you-close-btn:hover {
    background: #3a7a6d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 155, 142, 0.4);
}

.thank-you-close-btn:active {
    transform: translateY(0);
}

/* Thank You Modal Mobile */
@media (max-width: 768px) {
    .thank-you-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 95%;
    }

    .thank-you-title {
        font-size: 1.5rem;
    }

    .thank-you-message {
        font-size: 1rem;
    }

    .thank-you-checkmark svg {
        width: 60px;
        height: 60px;
    }

    .thank-you-next-steps {
        padding: 1rem;
    }

    .thank-you-next-steps h3 {
        font-size: 1.1rem;
    }

    .thank-you-next-steps li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
}

