/* ===================================
   Custom Styles for Bhagwan Shailja Narayan Website
   =================================== */

:root {
    --primary-color: #0000a0;
    --secondary-color: #008000;
    --accent-color: #ff0000;
    --warning-color: #ff8040;
    --text-dark: #000000;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ===================================
   Header Styles
   =================================== */

.header-section {
    background: #ffffff;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.header-title {
    text-align: left;
    padding-left: 20px;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.header-title .subtitle {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation Menu */
.navbar {
    padding: 0;
}

.navbar-nav {
    gap: 0;
}

.nav-link {
    padding: 10px 18px !important;
    color: #4a5568 !important;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 0, 160, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 0, 160, 0.1);
    font-weight: 700;
}

/* Responsive Menu Toggle */
.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 160, 0.25);
}

@media (max-width: 992px) {
    .header-title {
        text-align: center;
        padding-left: 0;
        margin-bottom: 15px;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-title .subtitle {
        font-size: 0.9rem;
    }
}

/* ===================================
   Slider/Carousel Styles
   =================================== */

.slider-section {
    background-color: #f0f0f0;
    padding: 20px 0;
    margin: 20px 0;
}

#imageSlider {
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    background-color: #000;
}

.slider-img {
    max-height: 600px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 160, 0.7);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators button {
    background-color: rgba(0, 0, 160, 0.5);
    border: 2px solid var(--primary-color);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .slider-img {
        max-height: 400px;
    }
}

/* ===================================
   Main Content Styles
   =================================== */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    font-family: 'Arial', sans-serif;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

/* Content Boxes */
.content-box {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.content-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.guidelines {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.guidelines-list {
    margin-bottom: 0;
    padding-left: 20px;
}

.guidelines-list li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===================================
   Quick Links/Cards Styles
   =================================== */

.quick-link-card {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.quick-link-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 160, 0.15);
    border-left-color: var(--accent-color);
    transform: translateY(-5px);
}

.quick-link-card .card-body {
    padding: 25px;
}

.quick-link-card i {
    transition: all 0.3s ease;
}

.quick-link-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ===================================
   Teaching Cards
   =================================== */

.teaching-card {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.teaching-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.teaching-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.teaching-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   Testimonials Styles
   =================================== */

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card .card {
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonial-avatar {
    min-width: 60px;
}

.testimonial-stars {
    font-size: 0.9rem;
}

/* ===================================
   News Items Styles
   =================================== */

.news-item {
    transition: all 0.3s ease;
}

.news-item .card {
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-item .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* transform: translateY(-5px); - Removed to prevent flickering */
}

.news-item .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   Contact Form Styles
   =================================== */

.contact-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-card i {
    color: var(--primary-color);
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 160, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* ===================================
   Buttons Styles
   =================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #000080;
    border-color: #000080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 160, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #006000;
    border-color: #006000;
}

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

.btn-warning:hover {
    background-color: #ff7030;
    border-color: #ff7030;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* ===================================
   Alert Styles
   =================================== */

.alert {
    border-radius: 6px;
    border-left: 5px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.alert-success {
    border-left-color: #198754;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-warning {
    border-left-color: #ff8040;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

/* ===================================
   Footer Styles
   =================================== */

.footer-section {
    background-color: #333;
    color: #fff;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.footer-info h6,
.footer-links h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-info p,
.footer-links ul li {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-info a,
.footer-links a {
    color: #ffc107;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-info a:hover,
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-section hr {
    border-color: #555;
    margin: 20px 0;
}

.footer-section .text-center p {
    font-size: 0.9rem;
    margin: 5px 0;
}

/* ===================================
   Utility Classes
   =================================== */

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.cta-section {
    text-align: center;
    border: 2px solid var(--primary-color);
}

.cta-section h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.subscribe-section form {
    max-width: 500px;
}

/* ===================================
   Announcements Section
   =================================== */

.announcements {
    margin-bottom: 30px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-title .subtitle {
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-box {
        padding: 15px;
        margin-bottom: 15px;
    }

    .quick-link-card .card-body {
        padding: 15px;
    }

    .footer-section {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-title .subtitle {
        font-size: 0.75rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    .nav-link {
        padding: 6px 10px !important;
        font-size: 0.9rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .announcement-bar {
        font-size: 0.8rem;
    }
}

/* ===================================
   Announcement Ticker Styles
   =================================== */

.announcement-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-weight: 500;
}

.ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Badge Pulse Animation */
.badge {
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

.badge.bg-warning {
    box-shadow: 0 0 0 rgba(255, 193, 7, 0.4);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {

    .header-section,
    .footer-section,
    .navbar {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .content-box {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* ===================================

    border-top: 1px solid #f0f0f0;
}

.activity-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    width: 100%;
}

.activity-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Gallery Improvements */
.activity-gallery-wrapper .gallery-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.activity-gallery-wrapper .gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.activity-gallery-wrapper .card-img-top,
.activity-gallery-wrapper video {
    border-radius: 12px 12px 0 0 !important;
}

.activity-gallery-wrapper .card-body {
    padding: 20px;
}

.activity-gallery-wrapper .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.activity-gallery-wrapper .card-text {
    color: #666;
    line-height: 1.6;
}

/* ===================================
   Events Page Styles (Collage)
   =================================== */

.event-collage-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}


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


/* ===================================
   Styles Moved from index.html
   =================================== */

/* Header Styling - Overrides */
.header-section {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.header-section .navbar-nav .nav-link {
    color: #000000 !important;
    font-weight: 500;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.header-section .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.header-section .navbar-nav .nav-link.active {
    color: #0d6efd !important;
    background-color: #e7f1ff;
    padding: 8px 12px;
    border-radius: 5px;
}

/* SPA Specific Styles */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Section Styles */
.hero {

    text-align: center;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* Lightbox/Image Viewer Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-title {
    color: white;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    max-width: 100%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-counter {
    color: white;
    position: absolute;
    bottom: 20px;
    font-size: 0.9rem;
}

.gallery-card img,
.gallery-card video {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card img:hover,
.gallery-card video:hover {
    transform: scale(1.05);
}

/* Footer Section - Overrides */
.footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    border-top: 3px solid #f093fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-section h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-section h6 {
    color: #f093fb;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info p {
    line-height: 1.8;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-info a {
    color: #f093fb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: #f5576c;
    text-decoration: underline;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #f093fb;
    padding-left: 8px;
    transform: translateX(5px);
}

.footer-links a::before {
    content: "▸";
    margin-right: 8px;
    color: #f5576c;
}

.footer-contact {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.contact-item i {
    color: #f093fb;
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: #f093fb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #f5576c;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(240, 147, 251, 0.15);
    border: 1px solid #f093fb;
    border-radius: 50%;
    color: #f093fb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: #f093fb;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(240, 147, 251, 0.3);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #f093fb, transparent);
    margin: 40px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    color: #808080;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom a {
    color: #f093fb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f5576c;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo-text h5 {
    margin: 0;
    font-size: 1.1rem;
}

.footer-logo-text p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.8rem;
}

.footer-section .col-md-3,
.footer-section .col-md-4 {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 15px 0;
    }

    .footer-section h5 {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .contact-item {
        margin-bottom: 12px;
    }

    .social-links {
        justify-content: center;
    }
}



/* Link Wrapper */
a.event-link-wrapper {
    color: inherit;
    display: block;
}

a.event-link-wrapper:hover {
    color: inherit;
}

/* Header */
.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    /* Or fallback serif */
}

.event-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Action Button */
.event-action .btn {
    border-width: 1px;
    font-size: 0.85rem;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.event-collage-card:hover .event-action .btn {
    background-color: var(--primary-color);
    color: #fff;
}

/* Collage Grid */
.collage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    height: 410px;
    /* 200 + 200 + gap */
    overflow: hidden;
    border-radius: 8px;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-collage-card:hover .collage-item img {
    transform: scale(1.05);
}

/* First item (index 0) is big one on left */
.collage-item-0 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    /* Spans 2 rows */
}

/* Other items fill remaining slots */
.collage-item-1 {
    grid-column: 2;
    grid-row: 1;
}

.collage-item-2 {
    grid-column: 3;
    grid-row: 1;
}

.collage-item-3 {
    grid-column: 2;
    grid-row: 2;
}

.collage-item-4 {
    grid-column: 3;
    grid-row: 2;
}

@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 150px 150px;
        height: auto;
    }

    .collage-item-0 {
        grid-column: 1 / -1;
        /* Spans full width */
        grid-row: 1;
    }

    .collage-item-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .collage-item-2 {
        grid-column: 2;
        grid-row: 2;
    }

    .collage-item-3 {
        grid-column: 1;
        grid-row: 3;
    }

    .collage-item-4 {
        grid-column: 2;
        grid-row: 3;
    }
}

/* Highlighted Back Button */
.btn-back-highlight {
    background: rgba(255, 255, 255, 0.25);
    /* Increased opacity */
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    /* Thicker, whiter border */
    color: #fff;
    font-weight: 700;
    /* Bolder text */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 35px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
}

.btn-back-highlight:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    /* Stronger hover shadow */
    border-color: #fff;
}

.btn-back-highlight i {
    transition: transform 0.3s ease;
}

.btn-back-highlight:hover i {
    transform: translateX(-5px);
}

/* Mobile Adjustments for Back Button */
@media (max-width: 768px) {
    .btn-back-highlight {
        background: rgba(255, 255, 255, 0.35);
        /* Even more opaque on mobile for readability */
        padding: 14px 40px;
        font-size: 1.1rem;
        width: 80%;
        /* Make it wider on mobile */
        max-width: 300px;
    }
}