:root {
    --night: #030712;
    --deep: #0f172a;
    --primary: #1c7ed6;
    --primary-dark: #0b5ed7;
    --accent: #f7b733;
    --muted: #94a3b8;
    --soft: #e2e8f0;
    --background: #f7f8fb;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    background: var(--background);
    color: var(--deep);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(28, 126, 214, 0.12), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(247, 183, 51, 0.18), transparent 50%);
    z-index: -1;
}

main {
    overflow: hidden;
    padding-top: 160px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

section {
    padding: 90px 24px;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 12px 0;
}

.section-header p {
    color: var(--muted);
    margin: 0;
}

/* =============================================
   HEADER & NAVBAR
============================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(100deg, rgba(3, 7, 18, 0.97), rgba(15, 23, 42, 0.9));
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    max-height: 200px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(3, 7, 18, 0.35);
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease, transform 0.35s ease, border-bottom-color 0.35s ease, background-color 0.35s ease;
}

.top-bar.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-20px);
    border-bottom-color: transparent;
    pointer-events: none;
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5f5;
    font-size: 0.85rem;
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.top-social:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-top-login {
    background: var(--accent);
    color: var(--night);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.top-user {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar {
    position: relative;
    width: 100%;
    background: rgba(3, 7, 18, 0.85);
    padding: 8px 0;
    box-shadow: 0 20px 45px rgba(3, 7, 18, 0.22);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease, transform 0.35s ease;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.92);
    box-shadow: 0 25px 55px rgba(3, 7, 18, 0.35);
    transform: translateY(-2px);
}

.navbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-logo img {
    height: 52px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-menu a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e2e8f0;
    position: relative;
    padding: 8px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.btn-login {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #fff;
    color: var(--deep);
}

.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    min-width: 220px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    padding: 12px 0;
    display: none;
}

.has-dropdown {
    position: relative;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: block;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--deep);
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dropdown li a:hover {
    background: rgba(28, 126, 214, 0.08);
    transform: translateX(4px);
}

.has-sub-dropdown {
    position: relative;
}

.dropdown-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-subtitle::after {
    content: '>';
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border-radius: 14px;
    min-width: 200px;
    padding: 12px 0;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    display: none;
    z-index: 5;
}

.has-sub-dropdown:hover > .dropdown-subtitle,
.has-sub-dropdown:focus-within > .dropdown-subtitle {
    background: rgba(28, 126, 214, 0.08);
    color: var(--accent);
}

.has-sub-dropdown:hover > .dropdown-subtitle::after,
.has-sub-dropdown:focus-within > .dropdown-subtitle::after {
    transform: translateX(4px);
    color: var(--accent);
}

.has-sub-dropdown:hover > .sub-dropdown,
.has-sub-dropdown:focus-within > .sub-dropdown {
    display: block;
}

.dropdown-title {
    color: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
}

/* =============================================
   HERO SECTION
============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 190px 24px 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slideshow {
    z-index: 0;
    filter: saturate(0.7);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(120deg, rgba(3, 7, 18, 0.92), rgba(28, 126, 214, 0.4));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.hero-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.7rem;
    line-height: 1.2;
    color: #fff;
    margin: 18px 0;
}

.hero-highlight {
    color: var(--accent);
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--night);
}

.btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
}

.metric-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 24px;
    color: #fff;
    backdrop-filter: blur(14px);
}

.hero-hours ul li {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: inline-block;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    margin-top: 12px;
}

.news-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-indicators .indicator {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-indicators .indicator.active {
    background: var(--accent);
    height: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
}

.scroll-indicator i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =============================================
   SEARCH SECTION
============================================= */

.search-section {
    padding-top: 60px;
}

.search-grid {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 32px;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
}

.search-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--muted);
}

.search-highlights i {
    color: var(--primary);
}

.search-form-wrapper {
    background: linear-gradient(135deg, rgba(28, 126, 214, 0.08), rgba(247, 183, 51, 0.15));
    border-radius: 24px;
    padding: 32px;
}

.search-form label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--soft);
    border-radius: 18px;
    padding: 10px 18px;
    margin: 16px 0 24px;
    background: #fff;
}

.search-input-group input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
}

.btn-search {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* =============================================
   FEATURE & ABOUT
============================================= */

.feature-section {
    background: #fff;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    min-height: 220px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(28, 126, 214, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.feature-card ul li {
    color: var(--muted);
    margin: 6px 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.about-section {
    background: linear-gradient(120deg, rgba(247, 183, 51, 0.12), rgba(28, 126, 214, 0.08));
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: grid;
    gap: 20px;
}

.photo-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.photo-card.secondary {
    width: 70%;
    margin-left: auto;
    transform: translateY(-30%);
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin: 16px 0;
}

.about-timeline div {
    padding: 18px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-outline {
    display: inline-flex;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid var(--deep);
    font-weight: 600;
    margin-top: 20px;
}

/* =============================================
   CATEGORIES
============================================= */

.categories-section {
    background: #fff;
}

.categories-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.category-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(28, 126, 214, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 12px;
}

/* =============================================
   NEWS SECTION
============================================= */

.news-section {
    background: #f9fafb;
    padding-bottom: 110px;
}

.news-spotlight {
    max-width: 1200px;
    margin: 0 auto 48px;
    background: #fff;
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
}

.spotlight-content {
    padding: 48px;
}

.spotlight-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--primary);
}

.spotlight-meta {
    display: flex;
    gap: 18px;
    color: var(--muted);
    margin: 16px 0;
}

.spotlight-image {
    position: relative;
    min-height: 360px;
}

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

.spotlight-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 2rem;
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

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

.news-thumb-placeholder {
    width: 100%;
    height: 180px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

.news-body {
    padding: 24px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.no-news {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

.no-news i {
    font-size: 44px;
    margin-bottom: 16px;
}

/* =============================================
   LIBRARIANS & MEDIA
============================================= */

.librarians-section {
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 55%), #030712;
    padding: 110px 24px;
    position: relative;
    overflow: hidden;
}

.librarians-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.25;
    pointer-events: none;
}

.librarians-section .section-header {
    text-align: center;
    margin-bottom: 48px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.librarians-section .section-header h2 {
    color: #fff;
}

.librarians-section .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.librarians-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    position: relative;
    z-index: 1;
}

.librarian-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    color: #e2e8f0;
    box-shadow: 0 30px 65px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.librarian-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.6);
}

.librarian-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.librarian-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.librarian-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #facc15, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    box-shadow: 0 15px 30px rgba(250, 204, 21, 0.35);
    overflow: hidden;
    position: relative;
}

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

.librarian-role {
    color: #38bdf8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.librarian-intro {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
}

.librarian-meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(226, 232, 240, 0.85);
}

.librarian-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.librarian-meta i {
    color: #38bdf8;
}

.librarian-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.librarian-footer .btn-outline {
    border-color: rgba(226, 232, 240, 0.4);
    color: #e2e8f0;
}

.librarian-footer .btn-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.librarian-shift {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.librarian-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    color: rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 1;
}

.librarian-empty i {
    font-size: 44px;
    margin-bottom: 12px;
    color: #38bdf8;
}

.librarian-section .section-label,
.librarian-section .section-header h2 {
    color: #fff;
}

.librarian-section .section-header p {
    color: rgba(255, 255, 255, 0.78);
}

.librarian-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.librarian-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    min-height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.librarian-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

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

.librarian-info h3 {
    font-size: 1.25rem;
    margin: 0;
}

.librarian-expertise {
    margin: 6px 0 12px;
    color: rgba(255, 255, 255, 0.72);
}

.librarian-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease;
}

.librarian-contact:hover {
    background: rgba(255, 255, 255, 0.24);
}

.media-section {
    background: #fff;
}

.media-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.media-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.media-embed {
    margin-top: 16px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.media-embed iframe {
    width: 100%;
    height: 100%;
}

.media-embed.instagram iframe {
    background: #fff;
}

.media-embed.instagram {
    aspect-ratio: auto;
    overflow: visible;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.media-embed.instagram blockquote,
.media-embed.instagram iframe,
.media-embed.instagram .instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =============================================
   FOOTER
============================================= */

.site-footer {
    background: #0b1220;
    color: #e2e8f0;
    padding: 70px 24px 24px;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links a {
    color: #e2e8f0;
}

.footer-links a:hover {
    color: var(--accent);
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 1024px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        right: 24px;
        flex-direction: column;
        background: rgba(3, 7, 18, 0.9);
        border-radius: 18px;
        padding: 18px;
        width: 220px;
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .dropdown,
    .sub-dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 12px;
    }

    .sub-dropdown {
        margin-top: 8px;
        padding-left: 12px;
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown-subtitle::after {
        transform: none !important;
    }

    .top-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-inner,
    .search-grid,
    .feature-grid,
    .about-grid,
    .news-spotlight,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .photo-card.secondary {
        margin-left: 0;
        transform: translateY(0);
        width: 100%;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 130px;
    }

    .hero {
        padding-top: 210px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid,
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-grid {
        padding: 32px;
    }

    .spotlight-content {
        padding: 32px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding: 60px 20px 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 64px 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .search-grid,
    .search-form-wrapper,
    .spotlight-content {
        padding: 24px;
    }

    .spotlight-meta {
        flex-direction: column;
    }

}
