/* Color Palette based on image: Blue #003366, Bright Blue #00A9E0, Orange #FF6600, Purple #993399 */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

.container { width: 100%; margin: auto; }

/* Sticky Header */
header {
    background: #172d13; /* Deep blue */
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Container */
.header-content {
  display: flex;
  justify-content: space-between; /* Pushes Logo Left, Nav Right */
  align-items: center;
  padding: 10px 5%;
  width: 100%;
  box-sizing: border-box;
  /*background: rgba(255, 255, 255, 0.1); /* Glass effect */
  backdrop-filter: blur(10px);
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo h1 {
  font-size: 1.2rem;
  color: #fff;
  white-space: nowrap; /* Keeps name on one line */
}

/* Navigation Menu */
nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  border-radius: 15px;
}

nav ul li a:hover {
   background: #6bb77b;
        color: #fff;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

/* --- RESPONSIVE SETTINGS --- */
@media (max-width: 900px) {
  .header-content {
    flex-direction: column; /* Stacks everything on tablets/phones */
    text-align: center;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap; /* Wraps links to a second line if they are too long */
    justify-content: center;
    gap: 10px;
  }
  
  .logo h1 {
    font-size: 1rem; /* Shrinks text for mobile */
  }
}


nav ul li a:hover {
        background: #6bb77b;
        color: #fff;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    }


/* Parallax Effect Hero Section */
.parallax-section {
    height: 70vh; /* Viewport Height */
    background-image: url('School.png');
    background-attachment: fixed; /* Core parallax property */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    /* REMOVE the static background here: background: rgba(0, 51, 102, 0.6); */
    padding: 40px 60px;
    border-radius: 10px;
    
    /* ADD the animation property */
    animation: colorChange 10s infinite alternate linear;
}

/* Define the keyframes for the color changing animation */
@keyframes colorChange {
    0%   { background: rgba(0, 51, 102, 0.7); } /* Deep Blue */
    25%  { background: rgba(0, 169, 224, 0.7); } /* Bright Blue */
    50%  { background: rgba(255, 102, 0, 0.7); } /* Orange */
    75%  { background: rgba(153, 51, 153, 0.7); } /* Purple */
    100% { background: rgba(0, 51, 102, 0.7); } /* Back to Deep Blue */
}


.hero-overlay h2 { font-size: 2.5rem; margin-bottom: 10px; color: white; }
.hero-overlay p { margin-bottom: 20px; color: white; }

.cta-button {
    background: #FF6600; /* Orange CTA button */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover { background: #E65C00; }

/* Main Content Area */
main.container { padding: 40px 0; }
main h3 { margin-bottom: 20px; color: #003366; }

/* Feature Blocks */
.feature-blocks {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: -80px; /* Overlaps with hero section for visual effect */
    margin-bottom: 40px;
}

.feature-block {
    padding: 30px;
    border-radius: 8px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    cursor: pointer;
    transition: transform 0.3s;
}

.feature-block:hover { transform: translateY(-10px); }

.blue-bg { background: #00A9E0; }
.orange-bg { background: #FF6600; }
.purple-bg { background: #993399; }

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/*footer a { color: #00A9E0; text-decoration: none; }*/

/* ---------------------------------------ABOUT PAGE CSS------------------------------------------------ */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
}


.page-title {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('School.jpg');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 20px;
	height: 30vh;
	align-items: center;
}

.about-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.mission-vision {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.card {
    flex: 1;
    padding: 30px;
    border-radius: 8px;
    color: white;
}

.mission { background-color: #03a9f4; } /* Blue from Image */
.vision { background-color: #9c27b0; }  /* Purple from Image */

.text-block h3 {
    color: #004d40;
    border-left: 5px solid #ff9800; /* Orange Accent */
    padding-left: 15px;
}

.footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 20px;
    margin-top: 40px;
}

/* --------------------------------------FACULTY PAGE CSS-------------------------------------------------- */

/*FACULTY IMAGE*/

.faculty-img {
    width: 200px;         /* Match the size of your placeholder */
    height: 200px;        /* Match the size of your placeholder */
    /*border-radius: 25%;   /* Makes the image circular */
    object-fit: cover;    /* Prevents the image from stretching */
    margin-bottom: 15px;
    border: 3px solid #fff;
}



/* Main Container */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; text-align: center; }

/* Headmaster Spotlight */
.headmaster-section { display: flex; justify-content: center; margin-bottom: 40px; }

/* Faculty Grid */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }

/* Card Styling */
.faculty-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.faculty-card:hover { transform: translateY(-8px); }
.img-placeholder { height: 200px; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 1.2em; color: #999; background-color: "blue"; }
.info { padding: 15px; }
.info h3 { margin: 5px 0; color: #1a472a; font-size: 1.1em; }

/* Color Accents */
.card-blue { border-top: 6px solid #00bcd4; }
.card-orange { border-top: 6px solid #ff9800; }
.card-purple { border-top: 6px solid #9c27b0; }
.card-red { border-top: 6px solid #0C9400; }
/* Footer */
footer { background: #222; color: #bbb; text-align: center; padding: 20px; margin-top: 50px; 



/* ----------------------------------------- GALLERY PAGE --------------------------------------------------- */

/* This controls the Grid */
.gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px;
    padding: 20px;
}

/* This controls the Box */
.gallery-item {
    width: 100%;
    height: 250px; /* Forces a uniform height */
    overflow: hidden;
    border-radius: 8px;
}

/* This controls the Image - THIS IS THE CRITICAL FIX */
.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Crops the image to fit the box perfectly */
    display: block;
}

/*----------------------------------------RESULT PAGE----------------------------------------------------------*/


 body { font-family: 'Segoe UI', sans-serif; background-color: #f4f7f6; margin: 0; padding: 20px; text-align: center; }
        .container { max-width: 800px; margin: auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
        .header h1 { color: #1a2a6c; margin: 0; text-transform: uppercase; font-size: 22px; }
        .header p { margin: 5px 0 20px 0; color: #555; font-weight: bold; }
        
        .search-box { margin-bottom: 30px; background: #eee; padding: 20px; border-radius: 8px; }
        input { padding: 12px; width: 250px; border: 1px solid #ccc; border-radius: 4px; }
        button { padding: 12px 25px; background: #1a2a6c; color: white; border: none; border-radius: 4px; cursor: pointer; }
        
        .report-card { border: 2px solid #333; padding: 20px; text-align: left; margin-top: 20px; }
        .student-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #ddd; }
        
        table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        th, td { border: 1px solid #444; padding: 10px; text-align: center; }
        th { background-color: #f8f9fa; }
        .total-row { font-weight: bold; background: #eee; }

        .btn-print { background: #27ae60; padding: 10px 20px; color: white; border: none; border-radius: 4px; cursor: pointer; margin-top: 20px; }

        @media print {
            .no-print { display: none; }
            body { background: white; padding: 0; }
            .container { box-shadow: none; width: 100%; max-width: 100%; }
        }
		


/*----------------------------------------- Responsive ------------------------------------------------------------*/

/* This applies to tablets and phones */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Stacks logo on top of menu */
        text-align: center;
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;    /* Adds space between logo and links */
        flex-direction: column; /* Puts name under the logo circle */
    }

    nav ul {
        flex-direction: column; /* Links will stack vertically */
        gap: 10px;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column; /* Stacks logo on top of menu */
        gap: 10px;
    }
}