/* --- CSS Reset & Variables --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}
:root {
    --primary-orange: #f58220;
    --dark-blue: #1a2a47;
    --dark-text: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }


/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10,20,40,0.75), rgba(10,20,40,0.85)),
                url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

/* BIG BOLD HEADING */
.hero h2 {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 5px 25px rgba(0,0,0,0.7);
}

/* SUBTEXT */
.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 20px 0 35px;
    color: #f1f1f1;
}

.btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #f58220, #ff9a3c);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(245,130,32,0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245,130,32,0.6);
}

/* --- Apply Now Section (Floating Form Effect) --- */
.apply-section-wrapper {
    padding: 80px 0 120px;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

.main-apply-title {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 500;
}

.apply-banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.apply-bg-image {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: 8px;
}

.floating-form {
    max-width: 1000px;
    width: 85%;
    margin: -180px auto 0 !important; /* Pulls form up over the image */
    background: #ffffff;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 20;
    text-align: left;
}

.centered-form-title {
    text-align: center;
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    width: 100%;
    display: block;
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    font-size: 0.95rem; 
    font-weight: 600;
    margin-bottom: 8px; 
    color: var(--text-dark); 
}

.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    background-color: #fcfcfc;
    border-radius: 2px; 
}

.form-group textarea { 
    height: 120px; 
    resize: vertical; 
}

.full-width { 
    grid-column: span 2; 
}

.phone-wrapper {
    position: relative;
}

.flag-icon {
    position: absolute;
    right: 15px;
    bottom: 12px;
    width: 24px;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-orange);
    padding: 15px;
    font-weight: bold;
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #d35400;
}

/* --- History & Legacy --- */
.history { display: flex; padding: 80px 5%; background: var(--bg-light); align-items: center; gap: 50px; }
.history-content { flex: 1; }
.history-content h3 { font-size: 2.5rem; font-family: 'Georgia', serif; color: var(--primary-blue); margin-bottom: 20px; }
.history-content p { color: var(--text-muted); margin-bottom: 20px; }
.history-image { flex: 1; }
.history-image img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- Program Section --- */
.program { padding: 80px 5%; text-align: center; }
.program h3 { font-size: 2.5rem; font-family: 'Georgia', serif; margin-bottom: 50px; color: var(--primary-blue); }
.program-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.program-card { padding: 30px; border: 1px solid #eee; text-align: left; }
.program-middle { background: var(--primary-orange); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 15px; }
.program-middle .stage { border: 1px solid rgba(255,255,255,0.5); padding: 15px; text-align: center; font-weight: bold; }

/* --- Principal Message --- */
.principal { background: var(--primary-orange); color: #fff; padding: 80px 10%; display: flex; align-items: center; gap: 50px; }
.principal img { width: 300px; height: auto; border-radius: 8px; }
.principal-content h3 { font-size: 2rem; font-family: 'Georgia', serif; margin-bottom: 20px; }
.principal-content p { font-size: 1rem; margin-bottom: 20px; line-height: 1.8; }

/* --- Footer --- */
footer { background: #d4eaf5; padding: 60px 5% 20px; color: var(--primary-blue); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p, .footer-col li { font-size: 0.9rem; margin-bottom: 10px; color: #444; }
.footer-col ul { list-style: none; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.1); font-size: 0.8rem; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .desktop-nav { display: none; }
    .logo-text h1 { font-size: 1.5rem; }
    .logo-container img { height: 60px; }
    .program-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .history, .principal, .footer-grid, .form-grid { 
        flex-direction: column; 
        grid-template-columns: 1fr; 
    }
    
    .form-group textarea, .full-width { 
        grid-column: span 1; 
    }

    .apply-bg-image {
        height: 300px;
        width: 100%;
        border-radius: 0;
    }

    .floating-form {
        margin: -60px 15px 0 !important;
        padding: 30px 20px;
        width: calc(100% - 30px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .main-apply-title {
        font-size: 2.5rem;
    }

    .centered-form-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}
/* Footer Grid Layout Update */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Makes the map area slightly wider */
    gap: 40px;
    padding: 60px 5%;
    align-items: start;
    background-color: #e3f2fd; /* Light blue from your screenshot */
}

.footer-col h4 {
    color: #1a237e;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

/* Map Styling in Footer */
.footer-map-wrapper {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.footer-map-wrapper iframe {
    border-radius: 8px;
    display: block;
}

.open-maps-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s;
}

.open-maps-btn:hover {
    background: #f8f9fa;
}

/* Responsive fix for smaller screens -----*/
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/*  ---slider--*/
.slider-container {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* This ensures the image starts at normal size */
    transform: scale(1); 
}

/* This triggers the zoom when the slide gets the .active class */
.slide.active .slide-bg {
    animation: kenburns 10s ease-out forwards;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.2); } /* Zooms in to 120% */
}

.slide-content {
    position: relative;
    z-index: 5;
    color: #fff;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
}
/* gallery event in index*/
/* Animation for the Event Slider */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Slides half-way because we duplicated the list */
}

.events-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 30s linear infinite; /* Adjust 30s to make it faster or slower */
}

.events-track:hover {
    animation-play-state: paused; /* Pause on hover so parents can read event names */
}

.event-slide-card {
    width: 300px;
    margin: 0 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.slide-media {
    height: 200px;
    width: 100%;
    position: relative;
    background: #000;
}

.slide-media img, .slide-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #1c2d5a;
    font-size: 0.95rem;
}

.play-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(242, 101, 34, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Container for the slider */
.highlights-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* The moving track */
.highlights-track {
    display: flex;
    width: max-content;
    animation: slideLeft 25s linear infinite;
}

.highlights-track:hover {
    animation-play-state: paused;
}

/* Individual Card Styling */
.highlight-card {
    width: 320px; /* Adjust this to make thumbnails smaller or larger */
    margin: 0 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-media {
    height: 220px;
    width: 100%;
    background: #000;
    position: relative;
}

.card-media img, .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the card without stretching */
}

/* The dark green/blue label area in your reference */
.card-info {
    background: #002b2b; /* Match the dark teal/green in your photo */
    padding: 20px 15px;
    text-align: center;
    color: #fff;
}

.card-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* View All Button Styling */
.view-all-btn {
    background: #ffa500;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
}

/* Animation */
@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Video Play Icon Overlay */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    opacity: 0.8;
}
/* gallery event ends*/
/* notice*/
/* News Ticker Styling */
/* --- News Ticker Styling --- */
/* --- Notice Board Ticker --- */
.ticker-track {
    background-color: #38f5dc; /* Deep Maroon */
    color: #450303;            /* Pure White Text */
    padding: 12px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    border-top: 2px solid #d4af37;    /* Gold Top Border */
    border-bottom: 2px solid #d4af37; /* Gold Bottom Border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ticker-track span {
    display: inline-block;
    padding-right: 60px; /* Space between notices */
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: scroll-left 35s linear infinite;
}

/* Optional: Subtle gold glow to the text */
.ticker-track span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Speed up or slow down the scrolling here */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause on hover so parents can read clearly */
.ticker-track:hover span {
    animation-play-state: paused;
    color: #d4af37; /* Text turns gold when hovered */
    transition: color 0.3s ease;
}
/* notice ends*/

/* glimpse*/
/* Glimpse Section Overlapping Layout */
.glimpse-text-overlay {
    position: relative;
    z-index: 2; /* Ensures text is above any other content */
    margin-bottom: -50px; /* Slight overlap into the image area */
}

.campus-image-container {
    position: relative;
    z-index: 1; /* Puts image as background */
}

/* For smaller screens, reduce padding and overlap */
@media (max-width: 768px) {
    .glimpse-text-overlay {
        padding: 40px 5% !important;
        margin-bottom: 0 !important;
    }
}
/* glimpse ends here*/

/* notice or events*/
/* Multi-Column Info Grid Layout */
.maxwell-info-grid {
    width: 100%;
    margin-top: -30px; /* Overlap effect like the photo */
    position: relative;
    z-index: 5;
}

.info-grid-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Academics side is wider */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.info-side-beating {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: sideHeartbeat 2.5s ease-in-out infinite; /* Whole side heartbeat */
}

/* Base styling for columns */
.info-col {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.col-header {
    margin: 0;
    padding: 25px 30px;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.col-body {
    padding: 30px;
    line-height: 1.7;
    color: #222;
    font-weight: 500;
}
.section-title {
    font-size: 2.8rem;
    text-align: center;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    color: #1a2a47;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #f58220, #ffb347);
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}
.col-body h4 { color: #1c2d5a; margin-bottom: 15px; text-transform: uppercase; }
.col-body p { margin-bottom: 15px; }

/* Colors */
.academics-card .col-header { background: #b08d24; /* Gold/Teal color matching */ }
.notice-section .col-header, .event-section .col-header { background: #1a7146; /* Notice/Event Teal matching */ }

/* Buttons */
.btn-sm { font-size: 0.8rem; background: #ffa500; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; }
.apply-btn { display: inline-block; background: #e0ac23; color: #fff; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; }

/* --- ANIMATIONS --- */

/* 1. Multicolor Blink for Header Text */
.blinking-multicolor {
    animation: multicolourBlink 2.5s linear infinite;
}

@keyframes multicolourBlink {
    0% { color: #fff; }
    20% { color: #ffa500; /* Maxwell Orange */ }
    40% { color: #87ceeb; /* Sky Blue */ }
    60% { color: #fff; }
    80% { color: #c0f1c0; /* Light Green */ }
    100% { color: #fff; }
}

/* 2. Side Heartbeat (Scale up/down slowly) */
@keyframes sideHeartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(1.02); }
    20% { transform: scale(1); }
    30% { transform: scale(1.01); }
    40% { transform: scale(1); }
}

/* 3. Blinking Border for Apply Now */
.blinking-border {
    border: 2px solid #e0ac23;
    animation: borderBlink 1s linear infinite;
}

@keyframes borderBlink {
    50% { border-color: #fff; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .info-grid-container { grid-template-columns: 1fr; }
    .academics-card { order: 1; }
    .info-side-beating { order: 2; animation: none; /* Turn off heartbeat on mobile for performance */ }
}
/*Notice or events ends here*/

/* slider video */
/* Slider Video Styles */
.slide-video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Matches your slider height */
    overflow: hidden;
}

.slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video fill the screen without stretching */
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay to make text readable */
    z-index: 1;
}

.slide-video-container .slide-content {
    position: relative;
    z-index: 2; /* Ensures text is above the video and overlay */
}

* {
    scroll-behavior: smooth;
}

.fade-in {
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Container for the text */
.history-content {
    font-family: 'Inter', sans-serif; /* Clean, modern font */
}

/* The Uppercase Dual-Tone Title */
.role-title {
    font-size: 2.8rem; /* Large and impactful */
    font-weight: 900;   /* Extra bold */
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 5px;
    display: flex;
    gap: 12px;
}

.orange-text {
    color: #f26522; /* Vibrant Orange from image */
}

.navy-text {
    color: #001d3d; /* Deep Navy from image */
}

/* The Name Underneath */
.person-name {
    color: #006837; /* Dark Forest Green from image */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Paragraph styling for better readability */
.history-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 600px;
}

/* The Button */
.btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: #f26522;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #f26522;
}
/* end*/
