 .required { color: red; font-weight: bold; }
        .optional { color: #555; font-size: 0.9em; }
        label:not(:has(.required)):has(+ input[required])::after,
        label:not(:has(.required)):has(+ select[required])::after,
        label:not(:has(.required)):has(+ textarea[required])::after,
        label:not(:has(.required)):has(+ label input[required])::after {
            content: ' *';
            color: red;
            font-weight: bold;
        }

        /* EARLY ADMISSION / SY 2027-2028 ASPIRANT SECTION */
        .early-admission-section {
            padding: 44px 0;
            margin: 10px 0 30px;
            background: linear-gradient(135deg, #6B0F1A 0%, #8a1524 100%);
            border-radius: 20px;
        }
        .early-admission-grid {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .early-admission-content {
            flex: 1 1 100%;
            max-width: 820px;
            color: #fff;
            text-align: center;
        }
        .early-admission-badge {
            background: #fff;
            color: #6B0F1A;
            display: inline-block;
            padding: 8px 22px;
            border-radius: 40px;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .early-admission-content h2 {
            font-size: 2.1rem;
            line-height: 1.25;
            margin-bottom: 14px;
            color: #fff;
        }
        .early-admission-content h2 span {
            color: #ffd9a0;
        }
        .early-admission-content p {
            font-size: 1.05rem;
            margin-bottom: 18px;
            color: rgba(255, 255, 255, 0.92);
        }
        .early-admission-note {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 14px 18px;
            margin: 0 auto 22px;
            max-width: 640px;
            font-size: 0.92rem;
            color: #fff;
        }
        .btn-enroll-light {
            background: #fff;
            color: #6B0F1A;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 40px;
            font-weight: 700;
            text-decoration: none;
            transition: 0.2s;
        }
        .btn-enroll-light:hover {
            background: #fbedec;
            color: #6B0F1A;
            transform: translateY(-2px);
        }

        /* Application modal: school-year cycle indicator */
        .application-school-year-banner {
            background: #fbedec;
            color: #6B0F1A;
            border: 1px solid #6B0F1A;
            border-radius: 10px;
            padding: 10px 16px;
            margin-bottom: 16px;
            font-size: 0.95rem;
            font-weight: 700;
            text-align: center;
        }
        
        /* Campus Photo Gallery Styles */
        .campus-photo {
            background: #ffffff;
            border-radius: 28px;
            padding: 30px 24px;
            box-shadow: 0 12px 28px rgba(0, 40, 70, 0.06);
            border: 1px solid #d5e7f7;
            transition: 0.2s;
            cursor: pointer;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            aspect-ratio: 1;
        }

        .campus-photo:hover {
            transform: translateY(-8px);
            border-color: #6B0F1A;
        }

        .campus-photo i {
            background: #f5dfe5;
            width: 70px;
            height: 70px;
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            color: #6B0F1A !important;
            margin-bottom: 22px;
            transition: 0.2s;
        }

        .campus-photo h3 {
            margin: 0 0 12px;
            font-size: 1.25rem;
            color: #6B0F1A;
            font-weight: 600;
        }

        .campus-photo span {
            margin: 0;
            background: #FBEDEC;
            padding: 6px 18px;
            border-radius: 40px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #6B0F1A;
            transition: 0.2s;
        }

        .campus-photo:hover span {
            background: #6B0F1A;
            color: #ffffff;
        }
        
        #campusGalleryModal .modal-card {
            max-width: 900px;
        }
        
        .gallery-grid {
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
            gap: 15px !important;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            aspect-ratio: 1;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        
        #galleryTitle {
            font-size: 1.5rem;
            font-weight: 600;
            color: #0a2942;
            border-bottom: 3px solid #6B0F1A;
            padding-bottom: 10px;
        }
        
        /* Lightbox Modal Styles */
        .lightbox-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 95vw;
            max-height: 95vh;
            background: transparent;
        }
        
        .lightbox-image {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: zoomIn 0.3s ease-out;
        }
        
        @keyframes zoomIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        #imageLightboxModal .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2.5rem;
            color: white;
            cursor: pointer;
            z-index: 1002;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            transition: color 0.3s ease;
        }
        
        #imageLightboxModal .modal-close:hover {
            color: #ff6b6b;
        }
        
        /* Mobile Responsiveness for Campus Life Gallery */
        @media (max-width: 992px) {
            .campus-photo {
                padding: 24px 20px;
            }
            
            .campus-photo i {
                width: 60px;
                height: 60px;
                font-size: 2rem;
                margin-bottom: 18px;
            }
            
            .campus-photo h3 {
                font-size: 1.15rem;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
            }
            
            /* Academic Programs - 2 columns on tablets */
            .program-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }
        
        @media (max-width: 768px) {
            .campus-photo {
                padding: 20px 16px;
            }
            
            .campus-photo i {
                width: 55px;
                height: 55px;
                font-size: 1.8rem;
                margin-bottom: 15px;
            }
            
            .campus-photo h3 {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }
            
            .campus-photo span {
                font-size: 0.85rem;
                padding: 5px 14px;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }
            
            #galleryTitle {
                font-size: 1.3rem;
            }
            
            #campusGalleryModal .modal-card {
                max-width: 95%;
                padding: 20px;
            }
            
            /* Academic Programs - single column on mobile */
            .program-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
        }
        
        @media (max-width: 576px) {
            .campus-photo {
                padding: 18px 14px;
                border-radius: 20px;
            }
            
            .campus-photo i {
                width: 50px;
                height: 50px;
                font-size: 1.6rem;
                margin-bottom: 12px;
            }
            
            .campus-photo h3 {
                font-size: 1rem;
                margin-bottom: 8px;
            }
            
            .campus-photo span {
                font-size: 0.8rem;
                padding: 4px 12px;
            }
            
            .gallery-grid {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }
            
            #galleryTitle {
                font-size: 1.2rem;
                padding-bottom: 8px;
            }
            
            .gallery-item {
                border-radius: 10px;
            }
            
            .lightbox-image {
                max-width: 95vw;
                max-height: 85vh;
                border-radius: 8px;
            }
            
            #imageLightboxModal .modal-close {
                top: 10px;
                right: 10px;
                font-size: 2rem;
            }
        }

          /* Email Warning Icon Styles - Navbar */
        .email-warning-icon {
            background: none;
            border: none;
            color: #FFC107;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse-warning 1.5s infinite;
        }

        .email-warning-icon:hover {
            color: #FFD700;
            transform: scale(1.2);
        }

        @keyframes pulse-warning {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }

        .email-warning-icon.hidden {
            display: none !important;
        }

        /* Email Warning Badge Icon - Near Apply Button */
        .button-with-warning {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .email-warning-badge-icon {
            background: rgba(0,0,0,0.08);
            border: 1px solid transparent;
            color: #FFC107;
            font-size: 32px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            animation: pulse-warning 1.5s infinite;
            flex-shrink: 0;
            position: fixed;
            left: 16px;
            bottom: 16px;
            z-index: 9999;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.18);
        }

        .email-warning-badge-icon:hover {
            color: #FFD700;
            transform: scale(1.2);
            box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        }


        .email-warning-badge-icon:hover {
            color: #FFD700;
            transform: scale(1.15);
        }

        .email-warning-badge-icon .maintenance-note {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            background: #FFC107;
            color: #333;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 8px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }

        .email-warning-badge-icon:hover .maintenance-note {
            opacity: 1;
        }

        .email-warning-badge-icon.hidden {
            display: none !important;
        }

        /* Disabled link styles */
        .disabled-link {
            opacity: 0.6 !important;
            cursor: not-allowed !important;
            pointer-events: auto !important;
            background-color: #e9ecef !important;
            border-color: #dee2e6 !important;
            color: #6c757d !important;
        }

        .disabled-link:hover,
        .disabled-link:active,
        .disabled-link:focus {
            opacity: 0.6 !important;
            background-color: #e9ecef !important;
            border-color: #dee2e6 !important;
            color: #6c757d !important;
            text-decoration: none !important;
            cursor: not-allowed !important;
        }

        .disabled-link i {
            color: #6c757d !important;
        }

        /* Maintenance Message Styles */
        .maintenance-message-container {
            margin: 20px 0;
            padding: 16px 20px;
            background: linear-gradient(135deg, #FFF3CD, #FFE69C);
            border-left: 4px solid #FFC107;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            animation: slideDown 0.4s ease-out;
        }

        .maintenance-message-container.hidden {
            display: none !important;
        }

        .maintenance-message {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #856404;
            font-weight: 600;
            font-size: 15px;
            text-align: center;
        }

        .maintenance-message i {
            font-size: 24px;
            color: #FFC107;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.coloricon{
  color: #D6AA41;
}

/* Landing page card images: show full image without cropping */
.announcement-card img,
.program-card img,
.award-card img,
.president-photo-card img,
.faculty-card img,
.leadership-card img,
.trustee-card img,
.alumni-card img,
.notable-alumni-section img,
.board-trustees-section img,
.school-leadership-section img,
.faculty-staff-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.announcement-image,
.program-image,
.award-image,
.president-photo-card {
    overflow: hidden;
}

.psa-helpline-section {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    border-top: 6px solid #e6bf59;
    border-bottom: 6px solid #e6bf59;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(143, 25, 43, 0.5), transparent 42%),
        linear-gradient(112deg, #4d0912 0%, #710e1c 53%, #500a13 100%);
}

.psa-helpline-section::before,
.psa-helpline-section::after {
    position: absolute;
    width: 100px;
    height: 140px;
    background: linear-gradient(135deg, #f2d88f, #c89432);
    content: "";
    opacity: 0.95;
    pointer-events: none;
}

.psa-helpline-section::before {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.psa-helpline-section::after {
    right: 0;
    bottom: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.psa-helpline-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px minmax(250px, 290px);
    align-items: center;
    gap: clamp(20px, 3vw, 42px);
}

.psa-helpline-copy {
    min-width: 0;
}

.psa-helpline-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #f2d88f;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
}

.psa-helpline-copy h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 2.1rem;
    line-height: 1.25;
}

.psa-helpline-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.psa-helpline-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.psa-helpline-mark {
    display: block;
    width: min(100%, 210px);
    height: auto;
    justify-self: center;
    border: 6px solid #e6bf59;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 10px 28px rgba(28, 0, 4, 0.28);
}

.psa-helpline-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px solid #fff;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.psa-helpline-button:hover {
    transform: translateY(-2px);
}

.psa-helpline-button:focus-visible {
    outline: 3px solid #f2d88f;
    outline-offset: 3px;
}

.psa-order-button {
    border-color: #f2d88f;
    background: #f2d88f;
    color: #351018;
}

.psa-order-button:hover {
    border-color: #ffe7a8;
    background: #ffe7a8;
    color: #351018;
}

.psa-status-button {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
}

.psa-status-button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 768px) {
    .psa-helpline-section {
        padding: 42px 0;
    }

    .psa-helpline-content {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 24px;
        text-align: center;
    }

    .psa-helpline-copy h2 {
        font-size: 1.7rem;
    }

    .psa-helpline-mark {
        width: min(100%, 165px);
        border-width: 6px;
    }

    .psa-helpline-actions {
        max-width: 360px;
    }
}
