.campus-events-section {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
}

.events-left {
  display: flex;
  flex-direction: column;
}
.events-subtitle {
    font-family: 'Acme', 'cursive';
    font-size: 24px;
    font-weight: 500;
    color: #cf171f;
    letter-spacing: 1px;
    text-align: left;
    margin:0;
    
}
section#blog-home img.entered.lazyloaded {
    padding-right: 10px;
}
.events-title {
    font-size: 55px;
    color: #363539;
    font-weight: 800;
    text-align: left;
}
.tab-buttons {
    text-align: center;
    display: flex;
    justify-content: flex-end; 
    gap: 20px;
}

.tab-buttons button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    background-color: #f4f4f4;
    color:#ce171f;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
}

.tab-buttons .active {
    background-color: #ce171f;
    color: white;
}
.tab-buttons button:hover {
    background-color: #302861; /* Red background */
    color: #fff; /* White text */
}
.event-slider-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-top: 20px;
}

.event-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    gap: 20px;
    scrollbar-width: none; /* Hide scrollbar for modern browsers */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.event-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari */
}

.event-card {
    flex: 0 0 auto;
    width: 350px;
    height:280px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative; /* Ensure h2 is positioned relative to this */
    display: block; /* Make sure event cards are visible */
    overflow: hidden; /* Prevent text from overflowing */
}

.event-card img {
    width: 100% !important;
    border-radius: 10px !important;
    height:100% !important;
    object-fit: cover !important;
}

.event-card h2 {
    position: absolute;
    width: 300px !important;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #d40000;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px !important;
    font-weight: bold;
    z-index: 5; /* Ensure it's above the image */
    white-space: normal !important;
    letter-spacing: 1px;
}
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ce171f;
    color: white;
    width:35px;
    height:35px;
    border: none;
 /*   padding: 10px; */
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.slider-button:hover {
    background: #302861;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}
@media screen and (max-width: 768px) {
    .campus-events-section {
        padding: 10px;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .tab-buttons button {
        width: 100%;
        font-size: 20px;
        padding: 8px 16px;
    }

    .event-slider {
        gap: 10px;
        padding: 5px;
    }

    .event-card {
        width: 250px;
        height: 200px;
    }

    .event-card h2 {
        font-size: 14px;
        padding: 6px 12px;
    }

    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
        padding: 5px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }
}
/* Gallery grid container */
/* Target the editor content */
#event_description_editor {
    font-size: 20px; /* Set the font size */
    line-height: 1.5; /* Adjust line height */
    color: #333; /* Set text color */
}

.event-gallery-title {
    text-align: center;
    font-family: 'Urbanist';
    font-size: 45px;
    margin-bottom: 10px;
    color: #ce171f;
    font-weight: bold;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default desktop layout */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
}

/* Each gallery item (image) styling */
.event-gallery-item {
    overflow: hidden;
    border-radius: 15px; /* Rounded corners for each image */
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Shadow effect for each item */
    transition: transform 0.3s ease-in-out;
    height: 250px; /* Set a fixed height for each image */
    display: flex;
    
}

/* Image styling */
.img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images are contained nicely without distortion */
    transition: transform 0.3s ease-in-out;
    border-radius: 15px;
    display: block;
}

/* Image hover effect */
.event-gallery-item:hover {
    transform: scale(1.05); /* Zoom effect when hovered */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Make the layout responsive */
@media (max-width: 768px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .event-gallery-grid {
        grid-template-columns: 1fr; /* 1 item per row on small screens */
    }
}
/*Single Detail Page*/

img.event-photo {
    border-radius: 20px !important;
}
/* Gallery Container Styling */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Each Gallery Image */
.gallery-container .gallery-image {
    width: 100%;
    max-width: 300px; /* You can adjust this size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect for Images */
.gallery-container .gallery-image:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}
/* 
/* Default message special style */
.default-message {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #ff416c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite, pulse 2s ease-in-out infinite;
    text-transform: uppercase;
}

/* Shining effect */
@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
