:root {
    --primary-color: #d4af37;
    /* Gold */
    --secondary-color: #1a1a1a;
    /* Dark Gray */
    --background-color: #121212;
    /* Very Dark Gray */
    --surface-color: #1e1e1e;
    /* Dark Gray Surface */
    --text-color: #e0e0e0;
    /* Off-white */
    --text-muted: #a0a0a0;
    --accent-color: #c0c0c0;
    /* Silver */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown a i {
    margin-left: 0.25rem;
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none;
    /* No underline for dropdown items */
}

/* Arrow rotation */
.dropdown:hover .fa-caret-down {
    transform: rotate(180deg);
}

.fa-caret-down {
    transition: transform 0.3s;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    color: var(--secondary-color);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    height: 46px;
    white-space: nowrap;
}

.btn-secondary:hover,
.btn-secondary.active {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Responsive Iframe */
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Invert colors to make white background dark */
    filter: invert(0.92) hue-rotate(180deg);
}

/* Mobile optimization for Google Sheets */
@media (max-width: 768px) {
    .iframe-wrapper {
        padding-bottom: 100%;
        /* Increase height ratio for mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .iframe-wrapper iframe {
        width: 153%;
        /* 100 / 0.65 */
        height: 153%;
        transform: scale(0.65);
        transform-origin: 0 0;
    }
}

/* Footer */
footer {
    background-color: #000000;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Menu - Always Expanded */
    /* Ensure dropdowns take full width in the column layout */
    .nav-links.active .dropdown {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links.active .dropdown>a {
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
        display: block;
    }

    /* Force the menu to be visible when parent nav is active */
    .nav-links.active .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.03);
        width: 100%;
        padding: 0.5rem 0;
        min-width: unset;
        border-radius: 4px;
        margin-top: 0;
    }

    /* Additional specificity to override any other rules */
    @media (max-width: 768px) {
        .dropdown-menu {
            display: block !important;
            /* Fallback */
        }
    }

    .dropdown-menu li {
        text-align: center;
        width: 100%;
    }

    .dropdown-menu a {
        padding: 0.6rem 0;
        font-size: 0.95rem;
        color: var(--text-muted);
        display: block;
        width: 100%;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-color);
    }

    /* Hide the arrow since it's always expanded */
    .dropdown .fa-caret-down {
        display: none;
    }
}

.hidden {
    display: none !important;
}

/* Minimal Cookie Bar */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    max-width: 400px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

#cookie-banner p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.4;
}

#cookie-banner button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

#cookie-banner button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

@media (max-width: 480px) {
    #cookie-banner {
        left: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #cookie-banner button {
        align-self: flex-end;
    }
}