/* Custom CSS for Don Bosco School Itanagar */

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfbf7;
    color: #333333;
    overflow-x: hidden;
    position: relative;
    /* needed for overflow-x: hidden to work on body */
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}
table {
  border-collapse: collapse;
  width: 100%;
}
 th {
   background-color: var(--theme-color) !important;     
   color: #fff !important;
 }
 td p{
     margin-bottom: 0px !important;
 }
td, th {
  border: 1px solid #c1c1c1 !important;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
/* Colors Variables */
:root {
    --theme-color: #1a3a6b;
    --db-maroon: var(--theme-color);
    --db-maroon-dark: var(--theme-color);
    --db-gold: #c59b27;
    --db-cream: #fdfbf7;
    --db-gray: #f5f5f5;
    --db-dark: #222;
}

:root {
    --theme-color: #1a3a6b;
    /* default theme */
}

/* Fix: Make subpage/content headings follow the theme color */
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6,
.content-text h2,
.content-text h3,
.content-text h4,
.notices-circulars h2,
.upcoming h2,
.error-page h2 {
    color: var(--theme-color) !important;
}

/* Replace hardcoded #083ebd with theme variable */
.notices-circulars h2,
.error-page h2 {
    color: var(--theme-color);
    /* was #083ebd */
    font-size: 25px;
    font-weight: 500;
}

.upcoming h2 {
    color: var(--theme-color);
    /* was #083ebd */
    font-size: 25px;
    font-weight: 500;
}

.school-history h1[style],
.school-history h2[style],
.school-history h3[style] {
    color: var(--theme-color) !important;
}

/* Apply the variable everywhere */
.btn-primary,
.accent {
    background-color: var(--theme-color);
}

.theme-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.theme-dot:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Then use it wherever your brand color appears */
.navbar {
    background-color: var(--theme-color);
}

.btn-primary {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.sidebar {
    background-color: var(--theme-color);
}

a,
.accent-text {
    color: var(--theme-color);
}

.border-accent {
    border-color: var(--theme-color);
}

/* Color Utilities (Fallback for Tailwind) */
.bg-db-maroon {
    background-color: var(--db-maroon) !important;
    /* margin-left: 15px; */
}

.date-box {
    background-color: var(--db-maroon) !important;
    margin-left: 15px;
}

.bg-db-maroon-dark {
    background-color: var(--db-maroon-dark) !important;
}

.bg-db-gold {
    background-color: var(--db-gold) !important;
}

.bg-db-cream {
    background-color: var(--db-cream) !important;
}

.text-db-maroon {
    color: var(--db-maroon) !important;
}

.text-db-gold {
    color: var(--db-gold) !important;
}

.border-db-gold {
    border-color: var(--db-gold) !important;
}

/* Utility Bar */
.utility-bar {
    background-color: var(--theme-color);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.utility-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.utility-bar a:hover {
    color: var(--db-gold);
}

.main-header-wrapper {
    position: relative;
    z-index: 1050;
    width: 100%;
}

.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--db-maroon) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--db-gold) !important;
}

/* Header Icons Hover */
.main-navigation .btn-link i {
    transition: all 0.3s ease;
}

.main-navigation .btn-link:hover i {
    color: var(--db-gold) !important;
    transform: scale(1.1);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--db-maroon);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--db-maroon-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--db-gold);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-secondary-custom:hover {
    background-color: #a88320;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--db-maroon);
    border: 2px solid var(--db-maroon);
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: var(--db-maroon);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--db-maroon);
    color: white;
    overflow: hidden;
    min-height: 500px;
    display: block;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#about-particles {
    pointer-events: none;
}

/* Cards & Sections */
.section-title {
    color: var(--db-maroon);
    margin-bottom: 2rem;
    position: relative;
    /* display: inline-block; */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--db-gold);
}

.feature-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--db-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Swiper Controls */
.swiper-pagination-fraction {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    bottom: 2rem;
}

/* Footer */
.main-footer {
    background-color: var(--theme-color);
    color: white;
    padding: 4rem 0 2rem 0;
}

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

.main-footer a:hover {
    color: var(--db-gold);
}

.footer-title {
    color: var(--db-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Header Banner */
.header-banner {
    background-color: white;
}

.header-banner .smaller {
    font-size: 0.75rem;
}

/* Life at Don Bosco Tabs Modern Styling */
.life-tabs {
    border-bottom: 2px solid rgba(115, 23, 23, 0.05);
    padding-bottom: 1.5rem;
}

.life-tabs .nav-link {
    background-color: white;
    color: var(--db-maroon);
    border: 1px solid rgba(115, 23, 23, 0.1);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.life-tabs .nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.life-tabs .nav-link.active {
    background-color: var(--db-maroon) !important;
    color: white !important;
    border-color: var(--db-maroon);
    box-shadow: 0 10px 25px rgba(115, 23, 23, 0.2);
    transform: translateY(-2px);
}

.life-tabs .nav-link.active i {
    color: var(--db-gold);
    transform: scale(1.1);
}

.life-tabs .nav-link:hover:not(.active) {
    background-color: var(--db-cream);
    border-color: var(--db-gold);
    color: var(--db-maroon);
    transform: translateY(-2px);
}

.life-tab-content {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.life-image-container {
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.life-image-container img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.life-image-container:hover img {
    transform: scale(1.08);
}

/* Premium Faculty Cards */
.faculty-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.faculty-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(115, 23, 23, 0.1);
    border-color: var(--db-gold);
}

.faculty-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.faculty-overlay {
    background: linear-gradient(to top, rgba(115, 23, 23, 0.9), rgba(115, 23, 23, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faculty-overlay a {
    width: 38px;
    height: 38px;
    background: white;
    color: var(--db-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.faculty-card:hover .faculty-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.faculty-card:hover .faculty-overlay a:nth-child(2) {
    transition-delay: 0.1s;
}

.faculty-overlay a:hover {
    background: var(--db-gold);
    color: white;
}

/* Testimonials Carousel Styling */
.testimonials-swiper {
    padding: 20px 40px 60px 40px !important;
}

.testimonials-swiper .swiper-slide {
    height: auto !important;
    display: flex;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card p {
    flex-grow: 1;
    /* Pushes the author info to the bottom */
}

.testimonial-card:hover {
    border-color: var(--db-gold);
    transform: scale(1.02);
}

.testimonials-swiper .swiper-pagination-bullet {
    background: white !important;
    opacity: 0.3;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--db-gold) !important;
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

.testimonial-next,
.testimonial-prev {
    color: var(--db-gold) !important;
    background: white;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 20;
}

.testimonial-next::after,
.testimonial-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.testimonial-next:hover,
.testimonial-prev:hover {
    background: var(--db-gold);
    color: white !important;
    transform: scale(1.1);
}

.testimonial-next {
    right: 5px !important;
}

.testimonial-prev {
    left: 5px !important;
}

@media (max-width: 768px) {
    .news-events .d-flex {
        display: block !important;
    }

    .news-events .d-flex span {
        margin-top: 15px;
    }

    .life-tabs .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .testimonials-swiper {
        padding: 20px 10px 50px 10px !important;
    }

    .testimonial-next,
    .testimonial-prev {
        display: none !important;
    }
}


/* Main Navigation */
.main-navigation {
    z-index: 1020;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--theme-color) !important;
    background-image: none !important;
    backdrop-filter: blur(10px);
}

.navbar-nav li {
    border-color: #e5e7eb;
    border-right: 1px solid #fff;
}

/* Fix Tailwind 'collapse' conflict with Bootstrap 'collapse' */
.navbar-collapse {
    visibility: visible !important;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse.collapse {
        display: flex !important;
    }
}

.main-navigation.sticky-top {
    top: 0;
}

.main-navigation .nav-link {
    color: var(--db-cream) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    letter-spacing: 0.3px;
}

.main-navigation .dropdown-menu a.dropdown-item.active {
    background-image: linear-gradient(180deg, #1a3a6b 0%, #340606 100%) !important;
    color: #fff !important;
}

.main-navigation .nav-link:hover {
    color: var(--db-gold) !important;
}

.main-navigation .dropdown-menu a.dropdown-item {
    font-size: 0.95rem !important;
    background-image: linear-gradient(180deg, #ffd24a 0%, #c78110 100%);
    color: #222;
}

.main-navigation .dropdown-menu a.dropdown-item:hover {
    font-size: 0.95rem !important;
    background-image: linear-gradient(180deg, #1a3a6b 0%, #340606 100%);
    color: #fff;
}

.main-navigation .dropdown-menu a.dropdown-item:hover i {
    color: #fff !important;
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.8rem;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--db-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.main-navigation .nav-link:hover::after,
.main-navigation .nav-link.active::after {
    transform: scaleX(1);
}

.main-navigation .dropdown-menu {
    border-top: 3px solid var(--db-gold);
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 0 0;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .main-navigation .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Customizations */
.hero-swiper {
    height: calc(100vh - 180px);
    min-height: 600px;
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.text-shadow {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--db-gold);
    width: 30px;
    border-radius: 6px;
}

/* Custom Swiper Counter */
.swiper-counter-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    flex-direction: column;
    color: white;
}

.swiper-counter-wrapper .current-slide {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: serif;
    line-height: 1;
    color: var(--db-gold);
}

.swiper-counter-wrapper .total-slides {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.7;
}

.swiper-counter-wrapper .counter-separator {
    width: 40px;
    height: 2px;
    background: white;
    margin: 10px 0;
}

/* Announcement Marquee */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .utility-bar {
        display: none;
    }

    .header-banner {
        display: none;
        /* Mobile brand is in the navbar */
    }

    .hero-swiper {
        height: auto;
        min-height: 400px;
    }

    .hero-swiper .display-2 {
        font-size: 2.5rem;
    }
}

/* 09-05-2026 */
.logo img,
.footer-logo img {
    width: 80px;
    height: auto;
}

.header-banner h3,
.header-banner h6 {
    font-family: 'Inter', sans-serif;
}

.megaphone-animation {
    animation-name: megaphone;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes megaphone {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.phone-animation {
    animation: ring 1s infinite ease-in-out;
    transform-origin: center;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    70% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Nav Link Active & Dropdown Arrow */
.main-navigation .nav-link.active {
    color: var(--db-gold) !important;
}

.main-navigation .nav-link.active::after {
    transform: scaleX(1);
}

.main-navigation .dropdown-toggle::after {
    display: none;
    /* Hide default Bootstrap arrow */
}

/* Academic Section Enhancements */
.academic-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.academic-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(197, 155, 39, 0.2);
    border-color: var(--db-gold);
}

.academic-card:hover .academic-overlay {
    opacity: 1;
    background-color: var(--db-gold);
    mix-blend-mode: overlay;
}

.academic-card:hover .academic-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: white !important;
    color: var(--db-gold) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.academic-link i {
    transition: transform 0.3s ease;
}

.academic-card:hover .academic-link i {
    transform: translateX(5px);
}

/* Latest News Scroll Animation */
.news-scroll-container {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.news-scroll-content {
    animation: news-scroll 25s linear infinite;
}

.news-scroll-container:hover .news-scroll-content {
    animation-play-state: paused;
}

@keyframes news-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.news-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover {
    background-color: var(--db-cream) !important;
    border-color: var(--db-gold) !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smaller {
    font-size: 0.75rem;
}

/* Resources Section Styling */
.resources-section {
    background: linear-gradient(135deg, var(--db-maroon) 0%, #4a0f0f 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c59b27' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.resources-section .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.resources-section .card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--db-gold) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.resources-section .card-body h4 {
    color: white !important;
}

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

.resources-section .btn-outline-custom {
    color: var(--db-gold);
    border-color: var(--db-gold);
}

.resources-section .btn-outline-custom:hover {
    background-color: var(--db-gold);
    color: white;
}

/* Global Scroll Animations (AOS) */
/* Stat Card Enhancements */
.stat-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
    box-shadow: 0 20px 40px rgba(115, 23, 23, 0.15) !important;
}

.stat-icon i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.stat-card:hover .stat-icon i {
    transform: scale(1.3) rotate(-5deg);
}

/* Quick Access Cards */
.quick-access-card {
    min-height: 160px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-access-card .icon-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quick-access-card:hover .icon-box {
    transform: rotate(15deg) scale(1.1);
}

.quick-access-card span {
    font-size: 0.95rem;
    line-height: 1.3;
}

.group:hover .group-hover\:bg-db-gold {
    background-color: var(--db-gold) !important;
}

.group:hover .group-hover\:text-white {
    color: #222 !important;
}

/* .header-banner {
    background-image: url(../img/header-banner.jpg);
    background-size: cover;
    background-position: center;
} */

.uwy.userway_p1 .userway_buttons_wrapper {
    top: 93% !important;
}

/* Mobile Accordion Menu Styles */
#mobileMenu .accordion-button,
.mobile-nav-link {
    background-color: white !important;
    color: var(--db-maroon) !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#mobileMenu .accordion-button:not(.collapsed) {
    background-color: var(--db-maroon) !important;
    color: white !important;
    border-color: var(--db-maroon) !important;
}

#mobileMenu .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#mobileMenu .accordion-button::after {
    background-size: 1rem;
    transition: transform 0.3s ease;
}

#mobileMenu .accordion-body {
    background-color: white;
    border-radius: 0 0 12px 12px;
}

#mobileMenu .accordion-body a {
    transition: all 0.2s ease;
    padding-left: 10px;
    color: var(--db-maroon) !important;
    font-weight: 500;
}

#mobileMenu .accordion-body a:hover {
    color: var(--db-gold) !important;
    padding-left: 15px;
}

/* Ensure sub-menu items are clickable and look clean */
#mobileMenu .accordion-collapse {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1.5rem !important;
    }

    .navbar-nav .dropdown-item {
        color: var(--db-maroon) !important;
        font-weight: 500;
    }
}

/* Sub-Page Global Styles */
.page-banner {
    padding: 30px 0 30px;
    background-color: var(--db-maroon);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgb(115 23 23 / 0%), var(--db-maroon)), url(../img/header-banner.jpg);
    background-size: cover;
    opacity: 0.8;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--db-gold);
}

.breadcrumb-item.active {
    color: #fff;
}

.sub-page-title {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Reusable Cards for Sub-pages */
.sub-page-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sub-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(115, 23, 23, 0.1);
}

/* UserWay Accessibility Widget Position Fix */
div#userwayAccessibilityWidget,
.uai,
#uaw-widget-area,
.userway-widget-container {
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
}

.search-nav-item {
    position: relative;
}

.search-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown-container {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #7b0f0f;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    width: 280px;
    margin-top: 8px;
}

.search-dropdown-container::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #7b0f0f;
    border-top: 1px solid #7b0f0f;
    transform: rotate(45deg);
    z-index: 1;
}

.search-dropdown-container.show {
    display: block;
    animation: slideDownFade 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-dropdown-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfbf7;
    border: 1px solid #7b0f0f;
    border-radius: 8px;
    padding: 6px 12px;
}

.search-dropdown-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    background: transparent;
}

.search-dropdown-input::placeholder {
    color: #9aa0a6;
    font-weight: 500;
}

.search-dropdown-btn {
    color: #7b0f0f;
    cursor: pointer;
    padding-left: 8px;
    display: flex;
    align-items: center;
}

.search-dropdown-btn i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.search-dropdown-btn:hover i {
    transform: scale(1.1);
}

.main-navigation .nav-link.search-toggle::after {
    display: none !important;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marquee-content a {
    font-size: 0.95rem !important;
}

.school-history h2,
.school-history h3,
.school-history h4,
.school-history h5,
.school-history h6 {
    --tw-text-opacity: 1;
    color: var(--db-dark);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem !important;
    line-height: 27px;
}

.school-history p {
    --bs-text-opacity: 1;
    color: var(--db-dark) !important;
    margin-bottom: 1.5rem !important;
    font-size: 16px;
    line-height: 27px;
}

.school-history ul li p {
    margin-bottom: 0px !important;
    line-height: 30px;
}

.school-history li {
    list-style: none;
    position: relative;
    padding-left: 28px;
}

.school-history ul li::before {
    content: "\f633";
    /* Bootstrap Icons - flask */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #7a0019;
    /* maroon */
    font-size: 16px;
}

.gallery-desc {
    max-width: 700px;
}

/* Tabs */
.gallery-tabs .nav-link {
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    background: #fff;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-tabs .nav-link.active {
    background: #7a0019;
    color: #fff;
}

.gallery-tabs .nav-link:hover {
    background: #7a0019;
    color: #fff;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 25px;
    color: #fff;
    opacity: 0;
    transition: 0.4s ease;
}

.gallery-overlay h5 {
    font-weight: 700;
    margin-bottom: 12px;
}

.gallery-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    color: #7a0019;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: 0.3s ease;
}

.gallery-btn:hover {
    background: #7a0019;
    color: #fff;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.notices-circulars h2,
.error-page h2 {
    color: #083ebd;
    font-size: 25px;
    font-weight: 500;
}

.upcoming h2 {
    color: #083ebd;
    font-size: 25px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {

    .gallery-card {
        height: 280px;
    }

    .gallery-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .gallery-tabs::-webkit-scrollbar {
        height: 4px;
    }
}

@media (max-width: 576px) {

    .gallery-card {
        height: 240px;
    }

    .gallery-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .gallery-overlay h5 {
        font-size: 16px;
    }

    .navbar-toggler .text-db-maroon,
    #mobile-search-trigger i {
        color: #ffffff !important;
    }
}


@media (max-width: 768px) {
    .mobile-logo {
        width: 50px;
        height: auto;
    }

    .navbar-toggler .text-db-maroon,
    #mobile-search-trigger i {
        color: #ffffff !important;
    }

    div#userwayAccessibilityWidget,
    .uai,
    #uaw-widget-area,
    .userway-widget-container {
        bottom: 90px !important;
        /* Adjusted for mobile to clear floating buttons or nav */
        right: 20px !important;
        transform: scale(0.9) !important;
        /* Slightly smaller on mobile */
    }

    .header-banner .h1 {
        font-size: 1.5rem;
    }

    .header-banner h3 {
        font-size: 0.75rem !important;
        line-height: 20px !important;
    }

    .header-banner h6 {
        font-size: 12px !important;
    }

    .header-banner .logo img {
        width: 70px !important;
        height: 70px !important;
    }

    .header-banner .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.campus-life ul {
    list-style: disc;
    margin-left: 30px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.btn-read,
.btn-view {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

/* Read More Button */
.btn-read {
    background: #f4b400;
    color: #000;
}

.btn-read:hover {
    background: #1a3a6b;
    color: #fff;
}

/* View All Button */
.btn-view {
    background: #1a3a6b;
    color: #fff;
    border: 1px solid #1a3a6b;
    margin-left: 10px;
}

.btn-view:hover {
    background: #f4b400;
    color: #fff;
}

.don-bosco {
    font-size: 30px !important;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1300px !important;
    }
}

.news-meta-item {
    margin-top: -15px;
}

/* .position-relative img {
    padding-left: 20px;
} */

.text-white-50 {
    --bs-text-opacity: 1 !important;
    color: #fff !important;
}

.text-gray-400 {
    --tw-text-opacity: 1;
    color: #fff !important;
}

/* Mobile Accordion Fix */
.accordion-collapse {
    transition: none !important;
}

.accordion-body {
    overflow: visible !important;
}

.offcanvas-body,
.mobile-menu,
.accordion {
    overflow: visible !important;
    height: auto !important;
}

/* Prevent collapse hiding issue */
.collapsing {
    height: auto !important;
    transition: none !important;
}

/* Even space for top and bottom in subpages */
.subpage-body section.py-5,
.subpage-body section.history-content,
.subpage-body section.subpage {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.subpage-body section.py-5 .container.py-5,
.subpage-body section.history-content .container.py-5,
.subpage-body section.subpage .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 21-05-2026 */
.copyrights span.text-light-700 {
    font-size: 10px;
    line-height: 27px;
}

/* ── SECTION WRAPPER ── */
.pm-section {
    background: var(--theme-color);
}

/* decorative arc top-right */
.pm-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(201, 148, 58, .18);
    pointer-events: none;
}

.pm-section::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 148, 58, .12);
    pointer-events: none;
}

/* ── INNER GRID ── */
.pm-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ── LEFT: TEXT CONTENT ── */
.pm-left {
    padding: 5rem 3.5rem 5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.pm-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--db-gold);
}

.pm-label span.line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--db-gold);
    border-radius: 2px;
}

.pm-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--db-cream);
}

.pm-title em {
    font-style: italic;
    color: var(--db-gold);
}

.pm-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--db-gold), transparent);
    border-radius: 2px;
}

.pm-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
}

.pm-quote {
    border-left: 3px solid var(--db-gold);
    padding-left: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-top: 0.4rem;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.8rem;
    padding: 0.85rem 2.2rem;
    background: var(--db-cream);
    color: var(--navy);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    width: fit-content;
}

.pm-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.pm-btn:hover {
    background: var(--db-cream);
    box-shadow: 0 8px 28px rgba(255, 214, 144, 0.35);
    transform: translateY(-2px);
}

.pm-btn:hover svg {
    transform: translateX(4px);
}

/* ── RIGHT: PHOTO ── */
.pm-right {
    position: relative;
    align-self: stretch;
    background: var(--navy-md);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

/* diagonal separator */
.pm-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 60px;
    height: 100%;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
}

/* gold accent strip */
.pm-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
    z-index: 3;
}

.pm-photo-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pm-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 15px;
}

/* dark gradient overlay */
.pm-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(13, 35, 64, .1) 0%,
            rgba(13, 35, 64, .05) 50%,
            rgba(13, 35, 64, .75) 100%);
}

/* name card */
.pm-name-card {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.pm-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--db-cream);
    letter-spacing: 0.02em;
}

.pm-role {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--db-gold) !important;
    margin-top: 4px;
}

.pm-sig {
    margin-top: 10px;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    letter-spacing: 0.03em;
}

/* fallback avatar when no real photo */
.pm-avatar {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pm-avatar-circle {
    width: 335px;
    /* height: 140px; */
    border-radius: 15px;
    background: rgba(201, 148, 58, .18);
    border: 5px solid rgb(179 116 9);
}

.pm-avatar-circle svg {
    width: 72px;
    height: 72px;
    fill: rgba(201, 148, 58, .6);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .pm-inner {
        grid-template-columns: 1fr;
    }

    .pm-left {
        padding: 3.5rem 2.5rem;
    }

    .pm-right {
        min-height: 340px;
    }

    .pm-right::before {
        display: none;
    }
}

@media (max-width: 580px) {
    body {
        padding: 1rem 0.5rem;
    }

    .pm-section {
        border-radius: 14px;
    }

    .pm-left {
        padding: 2.5rem 1.5rem;
        gap: 1.1rem;
    }

    .pm-title {
        font-size: 1.75rem;
    }

    .pm-right {
        min-height: 280px;
    }

    .pm-name {
        font-size: 1.15rem;
    }
}

.form-control-lg,
.form-select-lg {
    font-size: 16px;
    border: 1px solid #4444;
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--theme-color, #1a3a6b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.pre-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: pre-pulse 1s ease-in-out infinite;
}

.pre-logo span {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color, #1a3a6b);
    font-family: Georgia, serif;
}

@keyframes pre-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.pre-school-name {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0.9;
    font-family: Georgia, serif;
}

.pre-bar-track {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.pre-bar-fill {
    height: 100%;
    width: 0%;
    background: #c59b27;
    border-radius: 2px;
}

.pre-percent {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.pm-section p {
    color: #fff;
}

.home-gallery li {
    list-style: none !important;
}

.h1,
h1 {
    font-size: 2rem !important;
}

.px-2 {
    padding-right: .8rem !important;
    padding-left: .8rem !important;
}
.table {
    border-collapse: collapse !important;
}

.table,
.table th,
.table td {
    border: 1px solid #000 !important;
}

.table th,
.table td {
    padding: 10px;
    vertical-align: middle;
}

.table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}