/* Base styles & CSS Variables */
:root {
    --primary-red: #d60909;
    --dark-text: #111827;
    --light-text: #ffffff;
    --nav-text: #374151;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: #fcfcfc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(214, 9, 9, 0.2);
}

.admissions-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    animation: fadeInDown 0.6s ease-out;
}

/* Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

/* Logo */
.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.logo:hover {
    transform: scale(1.04);
}

/* Navigation */
.main-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.dropdown-arrow {
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 2px;
}

/* Animated Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-link:hover {
    background-color: #f9fafb;
    color: var(--primary-red);
}

/* Micro-animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    padding: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 16px 24px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-top: 10px;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .logo {
        height: 50px;
    }
}

/* Page Header */
.page-header {
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Section styling */
.section-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Beautiful Table Styling */
.table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #f3f4f6;
    overflow-x: auto;
}

.beautiful-table {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.beautiful-table th {
    background-color: #f9fafb;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.beautiful-table td {
    padding: 16px 24px;
    color: var(--dark-text);
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    vertical-align: middle;
    line-height: 1.5;
}

.beautiful-table td strong {
    font-weight: 600;
    color: var(--nav-text);
}

.beautiful-table tbody tr {
    transition: background-color 0.2s ease;
}

.beautiful-table tbody tr:hover {
    background-color: #f8fafc;
}

.beautiful-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Widths */
.col-sr {
    width: 80px;
    text-align: center;
}
.col-info {
    width: 40%;
}
.col-details {
    width: auto;
}

/* Buttons / Links inside table */
.beautiful-table td:has(.table-btn) {
    text-align: right;
}

.table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(214, 9, 9, 0.2);
}

.table-btn:hover {
    background-color: #b90707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 9, 9, 0.3);
    color: var(--light-text);
}

/* Sub-items in table */
.table-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    justify-content: space-between;
}

.table-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.table-list .label {
    font-weight: 600;
    color: var(--nav-text);
}

.note-text {
    font-size: 0.85rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}
.box-theme {
    background-color: #fff0ef;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.hero-title {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-red);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--nav-text);
    line-height: 1.6;
}

/* Vision and Mission Section */
.vision-mission-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.vm-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.vm-box:hover {
    transform: translateY(-5px);
}
.vm-title {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin: 30px 0 20px 0;
    font-weight: 700;
}
.vm-icon {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 24px;
}
.vm-content {
    padding: 0 30px 40px;
}
.vm-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--nav-text);
    line-height: 1.6;
}

/* Infrastructure Section */
.infrastructure-section {
    margin-bottom: 80px;
}
.infra-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}
.infra-desc {
    font-size: 1.15rem;
    color: var(--nav-text);
    line-height: 1.7;
}

/* Scrollable Gallery */
.gallery-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) #f0f0f0;
}
.gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}
.gallery-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.gallery-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-red);
    border-radius: 4px;
}
.gallery-scroll {
    display: flex;
    gap: 20px;
    width: max-content;
}
.gallery-item {
    position: relative;
    width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-content {
        padding: 40px 24px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .vm-box {
        padding: 30px 20px;
    }
}

/* About Us Page & Extra Styling */
/* About Us Page & Extra Styling */
.about-content-wrapped {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--nav-text);
    line-height: 1.8;
    margin-bottom: 60px;
}
.about-content-wrapped p {
    margin-bottom: 20px;
}
.about-content-wrapped strong.highlight-text {
    color: var(--primary-red);
    font-weight: 700;
}
.wrapped-image {
    width: 450px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    display: block;
}
.wrapped-image.right {
    float: right;
    margin-left: 40px;
    margin-bottom: 20px;
}
.wrapped-image.left {
    float: left;
    margin-right: 40px;
    margin-bottom: 20px;
}
/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.principal-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: none;
    color: var(--primary-red);
    font-weight: 700;
}
.infra-title {
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    border-bottom: none;
}

@media (max-width: 768px) {
    .wrapped-image.right, .wrapped-image.left {
        float: none;
        margin: 0 auto 30px;
        width: 100%;
    }
}

/* Warm Regards Section */
.warm-regards {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.regards-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--nav-text);
    margin-bottom: 10px;
}
.principal-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}
.principal-title-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Footer Styling */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    margin-top: 80px;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 24px;
}
.footer-left {
    padding: 40px;
    border-radius: 16px;
}
.footer-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 24px;
    text-transform: uppercase;
}
.contact-item {
    margin-bottom: 20px;
    color: var(--nav-text);
}
.contact-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.05rem;
}
.contact-item p {
    margin: 0;
    line-height: 1.6;
}
.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item a:hover {
    color: #b90707;
    text-decoration: underline;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.map-container {
    flex-grow: 1;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.connect-section {
    text-align: center;
}
.connect-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--nav-text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icons a {
    color: var(--nav-text);
    transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}
.footer-bottom {
    background-color: var(--primary-red);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-left {
        padding: 30px 20px;
    }
    .map-container {
        min-height: 250px;
    }
}
