/* ==============================================
   Homepage Styles - West Bengal Weight Lifting Association
   Professional, Responsive, and Accessible Design
   ============================================== */

/* ==============================================
   1. GLOBAL OVERRIDES & UTILITIES
   ============================================== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container, .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .container {
        /* max-width: 1140px; */
    }
}

/* ==============================================
   2. HEADER & NAVIGATION IMPROVEMENTS
   ============================================== */

/* Better responsive header without extreme size reduction */
@media (max-width: 991px) {
    header {
        padding: 12px 0;
    }

    .navbar-logo {
        height: 50px;
        min-height: 45px;
    }

    .navbar-brand {
        font-size: 0.75rem;
        max-width: 350px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .nav-link {
        margin: 10px 0;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .navbar-collapse {
        background-color: #1a1f35;
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        box-shadow: none;
        margin-top: 8px;
        margin-left: 15px;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item.show .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .join-btn {
        width: 100%;
        margin-top: 15px;
        padding: 12px 20px;
    }
}

/* Tablet landscape */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .navbar-logo {
        height: 45px;
        min-height: 40px;
    }

    .navbar-brand {
        font-size: 10px;
        max-width: 325px;
    }

    .navbar-toggler {
        padding: 6px 10px;
        border-width: 2px;
    }

    .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        outline: none;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    header {
        padding: 8px 0;
    }

    .navbar-logo {
        height: 42px;
        min-height: 38px;
    }

    .navbar-brand {
        font-size: 9px;
        letter-spacing: 0.5px;
        max-width: 235px;
    }

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

/* Small mobile phones - maintain readability */
@media (max-width: 375px) {
    .navbar-logo {
        height: 40px;
        min-height: 36px;
    }

    .navbar-brand {
        font-size: 0.6rem;
        max-width: 150px;
        letter-spacing: 0.3px;
    }

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

/* ==============================================
   3. HERO BANNER SECTION
   ============================================== */
.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin: 0;
}

.hero-banner .carousel {
    width: 100%;
}

.hero-banner .carousel-inner {
    width: 100%;
    height: 600px;
}

.hero-banner .carousel-item {
    height: 600px;
    background: #1a1f35;
}

.hero-banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-banner .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 60px 20px 40px;
    text-align: center;
    z-index: 10;
}

.hero-banner .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-banner .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.hero-banner .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-banner .carousel-indicators button.active {
    background-color: #c41e3a;
    transform: scale(1.2);
}

.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(196, 30, 58, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-banner:hover .carousel-control-prev,
.hero-banner:hover .carousel-control-next {
    opacity: 1;
}

.hero-banner .carousel-control-prev {
    left: 20px;
}

.hero-banner .carousel-control-next {
    right: 20px;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
    background: rgba(196, 30, 58, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-banner .carousel-control-prev:focus,
.hero-banner .carousel-control-next:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Hero Banner Responsive */
@media (max-width: 768px) {
    .hero-banner .carousel-inner {
        height: 400px;
    }

    .hero-banner .carousel-item {
        height: 400px;
    }

    .hero-banner .carousel-caption {
        padding: 40px 15px 30px;
    }

    .hero-banner .carousel-caption h2 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .hero-banner .carousel-control-prev {
        left: 10px;
    }

    .hero-banner .carousel-control-next {
        right: 10px;
    }

    .hero-banner .carousel-control-prev-icon,
    .hero-banner .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .hero-banner .carousel-inner {
        height: 300px;
    }

    .hero-banner .carousel-item {
        height: 300px;
    }

    .hero-banner .carousel-caption {
        padding: 30px 10px 20px;
    }

    .hero-banner .carousel-caption h2 {
        font-size: 1.25rem;
        letter-spacing: 0.5px;
    }

    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .hero-banner .carousel-control-prev-icon,
    .hero-banner .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .hero-banner .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
}

/* ==============================================
   4. LATEST NEWS MARQUEE
   ============================================== */
.latest-news-marquee {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    min-height: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
}

.news-marquee-label {
    background: #1a1f35;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-marquee-label i {
    color: #fff;
    opacity: 0.9;
}

.news-marquee-scroll-container {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    min-width: 0;
}

.news-marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.news-marquee-item {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.news-marquee-item i {
    color: #fff;
    opacity: 0.8;
    font-size: 0.375rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .news-marquee-item {
        font-size: 0.8rem;
        margin-right: 40px;
    }

    .news-marquee-label {
        font-size: 0.65rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .news-marquee-label {
        font-size: 0.6rem;
        padding: 8px 12px;
    }

    .news-marquee-item {
        font-size: 0.75rem;
        margin-right: 30px;
    }
}

/* ==============================================
   5. GAME INFO SECTION
   ============================================== */
.game-info-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 0;
}

.game-info {
    background-color: white;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 1140px;
}

.game-teams {
    text-align: center;
}

.game-label {
    font-size: 0.7rem;
    color: #c41e3a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.teams-row {
    margin-bottom: 15px;
}

.team {
    text-align: center;
}

.team-name {
    font-size: 1.375rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1f35;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.team-score {
    color: #c41e3a;
    font-size: 1.75rem;
    font-weight: 700;
}

.team-location {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.vs-text {
    color: #c41e3a;
    font-size: 0.875rem;
    font-weight: 700;
}

.game-info-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.info-btn {
    background-color: transparent;
    border: 1px solid #c41e3a;
    color: #c41e3a;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    border-radius: 4px;
}

.info-btn:hover,
.info-btn:focus {
    background-color: #c41e3a;
    color: white;
    outline: 2px solid #1a1f35;
    outline-offset: 2px;
}

.countdown {
    text-align: center;
}

.countdown-date {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timer-item {
    background: linear-gradient(135deg, #c41e3a, #a01830);
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

.timer-number {
    font-size: 1.75rem;
    font-weight: 900;
}

.timer-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .game-info {
        margin-top: -30px;
        padding: 20px 15px;
    }

    .team-name {
        font-size: 1.125rem;
    }

    .team-score {
        font-size: 1.5rem;
    }

    .timer-item {
        padding: 10px;
    }

    .timer-number {
        font-size: 1.25rem;
    }

    .info-btn {
        font-size: 0.65rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .game-info-btns {
        flex-direction: column;
    }

    .info-btn {
        width: 100%;
    }
}

/* ==============================================
   6. SECTION HEADERS
   ============================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #c41e3a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1f35;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-description {
    font-size: 0.9375rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-label {
    font-size: 0.875rem;
    color: #c41e3a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1f35;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .section-main-title,
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle,
    .section-label {
        font-size: 0.75rem;
    }

    .section-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .section-main-title,
    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* ==============================================
   7. IMPORTANT NEWS SECTION
   ============================================== */
.important-news-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.important-news-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196,30,58,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.news-slider {
    position: relative;
    z-index: 1;
    margin: 0 -15px;
}

.news-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.news-slider .slick-slide {
    height: auto;
    display: flex;
}

.news-slider .slick-slide > div {
    width: 100%;
    height: 100%;
    display: flex;
}

.news-card-wrapper {
    padding: 0 15px;
    height: 100%;
    display: flex;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196,30,58,0.2);
}

.news-card:focus-within {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f35 0%, #c41e3a 100%);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(196,30,58,0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1f35;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover,
.read-more-btn:focus {
    background: linear-gradient(135deg, #a01830 0%, #c41e3a 100%);
    transform: translateX(5px);
    color: white;
    outline: 2px solid #1a1f35;
    outline-offset: 2px;
}

.view-all-news {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    background-color: #1a1f35;
    color: white;
    border: 2px solid #1a1f35;
    padding: 15px 40px;
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.view-all-btn:hover,
.view-all-btn:focus {
    background-color: transparent;
    color: #1a1f35;
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

.no-news-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-news-message i {
    font-size: 4rem;
    color: #c41e3a;
    margin-bottom: 20px;
}

.no-news-message h3 {
    font-size: 1.5rem;
    color: #1a1f35;
    margin-bottom: 10px;
}

.no-news-message p {
    font-size: 1rem;
    color: #666;
}

/* Slick Slider Customization */
.news-slider .slick-list {
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 15px;
}

.slick-prev,
.slick-next {
    width: 50px;
    height: 50px;
    z-index: 100;
    background: rgba(196,30,58,0.9) !important;
    border-radius: 50%;
    transition: all 0.3s;
}

.slick-prev:hover,
.slick-next:hover,
.slick-prev:focus,
.slick-next:focus {
    background: rgba(196,30,58,1) !important;
    transform: scale(1.1);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.slick-prev {
    left: -60px;
}

.slick-next {
    right: -60px;
}

.slick-prev:before,
.slick-next:before {
    font-size: 1.5rem;
    opacity: 1;
}

.slick-dots {
    bottom: -50px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 2px solid #c41e3a;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
    background: rgba(196,30,58,0.5);
    outline: none;
}

.slick-dots li.slick-active button {
    background: #c41e3a;
    transform: scale(1.3);
}

.slick-dots li button:before {
    display: none;
}

/* Ensure slider container doesn't overflow */
.important-news-section .container {
    overflow: visible;
    padding-left: 60px;
    padding-right: 60px;
}

@media (max-width: 1024px) {
    .important-news-section .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .slick-prev {
        left: -30px;
    }

    .slick-next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .important-news-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .slick-prev {
        left: 0;
        z-index: 100;
    }

    .slick-next {
        right: 0;
        z-index: 100;
    }

    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
    }

    .slick-prev:before,
    .slick-next:before {
        font-size: 1.2rem;
    }
}

/* ==============================================
   8. GALLERY SECTION
   ============================================== */
.gallery-section {
    padding: 80px 0;
    background: #fff;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.25);
}

.gallery-item:focus-within {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 31, 53, 0) 0%, rgba(26, 31, 53, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-section {
        padding: 60px 0;
    }
}

/* ==============================================
   9. UPCOMING EVENTS SECTION
   ============================================== */
.upcoming-events-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196,30,58,0.2);
}

.event-card:focus-within {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(196,30,58,0.4);
    z-index: 10;
}

.event-date-day {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.event-date-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    opacity: 0.9;
}

.event-header {
    background: linear-gradient(135deg, #1a1f35 0%, #2a3050 100%);
    padding: 30px;
    position: relative;
}

.event-type-badge {
    display: inline-block;
    background: rgba(196,30,58,0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.event-body {
    padding: 25px 30px;
}

.event-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #666;
}

.event-info-item i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #c41e3a;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.event-footer {
    padding: 0 30px 25px;
}

.view-details-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.view-details-btn:hover,
.view-details-btn:focus {
    background: linear-gradient(135deg, #a01830 0%, #c41e3a 100%);
    transform: translateX(5px);
    color: white;
    outline: 2px solid #1a1f35;
    outline-offset: 2px;
}

.no-events {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-events i {
    font-size: 4rem;
    color: #c41e3a;
    margin-bottom: 20px;
}

.no-events h3 {
    font-size: 1.5rem;
    color: #1a1f35;
    margin-bottom: 10px;
}

.no-events p {
    font-size: 1rem;
    color: #666;
}

.view-all-events-btn {
    display: inline-block;
    background-color: #1a1f35;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 40px;
    border: 2px solid #1a1f35;
}

.view-all-events-btn:hover,
.view-all-events-btn:focus {
    background-color: transparent;
    color: #1a1f35;
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        margin-bottom: 20px;
    }

    .event-header {
        padding: 25px 20px;
    }

    .event-body {
        padding: 20px;
    }

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

/* ==============================================
   10. UTILITY CLASSES & ACCESSIBILITY
   ============================================== */

/* Skip to main content link for keyboard users */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #1a1f35;
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* Focus visible for better keyboard navigation */
*:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* Image placeholder for missing images */
.image-placeholder {
    background-color: rgba(196, 30, 58, 0.2);
    border: 2px dashed #c41e3a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c41e3a;
    font-size: 1.125rem;
}

/* Responsive text utilities */
@media (max-width: 576px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* ==============================================
   11. PRINT STYLES
   ============================================== */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    footer {
        display: none !important;
    }

    body {
        background: white;
    }

    .news-card,
    .event-card,
    .gallery-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
