/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
}

/* 📌 Top info nav */
.top-info-nav {
  background-color: #003366;
  color: white;
  display: flex;
  justify-content: space-evenly;
  padding: 5px 10px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.contact-item {
  margin: 0 10px;
}

/* Navbar Container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(to right, #2c3e50, #3498db);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-wrap: wrap;
}

/* Left Section */
.left-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Logo Circle */
.logo-circle {
    background-color: white;
    color: #2c3e50;
    width: 50px;
    height: 50px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%; /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image stays inside the circle */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Optional shadow */
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the circle without stretching */
    border-radius: 50%; /* Keeps the image circular */
}


/* School Name Styling */
.school-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.school-main {
  font-weight: bold;
  font-size: 20px;
}

.school-sub {
  font-size: 14px;
  color: #ecf0f1;
}

/* Right Section */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  border: 1px solid white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.login-button {
    background-color: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.login-button:hover {
    background-color: #e67e22;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 9999;
}
.dropdown-content.show {
    display: block;
}
.dropdown-content a {
    padding: 10px 14px;
    display: block;
    color: #333;
    text-decoration: none;
}
.dropdown-content a:hover {
    background-color: #f2f2f2;
}

/* Mobile */
@media (max-width: 768px) {
    .dropdown-content {
        position: relative; /* stays with menu, but still "positioned" */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #f9f9f9;
        z-index: 10001; /* works now */
    }

    .dropdown-content a {
        padding: 12px 15px;
        display: block;
        border-bottom: 1px solid #ddd;
    }
}


/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 400px) {
    .top-info-nav {
    justify-content: flex-end;
    gap: 10px;
    font-size: 8px;
  }
}

/* Responsive - Mobile View */
@media (max-width: 768px) {
    .top-info-nav {
    justify-content: flex-end;
    gap: 30px;
    font-size: 8px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 25px;
  }

  .right-section {
    overflow: hidden;
    max-height: 0;
    flex-direction: column;
    width: 100%;
    padding-left: 10px;
    transition: max-height 0.5s ease, padding 0.3s ease;
  }

  .right-section.show {
    max-height: 500px; /* Large enough to show all content */
    padding-top: 15px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .login-button {
    align-self: flex-start;
    margin-top: 0px;
    margin-bottom: 20px;
  }
}


/* Full-width slider without border radius */
.image-slider {
  position: relative;
  width: 100%;       /* Full width */
  height: 500px;     /* Fixed height */
  margin: 5px 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover entire slider */
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 12px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
  .image-slider {
    height: 400px;       /* Reduced height for mobile */
  }

  .caption {
    font-size: 1rem;     /* Smaller caption text */
    bottom: 10px;
    left: 15px;
  }

  .prev, .next {
    padding: 8px;        /* Smaller arrows */
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .image-slider {
    height: 300px;       /* Very small mobile screens */
  }

  .caption {
    font-size: 0.9rem;
    bottom: 8px;
    left: 10px;
  }

  .prev, .next {
    padding: 6px;
    font-size: 16px;
  }
}


/* Fixed text over images */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.school-namee {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  text-align: center;
  text-shadow: 4px 4px 12px rgba(0,0,0,0.85);
  opacity: 0;
  animation: fadeInZoom 2s ease forwards;
}

.school-namee h1 {
  font-size: 64px; /* Biggest */
  font-weight: 700;
  margin: 0;
  line-height: 1.1; /* Reduce space between lines */
}

.school-namee h2 {
  font-size: 48px; /* Medium */
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.school-namee h3 {
  font-size: 32px; /* Smallest */
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}

/* 📱 Mobile View */
@media (max-width: 768px) {
  .school-namee {
    width: 95%;           /* Increase width */
    max-width: 95%;       /* Force wider area */
    white-space: normal;  /* Allow wrapping */
    text-align: center;
    top: 45%;
    transform: translate(-50%, -45%);
  }

  .school-namee h1 {
    font-size: 32px;  
    line-height: 1.1;
  }

  .school-namee h2 {
    font-size: 18px;
    line-height: 1.1;
  }

  .school-namee h3 {
    font-size: 14px;
    line-height: 1.1;
  }
}


/* Animation */
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Legacy Section */
        .legacy {
            padding: 4rem 0;
            background: white;
        }

        .legacy-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .legacy-timeline {
            background: #f8f9fa;
            padding: 2rem;
            border-radius: 15px;
            border-left: 5px solid #3498db;
        }

        .timeline-item {
            padding: 1rem 0;
            border-bottom: 1px solid #eee;
        }

        .timeline-item:last-child {
            border-bottom: none;
        }

        .timeline-year {
            font-size: 1.2rem;
            font-weight: bold;
            color: #3498db;
            margin-bottom: 0.5rem;
        }
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #2c3e50;
        }
/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
    .legacy-content {
        grid-template-columns: 1fr;  /* Stack into one column */
        gap: 2rem;                   /* Reduce gap for mobile */
    }

    .section-title {
        font-size: 2rem;             /* Slightly smaller heading */
    }

    .legacy-timeline {
        padding: 1.5rem;             /* Reduce padding */
        border-left: 4px solid #3498db;
    }

    .timeline-year {
        font-size: 1.1rem;           /* Adjust text size */
    }
}
.journey-box {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.journey-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Hover effect */
.journey-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ===== Mobile view ===== */
@media screen and (max-width: 768px) {
    .journey-box {
        padding: 1.5rem;
    }

    .journey-box h3 {
        font-size: 1.5rem;
    }

    .journey-box p {
        font-size: 0.95rem;
    }
}



/* Welcome Section */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 10%;
  background-color: #f5f5f5;
  flex-wrap: wrap;
}

.welcome-text {
  flex: 1 1 500px;
  margin-right: 30px;
}

.welcome-text h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

/* Linear gradient for school name */
.schooll-name {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.welcome-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.welcome-image {
  flex: 1 1 400px;
  text-align: center;
}

.welcome-image img {
  width: 350px;       /* Fixed size for round shape */
  height: 350px;
  border-radius: 50%; /* Makes image round */
  object-fit: cover;
  border: 5px solid #feb47b; /* Optional border for style */
}

/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    padding: 30px 5%;
  }

  .welcome-text {
    margin-right: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .welcome-text h1 {
    font-size: 2rem;
  }

  .school-name {
    font-size: 1.5rem;
  }

  .welcome-image img {
    width: 250px;
    height: 250px;
    margin-bottom: 0px;
  }
}



    /* Unique container style */
    .school-login-portal {
        font-family: 'Segoe UI', sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -100px;
        height: 100vh;
    }
    .school-login-box {
        background: linear-gradient(to right, #2c3e50, #3498db);
        width: 350px;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
        animation: fadeIn 0.7s ease-in-out;
    }
    .school-login-box h2 {
        text-align: center;
        margin-bottom: 20px;
        color: white;
    }
    .school-tabs {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .school-tab {
        flex: 1;
        padding: 10px;
        text-align: center;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        border-radius: 8px;
        margin: 2px;
        font-size: 14px;
        transition: background 0.3s ease;
        color: white;
    }
    .school-tab.active {
        background: white;
        color: #4f9cff;
        font-weight: bold;
    }
    .school-input {
        width: 100%;
        padding: 10px;
        margin: 8px 0;
        border: none;
        border-radius: 8px;
        outline: none;
        font-size: 14px;
    }
    .school-input:focus {
        box-shadow: 0 0 5px rgba(255,255,255,0.8);
    }
    /* Updated button style */
    .school-btn {
        display: block;
        width: 50%;
        padding: 8px;
        margin: 12px auto 0; /* Centered */
        background: #ff9800; /* New background color (orange) */
        border: none;
        border-radius: 20px;
        color: white;
        font-size: 14px;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s ease, transform 0.2s ease;
        text-align: center;
    }
    .school-btn:hover {
        background: #e68a00;
        transform: scale(1.05);
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Team Section */
.team-section {
  padding: 60px 10%;
  background-color: #ffffff;
  text-align: center;
}

.team-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

.team-header h1 {
  font-size: 1.8rem;
  color: #ff7e5f;
  margin-bottom: 10px;
}

.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.member-card {
  position: relative;
  width: 280px;
  border-radius: 30px;           /* Rounded corners */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.member-info {
  background-color: #fdf6f2;      /* Light background */
  padding: 15px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.member-info h3 {
  font-size: 1.1rem;
  color: #4b0082;
  margin-bottom: 5px;
}

.member-info p {
  font-size: 0.95rem;
  color: #555;
}

/* Hover Effect */
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
  .team-members {
    flex-direction: column;
    align-items: center;
  }
  .team-header h2 {
  font-size: 1.5 rem;
}
}



/* Section */
.why-section {
    background: linear-gradient(135deg, #f9f9f9, #e6f0ff);
    padding: 60px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.why-section .title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: #333;
}

.why-section .title span {
    color: #007bff;
}

/* Container */
.why-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Card */
.why-card {
    background: #fff;
    padding: 25px 20px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: center;
}

.why-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.why-card h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 12px;
}

.why-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Hover Effect */
.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
}

.why-card:hover i {
    transform: scale(1.2);
    color: #ff9800;
}

/* Responsive */
@media (max-width: 768px) {
    .why-container {
        flex-direction: column;
        align-items: center;
    }
    .why-section .title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: #333;
}
}
/* Copyright Section */
.copyright-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 15px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.copyright-section p {
    margin: 0;
    line-height: 1.5;
}

.developer {
    font-weight: 600;
    color: #ffeb3b;
}

/* Hover glow effect */
.developer:hover {
    color: #fff176;
    text-decoration: underline;
    transition: color 0.3s ease;
}
/* Section Styling */
.location-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(to right, #ffffff, #f3f3f3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

/* Map Container */
.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 40%;
}

/* Contact Information */
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
    font-size: 16px;
}

.contact-info h3, .social-connectivity h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-info p {
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

/* Social Connectivity */
.social-connectivity {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #0056b3;
}

/* Animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .location-section {
        flex-direction: column;
        text-align: center;
    }
    
    .map-container, .contact-info, .social-connectivity {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* COUNT SECTION */
.count-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #004080, #00274d);
    color: white;
}

.count-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.count-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.count-card:hover {
    transform: translateY(-10px);
}

.count-card h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.5s ease-in-out;
}

.count-card p {
    font-size: 18px;
}

/* Footer */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: #f39c12;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section ul li a:hover {
            color: #f39c12;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #34495e;
            color: #bdc3c7;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
