header{
    width:100%;
}

.top-header{
    background: var(--maroon);
    color:white;
    padding:10px 0;
    font-size:14px;
}

.top-header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-family:'Playfair Display', serif;
    font-size:20px;
    font-weight:700;
    color: #000;
}

.top-nav a{
    color:white;
    text-decoration:none;
    margin-left:20px;
    font-weight:500;
}

.top-nav .together{
    background:#666666;
    padding:5px 10px;
    border-radius:2px;
    font-size:13px;
}

/* MAIN NAV */
.main-nav{
    background:white;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.main-nav ul{
    display:flex;
    list-style:none;
    justify-content:center;
    gap:40px;
    padding:12px 0;
}

.main-nav a{
    text-decoration:none;
    color:var(--gray);
    font-weight:600;
    font-size:15px;
    transition:color 0.2s ease;
}

.main-nav a:hover{
    color:var(--maroon);
}
/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* ======================
   HERO / HEADER
====================== */
header.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* MOVING IMAGE LAYER */
.hero-images {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    will-change: transform;
    white-space: nowrap;
}

.hero-track img {
    width: 420px;
    height: 560px;
    object-fit: cover;
    opacity: 0.85;
    flex-shrink: 0;
    border-radius: 6px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-track img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* HERO TEXT OVERLAY */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    font-family: serif;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    );
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 2rem;
    margin-top: 12px;
    opacity: 0.9;
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 2rem;
    margin-top: -2rem;
}

/* ======================
   NAVIGATION
====================== */
nav {
    background-color: #fff;
    text-align: center;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    display: inline-block;
}

nav a:hover {
    background-color: #ad1c1c;
    border-radius: 4px;
}

/* ======================
   MAIN CONTENT
====================== */
/* Remove default padding/margins from main to allow full-width sections */
main {
    padding: 0;
    width: 100%;
}

/* Utility class to center content within full-width sections */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections are now full-width bands */
section {
    padding: 4rem 0;
    margin: 0;
}

section h2 {
    margin-bottom: 2rem;
    color: #ad1c1c;
    text-align: center;
    font-size: 2.2rem;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   MISSION & VISION
====================== */
.mission-vision-section {
    background-color: #ffffff;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mv-card {
    background: #fff;
    padding: 2.5rem;
    border-left: 5px solid #ad1c1c;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mv-card h3 {
    color: #ad1c1c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ======================
   CORE VALUES (F.U.R.A.H.A)
====================== */
.values-section {
    text-align: center;
    background-color: #f4f8fb; /* Light blue/gray background */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    background: #ad1c1c;
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    background: #0e3cd4;
}

.value-item strong {
    color: #d4af37; /* Gold accent for the acronym letters */
    font-size: 1.2em;
}

/* ======================
   PROGRAMS
====================== */
.programs-section {
    background-color: #ffffff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: #fff;
    border: 1px solid #ad1c1c;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-card h3 {
    color: #ad1c1c; /* Gold accent */
    margin-bottom: 1rem;
}

.program-card ul {
    text-align: left;
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.program-card li {
    margin-bottom: 0.5rem;
}

/* ======================
   WHY CHOOSE US
====================== */
.why-choose-us {
    background-color: #ad1c1c;
    color: #fff;
}

.why-choose-us h2 {
    color: #fff;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.benefits-list li {
    font-size: 1.05rem;
}

/* ======================
   ADMISSION BANNER
====================== */
.admission-banner {
    background: linear-gradient(to right, #e5e8eb, #ffffff);
    color: #fff;
    padding: 3rem 0;
    border-bottom: 5px solid #ad1c1c;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admission-banner h2 {
    color: #ad1c1c;
    margin-bottom: 0.5rem;
}

.read-more-btn {
    background-color: #ad1c1c;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.read-more-btn:hover {
    background-color: #fff;
}

/* ======================
   FOOTER
====================== */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #ad1c1c;
    color: white;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 768px) {
    header.hero {
        height: 60vh;
    }

    .hero-track img {
        width: 260px;
        height: 400px;
    }

    nav a {
        padding: 0.4rem 0.8rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .mission-vision-section {
        /* grid-template-columns: 1fr;  <-- This was targeting the section, now target the grid class */
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .banner-flex {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ======================
   SUB-PAGES STYLES
====================== */
.site-header {
    background-color: #000;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-title-section {
    background-color: #f4f8fb;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

/* ======================
   CONTACT FORM
====================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #ad1c1c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.submit-btn {
    background-color: #ad1c1c;
    color: white;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #d4af37;
    color: #003366;
}

/* ======================
   EVENTS LIST
====================== */
.event-item {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #d4af37;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-date {
    background: #003366;
    color: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    min-width: 100px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.event-details h3 {
    color: #003366;
    margin-bottom: 0.5rem;
}
/* Existing styles... */

/* Image Section */
.image-section {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 20px 0 0 0; /* Add 20px top margin to avoid overlap with header */
    padding: 0;
}

.fitted-image {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Limit height to fit without overlap */
    object-fit: cover; /* Scales proportionally */
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fitted-image {
        max-height: 250px; /* Smaller on mobile */
    }
}
/* ======================
   GALLERY PAGE
====================== */
/* Co-Curricular Activities Grid Layout (Pornhub-style) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop, like Pornhub */
    gap: 20px; /* Spacing between items */
    margin-bottom: 3rem;
}

/* Video Thumbnail Styles (YouTube-like) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05); /* Slight zoom on hover for interactivity */
}

.gallery-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 16:9 aspect ratio like YouTube thumbnails */
    object-fit: cover; /* Ensures video fills the area without distortion */
    display: block;
}

/* Overlay for text/links */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 15px;
    }
    
    .gallery-video {
        aspect-ratio: 16 / 9; /* Maintain aspect ratio on mobile */
    }
}


/* ======================
   CO-CURRICULAR ACTIVITIES (ACADEMICS PAGE)
====================== */
.co-curricular-activities {
    padding: 2rem 0;
}

.activity-section {
    margin-bottom: 4rem; /* Space between sections for separation */
}

.activity-header {
    text-align: center;
    margin-bottom: 2rem;
}

.activity-header h3 {
    font-size: 1.8rem;
    color: #ad1c1c; /* Professional dark color */
    margin: 0;
}

.activity-header p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0;
}

/* Pinterest-Style Grid: Auto-filling columns with uniform aspect ratio */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Auto-fill columns, minimum 250px width */
    gap: 1rem;
    margin: 0 auto;
    max-width: 1200px; /* Optional: Limit max width for larger screens */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: none; /* No borders */
    box-shadow: none; /* No shadows */
    background: none; /* No background */
    aspect-ratio: 16/9; /* Uniform aspect ratio for all items (perfect for mobile and PC) */
}

.gallery-item img,
.gallery-video {
    width: 100%;
    height: 100%; /* Fill the entire item */
    object-fit: cover; /* Fully visible, scales without cropping */
    display: block;
    border: none; /* Ensure no borders */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Responsive Design: Adjust min width for mobile */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Smaller min width on mobile for better fit */
    }
}

.aligned-image {
    float: left; /* Aligns image to the left, text flows to the right */
    margin-right: 15px; /* Adds space between the image and the text */
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintains the aspect ratio */
}
.container::after {
    content: "";
    clear: both;
    display: table; /* This "clearfix" ensures the container wraps around the floated elements */
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.whatsapp-float a {
    display: block;
    text-decoration: none;
}
.whatsapp-float img {
    transition: transform 0.3s ease;
}
.whatsapp-float img:hover {
    transform: scale(1.1);
}
/* ======================
   IMAGE ALIGNMENT UTILITY
====================== */

.slider body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 200px;
  height: 250px;
  perspective: 1000px;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(350px);
}

.slider span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.btn-container {
  position: absolute;
  bottom: -100px;
  display: flex;
  gap: 20px;
}

.btn {
  padding: 10px 20px;
  cursor: pointer;
}
/* Gallery Section Styling */
.image-gallery {
    padding: 50px 0;
    background-color: #fff;
}

.gallery-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* This creates the white space between images */
}

.gallery-item {
    flex: 1; /* Makes all 4 images take up equal width */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 400px; /* Adjust height to match your preference */
    object-fit: cover; /* Ensures images don't look stretched */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle hover effect (optional) */
.gallery-item img:hover {
    transform: scale(1.05);
}

/* Responsive: Stack images on top of each other on mobile */
@media (max-width: 768px) {
    .gallery-grid {
        flex-direction: column;
    }
    
    .gallery-item img {
        height: 300px;
    }
}
/* Co-Curricular Section */
.co-curricular-activities {
    padding: 60px 0;
}

.gallery-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.gallery-item {
    position: relative;
    flex: 1;
    min-width: 250px; /* Ensures items don't get too small */
    height: 400px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.gallery-item img, 
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio consistent */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Zoom Effect */
.gallery-item:hover img,
.gallery-item:hover .gallery-video {
    transform: scale(1.1);
}

/* Dark Overlay with Text */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image/video slightly */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.overlay span {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 2px solid white;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .overlay {
    background: rgba(128, 0, 0, 0.6); /* Changes to school maroon on hover */
}

