:root {
    --primary-color: #b71c1c;
    /* Deep Red from building */
    --secondary-color: #fdd835;
    /* Gold/Yellow from logo */
    --text-light: #ffffff;
    --text-dark: #333333;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: transparent;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    color: var(--text-dark);
    /* Changed to dark since we might have white background borders */
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Full Screen Layout */
.institutions-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* Full Screen Slider */
.slider-section {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 350px);
    /* Reduced width to exclude sidebar */
    height: 100%;
    z-index: 1;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideCycle 25s infinite;
    /* Adjusted for 5 slides */
}

/* .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
} */

/* Staggered Slide Animation for 5 Slides */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

.slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes slideCycle {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }

    4% {
        opacity: 1;
        animation-timing-function: ease-out;
    }

    20% {
        opacity: 1;
    }

    24% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slide-content {
    position: absolute;
    bottom: 100px;
    right: 180px;
    /* Moved to Right */
    left: auto;
    z-index: 10;
    color: white;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    animation: contentUp 25s infinite;
    /* Synced with slideCycle */
    text-align: right;
    /* Align text to right */
}

.slide:nth-child(1) .slide-content {
    animation-delay: 0s;
}

.slide:nth-child(2) .slide-content {
    animation-delay: 5s;
}

.slide:nth-child(3) .slide-content {
    animation-delay: 10s;
}

.slide:nth-child(4) .slide-content {
    animation-delay: 15s;
}

.slide:nth-child(5) .slide-content {
    animation-delay: 20s;
}

@keyframes contentUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    4% {
        opacity: 1;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    24% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    /* Reduced to 50% of 3.5rem */
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    white-space: nowrap;
    /* Force one line */
}

.slide-content p {
    font-size: 0.8rem;
    /* Reduced from 1.2rem to be readable but smaller */
    font-weight: 300;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Force one line */
}

/* Right Side: Overlay Sidebar -> Now Left Side */
/* Right Side: Overlay Sidebar -> Now Right Side */
/* Right Side: Overlay Sidebar -> Now Right Side */
.institutions-sidebar {
    position: fixed;
    left: auto;
    /* Reset left */
    right: 0;
    /* Align to Right */
    top: 0;
    width: auto;
    height: calc(100vh - 40px);
    /* Adjusted for footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
    /* Align items to the right */
    z-index: 100;
    background: transparent;
    pointer-events: none;
    padding-bottom: 0px;
    /* Removed bottom space */
}

.sidebar-heading {
    writing-mode: horizontal-tb;
    /* Horizontal text */
    text-orientation: initial;
    transform: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px;
    font-size: 0.9rem;
    /* Reduced font size */
    pointer-events: auto;
    background: #333;
    /* Dark background to differentiate from list */
    height: auto;
    width: 100%;
    /* Full width of sidebar */
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* Interactive Card Styles */
.institution-card {
    flex: 1;
    /* Grow and shrink equally */
    min-height: 0;
    /* Allow shrinking below content size */
    display: flex;
    flex-direction: row-reverse;
    /* Logo on Right, Text on Left */
    align-items: center;
    text-decoration: none;
    padding: 0 1.5rem;
    /* Reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #333;
    /* Fallback */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    width: 350px;
    /* Reduced width */
    justify-content: flex-start;
    /* Align structure */
    z-index: 100;
}

/* Hover State - Only minimal interaction now */
.institution-card:hover {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.institution-card:last-child {
    border-bottom: none;
}

.logo-wrapper {
    width: 80%;
    /* Relative to container */
    height: 80%;
    max-width: 80px;
    /* Reduced max size */
    max-height: 80px;
    position: relative;
    transform: none;
    transition: transform 0.4s ease;
    z-index: 5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* Solid white background restored */
    padding: 5px;
    /* Padding restored */
    border-radius: 8px;
    /* Rounded corners restored */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hover: Scale logo slightly */
.institution-card:hover .logo-wrapper {
    transform: scale(1.05);
}

.logo-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.institution-name {
    /* Text on the Left of Logo */
    position: relative;
    margin-right: 1rem;
    /* Reduced gap */
    /* Gap on right */
    margin-left: 0;
    text-align: right;
    /* Align text to right */
    width: auto;
    flex: 1;
    opacity: 1;
    /* Permanently visible */
    transform: none;
    /* No slide effect */
    transition: none;
    white-space: normal;
    display: block;
    right: auto;
    left: auto;
    min-width: 150px;
    /* Ensure text creates layout space when revealed */
}

/* Reveal Text on Hover - No longer needed as it is permanent */
.institution-card:hover .institution-name {
    opacity: 1;
    transform: none;
}

.institution-name h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    /* Reduced font size */
    line-height: 1.2;
    color: #ffffff;
    /* White text for colored backgrounds */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: block;
}

/* Institution Specific Background Colors */
/* Default State: Solid Brand Color */
/* Hover State: Solid Brand Color */

/* 1. Keshav Prasad Ralhi P.G. College (Red) */
.institution-card:nth-child(2) {
    /* +1 index due to header div */
    background-color: #b71c1c;
}

/* 2. KPR ITI (Blue) */
.institution-card:nth-child(3) {
    background-color: #1565c0;
}

/* 3. RNS ITI (Orange) */
.institution-card:nth-child(4) {
    background-color: #ef6c00;
}

/* 4. Inter College (Green) */
.institution-card:nth-child(5) {
    background-color: #2e7d32;
}

/* 5. International School (Light Blue/Cyan) */
.institution-card:nth-child(6) {
    background-color: #0277bd;
}

/* "Click To Visit" Message Style - White */
.click-msg {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}



/* Main Welcome Overlay - Integrated into Slider Section */
.welcome-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    left: auto;
    width: auto;
    text-align: right;
    pointer-events: none;
    z-index: 20;
    opacity: 1;
    animation: none;
}

.welcome-overlay .main-title {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.welcome-overlay .tagline {
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    margin-top: -10px;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.8rem;
    z-index: 10;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Footer override for scrolling pages */
.relative-footer {
    position: relative;
    background: #333;
    /* Dark background */
    margin-top: 2rem;
    bottom: auto;
    text-shadow: none;
    padding: 1.5rem 0;
    /* Ensure padding */
}

.relative-footer p {
    color: #fff !important;
    /* Force white text */
    margin: 0;
}

/* Top Horizontal Menu Styles */
.top-nav {
    position: fixed;
    top: 40px;
    right: auto;
    left: 40px;
    display: flex;
    gap: 20px;
    z-index: 200;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    text-decoration: none;
    color: white;
    border-radius: 30px;
    /* Rounded pill shape */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.nav-btn .btn-text {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: white;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover .btn-text {
    color: var(--primary-color);
    text-shadow: none;
}

/* Responsive */
/* Responsive Layout (Mobile/Tablet) */
@media (max-width: 900px) {

    /* Hide Footer */
    footer {
        display: none !important;
    }

    /* Main Container - Full viewport flex column */
    .institutions-section {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
        padding: 0;
    }

    /* 1. Slider Section - Top (Fixed Height) */
    .slider-section {
        width: 100%;
        height: 35vh;
        /* Adjustable */
        position: relative;
        flex: none;
    }

    /* 2. Sidebar - Middle (Fills remaining space) */
    .institutions-sidebar {
        width: 100%;
        height: auto;
        /* Allow flex to control height */
        flex: 1;
        /* Grow to fill space between slider and buttons */
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        background: transparent;
        pointer-events: auto;
        z-index: 10;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        /* No explicit padding needed */
        overflow: hidden;
        /* Ensure list fits */
    }

    /* Heading inside sidebar */
    .sidebar-heading {
        flex: none;
        padding: 8px;
        font-size: 0.8rem;
        line-height: 1;
        background: #333;
    }

    /* Cards */
    .institution-card {
        flex: 1;
        /* Distribute available height equally */
        flex-direction: row-reverse;
        padding: 0 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 0;
        /* Important for flex shrinking */
        align-items: center;
        width: 100%;
    }

    .logo-wrapper {
        width: 80px;
        /* Doubled size */
        height: 80px;
        transform: none !important;
    }

    .institution-name {
        display: block !important;
        text-align: left;
        /* Align to left to match other cards */
        flex: 1;
        /* Allow text to take remaining space */
        min-width: 0;
        /* Allow shrinking below content size */
        padding-right: 15px;
        /* Gap between text and logo */
    }

    .institution-name h3 {
        font-size: 1.1rem;
        /* Reduced from 1.4rem to fit long names */
        margin: 0;
        white-space: normal;
        /* Allow wrapping */
        overflow: hidden;
        /* Prevent spillover */
        text-overflow: ellipsis;
        line-height: 1.25;
        max-height: 3.8em;
        /* Limit to roughly 3 lines */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .click-msg {
        display: none !important;
    }

    /* 3. Top Buttons - Top (Transparent Background) */
    .top-nav {
        position: absolute;
        /* Place ON TOP of the slider */
        top: 20px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
        /* Side padding to stay within frame */
        background: transparent;
        /* Remove black background */
        order: -1;
        z-index: 2000;
        flex: none;
        flex-wrap: nowrap;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 1.1rem;
        /* Doubled size */
        width: auto;
        flex: 1;
        text-align: center;
        border-radius: 4px;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        /* Allow shrinking */
    }

    .btn-text {
        white-space: normal;
        /* Allow text to wrap inside button if needed */
        line-height: 1.1;
    }
}







/* Dark Navigation Button for Light Backgrounds */
.nav-btn.nav-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.nav-btn.nav-dark .btn-text {
    color: white;
    text-shadow: none;
}

.nav-btn.nav-dark:hover {
    background-color: #8e1616;
    /* Darker Red */
    transform: translateY(-3px);
}

/* Bulletin Board Page Styles */
.bulletin-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    background-color: #f5f5f5;
    /* Light grey background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('college_hero.jpg');
    /* Subtle texture if available, or just solid */
    background-size: cover;
    background-attachment: fixed;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.bulletin-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bulletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bulletin-thumb {
    height: 250px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.bulletin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full document preview */
    transition: transform 0.5s ease;
}

.bulletin-card:hover .bulletin-thumb img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.bulletin-info {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bulletin-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.bulletin-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #8e1616;
    /* Darker red */
}

/* Media Coverage Page - Redesign "Image Cards" */
.media-page {
    background: #f8f9fa;
    /* Clean light grey background */
    background-image: none;
}

/* Page Title Adjustment */
.media-page .page-title {
    color: #b71c1c;
    /* Return to brand red */
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: none;
    text-align: center;
}

.media-page .page-title::after {
    display: none;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Enforce 3 columns */
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Fix for flex container centering alignment */
}

/* Card Base Structure */
.press-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Match height in grid */
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

/* Pill Badge - Now overlaid on image */
.press-pill {
    position: absolute;
    top: 1rem;
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    /* Pill shape */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    width: max-content;
}

/* Pill Colors (Optional accents) */
.pill-red svg {
    stroke: #d32f2f;
}

.pill-blue svg {
    stroke: #1976d2;
}

.pill-dark svg {
    stroke: #333;
}

/* Card Body */
.press-body {
    padding: 1.5rem;
    flex: 1;
    /* Fills remaining space */
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Centered content */
    background: white;
    /* Ensure white background */
}

.press-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.press-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Read More Button Area */
.read-more-wrapper {
    margin-top: auto;
    /* Pushes to bottom of body */
}

.read-more-link {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0;
}

.read-more-link:hover {
    color: #8e1616;
}

/* Footer Action Bar */
.press-footer {
    padding: 1rem;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.press-footer a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

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


/* Lightbox Styles (Keep existing) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    /* Adjust based on your needs */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
    /* Removes bottom space */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--secondary-color);
}

/* Landing Page Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    /* Solid black */
    color: white;
    text-align: center;
    padding: 10px 0;
    /* Total height approx 40-45px */
    z-index: 1000;
    /* Ensure it is on top of everything */
    font-size: 0.9rem;
    height: 40px;
    /* Explicit height */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .press-grid {
        grid-template-columns: 1fr;
    }
}

/* Events Page Styles */
.events-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-image: none;
}

.events-page .page-title {
    color: var(--primary-color);
    position: relative;
}

.events-page .page-title::after {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* Events Grid Layout */
.events-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.events-grid.featured {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.events-grid.regular {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.events-grid.past {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Event Card Base Styles */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Featured Events Styling */
.event-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.event-card.featured:hover {
    border-color: var(--primary-color);
}

/* Event Image Wrapper */
.event-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.event-card.featured .event-image-wrapper {
    height: 350px;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Event Date Badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.event-card:hover .event-date-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.4);
}

.date-day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Past Event Badge */
.past-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.past-event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Body */
.event-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    width: fit-content;
}

.event-card.featured .event-category {
    background: var(--primary-color);
    color: white;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-card.featured .event-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.event-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.event-time,
.event-location,
.event-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-time::before,
.event-location::before {
    content: '';
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 5px;
}

.event-time::before {
    content: '🕐';
}

.event-location::before {
    content: '📍';
}

/* Event Footer */
.event-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.event-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #8e1616;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.btn-view {
    background: #6c757d;
    color: white;
}

.btn-view:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Past Events Styling */
.event-card.past {
    opacity: 0.85;
    background: #f8f9fa;
}

.event-card.past:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-grid.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin: 2rem 0 1.5rem;
    }

    .events-grid.regular {
        grid-template-columns: 1fr;
    }

    .events-grid.past {
        grid-template-columns: 1fr;
    }

    .event-card.featured .event-image-wrapper {
        height: 280px;
    }

    .event-image-wrapper {
        height: 220px;
    }

    .event-body {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .event-card.featured .event-title {
        font-size: 1.5rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .event-date-badge {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    .date-day {
        font-size: 1rem;
    }

    .date-month {
        font-size: 0.6rem;
    }

    .event-body {
        padding: 1rem;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-card.featured .event-title {
        font-size: 1.3rem;
    }
}