:root {
    --primary-color: #8B0000; /* Dark red/maroon */
    --secondary-color: #D4AF37; /* Gold */
    --dark-color: #2B2D42;
    --light-color: #F8F9FA;
    --accent-color: #4361EE;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Example: Overriding the button color */
.btn-primary {
    background-color: #92201a;
    border-color: #92201a;
}

.btn-primary:hover {
    background-color: #700012;
    border-color: #700012;
}

/* Basic Header Styles */
header {
    background-color: rgb(255, 255, 255); /* Semi-transparent background for modern look */
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease; /* Smooth transition for shrink effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Light shadow for modern look */
}

/* Shrink the header when scrolled */
header.scrolled {
    background-color: rgb(255, 255, 255, 0.9); /* Solid background when scrolled */
    padding: 8px 0; /* Reduce padding to shrink the header */
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); /* Deeper shadow on scroll */
}

header.scrolled .navbar-brand img {
    width: 250px;
    padding: 0;
}

.navbar-brand img {
    width: 300px; /* Initial logo size */
    margin: 0 0 0 50px;
    transition: width 0.3s ease; /* Smooth transition on scroll */
}

/* Navbar and Links Styling */
.navbar {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav .nav-link {
    color: rgb(0, 0, 0); 
    font-weight: bold;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    position: relative;
}

header.scrolled .nav-link {
    color: rgb(0, 0, 0);
    font-weight: bold;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    position: relative;
}

/* Add underline effect on hover with smooth animation */
.navbar-nav .nav-link::after {
    content: '';
    width: 0;
    height: 2px;
    display: block;
    background: maroon; /* Brand color for underline */
    transition: width 0.3s;
    bottom: -5px;
    left: 0;
}

.navbar-nav .nav-link:hover::after {
    width: 100%; /* Hover effect expands underline */
}

.navbar-nav .nav-link:hover {
    color: rgb(138, 112, 112); /* Change text color on hover */
}

/* Active Link Styling */
.navbar-nav .nav-link.active {
    color: maroon; /* Keep the active link in brand color */
}

.navbar-nav .nav-link.active::after {
    width: 100%; /* Ensure underline for active links */
}

/* Adjust Navbar Collapse for Mobile */
.navbar-collapse.collapse {
    transition: height 0.3s ease;
}

.offcanvas-body {
    justify-content: flex-end;
}

/* Adjust Offcanvas for Mobile */
@media screen and (max-width: 768px) {
    .offcanvas {
        background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent background */
        width: 75%; /* Take up 75% of the screen width on mobile */
    }

    .offcanvas-body {
        padding: 15px;
    }

    .offcanvas-header {
        padding: 10px 15px;
        border-bottom: 1px solid #e5e5e5;
    }

    .navbar ul li {
        margin: 0;
    }
    
    .navbar-brand img {
        margin-left: 10px;
        width: 230px;
    }
    header.scrolled .navbar-brand img {
        width: 200px;
    }
}

/* Customizing the navbar links */
.navbar-nav .nav-link {
    font-weight: bold;
    color: #000;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgb(138, 112, 112);
}


/* Close button in offcanvas */
.btn-close {
    background-color: maroon;
    border: none;
    outline: none;
    padding: 5px;
}

/* Responsive Dropdown for Mobile */
@media screen and (max-width: 1100px) {
    .dropdown-menu {
        position: static;
        min-width: 100%;
    }

    .dropdown-menu a {
        padding: 15px;
        text-align: left;
        font-size: 14px;
    }

    .navbar ul li {
        margin: 0;
    }
    
    .navbar-collapse {
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent background on mobile */
    }

    .navbar-brand img {
        margin-left: 10px;
    }
}

/* Divider styles for content */
.divider {
    width: 80%;
    height: 3px;
    background-color: #92201a; /* Brand color */
    margin: 20px 0;
    border-radius: 5px;
}

/* Modern Footer Styling */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff !important;
    padding: 60px 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #92201a, #f7d22c, #92201a);
}

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

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

.footer-column {
    padding: 0 15px;
}

.logo-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-mission {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
}

.footer-mission p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #f7d22c;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #92201a;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #f7d22c;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -20px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-item i {
    margin-right: 10px;
    color: #f7d22c;
    margin-top: 3px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #92201a;
    transform: translateY(-3px);
}

.newsletter h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    background: #92201a;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #f7d22c;
    color: #333;
}

.map-section {
    margin: 50px 0 30px;
}

.map-title {
    text-align: center;
    margin-bottom: 20px;
    color: #f7d22c;
    font-size: 1.5rem;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 30%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.copyright-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

.copyright-section p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.credit {
    margin-top: 10px;
}

.credit span {
    color: #f7d22c;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .footer-logo {
        width: 200px;
    }
    
    .map-responsive {
        padding-top: 50%;
    }
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 56.25%; /* Adjust for better aspect ratio on smaller devices */
        max-width: 100%; /* Full width on mobile devices */
    }

    #page-footer img{
        width: 300px;
        height: auto;
        width:60%;
        object-fit: cover;
    }
    .footer h5 {
        font-size: 20px;
        text-align: center;
        font-weight: bold;
        margin-bottom: 5px;
        color: white;
    }
    .footer p .footer h6{
        color: #f0f0f0 !important;
        font-size: 10px;
        line-height: 1.6;
        margin: 0;
    }
}


/* About Section Styling */
.btn-primary {
    background-color: #92201a;
    border-color: #92201a;
    padding: 10px 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #700012;
    border-color: #700012;
}

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


/* About Section Styling */
.about-section {
    /*background: linear-gradient(135deg, #800000 0%, #990000 100%);*/
    background-image: url('images/about2.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100%;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-section .content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-section .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.about-section h2 {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1rem;
    }
}


.box {
    background-color: #f8f9fa !important;
    box-shadow: #000000;
    border-radius: 10px;
    /*border: 1px solid #000000; */
    padding: 30px;
    margin: 10px;
}

/* Core Values Icons */
.fas {
    margin-right: 10px;
    font-size: 1.2rem;
}
.about-section2 {
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1256px) {
    .about-section {
        background-image: none !important;
        background-color: maroon !important;
        padding: 100px 20px 40px;
    }

    .about-section .content {
        font-size: 30px;
        padding: 30px;
    }
}


/* Admissions SECTION CSS */
.admissions-section {
    background-image: url('images/admission.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100%;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.admissions-section .content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admissions-section .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.admissions-section h2 {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.admissions-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admissions-section h2 {
        font-size: 2rem;
    }

    .admissions-section p {
        font-size: 1rem;
    }
}

.tab-pane {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-pane:hover {    
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tab-pane h4 {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: maroon; /* Branding color */
}

.tab-pane ul li i {
    margin-right: 10px;
    margin-left: 5%;
    color: maroon;
}

.embed-responsive{
    background-color: #f8f9fa !important;
    border-radius: 10px;
    padding: 30px;
    margin: 10px;
    text-align: center;
}

#important-dates ul li{
    text-align: center;
}


/* Tab Layout */
#admissions-tabs .nav-tabs .nav-link {
    color: #495057; 
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom-color: transparent;
    padding: 10px 20px;
    transition: background-color 0.3s ease-in-out;
}

#admissions-tabs .nav-tabs .nav-link.active {
    color: #fff;
    background-color: #2F4F4F;
    border-color: #2F4F4F;
}

.tab-content h4 {
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-lg {
    margin: 10px;
}

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

.accordion-button {
    background-color: #92201a;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
}

@media (max-width: 1256px) {
    .admissions-section {
        background-image: none !important;
        background-color: maroon !important;
        padding: 100px 20px 40px;
    }

    .admissions-section .content {
        font-size: 30px;
        padding: 30px;
    }
}

/* Mobile styles (up to 768px) */
@media (max-width: 768px) {
    .box {
        padding: 20px;
        margin: 5px;
    }

    #admissions-tabs ul.nav-tabs {
        flex-direction: column;
    }

    .nav-link {
        margin-bottom: 2px;
        font-size: 18px;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }

    iframe {
        width: 100%;
        height: 200px;
    }

    .accordion-button {
        font-size: 14px;
    }
    
}


h2 {
    font-size: calc(1.5rem + 1vw); /* This dynamically adjusts the size */
}

p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }
}

/* Animation Effect */
.wrap-animation .tab-pane {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.wrap-animation .tab-pane.show {
    opacity: 1;
    transform: scale(1);
}

/* Admissions Tabs Mobile Responsiveness */
@media (max-width: 768px) {
    #admissionTabs {
        flex-direction: column;
    }

    #admissionTabs .nav-item {
        margin-bottom: 10px;
        text-align: center;
    }

    .nav-link {
        font-size: 16px;
        padding: 10px;
    }

    /* Adjust the tab content */
    .tab-content ul {
        padding-left: 20px;
    }
}
/* accreditaion section */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Ensure Images are the Same Size */
.accreditation-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.accreditation-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Animation - Zoom the Image */
.accreditation-item:hover img {
    transform: scale(1.1);
}

/* Details Section (Hidden Initially) */
.accreditation-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: rgb(255, 255, 255);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.accreditation-details h4 {
    color: #ffffff;
}

.accreditation-details p {
    color: #ffffff;
}

.accreditation-item:hover .accreditation-details {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .accreditation-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .accreditation-item img {
        height: 200px; /* Adjust image height for smaller screens */
    }
}

/* Academics Page */
.academics-section {
    /*background: linear-gradient(135deg, #800000 0%, #990000 100%);*/
    background-image: url('images/academic_program.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100%;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.academics-section .content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.academics-section .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.academics-section h2 {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.academics-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}


@media (max-width: 826px) {
    .academics-section {
        background-image: none !important;
        background-color: maroon !important;
        padding: 100px 20px 40px;
    }

    .academics-section .content {
        font-size: 30px;
        padding: 30px;
    }
    .academics-section h2 {
        font-size: 2rem;
    }

    .academics-section p {
        font-size: 1rem;
    }
}


/* Accordion styles */
#academicsAccordion .accordion-button {
    background-color: #800000;
    color: white;
    border: none;
    padding: 25px 20px !important;
    font-size: 16px;
}

.accordion-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Course card styling */
.course-card {
    background-color: white;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card h5 {
    color: #b32020;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.course-card p {
    margin: 0;
    font-size: 0.9rem;
}

/* Hover effect */
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .accordion-body {
        flex-direction: column;
    }
    
    .course-card {
        width: 100%;
    }
}

 /* Preloader Styles */
 .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.fbc-logo {
    width: 150px; /* Adjust based on your GIF size */
    height: auto;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* Hide preloader when loaded */
.loaded .preloader {
    opacity: 0;
    pointer-events: none;
}

/* Library Access Section */
.library-bg {
    background: url("images/librarica.webp");
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    position: relative;
    text-align: left;
}

.library-bg .container {
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

.library-bg h2 {
    color: #fff !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
    font-size: 2.5rem;
}

.library-bg p {
    font-size: 1rem !important;
    color: #fff !important;
    margin-bottom: 20px;
}

.library-bg .btn-primary {
    background-color: #fff;
    border-color: #fff;
    color: #92201a;
    padding: 12px 30px;
    font-size: 1rem !important;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.library-bg .btn-primary:hover {
    background-color: #92201a;
    border-color: #92201a;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .library-bg {
        background-position: left;
        padding: 50px 0; /* Reduce padding for smaller screens */
        text-align: center; /* Center text on smaller screens */
    }

    .library-bg .container {
        padding-left: 15px; /* Adjust container padding */
    }

    .library-bg h2 {
        font-size: 2rem; /* Reduce font size for smaller screens */
    }

    .library-bg p {
        font-size: 1rem; /* Reduce font size for smaller screens */
    }
}

