/********************************************
 *  PUBLIC MAIN.CSS - CONSOLIDATED STYLES
 ********************************************/

/* 
-------------------------------------------------
1) GLOBAL TRANSITIONS, OVERLAYS & BASIC UTILS
-------------------------------------------------
*/

/* Basic transitions for mobile menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent scrolling when mobile menu or modal is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Carousel arrows */
.carousel-arrow {
    transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
    opacity: 0.8;
}

/* Scroll to Top button hidden by default */
.scroll-to-top {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}


/* 
-------------------------------------------------
2) MOBILE MENU ANIMATIONS
-------------------------------------------------
*/

/* Staggered mobile nav items */
.mobile-nav-item {
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu.active .mobile-nav-item {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered delays for consecutive menu items */
.mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-item:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-nav-item:nth-child(7) {
    transition-delay: 0.4s;
}

/* Bottom sheet modal for mobile */
.bottom-sheet {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.bottom-sheet.active {
    transform: translateY(0);
}

/* Spacing for the school name near icons */
.school-name {
    margin-right: 0.5rem;
}


/*
  Hide the school-name element on screens narrower than 988px
  to save space in the header on smaller devices
*/
@media (max-width: 988px) {
    .school-name {
        display: none !important;
    }
}


/* 
-------------------------------------------------
3) KEYFRAMES & ANIMATIONS (FADE/SLIDE IN)
-------------------------------------------------
*/

/* Single fadeInUp animation + class for reusability */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Optional delayed classes */
.fade-in-up-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.4s;
}

/* Alternatively, you can unify the .animate-fade-up naming 
   and remove .fade-in-up if you want. Just stay consistent. */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

/* fadeIn (slightly different from fadeInUp) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 
-------------------------------------------------
4) PARALLAX SECTIONS, OVERLAYS, ETC.
-------------------------------------------------
*/

.parallax-section {
    position: relative;
    /* remove the hard crop */
    /* overflow: hidden; */
    /* height: 60vh; */
    min-height: 70vh;
    /* keeps it tall enough on mobile */
    height: auto;
    /* lets it expand for your copy */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 771px) {

    /* make the entire hero a flex‑box and center its child vertically */
    .parallax-section {
        display: flex;
        align-items: center;
        /* vertical centering */
    }

    .parallax-section .container {
        width: 100%;
        /* fill the available space */
        margin-left: auto;
        /* center the block horizontally */
        margin-right: auto;
    }
}

@media (min-width: 771px) {
    .parallax-section {
        min-height: 50vh;
        /* slightly shorter on larger screens */
        height: auto;
    }
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}


/* 
-------------------------------------------------
5) MODAL BASE STYLES
-------------------------------------------------
*/

.modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}


/* 
-------------------------------------------------
6) MISC UTILITIES
-------------------------------------------------
*/

.touch-button {
    min-height: 44px;
    /* Minimum recommended touch area */
    padding: 12px 20px;
}

/* Smoother scrolling in supported browsers */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Bottom navigation (mobile) */
.bottom-nav {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.bottom-nav.visible {
    transform: translateY(0);
}

/* Floating action button */
.fab {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.fab:active {
    transform: scale(0.95);
}


/* 
-------------------------------------------------
7) FAQ / ACCORDION (ADMISSION PAGE)
-------------------------------------------------
*/

.faq-question {
    cursor: pointer;
    /* e.g. padding, hover styles if you want */
}

.faq-answer.hidden {
    display: none;
}

/* Basic tab content control */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* 
-------------------------------------------------
8) CONTACT PAGE
-------------------------------------------------
*/

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

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

.map-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    /* You can place this in a :root variable */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* 
-------------------------------------------------
9) ARTICLES & ARTICLE DETAIL
-------------------------------------------------
*/

/* Category Badges */
.category-badge {
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
}

/* Share Buttons */
.share-button {
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: scale(1.1);
}

/* Example Category Colors - could convert to variables */
.category-academic {
    background-color: #93c5fd;
    /* Light Blue */
}

.category-sports {
    background-color: #86efac;
    /* Light Green */
}

.category-arts {
    background-color: #fca5a5;
    /* Light Red */
}

.category-events {
    background-color: #c4b5fd;
    /* Light Purple */
}

.category-campus {
    background-color: #fcd34d;
    /* Light Yellow */
}

/* News Card Hover Effect */
.news-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Article detail hero banner */
.article-hero {
    /* Example hero image. Consider using inline style or 
       dynamic background based on the page data */
    background: url("https://via.placeholder.com/1200x600") no-repeat center center;
    background-size: cover;
}

/* Embedded YouTube container (16:9 ratio) */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 
-------------------------------------------------
10) GALLERY PAGE
-------------------------------------------------
*/

/* Masonry-like grid with columns */
.masonry-grid {
    columns: 3 250px;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

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

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}


/* 
-------------------------------------------------
11) EXTRACURRICULAR PAGE
-------------------------------------------------
*/

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

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

.filter-button {
    transition: all 0.3s ease;
}

.filter-button.active {
    background-color: #2563eb;
    color: #fff;
}

.gallery-image {
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    z-index: 10;
}


/* 
-------------------------------------------------
12) COMMENCER-APPLICATION PAGE
-------------------------------------------------
*/

/* File upload styling */
.file-upload {
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #2563eb;
    background-color: #f8fafc;
}

.file-upload.drag-over {
    border-color: #2563eb;
    background-color: #eff6ff;
}

/* Save indicator bar or banner */
.save-indicator {
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.save-indicator.show {
    transform: translateY(0);
}

/* Section cards */
.section-card {
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Reusing fadeIn or fadeInUp is recommended, so you can do: */

input[type="password"]::-ms-reveal {
    display: none;
}

.modal-container-with-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(31, 41, 55, 0.5);
    z-index: 50;
}

.modal-container-with-sidebar.hidden {
    display: none;
}

@media (min-width: 771px) {
    .modal-container-with-sidebar {
        left: 16rem;
    }
}

/* Modal centering with sidebar offset */
.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

/* Above 770px - account for sidebar */
@media (min-width: 771px) {
    .modal-container {
        padding-left: 256px;
        /* Adjust this value to match your sidebar width */
    }
}

/* Below 770px - sidebar is closed, no offset needed */
@media (max-width: 770px) {
    .modal-container {
        padding-left: 0;
    }
}