:root {
    --ink: #14213d;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #dbe3ec;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --surface-tint: #eef8f4;
    --brand: #1266a3;
    --brand-dark: #0a4068;
    --accent: #25a36f;
    --warm: #d9822b;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(20, 33, 61, 0.08);
    --shadow-md: 0 18px 45px rgba(20, 33, 61, 0.14);
    --radius: 8px;
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 227, 236, 0.9);
    box-shadow: 0 12px 35px rgba(20, 33, 61, 0.06);
    backdrop-filter: blur(16px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    gap: 24px;
}

.logo {
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
}

.logo a,
.logo img {
    width: 100%;
    height: 100%;
}

.logo img {
    object-fit: cover;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    background: #e8f3fb;
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(18, 102, 163, 0.12);
}

.mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

section {
    padding: 72px 0;
}

.hero {
    min-height: 76vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
    background:
        linear-gradient(90deg, rgba(10, 22, 38, 0.86), rgba(10, 22, 38, 0.54)),
        url("../img/logo.jpeg") center right 13% / min(520px, 80vw) no-repeat,
        linear-gradient(135deg, #10243a 0%, #1266a3 52%, #25a36f 100%);
}

.hero-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--warm);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    max-width: 680px;
    color: var(--white);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.98;
    margin-bottom: 22px;
}

.hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.18rem;
    margin-bottom: 30px;
}

.btn,
.newsletter button,
.sidebar-widget button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover,
.newsletter button:hover,
.sidebar-widget button:hover {
    background: #1f8f61;
    box-shadow: 0 14px 28px rgba(37, 163, 111, 0.24);
    transform: translateY(-2px);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-title {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.latest-news,
.blog-content,
.about-content,
.contact-content {
    background: var(--surface-soft);
}

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

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

article.blog-post,
.featured-card,
.sidebar-widget,
.contact-form,
.contact-info {
    background: var(--surface);
    border: 1px solid rgba(219, 227, 236, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

article.blog-post,
.featured-card {
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

article.blog-post:hover,
.featured-card:hover {
    border-color: rgba(18, 102, 163, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-image-slider,
.featured-image {
    position: relative;
    height: 248px;
    overflow: hidden;
    background: #dbe3ec;
}

.slider-container,
.slider-track,
.slide {
    height: 100%;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 420ms ease;
}

.slide {
    min-width: 100%;
}

.slide img,
.featured-image img,
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

article.blog-post:hover .slide img,
.featured-card:hover .featured-image img {
    transform: scale(1.035);
}

.slide img,
.featured-image img {
    transition: transform 420ms ease;
}

.slider-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(20, 33, 61, 0.68);
    color: var(--white);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background var(--transition), transform var(--transition);
}

.slider-nav:hover {
    background: rgba(18, 102, 163, 0.92);
    transform: translateY(-50%) scale(1.04);
}

.slider-nav.prev {
    left: 12px;
}

.slider-nav.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
}

.dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--white);
}

.post-content,
.featured-content {
    padding: 22px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f3fb;
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.post-content h3,
.featured-content h3 {
    color: var(--ink);
    font-size: 1.22rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.post-date {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.post-content p,
.featured-content p {
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.blog-grid .post-content p,
.news-grid .post-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.read-more::after {
    content: "->";
    transition: transform var(--transition);
}

.read-more:hover {
    color: var(--brand-dark);
}

.read-more:hover::after {
    transform: translateX(3px);
}

.featured-stories {
    background: var(--surface-tint);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.featured-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 290px;
}

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

.newsletter {
    background:
        linear-gradient(120deg, rgba(20, 33, 61, 0.92), rgba(18, 102, 163, 0.88)),
        url("../img/logo.jpeg") center / 260px no-repeat;
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.newsletter p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.82);
}

.newsletter form {
    display: flex;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.newsletter input,
.sidebar-widget input,
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter input {
    border-color: transparent;
    flex: 1;
}

.newsletter input:focus,
.sidebar-widget input:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(18, 102, 163, 0.12);
}

footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.76);
    padding: 58px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1.25fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: color var(--transition);
}

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

.bottom-logo {
    display: inline-block;
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 10px 10px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.page-header {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 244, 0.88)),
        url("../img/logo.jpeg") right 10% center / 210px no-repeat;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.page-header .container {
    max-width: 900px;
}

.page-header .eyebrow {
    justify-content: center;
}

.page-header h1 {
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.page-header p {
    color: var(--muted);
    font-size: 1.08rem;
}

.page-header a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: start;
}

.about-text,
.contact-info,
.contact-form {
    padding: 30px;
}

.about-text {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-text h2,
.contact-info h2,
.contact-form h2,
.map h2 {
    color: var(--ink);
    font-size: 1.55rem;
    margin: 0 0 14px;
}

.about-text h2:not(:first-child) {
    margin-top: 28px;
}

.about-text ul {
    margin-left: 20px;
}

.about-text li {
    margin-bottom: 8px;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.team {
    background: var(--surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px;
}

.team-member {
    min-height: 280px;
    padding: 24px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.team-member img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.team-member h3 {
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 8px;
}

.team-member p {
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 800;
}

.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-btn {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0 16px;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    transform: translateY(-1px);
}

.blog-post .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.blog-post > .container > .post-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.featured-gallery {
    margin-bottom: 28px;
}

.main-image {
    width: 100%;
    height: min(520px, 56vw);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

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

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 2px;
}

.thumbnail {
    width: 96px;
    height: 70px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0.74;
}

.thumbnail.active {
    border-color: var(--brand);
    opacity: 1;
}

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

.post-body {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.78;
}

.post-body h2,
.post-body h3 {
    color: var(--ink);
    margin: 28px 0 12px;
}

.post-body p,
.post-body ul {
    margin-bottom: 18px;
}

.post-body ul {
    padding-left: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-tags span {
    color: var(--ink);
    font-weight: 800;
}

.post-tags a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.author-bio {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface-tint);
}

.author-image {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
}

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

.author-info h3 {
    color: var(--brand);
    font-size: 0.9rem;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.author-info h4 {
    color: var(--ink);
    margin-bottom: 5px;
}

.sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-widget {
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    color: var(--ink);
    font-size: 1.1rem;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li,
.recent-post {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-widget li:last-child,
.recent-post:last-child {
    border-bottom: 0;
}

.sidebar-widget li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: var(--brand);
}

.recent-post h4 {
    font-size: 0.98rem;
    line-height: 1.35;
}

.recent-post h4 a {
    color: var(--ink);
    text-decoration: none;
}

.recent-post span {
    color: var(--muted);
    font-size: 0.86rem;
}

.sidebar-widget form {
    display: grid;
    gap: 10px;
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-info p {
    margin-bottom: 22px;
}

.contact-item {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.contact-item h3 {
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f3fb;
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 7px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.map {
    background: var(--surface);
}

.map h2 {
    text-align: center;
    margin-bottom: 24px;
}

.map-placeholder {
    height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .news-grid,
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-grid,
    .blog-post .container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .featured-image {
        min-height: 260px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        min-height: 76px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .mobile-menu {
        display: inline-flex;
    }

    nav {
        position: fixed;
        top: 76px;
        right: 16px;
        left: 16px;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition);
    }

    nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav ul {
        display: grid;
        gap: 6px;
    }

    nav ul li a {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius);
    }

    section {
        padding: 54px 0;
    }

    .hero {
        min-height: 68vh;
        background:
            linear-gradient(180deg, rgba(10, 22, 38, 0.9), rgba(10, 22, 38, 0.68)),
            url("../img/logo.jpeg") center bottom 24px / 220px no-repeat,
            linear-gradient(135deg, #10243a 0%, #1266a3 58%, #25a36f 100%);
    }

    .hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .hero p {
        font-size: 1.02rem;
    }

    .news-grid,
    .blog-grid,
    .footer-content,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .newsletter form,
    .footer-bottom,
    .author-bio {
        flex-direction: column;
    }

    .newsletter form {
        gap: 8px;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .post-image-slider,
    .featured-image {
        height: 220px;
    }

    .blog-post > .container > .post-content,
    .about-text,
    .contact-info,
    .contact-form {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container,
    .hero-content {
        width: min(100% - 24px, 1120px);
    }

    .page-header {
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 244, 0.94)),
            url("../img/logo.jpeg") center bottom 18px / 150px no-repeat;
        padding-bottom: 120px;
    }

    .post-image-slider,
    .featured-image {
        height: 190px;
    }

    .main-image {
        height: 280px;
    }

    .slider-nav {
        width: 34px;
        height: 34px;
    }
}
