/* General Body and Typography */
:root {
    --primary-color: #2c3e50; /* Dark blue/charcoal for main elements */
    --secondary-color: #f39c12; /* Orange for accents */
    --accent-color: #e67e22; /* Slightly darker orange for interactive elements */
    --light-bg: #f8f9fa; /* Light grey background */
    --dark-text: #34495e; /* Dark grey for body text */
    --light-text: #ecf0f1; /* Light grey for text on dark backgrounds */
    --border-color: #ddd; /* Light grey for borders */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    background-color: #fff;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title {
    font-size: 2.8em;
    font-weight: 700;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto;
    font-size: 1.1em;
    color: #666;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-accent {
    background-color: var(--secondary-color);
    color: var(--light-text);
}
.bg-accent .section-title,
.bg-accent .feature-item h3 {
    color: var(--light-text);
}
.bg-accent .feature-item i {
    color: var(--primary-color); /* Icons in accent section */
}
.text-light {
    color: var(--light-text);
}


/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1em;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #34495e;
}

.btn-primary-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Icon Sizes */
.icon-lg { font-size: 3em; }
.icon-xl { font-size: 4em; }
.icon-xxl { font-size: 5em; } /* For the new highlight section */


/* Header */
.top-contact-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 0;
    font-size: 0.9em;
}

.top-contact-bar .container {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    gap: 15px; /* Space between items */
}

.top-contact-bar a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-contact-bar a:hover {
    color: var(--secondary-color);
}

.top-contact-bar i {
    margin-right: 5px;
}

.top-contact-bar .spacer {
    color: rgba(255, 255, 255, 0.4);
}

.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--primary-color);
}

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

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: url('Images/banner.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Darker overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white; /* Ensure hero text is white */
}
.hero-content h2::after {
    background-color: white; /* Line under hero heading */
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--light-text);
}

/* New Achievement Highlight Section */
#result-highlight {
    padding: 40px 0; /* Slightly less padding than full sections */
}

.highlight-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-text); /* Text color from bg-accent */
}

.highlight-content h2 {
    font-size: 3em;
    color: var(--light-text); /* Heading color for this section */
    margin-bottom: 15px;
}
.highlight-content h2::after {
    background-color: white; /* White line for highlight heading */
}

.highlight-content .lead {
    font-size: 1.3em;
    margin-bottom: 30px;
}
.highlight-content .icon-xxl {
    color: white; /* Icon color */
    margin-bottom: 20px;
    display: block; /* Ensure it takes its own line */
}


/* About Us Section */
.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Why Choose Us / Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}


/* Academics Section */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.academic-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.academic-item:hover {
    transform: translateY(-10px);
}

.academic-item i {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.academic-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.academic-item p {
    font-size: 0.95em;
    color: #555;
}


/* Admissions Section */
.admissions-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.admissions-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.admissions-content div {
    flex: 1;
}

.admissions-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.admissions-list {
    list-style: none; /* Remove default list style */
    padding-left: 0;
    margin-bottom: 25px;
}

.admissions-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--dark-text);
}

.admissions-list li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Documents & Information Section - Table Styles */
.documents-table-container {
    overflow-x: auto; /* For responsive tables */
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color); /* Outer border for the container */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.documents-table-container table {
    width: 100%;
    border-collapse: collapse; /* This is key for clean borders */
    min-width: 500px; /* Ensure table doesn't get too narrow on small screens */
}

.documents-table-container th,
.documents-table-container td {
    border: 1px solid var(--border-color); /* Borders for all cells */
    padding: 15px;
    text-align: left;
}

.documents-table-container thead th {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9em;
}

.documents-table-container tbody tr:nth-child(even) {
    background-color: #f6f6f6; /* Zebra striping for readability */
}

.documents-table-container tbody tr:hover {
    background-color: #e9e9e9;
}

.documents-table-container .download-link {
    display: inline-flex; /* To align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.documents-table-container .download-link:hover {
    color: var(--accent-color);
}

/* Style for the document icon within the name column */
.document-icon {
    color: var(--primary-color); /* Color for the document icon */
    margin-right: 8px; /* Space between icon and text */
    font-size: 1.2em; /* Slightly larger icon */
}

.documents-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}


/* Achievements Section */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.achievement-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
}

.achievement-item img {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
}

.achievement-text {
    padding: 25px;
}

.achievement-text h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: var(--primary-color);
}

.achievement-text p {
    font-size: 0.95em;
    color: #555;
}


/* Gallery Section */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: 200px; /* Uniform height for gallery images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}
.cta-section h2::after {
    background-color: white;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}


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

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2em;
    flex-shrink: 0; /* Prevent icon from shrinking */
    padding-top: 3px; /* Adjust vertical alignment if needed */
}

.contact-link {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.8em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing only */
}

.contact-form button {
    align-self: flex-start; /* Align button to the left */
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
    color: #888;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    padding-top: 3px;
}

.footer-contact a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}


/* Responsive Design */
@media (max-width: 992px) {
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 90px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .header-content {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center items when wrapped */
    }

    .logo {
        margin-bottom: 15px; /* Space below logo on smaller screens */
        width: 100%; /* Take full width */
        justify-content: center; /* Center logo */
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-grid, .admissions-content {
        flex-direction: column;
    }

    .about-image, .admissions-image {
        max-width: 80%; /* Adjust image size for smaller screens */
        margin-bottom: 30px;
    }

    .features-grid, .academics-grid, .achievement-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    h2 {
        font-size: 2em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .section-description {
        margin-bottom: 40px;
    }

    .highlight-content h2 {
        font-size: 2.5em;
    }

    .highlight-content .lead {
        font-size: 1.1em;
    }

    .documents-table-container th,
    .documents-table-container td {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .top-contact-bar .container {
        flex-direction: column;
        align-items: flex-start; /* Align left */
        gap: 5px;
    }

    .top-contact-bar .spacer {
        display: none; /* Hide spacer */
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    .logo img {
        height: 50px;
    }

    .documents-table-container table {
        min-width: unset; /* Allow table to shrink more */
    }

    .documents-table-container .download-link {
        flex-direction: column; /* Stack icon and text */
        gap: 3px;
        text-align: center;
    }

    .documents-table-container .download-link i {
        margin-right: 0;
    }
}
