/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(35, 25%, 96%);
    color: hsl(30, 15%, 20%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* increase z-index so dropdowns sit above admin bars / other UI */
    z-index: 1200;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: hsla(35, 25%, 96%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px hsla(30, 15%, 20%, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* place logo left and .nav-right at far right */
    height: 80px;
    gap: 2rem;
}

/* push menu+search to the right as a unit */
.nav-right {
    margin-left: auto; /* take remaining space so this group sits at the right */
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
    }

    .logo img {
        display: block;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        max-height: 48px;
        width: auto;
    }


.logo:hover {
    transform: scale(1.05);
}

.logo-diamond {
    width: 48px;
    height: 48px;
    background-color: #dc2626;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo:hover .logo-diamond {
    transform: rotate(50deg);
}

.logo-inner {
    width: 32px;
    height: 32px;
    background-color: white;
    transform: rotate(-45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.logo-year {
    font-size: 0.75rem;
    color: hsl(30, 10%, 45%);
}

/* Search Box */
.search-box {
    display: none;
    align-items: center;
    position: relative;
}

@media (min-width: 1024px) {
    .search-box {
        display: flex;
    }
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid hsla(30, 15%, 20%, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    width: 200px;
    background-color: hsla(35, 25%, 96%, 0.95);
    transition: all 0.3s ease;
}

/* Make search input font match menu font style */
.search-input,
.mobile-search-input {
    font-family: inherit; /* same as menu */
    font-weight: 500; /* match .nav-link */
    color: hsla(30, 15%, 20%, 0.9);
}

.search-input::placeholder,
.mobile-search-input::placeholder {
    color: hsl(30, 10%, 45%);
    font-weight: 500;
}

.search-input:focus {
    width: 300px;
    border-color: hsl(30, 35%, 45%);
    outline: none;
    box-shadow: 0 2px 8px hsla(30, 35%, 45%, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(30, 10%, 45%);
    pointer-events: none;
}

.search-icon svg,
.mobile-search-icon svg,
.mobile-search-btn svg {
    display: block;
    width: 16px;
    height: 16px;
}

.nav-menu {
    display: none;
    gap: 0.25rem;
    align-items: center;
    margin-left: 1rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsla(30, 15%, 20%, 0.8);
    transition: color 0.3s ease;
    position: relative;
    background: none;
    border: none;
}

.nav-link:hover {
    color: hsl(30, 15%, 20%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(30, 35%, 45%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Inline search icon placed next to menu items on desktop */
.nav-search-inline {
    display: none; /* hidden on small screens */
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    border-radius: 6px;
}

.nav-search-inline svg {
    display: block;
    width: 18px;
    height: 18px;
    color: hsl(30, 10%, 45%);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-icon {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

/* when dropdown has .open class (toggled via click), rotate the icon */
.dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* use a transform offset instead of margin to avoid a hover gap between the parent and submenu */
    transform: translateY(6px);
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 12px hsla(30, 15%, 20%, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0;
    /* ensure dropdown appears above most elements */
    z-index: 1300;
    pointer-events: auto;
}

.dropdown-content a {
    /* make sure anchors receive pointer events and are on top of the dropdown box */
    position: relative;
    z-index: 1301;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsla(30, 15%, 20%, 0.8);
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.875rem;
}

.dropdown-content a:hover {
    background-color: hsla(30, 35%, 45%, 0.1);
    color: hsl(30, 15%, 20%);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: hsl(30, 15%, 20%);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: hsla(35, 25%, 96%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px hsla(30, 15%, 20%, 0.12);
    z-index: 1100;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid hsla(30, 15%, 20%, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

.mobile-search-input:focus {
    border-color: hsl(30, 35%, 45%);
    outline: none;
    box-shadow: 0 2px 8px hsla(30, 35%, 45%, 0.1);
}

.mobile-search-form {
    position: relative;
}

.mobile-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(30, 10%, 45%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    /* hide the right-top mobile search button on desktop */
    .mobile-search-btn {
        display: none;
    }

    /* show inline search icon in the menu area */
    .nav-search-inline {
        display: inline-flex;
    }
}

.hamburger {
    width: 20px;
    height: 2px;
    background-color: hsl(30, 15%, 20%);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    background-color: hsla(35, 25%, 96%, 0.98);
    backdrop-filter: none; /* remove blur so background is solid edge-to-edge */
    padding: 0; /* make the panel full width without inner padding */
    box-shadow: none; /* remove rounded shadow */
    border-radius: 0; /* flush to edges */
    width: 100vw; /* span entire viewport width */
    max-width: none;
    margin: 0;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box;
    gap: 0; /* reduce vertical spacing between items */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Mobile menu item styles */
@media (max-width: 1023px) {
    .nav-menu.active .nav-link {
        display: block;
        width: 100%;
        padding: 0.6rem 1rem; /* tightened vertical padding */
        font-size: 1rem;
        border-radius: 6px;
        transition: all 0.22s ease;
        text-align: left;
        position: relative;
        background: transparent;
        color: hsl(30, 15%, 20%);
    }

    .nav-menu.active .nav-link:hover,
    .nav-menu.active .nav-link:active {
        background-color: hsla(30, 35%, 45%, 0.08);
        padding-left: 1.1rem; /* smaller indent on hover */
    }

    .nav-menu.active .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        transform: translateY(-50%);
        transition: height 0.3s ease;
        border-radius: 0 2px 2px 0;
    }

    .nav-menu.active .nav-link:hover::before {
        height: 70%;
    }

    /* Improved Dropdown styles for mobile */
    .nav-menu.active .dropdown {
        width: 100%;
    }

    .nav-menu.active .dropdown-content {
        display: none;
        padding: 0;
        margin: 0.15rem 0 0 1rem; /* slightly tighter */
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-menu.active .dropdown.open .dropdown-content {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active .dropdown-content a {
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        background: transparent;
    }

    .nav-menu.active .dropdown-content a:hover {
        padding-left: 1.25rem;
    }

    .nav-menu.active .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-menu.active .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .nav-menu.active .dropdown.open .dropdown-icon {
        transform: rotate(180deg);
    }
}

.nav-menu.active .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0;
    padding-left: 1rem;
}

.nav-menu.active .dropdown-content.show {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(64px);
}

.blob-1 {
    top: 80px;
    right: 80px;
    background-color: hsl(30, 35%, 45%);
}

.blob-2 {
    bottom: 80px;
    left: 80px;
    background-color: hsl(25, 45%, 50%);
}

.blob-3, .blob-4 {
    width: 256px;
    height: 256px;
}

.blob-3 {
    top: 25%;
    left: 40px;
}

.blob-4 {
    bottom: 25%;
    right: 40px;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(30, 10%, 45%);
    margin-bottom: 1rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Increase hero title on small screens (mobile) for better readability */
@media (max-width: 420px) {
    .hero-title {
        font-size: 3.6rem; /* slightly larger on narrow phones */
        line-height: 1.05;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.title-line {
    display: block;
    font-weight: 300;
}

.hero-cta {
    padding-top: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: hsl(30, 35%, 45%);
    color: hsl(35, 25%, 96%);
    border-radius: 9999px;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px hsla(30, 35%, 45%, 0.2);
}

.btn-primary:hover {
    background-color: hsl(30, 35%, 40%);
    transform: scale(1.05);
    box-shadow: 0 8px 16px hsla(30, 35%, 45%, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    aspect-ratio: 1;
    max-width: 512px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px hsla(30, 15%, 20%, 0.25);
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    width: 128px;
    height: 128px;
    border: 2px solid;
    border-radius: 24px;
    z-index: -1;
}

.decoration-1 {
    bottom: -24px;
    right: -24px;
    border-color: hsla(30, 35%, 45%, 0.3);
}

.decoration-2 {
    top: -24px;
    left: -24px;
    border-color: hsla(25, 45%, 50%, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid hsla(30, 35%, 45%, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.scroll-wheel {
    width: 6px;
    height: 12px;
    background-color: hsl(30, 35%, 45%);
    border-radius: 3px;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animations */
.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page Header */
.page-header {
    /* reduced top padding so content sits closer to the top */
    padding-top: 80px;
    padding-bottom: 60px;
    background-color: hsla(35, 20%, 92%, 0.3);
    text-align: center;
}

/* Constrain the width of content inside page headers (post/page/archive) so the "box" behind titles is narrower */
.page-header .container {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.page-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(30, 35%, 45%);
    margin-bottom: 1rem;
    font-weight: 500;
}

.page-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 300;
}

@media (min-width: 640px) {
    .page-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 768px) {
    .page-title {
        font-size: 4.5rem;
    }
}

.page-description {
    font-size: 1.125rem;
    color: hsl(30, 10%, 45%);
    margin-top: 1rem;
}

/* Section Styles */
.about-section,
.news-section,
.contact-section,
.articles-section {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .about-section,
    .news-section,
    .contact-section,
    .articles-section {
        padding: 6rem 0;
    }
}

.section-header {
    max-width: 768px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(30, 35%, 45%);
    margin-bottom: 1rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
    }
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-title-large {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

@media (min-width: 640px) {
    .section-title-large {
        font-size: 3.75rem;
    }
}

@media (min-width: 768px) {
    .section-title-large {
        font-size: 4.5rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: hsl(30, 10%, 45%);
    line-height: 1.75;
}

.text-center {
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: hsla(30, 15%, 20%, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: hsl(30, 35%, 45%);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(30, 10%, 45%);
}

.about-section .about-images {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    position: relative !important;
    margin-top: -2rem !important;
}

@media (min-width: 640px) {
    .about-section .about-images {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 1rem !important;
        margin-top: -3rem !important;
    }

    .about-section .about-image-wide {
        grid-column: 1 / -1 !important;
        height: 280px !important;
        margin-top: 0.2rem !important;
    }

    /* Memastikan dua gambar atas memiliki ukuran yang sama */
    .about-section .about-image-card:not(.about-image-wide) {
        height: 240px !important;
        margin-bottom: 0 !important;
    }
}

.about-section .about-image-card {
    position: relative !important;
    height: 240px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px hsla(30, 15%, 20%, 0.12) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-card:hover img {
    transform: scale(1.1);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px hsla(30, 15%, 20%, 0.08);
    transition: all 0.3s ease;
    border: 1px solid hsla(30, 12%, 88%, 0.5);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 8px 24px hsla(30, 15%, 20%, 0.15);
    transform: translateY(-4px);
}

.article-image {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: hsl(30, 35%, 45%);
    color: hsl(35, 25%, 96%);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 10;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(30, 10%, 45%);
}

.article-title {
    font-size: 1.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: hsl(30, 35%, 45%);
}

.article-excerpt {
    color: hsla(30, 15%, 20%, 0.7);
    line-height: 1.75;
    flex-grow: 1;
}

.article-link {
    color: hsl(30, 35%, 45%);
    font-weight: 500;
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.article-link:hover {
    gap: 0.5rem;
}

/* News Grid */
.news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px hsla(30, 15%, 20%, 0.08);
    transition: all 0.3s ease;
    border: 1px solid hsla(30, 12%, 88%, 0.5);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 24px hsla(30, 15%, 20%, 0.15);
    transform: translateY(-4px);
}

.news-image {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: hsl(30, 35%, 45%);
    color: hsl(35, 25%, 96%);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 10;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(30, 10%, 45%);
}

.icon {
    flex-shrink: 0;
}

.news-title {
    font-size: 1.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: hsl(30, 35%, 45%);
}

.news-excerpt {
    color: hsla(30, 15%, 20%, 0.7);
    line-height: 1.75;
    flex-grow: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: transparent;
    color: hsl(30, 15%, 20%);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-ghost:hover {
    background-color: hsla(30, 35%, 45%, 0.1);
}

.btn-ghost:hover .btn-icon {
    transform: translateX(4px);
}

/* Gallery */
.gallery-filter {
    padding: 2rem 0;
    background-color: hsla(35, 25%, 96%, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 80px;
    z-index: 40;
    border-bottom: 1px solid hsl(30, 12%, 88%);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: white;
    color: hsl(30, 15%, 20%);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px hsla(30, 15%, 20%, 0.08);
}

.filter-btn:hover {
    background-color: hsla(30, 35%, 45%, 0.1);
}

.filter-btn.active {
    background-color: hsl(30, 35%, 45%);
    color: hsl(35, 25%, 96%);
    box-shadow: 0 4px 8px hsla(30, 35%, 45%, 0.3);
    transform: scale(1.05);
}

.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px hsla(30, 15%, 20%, 0.12);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 24px hsla(30, 15%, 20%, 0.2);
    transform: translateY(-4px);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: hsl(30, 35%, 45%);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.gallery-title {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    color: white;
    background: hsla(255, 255%, 255%, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: hsla(255, 255%, 255%, 0.2);
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 2rem;
    max-width: 896px;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px hsla(30, 15%, 20%, 0.08);
    transition: box-shadow 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 16px hsla(30, 15%, 20%, 0.12);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: hsla(30, 35%, 45%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: hsl(30, 35%, 45%);
}

.contact-content {
    flex-grow: 1;
}

.contact-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-text {
    color: hsl(30, 10%, 45%);
    line-height: 1.75;
}

.contact-text p {
    margin: 0;
}

/* Footer */
.footer {
    background-color: hsl(0, 0%, 100%);
    border-top: 1px solid hsl(30, 12%, 88%);
}

.footer .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright,
.made-with {
    font-size: 0.875rem;
    color: hsl(30, 10%, 45%);
    text-align: center;
}

@media (min-width: 768px) {
    .copyright {
        text-align: left;
    }
}

.heart {
    color: #dc2626;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(35, 25%, 96%);
}

::-webkit-scrollbar-thumb {
    background: hsla(30, 35%, 45%, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(30, 35%, 45%, 0.5);
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid hsl(30, 35%, 45%);
    outline-offset: 2px;
}

/* Mobile: center logo, hamburger left */
@media (max-width: 1023px) {
    .nav-container {
        justify-content: center;
        position: relative; /* so absolute children are positioned relative to this */
    }

    /* on mobile we don't need the nav-right grouping to push elements; allow normal flow */
    .nav-right {
        margin-left: 0;
        position: relative;
    }

    .mobile-menu-btn {
        /* remove flow margin and float to left */
        margin-left: 0;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    /* ensure logo stays centered */
    .logo {
        z-index: 4;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    /* slightly reduce logo size on smaller screens if needed */
    .logo img {
        max-height: 44px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
}

/* Mobile Menu Slide-in Effect */
@media (max-width: 1023px) {
    .nav-menu {
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), opacity 0.3s ease;
    }
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), opacity 0.3s ease;
    }
}

/* Mobile-specific: reduce search form height and enlarge the search icon slightly */
@media (max-width: 1023px) {
    .mobile-search-overlay {
        padding: 0.75rem; /* a bit tighter */
    }

    .mobile-search-input {
        padding: 0.5rem 0.75rem 0.5rem 2.25rem; /* smaller vertical padding */
        font-size: 0.95rem;
        border-radius: 6px;
    }

    /* nudge icon a little and make svg slightly larger on mobile */
    .mobile-search-icon {
        left: 0.65rem;
    }

    .mobile-search-icon svg,
    .mobile-search-btn svg {
        width: 20px;
        height: 20px;
    }
}