:root {
    --bg: #0f1113;
    --card: #0b0c0d;
    --muted: #a8a8a8;
    --gap: 6px;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #eee;
}

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

/* HEADER & NAV */
header {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

header img.logo {
    height: 44px
}

header .brand {
    flex-grow: 1;
}

header h1 {
    margin: 0;
    color: #f3e7c4;
    font-family: 'Segoe Script', cursive;
    font-size: 20px
}

header .subtitle {
    font-size: 12px;
    color: var(--muted);
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    color: var(--muted);
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #f3e7c4;
}

/* CONTROLS & FILTERS */
.controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 28px;
    align-items: center
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filters button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
}

.filters button.active {
    background: linear-gradient(90deg, #2a2a2a, #111);
    border-color: rgba(212, 179, 59, 0.7);
    color: #f7e5b2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6)
}

.search {
    margin-left: auto;
    display: flex;
    gap: 8px
}

.search input {
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 8px;
    color: #ddd
}

/* MAIN & GRID */
main {
    padding: 18px 28px;
    min-height: 60vh;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(297px, 1fr));
    grid-auto-rows: auto;
    /*  grid-template-columns: repeat(5, 1fr);*/
    grid-auto-flow: dense;
    gap: var(--gap);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-section {
    margin-bottom: 40px;
}

.event-section h3 {
    color: #ffd97a;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.event-section p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform .3s
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .9, .2, 1);
    will-change: transform
}

.item:hover img {
    transform: scale(1.1) rotate(.2deg)
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity .28s
}

.item:hover .overlay {
    opacity: 1
}

.caption {
    color: #fff;
    font-size: 13px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7)
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 999
}

.lightbox.open {
    display: flex
}

.lb-inner {
    max-width: 1300px;
    width: 100%;
    max-height: 90vh;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px
}

.lb-media {
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lb-media img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain
}

.lb-side {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 14px;
    border-radius: 12px;
    color: #ddd;
    overflow: auto
}

.lb-side h3 {
    margin: 0 0 8px 0;
    color: #ffd97a
}

.lb-controls button {
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

.lb-controls button:hover {
    opacity: 1;
}

.comments {
    margin-top: 12px
}

.comment {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

footer {
    padding: 18px 28px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 20px;
}

/* GENERIC CONTENT PAGES */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    color: #ccc;
    line-height: 1.6;
}

.content-wrapper h2 {
    color: #ffd97a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-wrapper p {
    margin-bottom: 16px;
}

/* FORMS */
input,
textarea {
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    color: #ddd;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #d4b33b;
}

button[type="submit"],
.btn-primary {
    background: linear-gradient(90deg, #2a2a2a, #111);
    border: 1px solid rgba(212, 179, 59, 0.4);
    color: #f7e5b2;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

button[type="submit"]:hover,
.btn-primary:hover {
    border-color: rgba(212, 179, 59, 1);
    box-shadow: 0 0 10px rgba(212, 179, 59, 0.2);
}

@media (max-width:900px) {
    .lb-inner {
        grid-template-columns: 1fr 260px
    }

    header h1 {
        font-size: 18px
    }
}

@media (max-width:700px) {
    .lb-inner {
        grid-template-columns: 1fr
    }

    .lb-side {
        order: 2
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        font-size: 12px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* DROPDOWN MENU */
.menu-item-dropdown {
    position: relative;
    display: inline-block;
}

.sub-menuP {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.menu-item-dropdown:hover .sub-menuP {
    display: block;
}

.sub-menuP li {
    display: block;
}

.sub-menuP li a {
    display: block;
    padding: 8px 16px;
    color: var(--muted);
    font-size: 13px;
    text-transform: none;
    /* Often dropdown items look better not all-caps, user can adjust if needed */
    transition: all 0.2s;
}

.sub-menuP li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f3e7c4;
}

/* RESPONSIVE MASONRY for specified pages */
@media (max-width: 1400px) {
    .masonry {
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: auto;
    }
}

/* Clickable Tags */
.tag-link {
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.tag-link:hover {
    color: #ffd97a;
    text-decoration: underline;
}

/* Social Links Styles */
.footer-social-links,
.hero-social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-links a,
.hero-social-links a {
    color: var(--muted);
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social-links a:hover,
.hero-social-links a:hover {
    color: #ffd97a;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero Slider Base Styles */
.hero-slider-section {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: #000;
}

.hero-slider,
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item,
.hero-item {
    height: 100%;
}

.hero-item {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Centered Overlay Content */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass to slider if needed, but we'll enable pointer on children */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 20px;
    pointer-events: auto;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-content h2 span {
    color: #ffd97a;
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 34px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-gold {
    background: #c68d2b;
    color: white;
}

.btn-gold:hover {
    background: #aa6d22;
    box-shadow: 0 0 20px rgba(198, 141, 43, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.hero-social-links {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 100;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-social-links {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
}