:root {
    --primary-glass: rgba(255, 255, 255, 0.8);
    --secondary-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --accent-gold: #b8860b;
    --accent-pink: #c71585;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);

    /* Dynamic Theme Variables */
    --blob-1-color: #ff00cc;
    --blob-2-color: #333399;
    --blob-3-color: #00d4ff;
    --site-bg-color: #fdfdfd;
    --badge-text-color: #c71585;
    --badge-bg-color: rgba(214, 51, 132, 0.1);
    --badge-border-color: #c71585;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background: var(--site-bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--blob-1-color);
    animation-duration: 15s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--blob-2-color);
    animation-duration: 18s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--blob-3-color);
    animation-duration: 12s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Glass Utilities */
.glass {
    background: var(--primary-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--secondary-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.glass-card small {
    display: inline-block;
    background: var(--badge-bg-color);
    color: var(--badge-text-color);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--badge-border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-card ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
}

.glass-card ul li i {
    margin-top: 5px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Layout */
.section-padding {
    padding: 3.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #d63384, #4b0082);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-gold {
    background: var(--accent-gold);
    color: #fff;
}

.btn-gold:hover {
    background: #a68410;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.nav-logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(45deg, #1a1a1a, #c71585);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-links a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    padding: 6px 10px;
    border-radius: 50px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-pink);
    background: rgba(199, 21, 133, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero & Headers */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.page-banner {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.banner-img.active {
    opacity: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-header {
    padding: 40px 0;
    text-align: center;
}

.hero-badge {
    background: var(--badge-bg-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    margin-bottom: 40px;
    display: block;
    border: 1px solid var(--badge-border-color);
    color: var(--badge-text-color);
    font-weight: 700;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grids */
.dignitaries-grid,
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dignitary-card {
    overflow: hidden;
    text-align: center;
}

.dignitary-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-glass);
}

.dignitary-info {
    padding: 15px;
}

.dignitary-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.dignitary-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
    }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
    }

    .timeline-left {
        left: 0;
        text-align: right;
    }

    .timeline-right {
        left: 50%;
    }
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    background-color: var(--accent-gold);
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-left::after {
        right: -10px;
    }

    .timeline-right::after {
        left: -10px;
    }
}

.time-tag {
    background: var(--accent-gold);
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Timeline Mobile Compactness */
@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 35px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 5px;
        width: 15px;
        height: 15px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.form-control option {
    background: #fff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(199, 21, 133, 0.1);
}

/* Footer */
footer {
    background: rgba(10, 10, 25, 0.98);
    padding: 4rem 0 3rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

footer h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    h2::after {
        width: 40px;
        margin-top: 5px;
    }

    h3 {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .glass-card {
        padding: 1.25rem;
        margin-bottom: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Mobile Banner Adjustments */
@media (max-width: 768px) {
    .page-banner {
        height: 300px;
        margin-bottom: 0;
    }

    .page-banner h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.2rem;
    }

    .page-banner p {
        font-size: 0.9rem !important;
        padding: 0 10px;
        opacity: 0.9;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-logo-img {
        height: 40px;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Smart Grid for Mobile */
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .workshop-grid .glass-card h3 {
        font-size: 1rem;
    }

    .workshop-grid .glass-card p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Force 1 column for large cards if needed, but keep 2 for stats/small items */
    .hero-content .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .footer-grid {
        text-align: center;
        gap: 40px;
    }

    .logo-wrapper {
        gap: 10px;
    }
}

/* Admin Panel Visibility Fixes */
.admin-sidebar {
    background: rgba(0, 0, 0, 0.03) !important;
    border-right: 2px solid var(--border-glass) !important;
}

.admin-nav-item.active {
    background: var(--accent-pink) !important;
    color: white !important;
}

.admin-nav-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Side Scrolling Utilities */
.scrolling-wrapper {
    overflow-x: auto;
    padding: 20px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-pink) transparent;
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 6px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 10px;
}

.dignitaries-grid.side-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding-bottom: 20px;
}

.dignitaries-grid.side-scroll>* {
    flex: 0 0 350px;
}

@media (max-width: 768px) {
    .dignitaries-grid.side-scroll>* {
        flex: 0 0 280px;
    }
}