/* ▸ Core ------------------------------------------------------------------ */
:root {
    --dark-blue: #002147;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --radius-full: 9999px;
    --radius-lg: 20px;
    --shadow: 4px 4px 4px rgba(0, 0, 0, .25); 
}
 
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

/* ▸ Navbar --------------------------------------------------------------- */
.navbar {
    background-color: #090303;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid white;
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    width: 100%;
    padding: 0 4rem;
    margin: 0 auto;
}
.navbar-logo { height: 49px; width: 152px; object-fit: contain; }
.navbar-center { flex: 1; display: flex; justify-content: center; }
.navbar-links { display: flex; align-items: center; gap: 24px; }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a { color: white; text-decoration: none; font-size: 16px; transition: color 0.3s; }
.nav-menu a:hover { color: #ccc; }

/* ▸ Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* disable clicks so it feels like a background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0) 80%
    );
    z-index: 1;
}

.hero-text {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* ▸ Container & Layout ---------------------------------------------------- */
.container { max-width: 1328px; margin-inline: auto; padding-inline: 1rem; }
main, section { margin-top: 0; padding-top: 0; }
.page-title { text-align: center; font-size: 4rem; font-weight: 700; font-family: 'Playfair Display', serif; margin-top: 2rem; margin-bottom: 0; }
.newsletter-wrapper { display: flex; gap: 1rem; margin-top: 3.5rem; }
.newsletter-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

/* ▸ Filter / Search ------------------------------------------------------ */
.filter-section { background: #fff; border: 1px solid #ddd; margin-top: 2.5rem; padding: 1rem 2.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-radius: var(--radius-full); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-label { font-weight: 500; margin-right: .5rem; }
.filter-btn { padding: .6rem 1.5rem; font-size: .875rem; background: var(--gray-100); color: var(--gray-700); border: none; border-radius: var(--radius-full); cursor: pointer; transition: background .2s; }
.filter-btn:hover { background: #e5e7eb; }
.filter-btn.active { background: var(--dark-blue); color: #fff; }
.search-box { border: 1px solid var(--gray-400); display: flex; align-items: center; gap: 1rem; padding: .6rem 1.5rem; border-radius: var(--radius-full); }
.search-box img { width: 18px; }
.search-box input { border: none; outline: none; font-size: 1rem; background: transparent; }

/* ▸ Newsletter Card ------------------------------------------------------ */
.newsletter-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; transition: transform 0.2s ease-in-out; }
.newsletter-card:hover { transform: translateY(-5px); }
.card-image { width: 100%; height: 180px; object-fit: cover; }
.card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 1.5rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--gray-500); }
.category { background: var(--gray-100); color: var(--gray-700); padding: .25rem .75rem; border-radius: var(--radius-full); font-size: .625rem; font-weight: 500; text-transform: capitalize; }
.card-title, .card-subtitle { color: var(--dark-blue); margin: 1rem 0 0; line-height: 1.3; }
.card-subtitle { margin-top: .25rem; font-size: 0.9rem; font-weight: normal; }
.card-desc { color: var(--gray-700); font-size: .875rem; margin-top: 1rem; flex-grow: 1; }
.card-footer { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.read-more { color: var(--dark-blue); font-weight: 500; text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.download-btn { width: 16px; opacity: 0.7; transition: opacity 0.2s; }
.download-btn:hover { opacity: 1; }

/* ▸ Pagination ----------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 3rem 0; }
.pagination button { background-color: var(--gray-100); border: 1px solid #ddd; padding: 0.5rem 1rem; cursor: pointer; border-radius: 8px; }
.pagination button:disabled { cursor: not-allowed; opacity: 0.5; }
.pagination button.active { background-color: var(--dark-blue); color: white; border-color: var(--dark-blue); }

/* ▸ Featured Section ----------------------------------------------------- */
.featured-section { max-width: 1303px; margin: 2rem auto 4rem; background: #f9f9f9; border: 1px solid #eee; box-shadow: var(--shadow); border-radius: 50px; display: flex; align-items: center; gap: 2rem; padding: 66px 40px 100px 80px; }
.featured-text { flex: 1 1 50%; }
.featured-text h2 { font-size: 1.875rem; font-family: 'Playfair Display', serif; line-height: 1.4; font-weight: 700; margin: 0 0 2rem; }
.featured-text p { font-family: 'Lora', serif; margin: 0 0 1rem; font-size: 1rem; line-height: 1.8; }
.featured-image { flex: 1 1 50%; }
.featured-image img { border-radius: 10px; width: 100%; height: auto; }

/* ▸ Footer --------------------------------------------------------------- */
.footer { background: #090303; color: white; padding: 60px 32px; font-family: 'Inter', sans-serif; }
.footer-container { max-width: 1280px; margin: auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid #444; }

/* ▸ Modal ---------------------------------------------------------------- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); }
.modal-content { position: relative; background: #fff; margin: 5% auto; padding: 0; border-radius: 10px; width: 80%; max-width: 1000px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease-in-out; }
.modal-content iframe { width: 100%; height: 80vh; border: none; border-radius: 10px; }
#closeModal { position: absolute; top: -40px; right: 0; font-size: 28px; font-weight: bold; color: #fff; cursor: pointer; transition: 0.3s; }
#closeModal:hover { color: #ccc; }
@keyframes fadeIn { from {opacity: 0; transform: scale(0.9);} to {opacity: 1; transform: scale(1);} }

/* ▸ Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
    .page-title { font-size: 2.5rem; }
    .featured-section, .filter-section { flex-direction: column; padding: 40px 20px; }
}