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

/* CSS-only smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}



/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1e3c72;
    font-weight: bold;
}

.college-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.college-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-right {
    text-align: right;
}

.emergency-contact {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.approval-text {
    font-size: 0.9rem;
}

/* Navigation Styles */
.navbar {
    background: #1a2b4d;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffd700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.8rem;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    outline: none;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
    display: block;
}

/* Hero Section */
.hero {
   
    background-image: url('/images/Image-5.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}   

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 0;
}
.hero .container, .hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 1rem;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #1e3c72;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.cta-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Single column layout for FAQ and Maps sections */
.main-content-single {
    display: block;
    width: 100%;
    padding: 2rem 0;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.content-section h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.news-item {
    padding: 1rem;
    border-left: 4px solid #ffd700;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.academic-list {
    margin-top: 1rem;
    padding-left: 2rem;
}

.academic-list li {
    margin-bottom: 0.5rem;
}

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
/* Campus Gallery Section */
.campus-gallery {
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-button-wrapper {
    text-align: center;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e3c72;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    margin-top: 1rem;
}

.gallery-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    color: white;
}

  /* Grid positioning for images */
  .img1 {
    grid-column: 1;
    grid-row: 1 / 4; 
  }

  .img2 {
    grid-column: 2;
    grid-row: 1;
  }

  .img3 {
    grid-column: 2;
    grid-row: 2;
  }

  .img4 {
    grid-column: 2;
    grid-row: 3;
  }

  .img5 {
    grid-column: 2;
    grid-row: 3;
  }
  .button-wrapper {
    text-align: center;
    margin-top: 30px;
  }
  /* Duplicate gallery button styles removed - using main definition above */

  /* Principal message section */
  .principal-message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px;
    margin: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.image-container {
    text-align: center;
    width: 30%;
}

.principal-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 4px solid #0a4d8c;
    margin-bottom: 15px;
}

.principal-message-container h2 {
    font-size: 20px;
    color: #0a4d8c;
    margin-bottom: 5px;
}

.role {
    font-size: 14px;
    color: #555;
}

.message-container {
    width: 65%;
}
.principal-message-container h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.principal-message-container p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 16px;
    color: #0a4d8c;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .principal-message-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        margin: 20px 10px;
    }

    .image-container,
    .message-container {
        width: 100%;
    }

    .principal-message-container h2 {
        font-size: 18px; 
    }
    
    .principal-message-container h3 {
        font-size: 20px;
        text-align: center; 
    }


    .principal-message-container p {
        font-size: 15px;
        text-align: center;
    }

    .read-more {
        display: block;
        text-align: center;
    }
}

/* Faq and map section */
.faq-map{
    display: flex;
    gap: 30px; /* 👈 Gap between FAQ and Map */
    margin-top: 40px;
    flex-wrap: wrap; 
}

.faq-container {
    flex: 3;
    background-color: #f9f9f9;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
  }
  
  
  .faq-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  
  .question {
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding-right: 20px;
  }
  
  .question::after {
    content: "+";
    position: absolute;
    right: 0;
  }
  
  .answer {
    display: none;
    margin-top: 5px;
    color: #555;
  }
  .question.active::after {
    content: "−";
  }  

  /* Map */
  .map-section {
    flex: 2;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin: 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
.map-section h2{
    margin: 10px;
    padding: 10px;
    border-bottom: 3px solid #ffd700;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.quick-link {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

/* Footer */
.footer {
    background: #1a2b4d;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

.whatsapp {
    background: #25d366;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* CSS-only Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations using CSS only */
.news-item {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item {
    animation: countUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

/* CSS-only scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e3c72;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: #2a5298;
    transform: scale(1.1);
}

/* Show scroll button when scrolled */
body:not(.at-top) .scroll-to-top {
    opacity: 1;
    visibility: visible;
}

/* Enhanced mobile menu animations */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    /* Minimal header for mobile - hide most content */
    .header {
        padding: 0;
    }

    .header-top {
        display: none; /* Hide top header completely on mobile */
    }

    .header-content {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        padding: 0.8rem 0;
        align-items: center;
        justify-content: space-between;
    }

    .logo-section {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
        flex: 1;
    }

    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .college-info h1 {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
        line-height: 1.2;
    }

    .english-name,
    .establishment-info {
        display: none; /* Hide English name and establishment info on mobile */
    }

    .header-right {
        display: none; /* Hide emergency contact and approval text on mobile */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #1a2b4d;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        max-height: 500px;
    }

    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.8rem 1rem;
        text-align: center;
        font-size: 0.9rem;
        opacity: 0;
        transform: translateY(-10px);
        animation: slideInMenu 0.3s ease forwards;
    }

    .nav-menu.active a:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active a:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active a:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active a:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active a:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active a:nth-child(6) { animation-delay: 0.35s; }
    .nav-menu.active a:nth-child(7) { animation-delay: 0.4s; }
    .nav-menu.active a:nth-child(8) { animation-delay: 0.45s; }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        margin-left: auto;
        padding: 0.6rem;
    }

    /* Make navbar more compact on mobile */
    .navbar {
        min-height: auto;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .main-content-single {
        padding: 1rem 0;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .news-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .statistics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .quick-link {
        padding: 1.2rem;
    }

    .quick-link-icon {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
        max-width: 100%;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .college-info h1 {
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .mobile-menu-toggle {
        padding: 0.4rem;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu a {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .content-section {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .quick-link {
        padding: 1rem;
    }

    .quick-link-icon {
        font-size: 1.8rem;
    }

    /* Admission page mobile styles */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .admission-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .highlight-icon {
        font-size: 2rem;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .requirement-item {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .document-category {
        padding: 1.5rem;
    }

    .fee-structure {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fee-category {
        padding: 1.5rem;
    }

    .fee-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .fee-item span:last-child {
        font-size: 1rem;
    }

    /* New sections mobile styles */
    .date-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .date-badge {
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: auto;
        padding: 0.6rem 1rem;
    }

    .quota-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quota-item {
        padding: 1.5rem;
    }

    .quota-icon {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-btn {
        padding: 1.2rem;
    }

    .btn-icon {
        font-size: 2rem;
        margin-right: 0.8rem;
    }

    .btn-content h4 {
        font-size: 1rem;
    }

    .btn-content p {
        font-size: 0.8rem;
    }
}

/* Admission Page Styles */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.admission-content {
    max-width: 1000px;
    margin: 0 auto;
}

.admission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.highlight-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    transition: transform 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.requirement-item h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirement-item ul {
    list-style: none;
    padding-left: 0;
}

.requirement-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.requirement-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.requirement-item li:last-child {
    border-bottom: none;
}

.process-steps {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #1e3c72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #1e3c72;
}

.document-category h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.document-category ul {
    list-style: none;
    padding-left: 0;
}

.document-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.document-category li:before {
    content: "📄";
    position: absolute;
    left: 0;
}

.document-category li:last-child {
    border-bottom: none;
}

.fee-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fee-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.fee-category h4 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.fee-details {
    space-y: 1rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item span:first-child {
    color: #666;
}

.fee-item span:last-child {
    color: #1e3c72;
    font-weight: bold;
    font-size: 1.1rem;
}

.fee-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 2rem;
}

.fee-note p {
    margin: 0;
    color: #856404;
}

.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    color: #ffd700;
}

/* Dates Timeline */
.dates-timeline {
    margin-top: 2rem;
}

.date-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
    transition: all 0.3s ease;
}

.date-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.date-badge {
    background: #1e3c72;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1.5rem;
    min-width: 100px;
    text-align: center;
    font-size: 0.9rem;
}

.date-content h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.date-content p {
    color: #666;
    margin: 0;
}

/* Quota System */
.quota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quota-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.quota-item:hover {
    border-color: #1e3c72;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.quota-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.quota-item h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.quota-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 2rem;
}

.quota-note p {
    margin: 0;
    color: #0056b3;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-top: 4px solid #28a745;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.contact-item h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.action-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.action-btn.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.btn-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.btn-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.btn-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .container {
        max-width: 1500px;
        padding: 0 20px;
    }

    .hero-content h2 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .page-header h2 {
        font-size: 3rem;
    }

    .page-header p {
        font-size: 1.3rem;
    }
}

/* Updated Principal Message Section Styles */
.principal-message {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.principal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    text-align: center;
}

.principal-details h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.principal-role {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.read-more-btn {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.read-more-btn:hover {
    background: #2a5298;
    transform: translateY(-1px);
    color: white;
}

/* FAQ Section Styles */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    font-weight: 600;
    color: #1e3c72;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #0d2a5a;
}

.faq-toggle {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1e3c72;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
}

.faq-toggle:hover {
    background: rgba(30, 60, 114, 0.2);
    transform: scale(1.1);
}

.faq-answer {
    padding: 1.5rem 1.75rem;
    background: white;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    display: none;
}

/* FAQ Active States */
.faq-item.active {
    border-color: #1e3c72;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.15);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #1e3c72 0%, #2a4d8a 100%);
    color: white;
}

.faq-item.active .faq-toggle {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.faq-item.active .faq-answer {
    border-top-color: #1e3c72;
}



/* Location Section Styles */
.location-map {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-map iframe {
    border-radius: 12px;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.location-info {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #1e3c72;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.location-info h4 {
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.location-info p {
    margin: 0;
    color: #666;
    font-weight: 500;
}





/* Principal and FAQ Column Layout */
.principal-faq-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.principal-section {
    /* Remove background and borders to match other sections */
}

.faq-section {
    /* Remove background and borders to match other sections */
}

/* Restore original principal message layout */
.principal-section .principal-message {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.principal-section .principal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    text-align: center;
}

.principal-section .principal-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.principal-section .message-content {
    flex: 1;
}

.principal-section .message-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Legacy FAQ section styling - removed to prevent conflicts */

/* Mobile Responsive Styles for New Sections */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-img {
        height: 200px;
    }

    .gallery-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .principal-message {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .principal-message .principal-photo {
        margin: 0 auto;
    }

    .principal-message .principal-info {
        text-align: center;
        width: 100%;
    }

    .principal-message .principal-info h4,
    .principal-message .principal-info p {
        text-align: center;
    }

    .principal-info {
        min-width: auto;
    }

    .principal-image {
        width: 120px;
        height: 120px;
    }

    .message-content {
        text-align: left;
    }

    .location-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-info {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-toggle {
        font-size: 1.2rem;
        width: 20px;
        height: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-img {
        height: 180px;
    }

    .principal-message-container {
        text-align: center;
        padding: 10px;
        margin: 15px 5px;
    }

    .principal-message {
        text-align: center;
        align-items: center;
    }

    .principal-message .principal-info h4 {
        font-size: 1.1rem;
        text-align: center;
    }

    .principal-message .principal-info p {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.5;
    }

    /* Mobile responsive for principal-faq column */
    .principal-faq-column {
        gap: 1.5rem;
    }

    .principal-section .principal-message {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .principal-section .principal-message .principal-photo {
        margin: 0 auto;
    }

    .principal-section .principal-message .principal-info {
        text-align: center;
        width: 100%;
    }

    .principal-section .principal-info {
        min-width: auto;
    }

    .principal-section .principal-image {
        width: 120px;
        height: 120px;
    }

    .principal-section .message-content {
        text-align: left;
    }
}

/* Teacher page */

.teacher-container {
    max-width: 1200px;
    margin: auto;
}

.teacher-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #222;
}

/* Card Layout */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 45%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.image-wrapper img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}
.teacher-photo{
    width: 60%;
    height: auto;
    border: 2px solid #0a4d8c;
  
}
.desc {
    flex: 1;
}

.desc h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.desc p {
    font-size: 14px;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        flex: 1 1 100%;
    }

    .image-wrapper img {
        max-width: 100%;
    }

    .desc {
        padding-top: 10px;
    }
}

/* Other teachers*/
.Other-theacher {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    padding: 10px;
    max-width: 1200px;
    margin: 25px auto;
    border-radius: 8px;
  }
  
  .section-header {
    background-color: #2a5298;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 4px 4px;
    margin-bottom: 20px;
  }
  #header{
    color: white
  }
  .teacher-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .teacher-card {
    background-color: white;
    border: 1px solid #ccc;
    width: 260px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
  }
  
  .teacher-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  .teacher-info {
    padding: 15px;
  }
  
  .teacher-info h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .teacher-info p {
    display: flex;           
  justify-content: center;
  margin: 5px 0;
  font-size: 15px;
  color: #333;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .teacher-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .teacher-card {
      width: 90%;
    }
  }
  