*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.header-container{
    display: flex;
    justify-content: space-between;
   align-items: center;
   background: white;
   padding: 15px 40px;
   box-sizing: border-box;
   position: relative;
   top: 0;
   z-index: 1000;
}
.logo{
    display: block;
    align-items: center;
}


 .logo img{
    width: 90px;
    height:90px;
    object-fit: contain;
    border-radius: 8px;
    padding: 5px;
}
.logo img:hover{
    transform: scale(1.03);
}
.nav-links{
  display: flex;
  gap: 10px;
}
.nav-link{
  
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 16px;
    background-color: rgb(255, 0, 21);
    color: #000;
    border-radius: 8px;
    margin-right: 10px;
}
.main-nav{
  
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link:hover{
    background: white;
    color: black;
}
.nav-links.active{
    background: #ffffff;
}

/* This forces the 3 columns to line up horizontally exactly like your drawing */
.footer-grid {
    background-color: rgb(239, 6, 45);
    margin-top: 50px;
    padding: 40px 30px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px !important;
    width: 100% !important;
}

/* This forces each individual column to stack its items vertically */
.footer-col,
.footer-col2,
.footer-col3 {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap:10px;
}

/* This fixes the invisible text and ensures the headings stand out */
.footer-grid h4,
.footer-grid h3
.footer-grid p
{
    color: #ffffff !important;
    margin:0 !important;
    font-weight: bold !important;
}

/* This forces the links to show up clearly and behave like blocks */
.footer-grid a {
    color: #34495e !important;
    text-decoration: none !important;
    display: block !important;
    padding: 6px 0 !important;
    justify-content: center;
    
    
}
section.footer-grid .footer-col a,
section.footer-grid .footer-col2 a,
section.footer-grid a 
{
   text-decoration: none;
    color: red;
    display: block;
}
.footer-col a:hover,
.footer-col2 a:hover{
    color:#3498db;
}

.footer-grid a:hover {
    color: #3498db !important;
}
.footer-col3 textarea {
    border-radius: 8px !important;        /* Curved edges */
    border: 1px solid #ccc !important;
    padding: 6px !important;
}

/* 5. Small curved button */
section.footer-grid .footer-col3 button {
    width: auto;
    max-width: 120px;
    display: inline-block;
    border-radius: 6px !important;        /* Curved edges */
    padding: 5px 14px !important;         /* Small button sizing */
    font-size: 13px !important;
    cursor: pointer !important;
}
.page-hero,
.page-hero2{
    text-align: center;
    background-color: #f0f4f8;
    padding: 50px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.page-hero h1{
    color: #1e293b;
    margin-bottom: 8px;
}
.page-hero p{
    color: #475569;
    margin-bottom: 15px;
}
.page-hero,
.page-hero2,
.breadcrumb{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 6. Footer bottom section */
.footer-bottom {
    background-color: #1a252f !important; /* Slightly darker shade for copyright */
    color: #ffffff !important;
    text-align: center !important;
    padding: 15px 0 !important;
}
/* Container that creates a 2-column grid layout */
.about-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Exactly 2 boxes per row */
    gap: 24px !important;                             /* Space between rows and columns */
    max-width: 1000px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Styled Card Box with soft light background color */
.info-card {
    background-color: skyblue!important;             /* Soft light grey-blue background */
    border: 1px solid #e2e8f0 !important;              /* Subtle border */
    border-left: 5px solid #f63b3b !important;         /* Accent color on left edge */
    border-radius: 10px !important;                    /* Smooth curved edges */
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Slight lift effect on hover */
.info-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Headings inside boxes */
.info-card h2,
.info-card h3 {
    color: #1e293b !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.25rem !important;
}

/* Paragraph text */
.info-card p {
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Values list formatting */
.values-list {
    margin: 0 !important;
    padding-left: 20px !important;
    color: #475569 !important;
}

.values-list li {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}
/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* Container */
.admission-container {
  max-width: 750px;
  width: 100%;
  color: #333333;
  margin: 0 auto;
  max-width: 800px;
}

/* Main Heading (Sans-serif) */
.main-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 24px;
}

/* Sub-heading (Serif) */
.sub-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
}

/* List Formatting */
.admission-list {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333333;
  list-style-type: square; /* Square bullets matching the image */
  padding-left: 20px;
}

.admission-list li {
  margin-bottom: 12px;
}

/* Divider Line */
.divider {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  width: 100%;
}
/* Layout container for side-by-side boxes */
.download-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 boxes per row */
  gap: 20px;
  margin-top: 30px;
}

/* Individual Box */
.download-card {
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

/* Badge indicating Pre-Primary or Primary */
.download-card .badge {
  background-color: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.download-card h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, sans-serif;
}

.download-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.4;
  font-family: Georgia, serif;
}

/* Download Button */
.download-btn {
  display: inline-block;
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: #334155;
}


/* Stacks boxes vertically on small mobile screens */
@media (max-width: 640px) {
  .download-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustment for small screens/mobile */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr !important;         /* Stacks into 1 column on smaller screens */
    }
}
/* ==========================================================================
   1. GLOBAL RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2d3748;
  background-color: #f8fafc;
}

/* ==========================================================================
   2. MAIN SECTION (3 BOXES IN FLEX ROW)
   ========================================================================== */
.contact-section {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Base Flex Box / Card */
.card {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 400px;
  padding: 28px 24px;
  border-radius: 16px; /* Curved edges for all boxes */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #1a2b4c);
  margin-bottom: 22px;
}

/* Unique Background Colors for Each Box */
.card-details {
  background-color: #f0f4f8; /* Box 1 */
}

.card-form {
  background-color: #fcfaff; /* Box 2 */
}

.card-map {
  background-color: #f4f8f5; /* Box 3 */
}

/* ==========================================================================
   3. BOX 1: CONTACT DETAILS (FLEX LAYOUT)
   ========================================================================== */
.info-group {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

/* Text block inside info item */
.info-item > div {
  display: flex !important;
  flex-direction: column;
}

/* Icon Sizing Control */
.info-item svg,
.info-item .icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  color: #4a5568;
  flex-shrink: 0;
}

.info-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
}

.info-item p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
}

/* ==========================================================================
   4. BOX 2: FORM & INPUTS (FLEX LAYOUT)
   ========================================================================== */
.contact-form {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex !important;
  flex-direction: row;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
}

/* Inputs & Textareas */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #2d3748;
  border: 1px solid #cbd5e0;
  border-radius: 8px; /* Curved edges for inputs */
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 85px;
}

/* Email Validation Error Handling */
.error-message {
  display: none;
  color: #e53e3e;
  font-size: 0.75rem;
}

.form-group input.invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.form-group input.invalid + .error-message {
  display: block;
}

/* PHP Alerts (Flex layout for inner text) */
.alert {
  display: flex !important;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Action Button */
.submit-btn {
  margin-top: 6px;
  padding: 10px 20px;
  background-color: var(--navy, #1a2b4c);
  color: #ffffff;
  border: none;
  border-radius: 8px; /* Curved button */
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   5. BOX 3: GOOGLE MAP PLACEHOLDER (FLEX CENTERED)
   ========================================================================== */
.card-map {
  display: flex !important;
  flex-direction: column;
}

.map-placeholder {
  display: flex !important;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
}

.map-placeholder p {
  color: #718096;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   6. RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 840px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 600px;
  }

  .form-row {
    flex-direction: column;
  }
}
/* ==========================================================================
   HERO / HEADER SECTION (2 DIVISIONS)
   ========================================================================== */

.hero-header-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  padding: 30px 20px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* --------------------------------------------------------------------------
   DIVISION 1: WELCOME & CALL-TO-ACTION
   -------------------------------------------------------------------------- */
.hero-welcome-div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, #1a2b4c, #2c4373) !important;
  color: #ffffff !important;
  padding: 40px 24px !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.hero-welcome-div .welcome-badge {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}

.hero-welcome-div h1 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  margin: 0 0 12px 0 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.hero-welcome-div p {
  font-size: 1rem !important;
  color: #cbd5e1 !important;
  max-width: 750px !important;
  margin: 0 0 24px 0 !important;
  line-height: 1.6 !important;
}

/* Action Buttons */
.welcome-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 14px !important;
}

.welcome-buttons .btn-primary {
  background-color: #f59e0b !important;
  color: #1e293b !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: opacity 0.2s ease !important;
}

.welcome-buttons .btn-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: background-color 0.2s ease !important;
}

.welcome-buttons .btn-primary:hover,
.welcome-buttons .btn-secondary:hover {
  opacity: 0.9 !important;
}

/* --------------------------------------------------------------------------
   DIVISION 2: BRANDING & 3-IMAGE BANNER
   -------------------------------------------------------------------------- */
.hero-branding-div {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background-color: #ffffff !important;
  padding: 20px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

/* Header Text (Matching Image Layout) */
.school-identity {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  padding-bottom: 8px !important;
}

.school-name h2 {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
  line-height: 1.1 !important;
  max-width: 700px !important;
}

.school-motto p {
  font-size: 1.1rem !important;
  color: #4a5568 !important;
  font-style: italic !important;
  margin: 0 !important;
  font-family: Georgia, serif !important;
  white-space: nowrap !important;
}

/* 3-Image Flex Banner */
.banner-image-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 4px !important; /* Seamless connection between banner photos */
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 16px;
}

.banner-img-box {
  flex: 1 1 33.33% !important;
  height: 260px !important;
  background-color: #e2e8f0 !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.banner-img-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Prevents image stretching */
  display: block !important;
  object-position: center 20%;

}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT (Mobile Adjustments)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .school-identity {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .modal-close-btn{
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
  }
  .modal-close-btn:hover{
    color:#000;
  }
 
  .banner-image-grid {
    flex-direction: column !important;
  }

  .banner-img-box {
    height: 160px !important;
  }

  .hero-welcome-div h1 {
    font-size: 1.5rem !important;
  }
}
/* --- TOP BAR & ADMIN LOGIN BUTTON --- */
.header-top-bar {
  display: flex !important;
  justify-content: flex-end;
  background-color: #1a252f;
  padding: 8px 20px;
  width: 100%;
}

.admin-top-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.admin-top-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- POPUP MODAL BACKDROP --- */
#adminLoginModal {
  display: none; /* Keeps hidden until Admin Login is clicked */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

/* --- POPUP CARD & FORM --- */
.admin-modal-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
}

.admin-modal-card h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #2c3e50;
}

.admin-modal-card p {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #7f8c8d;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333333;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.btn-admin-submit {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.btn-admin-submit:hover {
  background-color: #0056b3;
}
    
    

  



