/* General Body */
body {
    font-family: sans-serif;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 100%;
    }
}

/* Top Notice Bar */
.top-notice-bar {
    background-color: #0d274f;
    color: white;
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-notice-bar .latest-notice-label {
    background-color: #0a1e3c;
    padding: 5px 20px;
}

/* Header Section */
.header-section {
    background-color: #0a1e3c;
    color: white;
    padding: 2rem 0;
}

.header-section .logo {
    height: 100px;
}

.college-info h1 {
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.college-info .subtitle {
    font-size: 1.25rem;
    margin: 0;
}

.college-info .codes {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* === UPDATED NAVIGATION BAR STYLES === */

/* Main Navigation Bar background */
.navbar-custom {
    background-color: #071a33; /* Dark background from image */
    padding-top: 0;
    padding-bottom: 0;
}

/* Default state for navigation links */
.navbar-custom .nav-link {
    color: #263238; /* Muted text color from image */
    /*padding: 1rem 1.75rem;*/
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

/* Active "Home" button state */
.navbar-custom .nav-link.active-home {
    background-color: #5b9ad5;
    color: #ffffff;
    border-radius: 4px;
    font-weight: bold;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 6px rgba(91, 154, 213, 0.15);
    border: none;
    transition: background 0.3s, box-shadow 0.3s;
}

/* Hover effect for all other navigation links */
.navbar-custom .navbar-nav > .nav-item > .nav-link:hover {
    background-color: #5b9ad5; /* Blue background on hover */
    color: #ffffff; /* White text on hover */
}

/* Dropdown Menu styling */
.navbar-custom .dropdown-menu {
    background-color: #0a1e3c;
    border: 1px solid #1a3a69;
    border-radius: 0;
    margin-top: 0;
}

.navbar-custom .dropdown-item {
    color: #a0b4c8; /* Muted text color for dropdown items */
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.navbar-custom .dropdown-item:hover {
    background-color: #5b9ad5; /* Blue background on hover */
    color: #ffffff; /* White text on hover */
}

/* Login Button */
.btn-login {
    background-color: #0d274f;
    color: white;
    border: 1px solid #1a3a69;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #5b9ad5; /* Match hover color */
    color: white;
}

.nav-item {
    margin: 1rem; /* Adjusts spacing between nav items */
}

.container-fluid {
    padding: 0 2rem; /* Adjusts padding for the container */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.carousel-caption p {
    font-size: 1.125rem;
}

.custom-swiper-button {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-swiper-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.arrow {
    display: block;
    width: 0.6em;
    height: 0.6em;
    border: solid white;
    border-width: 0 4px 4px 0;
    padding: 10px;
    transform: rotate(45deg);
    transition: border-color 0.3s;
}

.swiper-button-prev .arrow {
    transform: rotate(135deg);
}

.custom-swiper-button:hover .arrow {
    border-color: black;
}


.front-div-portion {
    width: 100%;
    padding: 20px 0px;
}

.left-module-card {
    transition: box-shadow 0.2s;
}

.left-module-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.both-side-line {
    position: relative;
    display: inline-block;
    padding: 0 18px;
}

.both-side-line:before,
.both-side-line:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #5bb53a;
}

.both-side-line:before {
    left: -38px;
}

.both-side-line:after {
    right: -38px;
}

.left-module-card {
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 10px;
}

.left-module-link {
    display: block;
    text-decoration: none;
}

.left-module-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.left-module-no-img {
    width: 100%;
    height: 170px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-module-no-img span {
    color: #bbb;
    font-size: 32px;
}

.left-module-card-body {
    padding: 18px 12px 12px 12px;
}

.left-module-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.custom-main-btn {
    background: #222 !important;
    border: none !important;
    color: #fff !important;
    transition: background 0.2s, color 0.2s;
}

.custom-main-btn:hover, .custom-main-btn:focus {
    background: #5bb53a !important;
    color: #fff !important;
}

.custom-outline-btn {
    border-color: #222 !important;
    color: #222 !important;
    background: #fff !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.custom-outline-btn:hover, .custom-outline-btn:focus {
    background: #222 !important;
    color: #fff !important;
    border-color: #5bb53a !important;
}

/* -----------------------------------------
 Message from Dignitaries Section
----------------------------------------- */
.message-from-dignitary-section {
    background-color: #F8F9FA;
    /*padding: 50px 15px;*/
}

@media (max-width: 991.98px) {
    .message-from-dignitary-section {
        padding: 30px 8px;
    }

    .header-section .logo {
        height: auto;
    }
    .header-section {
        padding: 0rem 0;
    }
    .p-3 {
        padding: 0.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .message-from-dignitary-section {
        padding: 15px 2px;
    }
    .navbar-custom .nav-link, .navbar-custom .dropdown-item, .btn-login {
        padding-left: 5px;
    }
}

/* This is now the main carousel container */
.message-carousel {
    max-width: 100%;
    margin: 0 auto;
}

/* This container holds the white box content */
.message-container {
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px; /* Creates space between the box and the dots */
    overflow: hidden; /* Recommended for containers with borders/shadows */
}

.message-container-header {
    background-color: #2F568A;
    height: 332px;
    /* width: 104%; */
    margin-left: -5%;
    margin-right: -4%;
}

.message-carousel .carousel-item {
    /* Padding is now on the content wrapper for better height calculation */
    padding: 0;
}

.message-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* This is the key for equal height columns */
    border: 1px solid #CCCCCC;
}

/* Left side - Image and Info */
.message-person-info {
    flex: 0 0 420px; /* Fixed width for the left part */
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.message-person-info img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.message-person-details {
    background-color: #fff;
    padding: 15px;
    text-align: left;
    /*border: 1px solid #EAEAEA;*/
    border-top: none;
}

.message-person-details .title {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.message-person-details .name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Right side - Message Body */
.message-body {
    flex: 1; /* Takes up remaining space */
    background-color: #EFFCFE; /* Light blue from image */
    padding: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the text and button */
}

.message-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495E;
    margin-bottom: 25px;
    text-align: justify;
}

.btn-view-details {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 18px;
    border: 1px solid #B0CBE2;
    color: #2F568A;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-details:hover {
    background-color: #2F568A;
    color: #fff;
}

/* Carousel Indicators - UPDATED */
.message-carousel .carousel-indicators {
    /*position: relative; !* No longer inside the flow of the white box *!*/
    margin: 0;
    justify-content: center;
}

.message-carousel .carousel-indicators [data-bs-target] {
    background-color: #B0CBE2;
    width: 18px;
    height: 8px;
    border-radius: 4px;
    opacity: 1;
}

.message-carousel .carousel-indicators .active {
    background-color: #2F568A;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message-content-wrapper {
        flex-direction: column;
    }

    .message-person-info {
        flex-basis: auto;
        /*padding-right: 0;*/
        margin-bottom: 20px;
        /*max-width: 280px;*/
        align-self: center;
    }

    .message-body {
        padding: 20px;
    }

}

/* General Section Styling */
#news-and-events-section {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

.section-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 40%;
    background-color: #000;
}

.see-all-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.see-all-link:hover {
    color: #007bff; /* Example hover color */
}

/* Latest News Section */
.news-card {
    border: 1px solid #f0f0f0;
    background: #fff;
    margin-bottom: 20px; /* Space between cards on mobile */
    transition: box-shadow 0.3s ease-in-out;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-card a {
    text-decoration: none;
    color: #333;
}

.news-card-img img {
    width: 100%;
    height: 180px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
}

.news-card-body {
    padding: 15px;
}

.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.news-date .fa-calendar {
    margin-right: 5px;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    height: 4.2em; /* Ensures title area has a consistent height (1.4 * 3 lines) */
    overflow: hidden;
}

/* Events Sidebar Section */
.events-sidebar {
    background-color: #e4f5fe; /* Light blue background from image */
    padding: 25px 30px;
    height: 100%;
}

.event-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 15px;
    padding: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.event-date {
    background-color: #00bcd4; /* Teal color from image */
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    margin-right: 15px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 60px; /* Minimum width for the date box */
}

.event-date .month {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1;
}

.event-date .day {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.event-title a {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-decoration: none;
}

.event-title a:hover {
    text-decoration: underline;
}

/* Adjustments for Font Awesome if you are using it */
.fa {
    display: inline-block;
}

/* Gallery Section Styling */
.gallery-section {
    background-color: #f0f2f5; /* Light grey-blue background from the design */
    padding: 60px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    color: #000;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background-color: #000;
}

/* Filter Tabs Styling */
.gallery-nav .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.gallery-nav .nav-link {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 1rem;
}

.gallery-nav .nav-link.active,
.gallery-nav .nav-link:hover {
    color: #245B90;
    border-bottom-color: #245B90;
    background-color: transparent;
}


/* Horizontal Scroll Container */
.gallery-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom Scrollbar for a cleaner look (optional) */
.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}


/* Individual Gallery Item */
.gallery-item {
    flex: 0 0 auto; /* Prevents items from shrinking */
    width: 280px; /* Width of each gallery card */
    height: 220px;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

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

/* Title Overlay */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 15px 15px 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* See All Link at the end of the scroll */
.gallery-see-all {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    color: #343a40;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-see-all:hover {
    color: #245B90;
}

/*-----------------------------------------
  NOTICE & E-RESOURCE SECTION STYLES
-------------------------------------------*/

/* Section Title Styles */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    /*background: #000;*/
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 0;
}

.nav-tabs .nav-link.active {
    background-color: #245B90;
    color: white;
    border-radius: 5px;
}

/* Notice Card Container */
.notice-item {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    padding: 12px;
    margin-bottom: 12px;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.notice-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Notice Date Box */
.notice-date {
    background: #f0f4ff;
    border-radius: 4px;
    border-left: 3px solid #245B90;
    text-align: center;
    padding: 6px 10px;
    margin-right: 16px;
    min-width: 60px;
}

.notice-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: #245B90;
}

.notice-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #333;
}

/* Notice Title & Read More */
.notice-title {
    flex: 1;
}

.notice-title p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-title .read-more {
    font-size: 0.85rem;
    color: #245B90;
    text-decoration: none;
    font-weight: bold;
}

.notice-title .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.notice-title .read-more:hover i {
    transform: translateX(5px);
}

/* See All Button */
.see-all-btn {
    background-color: #245B90;
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
}

/* Accordion */
#eResourceAccordion .accordion-item {
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
}

#eResourceAccordion .accordion-button {
    background-color: #245B90;
    color: white;
    font-weight: bold;
    border-radius: 0;
}

#eResourceAccordion .accordion-button:not(.collapsed) {
    background-color: #245B90;
    color: #fff;
    box-shadow: none;
}

#eResourceAccordion .accordion-button .fa-plus {
    transition: transform 0.3s ease;
}

#eResourceAccordion .accordion-button:not(.collapsed) .fa-plus {
    transform: rotate(45deg);
}

#eResourceAccordion .accordion-body {
    background-color: #f8f9fa;
}

/* Calendar Widget */
.calendar-widget {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    font-family: inherit;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #002147;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.9rem;
}

.calendar-day-name {
    font-weight: bold;
    color: #6c757d;
}

.calendar-day {
    padding: 8px 0;
    color: #333;
}

.calendar-day.other-month {
    color: #adb5bd;
}

.calendar-day.active {
    background-color: #245B90;
    color: #fff;
    border-radius: 50%;
}

/* Responsive Note (Optional) */
@media (max-width: 768px) {
    .notice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-date {
        margin-bottom: 10px;
    }
}

@media (max-width: 991.98px) {
    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .notice-date {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .see-all-btn {
        font-size: 1rem;
        padding: 10px 0;
    }

    .calendar-widget {
        padding: 10px;
    }
}

@media (max-width: 767.98px) {
    .notice-item {
        padding: 8px;
    }

    .notice-title p {
        font-size: 0.9rem;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .see-all-btn {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    .calendar-header {
        font-size: 0.95rem;
    }

    .calendar-day {
        padding: 6px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .notice-item {
        padding: 6px;
    }

    .notice-date {
        min-width: 44px;
        font-size: 0.9rem;
    }

    .notice-date .day {
        font-size: 1.1rem;
    }

    .notice-title p {
        font-size: 0.85rem;
    }

    .see-all-btn {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .calendar-widget {
        padding: 6px;
    }

    .calendar-header {
        font-size: 0.9rem;
    }

    .calendar-day {
        padding: 4px 0;
        font-size: 0.8rem;
    }

    .gallery-scroll-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 20px 20px 20px !important;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

@media (max-width: 991.98px) {
    .featured-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 767.98px) {
    .featured-section {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .left-module-card {
        margin-bottom: 15px;
    }

    .left-module-img {
        width: 100%;
        height: 120px !important;
        object-fit: cover;
    }

    .left-module-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .featured-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .left-module-img {
        height: 196px !important;
    }

    .left-module-title {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 991.98px) {
    #about .about-left-col,
    #about .about-right-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100%;
        position: static !important;
    }

    #about .about-divider-right,
    #about .about-divider-left {
        display: none !important;
    }

    #about .row.flex-wrap {
        flex-direction: column !important;
    }

    #about .row.w-100.g-3.px-4.py-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #about .card .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 767.98px) {
    #about .d-flex.flex-row.flex-wrap {
        flex-direction: column !important;
    }

    #about .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    #about .message-section {
        padding: 10px !important;
    }

    #about .message-content-wrapper {
        flex-direction: column !important;
    }

    #about .message-person-info {
        margin-bottom: 15px;
    }

    #about .row.w-100.g-3.px-4.py-4 {
        padding: 0.5rem !important;
    }

    #about .card .card-body {
        padding: 0.5rem !important;
    }

    #about h2.fs-2 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575.98px) {
    #about .card .card-body {
        padding: 0.3rem !important;
    }

    #about .row.w-100.g-3.px-4.py-4 {
        padding: 0.3rem !important;
    }

    #about h2.fs-2 {
        font-size: 1rem !important;
    }

    #about .message-body p {
        font-size: 0.95rem !important;
    }

    #about .message-person-details h4.name {
        font-size: 1rem !important;
    }
}

@media (max-width: 991.98px) {
    #event {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #event .container {
        padding: 10px !important;
    }

    #event .row.flex-wrap {
        flex-direction: column !important;
    }

    #event .col-lg-6 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    #event {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #event .section-title {
        font-size: 1.1rem !important;
    }

    #event .nav-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    #event .notice-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    #event .notice-date {
        margin-bottom: 8px;
    }

    #event .see-all-btn {
        font-size: 1rem !important;
        padding: 10px 0 !important;
    }

    #eResourceAccordion .accordion-button {
        font-size: 1rem;
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    #event {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #event .section-title {
        font-size: 1rem !important;
    }

    #event .notice-item {
        padding: 6px;
    }

    #event .see-all-btn {
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
    }
}

.message-section {
    margin-top: -250px;
    padding: 80px;
}

@media (max-width: 991.98px) {
    #event {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .latest-news-section,
    .photo-gallery-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #event .container {
        padding: 10px !important;
    }

    #event .row > .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .latest-news-section .row > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .latest-news-section,
    .photo-gallery-section {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .latest-news-section .see-all-link {
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .gallery-scroll-container {
        gap: 10px;
    }

    .gallery-item,
    .gallery-item iframe {
        width: 180px !important;
        height: 120px !important;
    }

    #event .section-title {
        font-size: 1.1rem !important;
    }

    #event .nav-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    #event .notice-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
    }

    #event .notice-date {
        margin-bottom: 8px;
    }

    #event .see-all-btn {
        font-size: 1rem !important;
        padding: 10px 0 !important;
    }

    #eResourceAccordion .accordion-button {
        font-size: 1rem;
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .latest-news-section,
    .photo-gallery-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .latest-news-section .news-card-body {
        padding: 0.5rem !important;
    }

    .latest-news-section h2.section-title,
    .photo-gallery-section h2.gallery-title,
    #event .section-title {
        font-size: 1rem !important;
    }

    .gallery-item,
    .gallery-item iframe {
        width: 120px !important;
        height: 80px !important;
    }

    #event .notice-item {
        padding: 6px;
    }

    #event .see-all-btn {
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
    }
}

.sticky-header {
    top: 0;
    z-index: 99;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #e0e0e0;
    width: 100%;
    top: 70%;
    left: -50%;
    z-index: 2;
    transition: border-color 0.4s ease;
}

.stepper-item::after {
    position: relative;
    z-index: 3;
    content: attr(data-step-counter);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #6c757d;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    transition: all 0.4s ease;
}

.stepper-item.active .stepper-title {
    font-weight: 600;
    color: #003073;
}

.stepper-item.active::after {
    border-color: #003073;
    background-color: #003073;
    color: #fff;
}

.stepper-item.completed::before {
    border-color: #003073;
}

.stepper-item.completed::after {
    content: "✓";
    font-weight: bold;
    border-color: #003073;
    background-color: #003073;
    color: #fff;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-title {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: #6c757d;
    transition: color 0.4s ease;
    white-space: nowrap;
}

/* Responsive styles for stepper */
/* ======================================== */
/* Responsive Stepper Styles for Mobile     */
/* ======================================== */

/* For tablets and mobile devices (<= 991.98px) */
@media (max-width: 991.98px) {
    .stepper-wrapper {
        flex-direction: column;
        align-items: stretch; /* Ensure items take full width */
    }

    .sticky-top {
        position: relative;
        top: 0;
        z-index: 99;
    }

    .stepper-item {
        flex-direction: row; /* Change to horizontal layout */
        align-items: center;
        margin-bottom: 24px;
    }

    /* This becomes the vertical line connecting the steps */
    .stepper-item::before {
        border-bottom: none;
        border-left: 2px solid #e0e0e0;
        width: 2px;
        height: 100%;
        top: -70%;
        left: 14px; /* Aligns with center of the 30px circle */
    }

    /* Move the number circle to the start (left side) */
    .stepper-item::after {
        order: -1;
        flex-shrink: 0; /* Prevent circle from shrinking */
    }

    /* The title will now appear after the circle */
    .stepper-title {
        order: 0;
        margin-top: 0;
        margin-left: 1rem;
        font-size: 1rem;
        white-space: normal; /* Allow title to wrap */
        text-align: left;
    }

    /* Hide the line for the last item in the vertical list */
    .stepper-item:last-child::before {
        display: none;
    }
}

/* For smaller mobile devices (<= 575.98px) */
@media (max-width: 575.98px) {
    .stepper-item {
        margin-bottom: 20px;
    }

    .stepper-item::after {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .stepper-title {
        font-size: 0.9rem;
        margin-left: 0.75rem;
    }

    /* Re-center the vertical line for the smaller 28px circle */
    .stepper-item::before {
        left: 13px;
    }
}

.form-step-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.info-section {
    /*background: rgba(255, 255, 255, 0);*/
    /*padding: 1rem;*/
    border-radius: 8px;
    /*border: 1px solid #e9ecef;*/
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    background: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    display: inline-block;
    font-size: 0.9rem;
}

.head-title {
    font-size: 18px;
}

.payment-api-label input:checked ~ .payment-card {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

.payment-card {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.subject-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

.subject-pill.pre-selected {
    background-color: #ffffff;
    color: #495057;
    font-weight: 500;
    cursor: not-allowed;
}

.subject-pill.selectable {
    cursor: pointer;
}

.subject-pill.selectable .form-check-input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.subject-pill.selectable label {
    cursor: pointer;
    margin-bottom: 0; /* Override Bootstrap's default margin */
}

/* Style for when a selectable pill is checked */
.subject-pill.selectable input:checked + label {
    font-weight: 600;
    color: #0d6efd; /* Bootstrap primary color */
}

.subject-pill.selectable:has(input:checked) {
    border-color: #0d6efd;
    background-color: #e7f0fe;
}

/*section {*/
/*    padding-top: 1rem;*/
/*    padding-bottom: 1rem;*/
/*    padding-left: 3rem;*/
/*    padding-right: 3rem;*/
/*    background-color: #f8f9fa;*/
/*}*/

/* ========== Home ==========*/
#editor-container {
    height: 200px !important;
    overflow-y: auto
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Make Friday and Saturday cells and headers red in FullCalendar */
.fc-day-sat, .fc-day-fri,
.fc-col-header-cell[data-day="5"], /* Friday */
.fc-col-header-cell[data-day="6"] /* Saturday */
{
    background-color: #ffefef !important;
    color: #d32f2f !important;
}

.custom_nav_div {
    top: 32px;

}

/* About Section - Stats Cards */
.about-right-col {
    background: #f4f6f8;
    flex: 0 0 40%;
    max-width: 40%;
}

.about-stat-card {
    border: none;
    background: #f9fafb;
    padding: 26px;
}

.about-stat-icon {
    width: 50px;
    height: 50px;
}

.about-stat-number {
    color: #245B90;
    display: inline-block;
}

.about-stat-label {
    color: #245B90;
    display: inline-block;
}

.about-stat-text {
    font-size: 0.9rem;
}

/* Responsive adjustments for About Section */
@media (max-width: 991.98px) {
    .about-left-col,
    .about-right-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .about-divider-right,
    .about-divider-left {
        display: none; /* Hide vertical dividers on smaller screens */
    }
}

@media (max-width: 575.98px) {
    .about-stat-card {
        padding: 9px; /* Adjust padding for very small screens */
    }

    .card-title {
        font-size: 11px;
    }
}

/*============= Teacher ================= */
.department-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff8a01;
    display: inline-block;
}

.sec-title {
    position: relative;
    margin-bottom: 70px;
}

.sec-title .title {
    position: relative;
    display: block;
    font-size: 16px;
    line-height: 1em;
    color: #ff8a01;
    font-weight: 500;
    background: rgb(247, 0, 104);
    background: -moz-linear-gradient(to left, rgba(247, 0, 104, 1) 0%, rgba(68, 16, 102, 1) 25%, rgba(247, 0, 104, 1) 75%, rgba(68, 16, 102, 1) 100%);
    background: -webkit-linear-gradient(to left, rgba(247, 0, 104, 1) 0%, rgba(68, 16, 102, 1) 25%, rgba(247, 0, 104, 1) 75%, rgba(68, 16, 102, 1) 100%);
    background: linear-gradient(to left, rgba(247, 0, 104) 0%, rgba(68, 16, 102, 1) 25%, rgba(247, 0, 104, 1) 75%, rgba(68, 16, 102, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F70068', endColorstr='#441066', GradientType=1);
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.sec-title h2 {
    position: relative;
    display: inline-block;
    font-size: 48px;
    line-height: 1.2em;
    color: #1e1f36;
    font-weight: 700;
}

.sec-title .text {
    position: relative;
    font-size: 16px;
    line-height: 28px;
    color: #888;
    margin-top: 30px;
}

.sec-title.light h2, .sec-title.light .title {
    color: #fff;
    -webkit-text-fill-color: inherit;
}

.speakers-section-three {
    position: relative;
    padding: 120px 0 90px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.speaker-block-three {
    position: relative;
    margin-bottom: 50px;
}

.speaker-block-three .inner-box {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    padding-bottom: 30px;
    /*max-width: 300px;*/
    margin: 0 auto;
    box-shadow: 0 20px 30px rgba(0, 0, 0, .1);
    -webkit-transition: all 300ms ease;
    -moz-transition: all 600ms ease;
    -ms-transition: all 600ms ease;
    -o-transition: all 600ms ease;
    transition: all 600ms ease;
}

.speaker-block-three .inner-box:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}

.speaker-block-three .image-box {
    position: relative;
    display: block;
    text-align: center;
    padding: 50px 0;
}

.speaker-block-three .image-box:before {
    position: absolute;
    left: -10px;
    right: -10px;
    top: -4px;
    height: 100%;
    background: linear-gradient(to right, #f5fdff, #cbe2ff);
    -webkit-transform: scale(-1);
    transform: scale(-1);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    content: "";
}

.speaker-block-three .image-box .image {
    position: relative;
    display: inline-block;
    height: 250px;
    width: 250px;
    overflow: hidden;
    border: 4px solid #142440;
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
    border-radius: 50%;
    z-index: 9;
    margin-bottom: 0;
    transition: all 600ms ease;
}

.speaker-block-three .image-box .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: all 300ms ease;
}


.speaker-block-three .inner-box:hover .image-box .image {
    border-radius: 0;
}

.speaker-block-three .inner-box:hover .image img {
    transform: scale(1.1);
}

.speaker-block-three .info-box {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    padding-right: 10px;
    background-color: #142440;
}

.speaker-block-three .info-box:before {
    position: absolute;
    left: 0;
    right: -30px;
    background-color: #142440;
    content: "";
    top: 0;
    height: 100%;
    transform: skew(-30deg);
    border-radius: 0 14px 14px 0;
}

.speaker-block-three .info-box .name {
    position: relative;
    font-size: 18px;
    line-height: 1.2em;
    color: #fff;
    font-weight: 500;
}

.speaker-block-three .info-box .name a {
    color: #fff;
    transition: all 300ms ease;
}

.speaker-block-three .info-box .name a:hover {
    color: #fff;
}

.speaker-block-three .info-box .designation {
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    font-weight: 400;
}

.speaker-block-three .social-box {
    position: absolute;
    top: 90px;
    transform: translateX(-50px);
    transition: all 600ms ease;
}

.speaker-block-three .social-box .social-links li {
    margin-bottom: 4px;
}

.speaker-block-three .inner-box:hover .social-box {
    transform: translateX(10px);
}

.speaker-block-three .social-links li a i {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    font-size: 16px;
    line-height: 30px;
    background-color: #fff;
    text-align: center;
    transition: all 300ms ease;
}

.speaker-block-three .social-links li a:hover i {
    color: #fff;
    background: #142440;
}

#department-cards .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none; /* Removes the default border for a cleaner look with shadow */
    border-radius: 0.5rem; /* Softer corners */
}

#department-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

#department-cards .card-body {
    padding: 1.5rem;
}

/* Default card title color */
#department-cards .card-title {
    font-weight: 600;
    color: #333;
}

/* This now automatically makes the title white if the parent card has the .text-white class */
#department-cards .text-white .card-title {
    color: #fff;
}

/* --- NEW --- Style for the icon */
#department-cards .card-title i {
    font-size: 1.2em; /* Makes the icon slightly larger than the text */
}

.notice-section {
    background-color: #f8f9fa; /* Light background for the section */
}

/* Style for the active nav pill */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: #fff;
}

.nav-pills .nav-link {
    color: #0d6efd;
    font-weight: 500;
}

/* Table cell styling */
.table th, .table td {
    vertical-align: middle;
}

.table-serial {
    width: 5%;
}

.table-date {
    width: 15%;
}

.table-actions {
    text-align: center;
    white-space: nowrap; /* Prevents buttons from wrapping on small screens */
}

.table-actions .btn {
    margin: 0 0.25rem;
}

/* DataTables + Bootstrap 5 alignment fixes */
div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 1rem;
    justify-content: end;
}

div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter {
    padding-bottom: 1rem;
}

/*
* Modern Underline Tab Style
*/
.nav-underline-custom .nav-link {
    color: #6c757d; /* Muted text color for inactive tabs */
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 1.5rem; /* Space between tabs */
    font-weight: 500;
}

.nav-underline-custom .nav-link.active,
.nav-underline-custom .nav-link:hover,
.nav-underline-custom .nav-link:focus {
    color: #0d6efd; /* Primary color for active/hover tab */
    border-bottom-color: #0d6efd; /* Underline color */
    background-color: transparent; /* Remove pill background */
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: var(--bs-nav-pills-link-active-bg);
    padding: 10px;
}

#myTab {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #fff; /* Add background color to prevent content from showing through */
    border-bottom: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    #myTab {
        top: 56px;
    }

    #myTab {
        flex-wrap: wrap; /* Allow tabs to wrap to the next line */
    }

    #myTab .nav-item {
        flex-grow: 1; /* Allow items to grow and fill the space */
        min-width: 120px; /* Adjust min-width as needed */
        margin-bottom: 0.5rem; /* Add some space between wrapped rows */
    }

    #myTab .nav-link {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 0.75rem 0.5rem; /* Adjusted padding for a more button-like feel */
        border-radius: 0.375rem; /* Rounded corners for all sides */
        margin-right: 0;
        border: 1px solid #dee2e6;
    }

    #myTab .nav-link.active {
        border-radius: 0.375rem;
    }

    /* Adjust the login button to not grow */
    #myTab .nav-item.ms-auto {
        flex-grow: 0;
    }
}

@media (max-width: 575.98px) {
    .inner-header h2 {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 0.5rem;
    }

    #myTab .nav-item {
        min-width: 90px;
    }

    #myTab .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.2rem;
    }
}

/* Improve tab appearance */
#myTab .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    margin-right: 2px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
    border-bottom: 0;
}

#myTab .nav-link.active {
    background: #0d274f;
    color: #fff;
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

#myTab .nav-link:not(.active):hover {
    background: #e9ecef;
    color: #0d274f;
    border-color: #e9ecef #e9ecef #dee2e6;
}

#myTab .nav-item.ms-auto {
    margin-left: auto !important;
}

/* Responsive tab content */
.tab-content > .tab-pane {
    min-height: 120px;
}

.button-bg-60d {
    background-color: #6600dd;
    color: #fff;
}
.button-heading-d {
    font-weight: bold;
}
.professional-card {
    border: 1px solid #e0e0e0;
    /*border-radius: .75rem;*/
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: all .3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-color: #0B2245;
}
.professional-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    /*padding: .75rem 1rem;*/
}
.professional-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.professional-card .card-body ul {
    margin-bottom: auto; /* Pushes list to top */
}
.professional-card .card-body ul li {
    padding: .2rem 0;
    display: flex;
    align-items: center;
}
.professional-card .card-body ul li i {
    width: 20px;
}
.professional-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: .75rem 1rem;
}
.professional-card .btn {
    font-weight: 900;
    letter-spacing: .5px;
    font-size: large;
}
.disabled-card {
    opacity: 0.7;
    background-color: #f8f9fa;
}
.disabled-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    border-color: #e0e0e0;
}

/* Stopwatch Countdown Styles */
.stopwatch-countdown {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}
.stopwatch-countdown .time-block {
    display: flex;
    flex-direction: column;
}
.stopwatch-countdown .time-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0C2346;
    background-color: #f0f1f3;
    border-radius: .4rem;
    padding: .25rem .5rem;
    min-width: 50px;
}
.stopwatch-countdown .time-label {
    font-size: .75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: .25rem;
}
.stopwatch-countdown.expired-message {
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #dc3545;
    min-height: 78px;
}
.card-header{
    background: #0a1e3c !important;
    color: white !important;
}
