/* === Custom Styles - Extracted from inline styles and Tailwind utilities === */

/* Base styles (converted from Tailwind @apply) */
body {
    font-family: 'Roboto', sans-serif;
    color: #4b5563;
    /* text-gray-600 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    line-height: 1.25;
    /* leading-tight */
}

/* Container utility */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}


@media (min-width: 1280px) {
    .container {
        max-width: 1000px;
    }
}

/* Glass overlay utility */
.glass-overlay {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Text shadow utility */
.text-shadow-hero {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === Responsive Navigation Overrides === */

/* === Google Fonts: Roboto (body) + Playfair Display (hero titles) === */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.logo a,
.navigation a,
.main-nav a,
.pure-button,
p,
li,
td,
th,
input,
textarea,
select {
    font-family: 'Roboto', sans-serif;
}

/* Hero / banner headings */
#banner .call-to-action h1,
.plain-header h2,
.main-message p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Header inner: flex row, logo left, nav right */
.site-header {
    position: relative !important;
}

.site-header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 16px;
    box-sizing: border-box;
}

.logo {
    flex-shrink: 0;
    margin: 0;
}

/* ---- Burger button (always styled, visibility controlled below) ---- */
.burger {
    display: none !important;
    /* hidden by default (desktop) */
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 300;
    flex-shrink: 0;
}

.burger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #8b2004;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger span:nth-child(1) {
    top: 5px;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:nth-child(3) {
    bottom: 5px;
    top: auto;
}

/* Animate into a symmetric X when open */
.burger.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.burger.open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ---- Desktop (≥769px): show nav, hide burger ---- */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        align-items: center;
    }

    .burger {
        display: none !important;
    }
}

/* ---- Mobile (≤768px): hide nav, show burger ---- */
@media (max-width: 768px) {
    .burger {
        display: flex !important;
    }

    /* show burger */

    /* Nav: collapsed by default on mobile (use max-height for transition) */
    .main-nav {
        display: block !important;
        /* must stay block so transition works */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 500;
        background: rgba(255, 255, 255, 0.5);
        border-top: 2px solid #e8e8e8;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    /* Nav expanded when JS adds .open */
    .main-nav.open {
        max-height: 500px;
        /* large enough for all links */
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .navigation {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 8px 12px 14px;
    }

    .main-nav .navigation>li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav .navigation>li:last-child {
        border-bottom: none;
    }

    .main-nav .navigation>li>a {
        display: block;
        padding: 13px 18px;
        font-size: 1rem;
        font-weight: 600;
        color: #222;
        text-decoration: none;
        letter-spacing: 0.02em;
        border-radius: 5px;
        margin-bottom: 2px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .main-nav .navigation>li>a:hover,
    .main-nav .navigation>li.current>a {
        background: rgba(139, 32, 4, 0.08);
        color: #8b2004;
    }
}

/* === News Section Styles === */
.news-twitter {
    padding: 40px 0;
    background: #fff;
}

.news-title {
    text-align: center;
    margin-bottom: 40px;
}

.news-title h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.news-title .divider {
    width: 60px;
    height: 3px;
    background: #8b2004;
    margin: 0 auto;
    opacity: 0.6;
}

.news-grid {
    margin: 0 -15px;
}

.news-item {
    padding: 0 15px;
    margin-bottom: 30px;
}

.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-thumb:hover img {
    transform: scale(1.05);
}

.post-thumb .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
    color: #999;
}

.post-content {
    padding: 24px;
    text-align: left;
}

.post-date {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b2004;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 1.3em;
    line-height: 1.4;
    margin: 0 0 12px;
    font-weight: 700;
}

.post-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.news-footer {
    border: none;
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-outline {
    padding: 12px 35px;
    font-weight: 600;
    border: 2px solid #8b2004;
    color: #8b2004;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-outline:hover {
    background: #8b2004;
    color: #fff;
}

/* === Partners Section === */
.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    list-style: none;
    padding: 20px 0;
}

.partner-item {
    flex: 0 1 auto;
}

.partner-item img {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.33;
    transition: opacity 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* === Hero Section === */
.hero-banner {
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === Post Layout === */
.post-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* === Archive Layout === */
.archive-content {
    padding-top: 0;
    padding-bottom: 0;
}

.archive-list {
    /* styles for list layout */
}

.archive-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
}

/* === Navigation States (Top Level for high specificity) === */

/* Burger Button z-index */
#burger-btn {
    position: relative;
    z-index: 2200;
}



/* Side Panel Overlay */
#main-nav {
    z-index: 2200;
    transition: transform 0.3s ease, translate 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nav-open #main-nav {
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Backdrop */
#nav-backdrop {
    z-index: 2100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-open #nav-backdrop {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}