/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --primary: #003366;
    --primary-light: #004d99;
    --accent: #0077cc;
    --accent-light: #e8f4fd;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-bg: #f5f7fa;
    --border: #e0e4e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* ===========================
   HEADER & NAV
   =========================== */
header {
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

nav {
    display: flex;
    gap: 4px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
    background: var(--accent-light);
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* ===========================
   HERO (index)
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: var(--white);
    padding: 100px 24px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,224L48,213.3C96,203,192,181,288,186.7C384,192,480,224,576,218.7C672,213,768,171,864,165.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

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

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

/* ===========================
   SECTIONS (index)
   =========================== */
section {
    padding: 80px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===========================
   ABOUT (index)
   =========================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--gray-bg);
    padding: 28px;
    border-radius: 12px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===========================
   SERVICES (index)
   =========================== */
.services {
    background: var(--gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   ADVANTAGES (index)
   =========================== */
.advantages {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.advantage-item {
    text-align: center;
    padding: 24px 16px;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
}

.advantage-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===========================
   NEWS CARDS (index)
   =========================== */
.news {
    background: var(--gray-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

a.news-card {
    text-decoration: none;
    color: inherit;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}

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

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-body {
    padding: 24px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-body h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.news-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.news-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    text-decoration: underline;
}

/* ===========================
   MEMBERS (index)
   =========================== */
.members {
    background: var(--white);
}

.members-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.member-badge {
    background: var(--gray-bg);
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.member-badge:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0,119,204,0.1);
}

/* ===========================
   EVENTS (index)
   =========================== */
.events {
    background: var(--gray-bg);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 24px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    align-items: center;
    transition: transform 0.2s;
}

.event-item:hover {
    transform: translateX(4px);
}

.event-date-box {
    min-width: 80px;
    text-align: center;
    background: var(--accent-light);
    padding: 12px;
    border-radius: 10px;
}

.event-date-box .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.event-date-box .month {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.event-info h4 {
    color: var(--primary);
    margin-bottom: 4px;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.event-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

/* ===========================
   CONTACT (index)
   =========================== */
.contact {
    background: var(--primary);
    color: var(--white);
}

.contact .section-title h2 {
    color: var(--white);
}

.contact .section-title p {
    color: rgba(255,255,255,0.75);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.95);
}

.contact-detail {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-detail .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-detail .text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

.contact-detail .text strong {
    color: var(--white);
    display: block;
    margin-bottom: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

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

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-white {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ===========================
   FOOTER (full — index)
   =========================== */
footer {
    background: #001a33;
    color: rgba(255,255,255,0.6);
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-brand img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* ===========================
   FOOTER (simple — subpages)
   =========================== */
footer.footer-simple {
    padding: 32px 24px;
    text-align: center;
    font-size: 0.85rem;
}

footer.footer-simple a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin: 0 12px;
}

footer.footer-simple a:hover {
    color: var(--white);
}

/* ===========================
   ARTICLE HERO (news pages)
   =========================== */
.article-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
}

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

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 60px 24px 40px;
    color: var(--white);
}

.article-hero-overlay .tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-hero-overlay h1 {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-hero-overlay .meta {
    text-align: center;
    margin-top: 12px;
    font-size: 0.92rem;
    opacity: 0.85;
}

/* ===========================
   ARTICLE BODY (news pages)
   =========================== */
.article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 32px 0 12px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    margin: 28px 0;
    padding: 16px 24px;
    background: var(--accent-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--primary);
}

.article-body .highlight-box {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.article-body .highlight-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.article-body table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
}

.article-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.article-body table tr:nth-child(even) {
    background: var(--gray-bg);
}

.article-body .route-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.article-body .route-card {
    background: var(--gray-bg);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--accent);
}

.article-body .route-card h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

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

/* ===========================
   SHARED: BACK LINK, SHARE BAR
   =========================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.back-link:hover {
    text-decoration: underline;
}

.share-bar {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.share-bar span {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-bg);
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.share-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ===========================
   PAGE HEADER (legal pages)
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: var(--white);
    padding: 60px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
}

/* ===========================
   CONTENT (legal pages)
   =========================== */
.content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.content h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 36px 0 12px;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 24px 0 8px;
}

.content p {
    margin-bottom: 16px;
}

.content ul {
    margin: 0 0 16px 24px;
}

.content li {
    margin-bottom: 6px;
}

.content a {
    color: var(--accent);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

/* ===========================
   UTILITY
   =========================== */
.text-center {
    text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    nav.open {
        display: flex;
    }

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

    .hero {
        padding: 60px 24px 80px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .article-hero {
        height: 300px;
    }

    .article-hero-overlay h1 {
        font-size: 1.6rem;
    }

    .article-body .route-box {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }
}
