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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #8b6f47;
    --accent-color: #c19a6b;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --nav-bg: #F5EDE0; /* warm beige */
    --nav-border: #E2D3BF; /* soft line */
    --nav-text: #3B342C; /* ink brown */
    --nav-hover-bg: rgba(59, 122, 87, 0.10); /* subtle green tint */
    --nav-accent: #3B7A57; /* “fresh” green */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
}

/*.container {*/
/*    max-width: auto;*/
/*    margin: 0 auto;*/
/*    padding: 0 20px;*/
/*}*/

/* Navigation */
.navbar {
    background: var(--nav-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
}

.logo {
    flex-shrink: 0;

}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    /*justify-content: center;*/
    flex: 1;
    margin: 0;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 25px;
}

/* Hamburger button */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    border: 0;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: #000;
    transition: transform .2s, opacity .2s;
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link:hover {
    background: var(--secondary-color);
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 220px;
    border-radius: 4px;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}


.lang-switcher {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1100;

    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 248, 235, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);

    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}


.lang-switcher .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lang-switcher::before {
    content: "🌐";
    font-size: 0.9rem;
}

.lang-switcher select {
    border: none;
    background: transparent;
    padding: 0.2rem 1.4rem 0.2rem 0.5rem;
    font: inherit;
    color: #3f3b32;
    cursor: pointer;
    outline: none;
    min-width: 2.5rem;
    border-radius: 999px;
    position: relative;
}

.lang-switcher select::-ms-expand {
    display: none;
}

.lang-switcher:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
    transition: all 0.18s ease-out;
}

.lang-switcher:focus-within {
    border-color: #c48a3a;
}

@media (max-width: 768px) {
    .lang-switcher {
        bottom: 1rem;
        left: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}


/* ===== Mobile (default) ===== */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        inset: 100px 0 auto 0; /* below header */
        background: var(--nav-bg);
        border-top: 1px solid #1f2937;
        display: none;
        padding: 1rem 0;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: .25rem;
        padding-inline: 1rem;
    }

    .lang-switcher {
        padding: .5rem 1rem;
    }
}

/* ===== Desktop ===== */
@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        align-items: center;
    }

    .nav-menu {
        position: static;
        background: transparent;
        padding: 0;
    }

    .lang-switcher {
        margin-left: 1.25rem;
    }

    .nav-menu ul {
        align-items: center;
    }
}

/* Footer */
.footer {
    background: var(--nav-border);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 150px;
    margin-bottom: 20px;
    /*filter: brightness(0) invert(1);*/
    /*border-radius: 30px;;*/
}

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

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a {
    text-decoration: none;
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-dark);
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
}

.footer-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.footer-map a:hover img {
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 20px;
    text-align: center;
    color: var(--text-dark);
}

.facebook-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search container */
.blog-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-form:focus-within {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Input styling */
.blog-search-form input[type="text"] {
    flex: 1;
    padding: 0.55rem 0.6rem;
    border: none;
    font-size: 0.95rem;
    color: #1f2937;
    background: transparent;
    outline: none;
}

/* Search button */
.blog-search-form button {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.blog-search-form button:hover {
    background: var(--accent-color);
}

.blog-search-form button:active {
    transform: scale(0.97);
}

/* Responsive */
@media (max-width: 600px) {
    .blog-search-form {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .blog-search-form button {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===== Utilities ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 3px solid #7dd3fc;
    outline-offset: 2px;
}

/* Optional: dark mode tweak */
/*@media (prefers-color-scheme: dark) {*/
/*    body {*/
/*        background: #0b0f18;*/
/*        color: #e5e7eb;*/
/*    }*/

.site-content {
    position: relative;
    padding: 3rem 0;
    background-image: url("/static/img/books-background.jpg"); /* change path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2c2c2c; /* dark text for readability */
    z-index: 1;
}

.site-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4); /* tweak opacity 0.4 – 0.9 */
    backdrop-filter: blur(2px); /* optional: softens image */
    z-index: -1; /* keeps text on top */
}

.site-content .container {
    padding: 2rem;
}

/*    .lang-switcher select {*/
/*        background: #0f172a;*/
/*        color: #e5e7eb;*/
/*        border-color: #334155;*/
/*    }*/
/*}*/

/* ===== Page headers & tabs ===== */
/* Hero Video Section */
.hero-video {
    margin-top: -3rem;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* News Section */
/* ============================
   Recent News Section Styling
   ============================ */

.news-section {
    padding: 4rem 0;
    max-width: 1600px;
    margin: 0 auto;
}

.news-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 2.2rem;
}

/* Grid layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* News article card */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Placeholder if no image */
.news-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 2rem;
    font-weight: 700;
    color: #4b5563;
}

/* Content */
.news-content {
    padding: 1.25rem 1.5rem;
}

.news-content .news-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.news-content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.news-content p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.read-more {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

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


@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img,
    .news-image-placeholder {
        height: 180px;
    }
}


/* About Section */
/* Overall section */
.about-section {
    padding: 4rem 2rem 4.5rem 2rem;
    background: #f9fafb; /* light grey background for contrast */

}

/* Two-column layout */
.about-content {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1.4fr);
    gap: 3rem;
    align-items: flex-start;
}

/* Heading + intro */
.about-text .section-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 700;
}

.about-intro {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Body text */
.about-text p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.9rem;
}

/* Make long text more readable */
/*.about-text {*/
/*    max-width: 52rem;*/
/*}*/

/* Image block */
.about-image {
    margin: 0;
    position: sticky; /* image stays visible while scrolling text on desktop */
    top: 7rem; /* adjust to your header height */
    align-self: flex-start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    object-fit: cover;
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* Optional: subtle accent border around image */
.about-image img {
    border: 3px solid rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1.2fr);
        gap: 2rem;
    }

    .about-image {
        top: 5rem;
    }

}

@media (max-width: 768px) {

    .about-section {
        padding: 3rem 0 3.5rem;
    }

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

    .about-image {
        position: static; /* no sticky on small screens */
        max-width: 420px;
        margin: 1.5rem auto 0;
    }

    .about-text .section-title {
        font-size: 1.7rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }
}

/* Layout wrapper for the post page */
.post {
    max-width: 800px;
    margin: auto;
    padding: 2.5rem 2rem 3rem;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 800px;
    padding: 1rem 0;
    margin: 0 auto;
    font-size: 0.875rem;
    color: #fff;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.25rem;
}

/* DETAIL PAGE Post header + title + meta */
.post-header {
    margin-bottom: 1.75rem;
}

.post-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #111827;
    font-weight: 700;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Category badge */
.post-meta .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f3f4ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Author */
.post-meta .author {
    color: #374151;
    font-weight: 500;
}

/* Featured image */
.post-figure {
    margin: 1.5rem 0 1.25rem;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* Excerpt */
.post-excerpt {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
    margin-top: 0.75rem;
}

/* Post content */
.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #111827;
}

.post-content p {
    margin-bottom: 1.1rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 0.75rem;
    font-weight: 600;
    color: #111827;
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content a {
    color: #4f46e5;
    text-decoration: underline;
}

.post-content a:hover {
    color: #4338ca;
}

/* Post footer */
.post-footer {
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
    .post {
        margin: 2rem 1rem 3rem;
        padding: 1.75rem 1.25rem 2.25rem;
        border-radius: 14px;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: row;
        row-gap: 0.25rem;
    }

    .breadcrumbs {
        margin: 1rem 1rem 0;
    }
}

/* Contact/About Page Specific Styles */

/* Page Header */
/* ===========================
   Blog List / News Index
   =========================== */

/* Page header */
.page-header {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.page-header-top {
    padding: 2rem 0;
}

.page-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #fff;
    font-weight: 700;
}

.page-subtitle {
    margin: 0;
    font-size: 0.975rem;
    color: #fff;
    padding-bottom: 20px;
}

/* Category tabs */
.cat-tabs {
    max-width: 900px;
    margin: 1.5rem auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #4b5563;
    background: #f3f4f6;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cat-tab:hover {
    background: #e5e7eb;
    color: #111827;
}

.cat-tab.is-active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.24);
}

/* Card grid */
.card-grid {
    list-style: none;
    margin: 0 auto 3rem;
    padding: 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* Card */
.card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Media */
.card-media {
    position: relative;
    overflow: hidden;
    max-height: 220px;
}

.card-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-media img {
    transform: scale(1.03);
}

/* Placeholder media when no image */
.card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #4b5563;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Category badge on card */
.card-media .badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #f3f4ff;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Card body */
.card-body {
    padding: 1.2rem 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
    color: #111827;
    font-weight: 600;
}

.card-excerpt {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    flex: 1;
}

/* Card meta line */
.card-meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: #6b7280;
}

.card-meta .author {
    color: #374151;
    font-weight: 500;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 0.975rem;
}

/* Pagination */
.pagination {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-btn:hover {
    background-color: var(--secondary-color);
    /*border-color: #4338ca;*/
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.page-btn.is-disabled {
    cursor: default;
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    box-shadow: none;
}

.page-indicator {
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        padding: 0 1.25rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        margin: 1.5rem 1rem 1rem;
        text-align: left;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .cat-tabs {
        margin: 1rem 1rem 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .card-media img,
    .card-media--placeholder {
        height: 200px;
    }

    .pagination {
        margin: 0 1rem 3rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* ============================
   History Section – Layout
   ============================ */

.history-section {
    padding: 2rem 0 4.5rem;
    background: radial-gradient(circle at top left, #f3f4f6 0, #f9fafb 35%, #ffffff 100%);
    margin-top: -3rem;
}

.history-section .container {
    max-width: 1600px;
    margin: auto;
}

/* Header */
.history-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.history-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    background: rgba(15, 23, 42, 0.04);
    margin-bottom: 0.75rem;
}

.history-header .section-title {
    font-size: 2.3rem;
    line-height: 1.25;
    margin: 0 0 0.4rem;
    color: #111827;
    font-weight: 700;
}

.history-subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: #6b7280;
}

/* Main 2-column layout */
.history-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3.25rem;
}

/* Text column with subtle timeline accent */
.history-text {
    position: relative;
    padding-left: 1.75rem;
    max-width: 54rem;
}

.history-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e5e7eb, #9ca3af);
    border-radius: 999px;
}

.history-text p {
    font-size: 0.97rem;
    line-height: 1.9;
    color: #374151;
    margin: 0 0 0.95rem;
}

.history-text p:first-of-type {
    font-size: 1.05rem;
    font-weight: 500;
    color: #111827;
}

/* Optional: drop cap for the very first paragraph */
.history-text p:first-of-type::first-letter {
    float: left;
    font-size: 2.4rem;
    line-height: 1;
    margin-right: 0.3rem;
    font-weight: 700;
    color: #111827;
}

/* Document column: overlapping cards */
.history-document {
    position: relative;
    min-height: 260px;
}

.doc-card {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
    background: #f3f4f6;
    border: 3px solid rgba(255, 255, 255, 0.85);
}

.doc-card-main {
    transform: translate(-8%, 0);
}

.doc-card-overlay {
    width: 70%;
    height: 70%;
    right: 5%;
    bottom: -6%;
    left: auto;
    top: auto;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.24);
}

.doc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FLOATING IMAGE CARD WITH WRAPAROUND */

.history-document-float {
    float: right;
    width: 38%;
    max-width: 460px;
    margin: 0 0 1.5rem 2rem;
    position: relative;
}

/* Main card */
.history-document-float .doc-card-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
    margin-bottom: 1.2rem;
}

.history-document-float img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Overlapping smaller card */
.history-document-float .doc-card-overlay {
    position: absolute;
    width: 72%;
    right: -8%;
    bottom: -22%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

/* Ensure text wraps nicely */
.history-text p {
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* Clears after float so next sections don't collapse */
.history-content::after {
    content: "";
    display: block;
    clear: both;
}

/* Responsive: remove float on mobile */
@media (max-width: 900px) {
    .history-document-float {
        float: none;
        width: 100%;
        max-width: 650px;
        margin: 0 auto 2rem;
        position: relative;
        display: none;
    }

    .history-document-float .doc-card-overlay {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        margin-top: 1rem;
    }

    .history-section .container {
        padding: 20px;
    }
}


/* ============================
   Gallery
   ============================ */

.gallery-section {
    margin-top: 1.5rem;
}

.gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.gallery-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive “curated” grid */
.image-gallery {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    grid-auto-rows: 170px;
    gap: 1rem;
}

/* Make some items larger to avoid a boring grid */
.image-gallery .gallery-item:nth-child(1) {
    grid-row: span 2;
}

.image-gallery .gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.25), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.93);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 1024px) {
    .history-content {
        grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1.3fr);
        gap: 2rem;
    }

    .doc-card-main {
        transform: translate(-4%, 0);
    }

    .doc-card-overlay {
        right: -4%;
        bottom: -5%;
    }

    .image-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 150px;
    }

    .image-gallery .gallery-item:nth-child(1),
    .image-gallery .gallery-item:nth-child(4) {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 3.5rem 0 3.5rem;
    }

    .history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-document {
        position: static;
        max-width: 420px;
        margin: 0 auto 0.5rem;
        min-height: auto;
    }

    .doc-card {
        position: relative;
        inset: auto;
    }

    .doc-card-main,
    .doc-card-overlay {
        width: 100%;
        height: auto;
        transform: none;
        right: auto;
        bottom: auto;
        margin-bottom: 1rem;
    }

    .image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
    }
}

@media (max-width: 500px) {
    .image-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .history-text {
        padding-left: 1.25rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr;*/
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.contact-info-container > h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

/* Layout for the info items */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem 1.75rem;
}

/* Card */
.info-item {
    height: 90px;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.info-item:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
    border-color: var(--primary-color, #2563eb);
}

/* Icon circle */
.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color, #2563eb);
    font-size: 1.2rem;
}

/* Facebook special styling */
.info-icon .facebook-icon {
    display: block;
}

/* Text content */
.info-content h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.info-content p {
    margin: 0.1rem 0;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
}

.info-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    word-break: break-word;
}

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

/* Make the icons & cards behave nicely on very small screens */
@media (max-width: 600px) {
    .contact-info-container {
        padding: 1.5rem 1rem;
    }

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

    .info-item {
        padding: 0.9rem 0.85rem;
    }

    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .info-content h4 {
        font-size: 0.98rem;
    }

    .info-content p {
        font-size: 0.8rem;
    }
}

/* Slightly denser layout on big desktop screens */
@media (min-width: 1024px) {
    .contact-info-container {
        padding: 2.5rem 2rem;
    }

    .contact-container {
        gap: 1.5rem 2rem;
    }
}


/* Map Section */
.map-section {
    width: 100%;
    margin-top: 0;
    margin-bottom: -3rem;
}

.map-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .history-content {
        grid-template-columns: 1fr;
    }

    .history-document {
        flex-direction: row;
    }

    .history-document img {
        width: 48%;
    }

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

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 18px;
    }

    .history-section {
        padding: 60px 0;
    }

    .history-document {
        flex-direction: column;
    }

    .history-document img {
        width: 100%;
    }

    .gallery-title {
        font-size: 28px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 30px 20px;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }

    .contact-form-container h3,
    .contact-info-container h3 {
        font-size: 24px;
    }

    .submit-btn {
        width: 100%;
    }


    .hero-title {
        font-size: 24px;
    }

    .news-section {
        padding: unset;
    }
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    /*background: var(--white);*/
    max-width: 1600px;
    margin: 0 auto;
}

.featured-project {
    display: grid;
    gap: 50px;
    margin-bottom: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-project-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-project-image img {
    width: 100%;
    height: 101%;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.featured-project-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project-content h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-date {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.status-active {
    color: #28a745;
    font-weight: 700;
}

.status-completed {
    color: var(--secondary-color);
    font-weight: 700;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.highlight-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Crimson Text', serif;
}

.highlight-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-details {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-link-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.project-link-btn:hover {
    background: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.recent-projects {
    margin-top: 3rem;
}

.recent-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card img,
.project-card-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 2rem;
    font-weight: 700;
    color: #4b5563;
}

.project-card-content {
    padding: 1.25rem 1.5rem 1.3rem;
}

.project-card-content h4 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.project-card-content p {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
}

.project-card-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
}

.project-card-link:hover {
    text-decoration: underline;
}


.projects-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 40px;
}

.projects-cta p {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 16px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

@media (min-width: 1024px) {
    .featured-project {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 480px) {

    .news-section .projects-cta {
        border-radius: unset;
        margin-top: 0;
    }
    .featured-project-content{
        padding: 20px;
    }

    .featured-project-content h3{
        line-height: 1.2;
    }
}