﻿@media (min-width: 768px) {
    #newsCarousel .carousel-control-prev,
    #newsCarousel .carousel-control-next {
        width: 50px !important;
        height: 50px !important;
        background: rgba(0, 132, 80, 0.95) !important;
        border-radius: 50% !important;
        top: 125px !important;
        transform: translateY(-50%) !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        z-index: 30 !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
        position: absolute !important;
    }

    /* Show controls on hover */
    #newsCarousel:hover .carousel-control-prev,
    #newsCarousel:hover .carousel-control-next {
        opacity: 1 !important;
    }

    #newsCarousel .carousel-control-prev {
        left: 10px !important;
    }

    #newsCarousel .carousel-control-next {
        right: 10px !important;
    }

        #newsCarousel .carousel-control-prev:hover,
        #newsCarousel .carousel-control-next:hover {
            background: rgba(0, 132, 80, 1) !important;
            transform: translateY(-50%) scale(1.15) !important;
            box-shadow: 0 5px 15px rgba(0, 132, 80, 0.4) !important;
        }

    #newsCarousel .carousel-control-prev-icon,
    #newsCarousel .carousel-control-next-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ========== MOBILE CAROUSEL  ========== */

@media (max-width: 767px) {
    /* Force single card display on mobile */
    #newsCarousel .carousel-item .row {
        display: block !important;
    }

    #newsCarousel .carousel-item .col-12 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

        /*  Hide cards 2 and 3 on mobile, show only first card */
        #newsCarousel .carousel-item .col-12:nth-child(2),
        #newsCarousel .carousel-item .col-12:nth-child(3) {
            display: none !important;
        }

    /* Mobile: Each card becomes its own slide - show all carousel items */
    #newsCarousel .carousel-item {
        display: none !important;
    }

        #newsCarousel .carousel-item.active {
            display: block !important;
        }

    /* Always show controls on mobile */
    #newsCarousel .carousel-control-prev,
    #newsCarousel .carousel-control-next {
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        top: 110px !important;
        background: rgba(0, 132, 80, 0.95) !important;
        border-radius: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 30 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

    #newsCarousel .carousel-control-prev {
        left: 5px !important;
    }

    #newsCarousel .carousel-control-next {
        right: 5px !important;
    }

    #newsCarousel .carousel-control-prev-icon,
    #newsCarousel .carousel-control-next-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Adjust carousel height for mobile */
    #newsCarousel .carousel-item {
        min-height: auto !important;
    }

    /* Add padding for indicators */
    #newsCarousel {
        padding-bottom: 50px !important;
        margin-bottom: 30px !important;
    }

        #newsCarousel .carousel-indicators {
            bottom: -45px !important;
        }
}

/* ========== ANNOUNCEMENT TITLE/CATEGORY OVERLAP FIX ========== */

/* Fix announcement header to prevent title overflow under badge */
.announcement-header {
    padding: 30px 25px 15px 25px;
    position: relative;
    min-height: 100px;
}

/* Ensure title has proper padding to avoid badge overlap */
.announcement-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f3d28;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
    padding-right: 130px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Announcement badge - keep it firmly in top right corner */
.announcement-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1a5c3f, #257a56);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(26, 92, 63, 0.3);
    z-index: 10;
    white-space: nowrap;
    max-width: 110px;
    text-align: center;
}

    .announcement-badge.important {
        background: linear-gradient(135deg, #ff69b4, #ff1493);
        animation: badgePulse 2s infinite;
    }

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive adjustments for announcements */
@media (max-width: 992px) {
    .announcement-header {
        min-height: 110px;
    }

    .announcement-title {
        font-size: 1.3rem;
        padding-right: 125px;
    }

    .announcement-badge {
        max-width: 105px;
        font-size: 0.72rem;
        padding: 5px 14px;
    }
}

@media (max-width: 768px) {
    .announcement-header {
        min-height: 115px;
        padding: 25px 20px 15px 20px;
    }

    .announcement-title {
        font-size: 1.2rem;
        padding-right: 120px;
    }

    .announcement-badge {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 5px 13px;
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .announcement-header {
        min-height: 120px;
        padding: 22px 18px 12px 18px;
    }

    .announcement-title {
        font-size: 1.1rem;
        padding-right: 110px;
        -webkit-line-clamp: 4;
    }

    .announcement-badge {
        top: 10px;
        right: 10px;
        font-size: 0.65rem;
        padding: 4px 11px;
        max-width: 95px;
    }
}

/* ===== REST OF YOUR ORIGINAL CSS BELOW ===== */

/* Smooth fade-in elements */
.fade-in-element {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.2s;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

.card-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Image placeholder shimmer effect */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: inherit;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.carousel-image.loaded ~ .image-placeholder,
.welcome-image-modern.loaded ~ .image-placeholder {
    opacity: 0;
    transition: opacity 0.3s;
}

/* PRELOADER */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f3d28 0%, #1a5c3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .page-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-content {
    text-align: center;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
}

.logo-spin {
    width: 140px;
    height: 140px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

    .logo-spin:nth-child(2) {
        border-top: 3px solid #f5a623;
        animation-delay: 0.2s;
        width: 120px;
        height: 120px;
        top: 10px;
        left: 10px;
    }

.college-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.college-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.loader-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
    opacity: 0.95;
    letter-spacing: 1px;
}

.loading-dots {
    display: inline-block;
}

    .loading-dots span {
        animation: blink 1.4s infinite;
        font-size: 1.8rem;
    }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #f5a623);
    border-radius: 2px;
    animation: progressBar 2s ease-in-out infinite;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Image Loading States */
.carousel-image,
.welcome-image-modern {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

    .carousel-image.loaded,
    .welcome-image-modern.loaded {
        opacity: 1;
    }

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translate3d(0, 0, 0);
}

.carousel-item-next,
.carousel-item-prev {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 0 !important;
}

header, .navbar, .hero-carousel {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    width: 100vw;
    margin: 0;
    padding: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-top: 1px solid #f5a623;
}

.carousel-inner {
    height: 100%;
    width: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-item.active .carousel-image,
.carousel-item-next .carousel-image,
.carousel-item-prev .carousel-image {
    will-change: transform;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 92, 63, 0.7), rgba(15, 61, 40, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.admission-badge {
    background: #ff69b4;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounceIn 0.6s ease 0.7s backwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-btn {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

    .hero-btn:hover {
        background: #ff1493;
        transform: translateY(-2px);
        color: white;
        box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    }

/* FLYER-ONLY MODE */
.carousel-item.flyer-only {
    background: #000;
}

    .carousel-item.flyer-only .carousel-image {
        object-fit: contain !important;
        filter: none !important;
        background: #000;
    }

    .carousel-item.flyer-only .carousel-overlay {
        display: none !important;
    }

/* WELCOME SECTION */
.modern-welcome {
    padding: 80px 0;
    background: #f8faf9;
    position: relative;
    overflow: hidden;
}

.welcome-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.welcome-image-modern {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

    .welcome-image-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

.welcome-image-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a5c3f 0%, #ff69b4 100%);
    transform: rotate(-2deg);
    z-index: 0;
    opacity: 0.3;
}

.welcome-content-modern {
    padding-left: 40px;
}

    .welcome-content-modern h1 {
        font-weight: 800;
        color: #0f3d28;
        font-size: 2.3rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

        .welcome-content-modern h1 span {
            color: #ff69b4;
        }

.title-underline {
    width: 80px;
    height: 4px;
    background: #ff69b4;
    border-radius: 2px;
    margin-bottom: 25px;
    animation: expandWidth 0.8s ease 0.5s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

.welcome-content-modern p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

    .welcome-features li {
        color: #333;
        font-size: 1rem;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 0;
        animation: slideInItem 0.5s ease forwards;
    }

        .welcome-features li:nth-child(1) {
            animation-delay: 0.6s;
        }

        .welcome-features li:nth-child(2) {
            animation-delay: 0.7s;
        }

        .welcome-features li:nth-child(3) {
            animation-delay: 0.8s;
        }

        .welcome-features li:nth-child(4) {
            animation-delay: 0.9s;
        }

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-features i {
    color: #1a5c3f;
    font-size: 1.2rem;
}

.welcome-modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #1a5c3f, #257a56);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(26, 92, 63, 0.3);
    transition: all 0.3s ease;
}

    .welcome-modern-btn:hover {
        background: linear-gradient(90deg, #ff69b4, #ff1493);
        transform: translateY(-3px);
        color: white;
        box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
    }

    .welcome-modern-btn i {
        font-size: 1.2rem;
    }

/* NEWS SECTION */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    position: relative;
}

    .news-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, rgba(248, 250, 249, 0.5), transparent);
        pointer-events: none;
    }

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 80px;
    transition: color 0.3s;
}

.news-card:hover .news-image-placeholder {
    color: #008450;
}

.news-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #008450 0%, #006639 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.news-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

    .news-meta span {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .news-meta i {
        color: #008450;
        font-size: 1rem;
    }

.news-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: #008450;
}

.news-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: #008450;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

    .news-read-more:hover {
        color: #006639;
        transform: translateX(5px);
    }

    .news-read-more i {
        transition: transform 0.3s;
    }

    .news-read-more:hover i {
        transform: translateX(5px);
    }

/* Carousel indicators */
#newsCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

    #newsCarousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #008450;
        opacity: 0.5;
        border: none;
        margin: 0 5px;
        transition: all 0.3s;
    }

        #newsCarousel .carousel-indicators button.active {
            opacity: 1;
            width: 14px;
            height: 14px;
        }

.news-section .text-center.mt-5 {
    margin-top: 4rem !important;
    padding-top: 2rem;
}

/* ANNOUNCEMENTS SECTION */
.announcements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    position: relative;
}

    .announcements-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, rgba(248, 250, 249, 0.5), transparent);
        pointer-events: none;
    }

.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f3d28;
    margin: 10px 0;
    letter-spacing: -0.5px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a5c3f, #ff69b4);
    margin: 15px auto 0;
    border-radius: 2px;
}

.announcements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-card {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
    border-left: 5px solid #ff69b4;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

    .announcement-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a5c3f, #ff69b4, #1a5c3f);
        background-size: 200% auto;
        animation: shimmerTop 3s linear infinite;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .announcement-card:hover::before {
        opacity: 1;
    }

@keyframes shimmerTop {
    to {
        background-position: 200% center;
    }
}

.announcement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(26, 92, 63, 0.2);
    border-left-color: #1a5c3f;
}

.announcement-body {
    padding: 0 25px 20px 25px;
}

.announcement-content {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

    .announcement-content p {
        margin-bottom: 15px;
    }

    .announcement-content strong {
        color: #1a5c3f;
        font-weight: 600;
    }

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: white;
    padding: 11px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    margin-right: 10px;
}

    .announcement-btn:hover {
        background: linear-gradient(135deg, #0052cc, #003d99);
        color: white;
        transform: translateX(5px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    }

    .announcement-btn i {
        font-size: 1rem;
        transition: transform 0.3s;
    }

    .announcement-btn:hover i {
        transform: translateX(3px);
    }

.announcement-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a5c3f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .announcement-readmore-btn:hover {
        color: #ff69b4;
        transform: translateX(5px);
    }

    .announcement-readmore-btn i {
        transition: transform 0.3s;
    }

    .announcement-readmore-btn:hover i {
        transform: translateX(3px);
    }

.announcement-footer {
    padding: 18px 25px;
    background: rgba(245, 166, 35, 0.08);
    border-top: 1px dotted rgba(245, 166, 35, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.announcement-date,
.announcement-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.85rem;
}

    .announcement-date i,
    .announcement-author i {
        color: #ff69b4;
        font-size: 1rem;
    }

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a5c3f, #257a56);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(26, 92, 63, 0.2);
}

    .share-btn:hover {
        background: linear-gradient(135deg, #ff69b4, #ff1493);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    }

    .share-btn i {
        font-size: 1rem;
    }

.share-options {
    position: absolute;
    bottom: 70px;
    right: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    z-index: 1000;
    min-width: 160px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-options.show {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

    .share-option:hover {
        background: #f5f5f5;
        transform: translateX(5px);
    }

    .share-option i {
        font-size: 1.3rem;
    }

    .share-option.whatsapp {
        color: #25D366;
    }

        .share-option.whatsapp:hover {
            background: rgba(37, 211, 102, 0.1);
        }

    .share-option.facebook {
        color: #1877F2;
    }

        .share-option.facebook:hover {
            background: rgba(24, 119, 242, 0.1);
        }

    .share-option.twitter {
        color: #1DA1F2;
    }

        .share-option.twitter:hover {
            background: rgba(29, 161, 242, 0.1);
        }

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a5c3f, #257a56);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(26, 92, 63, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .view-all-btn:hover {
        background: linear-gradient(135deg, #ff69b4, #ff1493);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
        border-color: #ff69b4;
    }

    .view-all-btn i {
        font-size: 1.2rem;
        transition: transform 0.3s;
    }

    .view-all-btn:hover i {
        transform: rotate(90deg);
    }

.announcements-section .bi-megaphone {
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========== DEADLINE ALERT SECTION ========== */

.deadline-alert-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.deadline-alert {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

    .deadline-alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .deadline-alert:hover::before {
        left: 100%;
    }

    .deadline-alert.status-open {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
        border-color: #4caf50 !important;
        box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3) !important;
    }

    .deadline-alert.status-in-progress {
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
        border-color: #ff9800 !important;
        box-shadow: 0 8px 30px rgba(255, 152, 0, 0.3) !important;
    }

    .deadline-alert.status-completed {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
        border-color: #2196f3 !important;
        box-shadow: 0 8px 30px rgba(33, 150, 243, 0.3) !important;
    }

    .deadline-alert.status-closed {
        background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%) !important;
        border-color: #e91e63 !important;
        box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3) !important;
    }

.deadline-alert-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

    .deadline-alert-content > i.bi {
        font-size: 4rem;
        flex-shrink: 0;
        animation: iconPulse 2s infinite;
        line-height: 1;
    }

.status-open .deadline-alert-content > i.bi {
    color: #4caf50 !important;
}

.status-in-progress .deadline-alert-content > i.bi {
    color: #ff9800 !important;
}

.status-completed .deadline-alert-content > i.bi {
    color: #2196f3 !important;
}

.status-closed .deadline-alert-content > i.bi {
    color: #e91e63 !important;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.deadline-alert-text h4 {
    font-size: 1.8rem;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.deadline-alert-text p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.status-open h4 {
    color: #2e7d32 !important;
}

.status-open p {
    color: #388e3c !important;
}

.status-in-progress h4 {
    color: #e65100 !important;
}

.status-in-progress p {
    color: #f57c00 !important;
}

.status-completed h4 {
    color: #0d47a1 !important;
}

.status-completed p {
    color: #1565c0 !important;
}

.status-closed h4 {
    color: #880e4f !important;
}

.status-closed p {
    color: #c2185b !important;
}

.deadline-alert .view-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a5c3f, #257a56);
    color: white !important;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(26, 92, 63, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

    .deadline-alert .view-list-btn:hover {
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(26, 92, 63, 0.5);
    }

    .deadline-alert .view-list-btn i {
        font-size: 1.3rem;
        transition: transform 0.3s;
    }

    .deadline-alert .view-list-btn:hover i {
        transform: rotate(15deg) scale(1.1);
    }

.status-open .view-list-btn {
    background: linear-gradient(135deg, #4caf50, #45a049) !important;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

    .status-open .view-list-btn:hover {
        background: linear-gradient(135deg, #66bb6a, #4caf50) !important;
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    }

.status-in-progress .view-list-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

    .status-in-progress .view-list-btn:hover {
        background: linear-gradient(135deg, #ffa726, #ff9800) !important;
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
    }

.status-completed .view-list-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

    .status-completed .view-list-btn:hover {
        background: linear-gradient(135deg, #42a5f5, #2196f3) !important;
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
    }

.status-closed .view-list-btn {
    background: linear-gradient(135deg, #e91e63, #c2185b) !important;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

    .status-closed .view-list-btn:hover {
        background: linear-gradient(135deg, #ec407a, #e91e63) !important;
        box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
    }

.deadline-alert {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpAlert 0.6s ease forwards;
}

@keyframes fadeInUpAlert {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deadline-alert:hover {
    transform: translateY(-5px);
}

.status-open.deadline-alert {
    animation: fadeInUpAlert 0.6s ease forwards, urgentPulse 3s infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 8px 40px rgba(76, 175, 80, 0.5);
    }
}

/* ========== FEE PAYMENT INSTRUCTIONS SECTION ========== */

.payment-instructions-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .payment-instructions-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

    .payment-header i {
        font-size: 2.5rem;
        color: #1a5c3f;
        background: linear-gradient(135deg, #1a5c3f, #257a56);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .payment-header h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #0f3d28;
        margin: 0;
        line-height: 1.2;
    }

.payment-body {
    color: #444;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.payment-method-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

    .payment-method-card:hover {
        border-color: #1a5c3f;
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(26, 92, 63, 0.15);
    }

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .method-header i {
        font-size: 1.8rem;
        color: #1a5c3f;
    }

    .method-header h5 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
    }

.method-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
    word-break: break-word;
}

    .detail-value.highlight {
        color: #1a5c3f;
        font-weight: 700;
        font-size: 1.1rem;
        background: rgba(26, 92, 63, 0.1);
        padding: 4px 12px;
        border-radius: 6px;
        display: inline-block;
    }

.method-note {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a5c3f;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

    .method-note i {
        color: #1a5c3f;
        margin-right: 8px;
    }

.payment-footer {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 2px solid #e8e8e8;
}

.payment-reminder {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    margin-bottom: 25px;
}

    .payment-reminder i {
        font-size: 2rem;
        color: #ff9800;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .payment-reminder strong {
        color: #e65100;
        font-size: 1.1rem;
    }

    .payment-reminder p {
        margin: 8px 0;
        color: #666;
        line-height: 1.6;
    }

.upload-section {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 5px solid #4caf50;
    margin-bottom: 25px;
    align-items: center;
}

    .upload-section i {
        font-size: 2rem;
        color: #4caf50;
        flex-shrink: 0;
    }

    .upload-section h6 {
        color: #2e7d32;
        font-weight: 700;
        margin: 0 0 8px 0;
        font-size: 1.1rem;
    }

    .upload-section p {
        margin: 0 0 15px 0;
        color: #388e3c;
    }

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .portal-btn:hover {
        background: linear-gradient(135deg, #66bb6a, #4caf50);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
        border-color: #4caf50;
    }

    .portal-btn i {
        font-size: 1.1rem;
        color: white !important;
    }

.student-account-notice {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 12px;
    border-left: 5px solid #2196f3;
    align-items: flex-start;
}

    .student-account-notice i {
        font-size: 2rem;
        color: #2196f3;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .student-account-notice h6 {
        color: #0d47a1;
        font-weight: 700;
        margin: 0 0 8px 0;
        font-size: 1.1rem;
    }

    .student-account-notice p {
        margin: 0;
        color: #1565c0;
        line-height: 1.6;
    }

/* Animation for payment cards */
.payment-method-card,
.payment-reminder,
.upload-section,
.student-account-notice {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpPayment 0.5s ease forwards;
}

    .payment-method-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .payment-method-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .payment-method-card:nth-child(3) {
        animation-delay: 0.3s;
    }

.payment-reminder {
    animation-delay: 0.4s;
}

.upload-section {
    animation-delay: 0.5s;
}

.student-account-notice {
    animation-delay: 0.6s;
}

@keyframes fadeInUpPayment {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal effect */
.payment-instructions-card.reveal {
    animation: revealCard 0.8s ease forwards;
}

@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .deadline-alert {
        padding: 30px;
        gap: 25px;
    }

    .deadline-alert-content > i.bi {
        font-size: 3.5rem;
    }

    .deadline-alert-text h4 {
        font-size: 1.6rem;
    }

    .deadline-alert-text p {
        font-size: 1rem;
    }

    .deadline-alert .view-list-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Payment Instructions Responsive */
    .payment-instructions-card {
        padding: 30px;
    }

    .payment-header h3 {
        font-size: 1.6rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-method-card {
        padding: 20px;
    }

    .payment-footer {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .welcome-content-modern {
        padding-left: 0;
        text-align: center;
        margin-top: 40px;
    }

        .welcome-content-modern h1 {
            font-size: 1.8rem;
        }

    .title-underline {
        margin: 0 auto 20px auto;
    }

    .welcome-features {
        text-align: left;
        display: inline-block;
    }

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

    .announcements-container {
        grid-template-columns: 1fr;
    }

    .announcement-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-info {
        width: 100%;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .share-options {
        right: 10px;
        left: 10px;
        width: auto;
    }

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

    .news-title {
        font-size: 1.15rem;
    }

    #newsCarousel {
        padding-bottom: 50px;
    }

    .deadline-alert-section {
        padding: 40px 0;
    }

    .deadline-alert {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 25px;
    }

    .deadline-alert-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        width: 100%;
    }

        .deadline-alert-content > i.bi {
            font-size: 4rem;
            margin-bottom: 5px;
        }

    .deadline-alert-text {
        width: 100%;
    }

        .deadline-alert-text h4 {
            font-size: 1.4rem;
            margin-bottom: 10px;
        }

        .deadline-alert-text p {
            font-size: 1rem;
        }

    .deadline-alert .view-list-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1.05rem;
    }

    .deadline-alert:hover {
        transform: translateY(-2px);
    }

    .carousel-item.flyer-only .carousel-image {
        object-fit: cover !important;
    }

    /* Payment Instructions Mobile */
    .payment-instructions-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .payment-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

        .payment-header i {
            font-size: 2.2rem;
        }

        .payment-header h3 {
            font-size: 1.4rem;
        }

    .method-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

        .method-header h5 {
            font-size: 1.2rem;
        }

    .detail-item {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        min-width: auto;
        text-align: left;
    }

    .detail-value {
        text-align: left;
    }

    .payment-reminder,
    .upload-section,
    .student-account-notice {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

        .payment-reminder i,
        .upload-section i,
        .student-account-notice i {
            margin: 0 auto;
            display: block;
        }

    .portal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 45vh;
        min-height: 300px;
    }

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

    .welcome-image-modern {
        height: 350px;
    }

    .news-image-wrapper {
        height: 200px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .deadline-alert-section {
        padding: 30px 0;
    }

    .deadline-alert {
        padding: 25px 18px;
        border-radius: 15px;
        gap: 20px;
    }

    .deadline-alert-content > i.bi {
        font-size: 3.5rem;
    }

    .deadline-alert-text h4 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .deadline-alert-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .deadline-alert .view-list-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

        .deadline-alert .view-list-btn i {
            font-size: 1.2rem;
        }

    /* Payment Instructions Small Mobile */
    .payment-instructions-card {
        padding: 20px 15px;
    }

    .payment-header h3 {
        font-size: 1.3rem;
    }

    .payment-method-card {
        padding: 18px 15px;
    }

    .method-header h5 {
        font-size: 1.1rem;
    }

    .detail-label,
    .detail-value {
        font-size: 0.9rem;
    }

        .detail-value.highlight {
            font-size: 1rem;
        }

    .method-note {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .payment-reminder p,
    .upload-section p,
    .student-account-notice p {
        font-size: 0.9rem;
    }

    .payment-reminder strong,
    .upload-section h6,
    .student-account-notice h6 {
        font-size: 1rem;
    }

    /* ========== CLICKABLE FLYER STYLES ========== */
    /* Flyer-only clickable link wrapper */
    .flyer-link {
        position: relative;
        display: block;
        cursor: pointer;
        text-decoration: none;
        height: 100%;
        width: 100%;
    }

        /* Flyer image hover effects */
        .flyer-link .carousel-image {
            transition: transform 0.5s ease, filter 0.3s ease;
        }

        .flyer-link:hover .carousel-image {
            transform: scale(1.03);
            filter: brightness(0.85);
        }

        /* Flyer overlay - appears on hover */
        .flyer-link .flyer-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.4s ease;
            pointer-events: none;
            z-index: 5;
        }

        .flyer-link:hover .flyer-overlay {
            background: rgba(15, 61, 40, 0.75);
            opacity: 1;
        }

    /* Click hint content */
    .flyer-click-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        color: white;
        text-align: center;
        transform: translateY(30px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .flyer-link:hover .flyer-click-hint {
        transform: translateY(0);
    }

    /* Magnifying glass icon */
    .flyer-click-hint i {
        font-size: 3.5rem;
        animation: pulseIcon 2s ease-in-out infinite;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    }

    @keyframes pulseIcon {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.15);
            opacity: 0.9;
        }
    }

    /* Click hint text */
    .flyer-click-hint span {
        font-size: 1.25rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        background: rgba(255, 255, 255, 0.25);
        padding: 12px 30px;
        border-radius: 50px;
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .flyer-link:hover .flyer-click-hint span {
        background: rgba(255, 105, 180, 0.9);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

    /* Ensure flyer-only images remain properly styled */
    .carousel-item.flyer-only .flyer-link .carousel-image {
        object-fit: contain !important;
        background: #000;
    }

    /* Mobile responsive adjustments */
    @media (max-width: 992px) {
        .flyer-click-hint i {
            font-size: 3rem;
        }

        .flyer-click-hint span {
            font-size: 1.1rem;
            padding: 10px 25px;
            letter-spacing: 1px;
        }
    }

    @media (max-width: 768px) {
        .flyer-link:hover .carousel-image {
            transform: scale(1.02);
        }

        .flyer-click-hint i {
            font-size: 2.5rem;
        }

        .flyer-click-hint span {
            font-size: 1rem;
            padding: 10px 22px;
        }

        /* Show hint more prominently on mobile */
        .flyer-link .flyer-overlay {
            background: rgba(15, 61, 40, 0.3);
            opacity: 1;
        }

        .flyer-click-hint {
            transform: translateY(0);
            opacity: 0.8;
        }

        .flyer-link:active .flyer-overlay {
            background: rgba(15, 61, 40, 0.85);
        }

        .flyer-link:active .flyer-click-hint span {
            background: rgba(255, 105, 180, 0.95);
            transform: scale(0.98);
        }
    }

    @media (max-width: 576px) {
        .flyer-click-hint i {
            font-size: 2rem;
        }

        .flyer-click-hint span {
            font-size: 0.85rem;
            padding: 8px 18px;
            letter-spacing: 0.5px;
        }

        .flyer-click-hint {
            gap: 0.8rem;
        }
    }

    /* Accessibility - Focus states */
    .flyer-link:focus {
        outline: 3px solid #ff69b4;
        outline-offset: 5px;
    }

        .flyer-link:focus .flyer-overlay {
            background: rgba(15, 61, 40, 0.75);
            opacity: 1;
        }

        .flyer-link:focus .flyer-click-hint {
            transform: translateY(0);
        }

    /* Loading state for flyer images */
    .flyer-link .carousel-image:not(.loaded) {
        opacity: 0;
    }

    .flyer-link .carousel-image.loaded {
        opacity: 1;
        animation: fadeInImage 0.6s ease;
    }

    @keyframes fadeInImage {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Prevent click hint from interfering with carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        z-index: 10 !important;
    }

    /* Additional animation for better UX */
    .flyer-link .flyer-click-hint i {
        animation-play-state: running;
    }

    .flyer-link:hover .flyer-click-hint i {
        animation: pulseIconHover 1s ease-in-out infinite;
    }

    @keyframes pulseIconHover {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.2);
        }
    }


}
