/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
.main {
    margin-top: 80px;
}

.section {
    padding: 60px 0;
    min-height: 100vh;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section.active {
    display: block;
}

.section:not(.active) {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a90e2" width="1200" height="600"/><g fill="%23ffffff" opacity="0.1"><circle cx="200" cy="150" r="80"/><circle cx="800" cy="400" r="120"/><circle cx="1000" cy="200" r="60"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 20px 80px;
    margin-top: -80px;
    display: flex;
    align-items:start;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
    margin-left: 40px;
}

.hero-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 100%;
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Adding transition to base state */
.hero-img {
    transition: transform 0.3s ease;
}
/* Addingin scaling on hover */
.hero-img:hover{
    transform: scale(1.2);
}

/* Buttons */
.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-3px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Stats */
.stats {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 60px 0;
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text h2:not(:first-child) {
    margin-top: 40px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.about-image {
    text-align: center;
    height: 100%;
    /* transform: scale(2); */
}

.about-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.values-section {
    margin-top: 80px;
}

.values-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.achievements-section {
    margin-top: 80px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.achievement-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Academics Page Styles */
.academic-levels {
    display: grid;
    gap: 60px;
    margin-bottom: 80px;
}

.academic-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-5px);
}

.academic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.academic-content {
    padding: 40px;
}

.academic-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.age-range {
    color: #e67e22;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.academic-features {
    list-style: none;
    margin-top: 20px;
}

.academic-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.academic-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.special-programs {
    margin-top: 80px;
}

.programs-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-content {
    padding: 25px;
    text-align: center;
}

.program-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.academic-calendar {
    margin-top: 80px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.calendar-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.calendar-item h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.assessment-section {
    margin-top: 80px;
}

/* Staff Page Styles */
.staff-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: #666;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.staff-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-image {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-info {
    padding: 25px;
}

.staff-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.staff-title {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 8px;
}

.staff-qualification,
.staff-experience {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.staff-description {
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
}

.staff-stats {
    margin: 80px 0;
}

.recruitment-section {
    text-align: center;
    margin-top: 80px;
}

.recruitment-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.recruitment-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recruitment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.contact-item-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.facebook {
    color: #1877f2;
}

.social-icon.facebook:hover {
    color: #166fe5;
}

.contact-item-icon i {
    font-size: 1.5rem;
    color: #3498db;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
}

.map-section {
    margin: 80px 0;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.map-iframe {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
}

.map-overlay h3 {
    margin-bottom: 15px;
}

.map-overlay p {
    margin-bottom: 8px;
}

.admissions-section {
    margin: 80px 0;
}

.process-list,
.documents-list {
    list-style: none;
    padding-left: 0;
}

.process-list li,
.documents-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.process-list li::before {
    content: counter(list-item) '.';
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

.documents-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

.faq-section {
    margin: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-left: 0;
        margin-top: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .academic-card {
        grid-template-columns: 1fr;
    }
    
    .academic-content {
        padding: 30px;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Facilities Section */
.facilities-section {
    margin: 80px 0;
}

.facilities-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.facility-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.facility-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* Student Life Section */
.student-life-section {
    margin: 80px 0;
}

.student-life-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.student-life-section > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.student-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.student-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.student-item:hover {
    transform: translateY(-5px);
}

.student-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

.student-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.student-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .student-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* @media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;  /stack columns on small screens/
    gap: 40px;
  } */

  /* keep icon and text side-by-side */
  /* .contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center; 
    gap: 15px;
  } */

  /* or adjust slightly for small screens */
  /* .contact-item-logo img {
    width: 40px; 
  } */

  /* .contact-item h4,
  .contact-item p {
    margin: 0;
    line-height: 1.4;
  }
} */

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item div {
    margin-top: 8px;
  }
}

