:root {
    --primary-color: #2c5282;
    /* Deep Blue */
    --accent-color: #c53030;
    /* Muted Red for accents */
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.5);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 100px;
    /* Offset for sticky header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.site-header {
    background: var(--white);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero */
/* Hero */
.hero {
    height: 70vh;
    /* Reduced to 70vh as requested */
    min-height: 500px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Background Image (Blurred) */
    background-size: cover;
    background-position: center;

    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}

/* Backdrop Overlay to dim the blurred background so text pops */
.slide-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken */
    backdrop-filter: blur(15px);
    /* Strong Blur */
    z-index: 1;
}

/* Main CrispImage */
.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show FULL image */
    object-position: center;
    z-index: 2;
    /* Optional: Drop shadow to separate from background */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay);
    z-index: 2;
}

.hero-content {
    width: 100%;
    animation: fadeIn 1.5s ease-out;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    color: #e2e8f0;
    /* Soft white/gray */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Specific overrides for Blog Page */
.blog-page .hero h1 {
    font-size: 5rem;
}

.blog-page .hero-slogan {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #2a4365;
    /* Darker blue */
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Events */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.event-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateX(5px);
}

.event-date {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.event-location {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar Info cards */
.info-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-lg);
}

.info-card h3 {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.info-card li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    border-left: 2px solid var(--accent-color);
}

.info-card.highlight {
    background: var(--primary-color);
    color: var(--white);
}

.info-card.highlight h3,
.info-card.highlight p,
.info-card.highlight a {
    color: var(--white);
}

/* About Section */
.about-section {
    background: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    /* gray-400 */
    padding: var(--spacing-lg) 0;
    margin-top: auto;
    text-align: center;
}

.admin-link {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: var(--spacing-md);
    display: inline-block;
}

.admin-link:hover {
    opacity: 1;
    color: var(--white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Alert Overlay Styles */
#alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#alert-overlay.hidden {
    display: none;
}

.alert-modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
}

.alert-modal h2 {
    margin-top: 0;
    color: #2d3748;
}

.alert-modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #4a5568;
}

.alert-modal button {
    background: #2c5282;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.alert-modal button:hover {
    opacity: 0.9;
}

/* Alert Types */
.alert-modal.info {
    border-top: 5px solid #4299e1;
}

.alert-modal.warning {
    border-top: 5px solid #ed8936;
}

.alert-modal.danger {
    border-top: 5px solid #f56565;
}

/* Blog Card Redesign */
.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 2rem;
    border: none !important;
}

.blog-card.expandable {
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
}

.blog-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-card-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.btn-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    background: none;
    border: 2px solid transparent;
    padding: 0;
}

.btn-read-more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .blog-card {
        flex-direction: row;
        align-items: stretch;
    }

    .blog-card-image {
        width: 35%;
        height: auto;
        min-height: 250px;
        background-color: #f7fafc;
    }
}