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

:root {
    --primary-red: #9b0027;
    --dark-blue: #1a237e;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

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

/* Header Styles */
.top-bar {
    background-color: #bb3735;
    color: var(--white);
    padding: 5px 0;
    font-size: 14px;
}

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

.contact-info span {
    margin-right: 20px;
}
.contact-info a{
    color: var(--white);
    text-decoration: none;
}
.contact-info i {
    margin-right: 5px;
}

.language-selector {
    
}
.language-selector a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
}


/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: var(--primary-red);
    font-size: 18px;
}

.logo img {
    height: 70px;
    width: auto;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
    padding: 5px;
    cursor: pointer;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    border-left-color: var(--primary-red);
    padding-left: 25px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Carousel */
.hero {
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}


/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 3;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

/* Info Cards */
.info-cards {
    padding: 60px 0;
    background-color: var(--light-gray);
}

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

.info-card {
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
}

.card-red {
    background-color: var(--primary-red);
}

.card-blue {
    background-color: var(--dark-blue);
}

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

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-image img {
    width: 70%;
    border-radius: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-image img:hover {
    transform: scale(1.05);
}

/* Principal Message */
.principal-message {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.message-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.principal-photo {
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.principal-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-red);
}

.principal-photo h4 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.message-text h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 2rem;
}

.message-text p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Facilities */
.facilities {
    padding: 80px 0;
}

/* Holiday List */
.holiday-list {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.holiday-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.holiday-table {
    width: 100%;
    border-collapse: collapse;
}

.holiday-table thead {
    background-color: var(--primary-red);
    color: var(--white);
}

.holiday-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.holiday-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

.holiday-table tbody tr:hover {
    background-color: var(--light-gray);
}

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

.holiday-table td {
    padding: 15px;
}

.holiday-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 5px;
}

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

/* Important Instructions */
.important-instructions {
    padding: 80px 0;
}

.instructions-content {
    display: grid;
    gap: 30px;
}

.instruction-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.instruction-category:hover {
    transform: translateY(-5px);
}

.instruction-category h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.instruction-category h3 i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

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

.instruction-category ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

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

.instruction-category ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.facilities {
    padding: 80px 0;
}

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

.facility-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.facility-card:hover {
    transform: translateY(-10px);
}

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

.facility-card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-blue);
}

.facility-card p {
    padding: 0 20px 20px;
}

/* Vision Mission */
.vision-mission {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.vm-content {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 50px;
    align-items: center;
}

.vm-text h2 {
    color: var(--dark-blue);
    margin-bottom: 30px;
    font-size: 2rem;
}

.vm-item {
    margin-bottom: 30px;
}

.vm-item h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.vm-item p {
    text-align: justify;
    line-height: 1.8;
}
.vm-logo{
    width: 100%;
    height: auto;
}
.vm-logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* Top Students */
.top-students {
    padding: 80px 0;
}

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

.student-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.student-card:hover {
    transform: translateY(-10px);
}

.student-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-red);
}

.student-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.rank {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin: 10px 0;
}

.year {
    color: #666;
}

/* Success Story */
.success-story {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.success-text {
    max-width: 1100px;
    margin: 0 auto;
    /* text-align: center; */
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Gallery */
.gallery {
    padding: 80px 0;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}


/* Stats */
.stats {
    padding: 60px 0;
    background-color: var(--primary-red);
    color: var(--white);
}

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

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    color: #000;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

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

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

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

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}
.footer-bottom a{
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 600;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vm-content {
        grid-template-columns: 1fr;
    }

    .vision-circle {
        width: 250px;
        height: 250px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    /* Mobile Dropdown Styles */
    .dropdown-toggle i {
        padding: 10px;
        margin-left: 10px;
        margin-right: -10px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-toggle i {
        transition: transform 0.3s;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 10px 15px;
    }

    .dropdown-menu a:hover {
        padding-left: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    /* Carousel Mobile */
    .carousel {
        height: 450px;
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 25px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .message-content {
        grid-template-columns: 1fr;
    }

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

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info span {
        display: block;
        margin: 5px 0;
    }

    .logo span {
        font-size: 14px;
    }

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

    /* Holiday Table Mobile */
    .holiday-table {
        font-size: 14px;
    }

    .holiday-table th,
    .holiday-table td {
        padding: 10px 8px;
    }

    /* Instructions Mobile */
    .instruction-category {
        padding: 20px;
    }

    .instruction-category h3 {
        font-size: 1.2rem;
    }

    .instruction-category ul li {
        font-size: 14px;
        padding: 10px 0 10px 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    /* Carousel Mobile Small Screens */
    .carousel {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}












.latest-N{
    display: flex;
    overflow: hidden;
    border-bottom: 1px solid #686868;
}
.latest-anounc{
    background-color:#092047;
    color: white;
    padding: 10px 15px;
}
.latest-anounc h3{
    font-size: 1.2rem;
}
.latest-N marquee{
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}




.breadcrem{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 40vh;
    background-image: url('/assets/breadcrem-bg.jpeg');
    background-position: center;
    background-size: cover;
}
.breadcrem-container{
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}



.faculty-section{
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 0;
}

.faculty-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.facultyCard{
    padding: .5rem;
    width: 100%;height: 100%;
    border-radius: 5px;
    background-color: #b71c1c72;
    box-shadow: 1px 5px 15px rgba(0, 0, 0, 0.616);
    color: var(--white);

}

.faculty-img{
    
    width: 100%;
    overflow: hidden;
}
.faculty-img img{
    width: 100%;
    height: 50%;
    object-fit: cover;
    display:block;

}

.faculty-dets h3{
    text-align: center;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;

}

.faculty-dets p{
    font-size: 1.05rem;
    padding-bottom: 1rem;
    text-align: center;
}
.social-links{
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-links a{
    text-decoration: none;
    background-color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#000;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-links a:hover{
    color: #0021dc;
}

@media (max-width:480px) {
    .faculty-section{
        padding: 1rem;
    }
    .faculty-grid{
        grid-template-columns: 1fr;
    }
    .faculty-dets h3{
        font-size: 1.2rem;
    }
}






.facilities h2{
    color: var(--dark-blue);
    margin-bottom: 30px;
    font-size: 2rem;
    
}
.facilities h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
   
    
}

.facilities p{
    text-align: justify;
    line-height: 1.8;
    max-width: 1100px;
    
    font-size: 1.1rem;
}

#about{
    background: linear-gradient(180deg, #eb91ab 0%, rgb(253, 253, 253) 100%);
 
}


#principle{
    background: linear-gradient(180deg, #e9a383 0%, rgb(253, 253, 253) 100%);
    
}



#vision-mission{
    background: linear-gradient(180deg, #ea86a3 0%, rgb(253, 253, 253) 100%);
    
}

#objective{
    background: linear-gradient(180deg, #ffe29b 0%, rgb(253, 253, 253) 100%);
    
}

.news-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.news-item{
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-item h3{
    color: var(--dark-blue);
    margin-bottom: 15px;
}
.news-item p{
    text-align: justify;
    line-height: 1.8;
}