/* Apply font globally */
body {
    font-family: 'Poppins', sans-serif;
}

/* Custom College Header Styles - Color Palette: #A4243B, #FFF9E7, #273E47 */

:root {
  --primary-color: #A4243B;
  --secondary-color: #FFF9E7;
  --dark-color: #273E47;
  --white: #ffffff;
  --text-color: #1e1e1e;
}

body {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

/* Top Header */
.top-header {
  background-color: var(--dark-color);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid var(--primary-color);
}

.lang-selector {
  min-width: 90px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background-color: var(--white);
  color: var(--dark-color);
}

.quick-links a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.quick-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.admission-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.admission-btn:hover {
  background-color: #881b30;
}

.contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #881b30;
}

/* Main Header */
.main-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--primary-color);
}

.college-logo {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .college-logo {
    max-height: 60px;
  }
}

.social-icon {
  font-size: 20px;
  color: var(--dark-color);
  margin-left: 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--primary-color);
}

/* Navigation */
.custom-navbar {
  background-color: var(--primary-color);
  font-weight: 500;
}

.custom-navbar .nav-link {
  color: var(--white) !important;
  padding: 10px 16px;
  margin: 0 4px;
  font-size: 15px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-item:hover {
  color: var(--primary-color) !important;
  background-color: var(--white);
}

.custom-navbar .nav-link.active {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.custom-navbar .dropdown-menu {
  background-color: var(--secondary-color);
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  padding: 10px 0;
}

.custom-navbar .dropdown-item {
  color: var(--dark-color);
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-top: -6px;
  display: none;
  position: absolute;
  border-radius: 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Announcement Scroller */
.scrolling-text-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  background-color: #BB2A44;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  color: var(--white);
}

.scrolling-text-container:hover .scrolling-text {
  animation-play-state: paused;
}

.scrolling-text a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.scrolling-text a:hover {
  color: var(--secondary-color);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* ============================= */
/*        Slider Section         */
/* ============================= */

.banner-shadow {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.banner-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    padding: 2rem;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.banner-content p {
    font-size: 1.125rem;
    animation: fadeInUp 1.2s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 10px;
    background-size: 60% 60%;
}

/* Hide arrows on mobile */
@media (max-width: 767.98px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .banner-content h2 {
        font-size: 1.75rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/*         RESPONSIVE FIXES      */
/* ============================= */

@media (max-width: 767.98px) {
    .college-logo {
        max-height: 60px;
    }

    .banner-img {
        height: 250px;
        border-radius: 12px;
    }

    .carousel-inner::after {
        border-radius: 12px;
    }
}

/* ============================= */
/*     PRINCIPAL'S DESK STYLE    */
/* ============================= */

.principal-desk {
    background: var(--secondary-color);
}

.principal-photo {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.principal-photo:hover {
    transform: scale(1.03);
}

.principal-desk .section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dark-color);
    display: inline-block;
}

.principal-message {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.principal-message::before {
    content: "“";
    font-size: 60px;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.1;
}

.principal-message p,
.principal-message div {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.principal-message .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 20px;
    border: none;
    padding-bottom: 0;
}


/* ============================= */
/*         ABOUT SECTION         */
/* ============================= */

.about-section {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* Card Styling */
.about-card {
    background: var(--white);
    border-radius: 15px;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    min-height: 100%;
    color: var(--text-color);
}

.about-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Icons */
.icon-style {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Typography */
.about-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    text-align: left;
    margin-bottom: 0;
}


/* ============================= */
/*      NOTICE SECTION STYLES    */
/* ============================= */

.notice-section {
    background-color: var(--white);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.notice-card {
    border-radius: 15px;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    position: relative;
    height: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.notice-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.notice-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-color);
    padding-bottom: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-scroll {
    max-height: 230px;
    overflow: hidden;
    position: relative;
    padding-right: 10px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scroll-up 20s linear infinite;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--primary-color);
    color: var(--text-color);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.notice-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Pause scrolling when hovered */
.notice-scroll:hover .notice-list {
    animation-play-state: paused;
}

/* Scroll keyframes */
@keyframes scroll-up {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .notice-title {
        text-align: center;
        justify-content: center;
    }
}

/* ============================= */
/*       WHY CHOOSE US STYLES   */
/* ============================= */

.why-choose-us {
    background-color: var(--white);
}

.why-choose-us .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid var(--dark-color);
}

.feature-card {
    background-color: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    color: var(--text-color);
}

.feature-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.feature-card h5 {
    color: var(--dark-color);
}

.feature-card:hover h5 {
    color: var(--white);
}

/* ============================= */
/*        OUR MENTORS           */
/* ============================= */

.mentors-section {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.mentors-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-color);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Decorative Background Element */
.mentors-section::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    top: 0;
    left: -60px;
    z-index: 0;
}

.mentor-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mentor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.mentor-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.mentor-card:hover .mentor-img {
    transform: scale(1.05);
}

.mentor-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.mentor-title {
    font-size: 14px;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.9;
}


/* ============================= */
/*       GALLERY SECTION         */
/* ============================= */

.gallery-section {
    background-color: var(--white);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.gallery-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 15px;
    height: 240px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    z-index: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 15px;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* Overlay on Hover */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(164, 36, 59, 0.7); /* primary color with opacity */
    width: 100%;
    height: 100%;
    opacity: 0;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* View More Button */
.view-more-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.view-more-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    color: var(--white);
}


/* ============================= */
/*         CONTACT SECTION       */
/* ============================= */

.contact-section {
    background-color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--dark-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Form Card */
.contact-form-card {
    background-color: var(--white);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form-card .form-control {
    border-radius: 10px;
    font-size: 15px;
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 10px 14px;
    transition: border-color 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(164, 36, 59, 0.15);
}

.contact-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
}

.contact-submit-btn:hover {
    background-color: var(--dark-color);
}

/* Map Box */
.map-container {
    height: 100%;
    min-height: 360px;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Responsive tweak */
@media (max-width: 767.98px) {
    .contact-section .section-title {
        text-align: center;
    }
}

/* ============================= */
/*           FOOTER             */
/* ============================= */

.footer-section {
    background-color: var(--dark-color);
    color: var(--white);
    font-size: 14.5px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 6px;
    color: var(--secondary-color);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding-left: 2px;
    position: relative;
}

.footer-links a::before {
    content: "›";
    color: var(--primary-color);
    margin-right: 6px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact i {
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-block;
    color: var(--white);
    font-size: 18px;
    margin-right: 10px;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    font-size: 13.5px;
    color: #cccccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.visitor-count {
    color: var(--white);
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}


/* ============================= */
/*           PRELOADER           */
/* ============================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner-wrapper {
    text-align: center;
    color: #ffffff;
}

.preloader-logo {
    max-width: 80px;
    animation: pulse 1.5s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff;
    border-top: 4px solid #E80202;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* ============================= */
/*      NOTIFICATION POPUP       */
/* ============================= */

.notification-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    background-color: #ffffff;
    border-left: 5px solid #E80202;
    border-radius: 10px;
    z-index: 1050;
    display: none;
    animation: slideIn 0.5s ease forwards;
}

.popup-content {
    padding: 20px;
    position: relative;
    font-size: 14px;
}

.popup-title {
    color: #3F4398;
    font-weight: 600;
    margin-bottom: 10px;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #E80202;
    cursor: pointer;
    font-weight: bold;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/*       SCROLL TO TOP BTN       */
/* ============================= */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #3F4398;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #E80202;
}

/* ============================= */
/*      Contact Us page          */
/* ============================= */

.contact-page-section {
    background-color: #f8faff;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #3F4398;
    border-bottom: 2px solid #E80202;
    display: inline-block;
    padding-bottom: 6px;
}

.contact-form-card {
    background-color: #ffffff;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.contact-form-card .form-control {
    border-radius: 8px;
    font-size: 14.5px;
    box-shadow: none;
}

.contact-submit-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
}

.contact-submit-btn:hover {
    background-color: #E80202;
}

.info-map-card {
    border-left: 5px var(--primary-color);
    border-radius: 12px;
}

.map-container {
    height: 100%;
    min-height: 360px;
    border: 5px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
}

/* ============================= */
/*     PRIVACY POLICY PAGE       */
/* ============================= */

.privacy-policy-section {
    background-color: #f9f9f9;
    font-size: 15px;
    line-height: 1.8;
}

.policy-card h2,
.policy-card h4 {
    font-weight: 700;
    color: #3F4398;
}

.policy-card ul {
    padding-left: 20px;
}

.policy-card ul li {
    margin-bottom: 8px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #ffffff;
}

/* ============================= */
/*     Staff Page Styles         */
/* ============================= */

.staff-header {
    background: linear-gradient(135deg, #3F4398, #1c1f70);
    color: white;
}

.staff-header h1 {
    font-size: 3rem;
    letter-spacing: 0.5px;
}

.staff-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Title */
.staff-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3F4398;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-divider {
    width: 60px;
    height: 4px;
    margin: 0 auto;
    background-color: #E80202;
    border-radius: 10px;
}

/* Staff Card */
.staff-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.staff-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-img {
    transform: scale(1.05);
}

.staff-name {
    font-size: 1rem;
    font-weight: 600;
    color: #3F4398;
    margin-bottom: 5px;
}

.staff-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.cv-btn {
    background-color: #E80202;
    color: white;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cv-btn:hover {
    background-color: #c40000;
}