/* ============================================
   Panchayat Samiti Kankavli - Shared Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #800000;
    --primary-light: #a94442;
    --primary-dark: #5a0000;
    --secondary: #c2185b;
    --secondary-light: #f8bbd0;
    --gold-accent: #d4a843;
    --gold-light: #f0d58c;
    --bg-gradient-1: #fff0f0;
    --bg-gradient-2: #ffe6e6;
    --text-dark: #2c1a1a;
    --text-medium: #5d3a3a;
    --text-light: #a17979;
    --white: #ffffff;
    --border-light: #f0dcdc;
    --navy: #050a30;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    min-height: 100vh;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    background-attachment: fixed;
    padding-top: 110px;
}

a {
    text-decoration: none;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TOPBAR
   ============================================ */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.topbar {
    background-color: var(--primary);
    padding: 3px 0;
    font-size: 0.85rem;
}

.topbar-info a,
.topbar-icon a {
    color: var(--white);
    text-decoration: none;
    margin-right: 12px;
    transition: all 0.3s;
}

.topbar-info a:hover {
    color: var(--gold-light);
}

.topbar-icon a {
    width: 26px;
    height: 26px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.topbar-icon a:hover {
    background-color: var(--gold-accent);
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: linear-gradient(to bottom, #fff0f0, #ffe6e6);
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.15);
    padding: 8px 0;
}

.navbar-brand img {
    max-width: 200px;
    transition: all 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    padding: 8px 12px;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    margin: 0 4px;
    border-radius: 5px;
    display: inline-block;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:not(.dropdown-toggle)::after,
.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(128, 0, 0, 0.05);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    border-top: 2px solid var(--primary);
    font-size: 0.95rem;
}

.dropdown-item {
    padding: 6px 12px;
    transition: all 0.3s;
    position: relative;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: white;
    padding-left: 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ============================================
   PAGE HEADER BANNER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0 40px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 40px 40px;
}

.page-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CAROUSEL (Homepage)
   ============================================ */
.carousel-header {
    position: relative;
    overflow: hidden;
}

.carousel-header .carousel-item img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    bottom: 20%;
    z-index: 10;
}

.carousel-caption h1 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 30px;
    font-weight: 500;
}

.carousel-caption .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============================================
   BDO CARD
   ============================================ */
.bdo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.12);
    transition: transform 0.3s;
}

.bdo-card:hover {
    transform: translateY(-5px);
}

.bdo-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.bdo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(128, 0, 0, 0.8));
}

.bdo-info {
    padding: 20px;
    text-align: center;
}

.bdo-name {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.bdo-designation {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.bdo-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    color: var(--text-medium);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.contact-link:hover {
    color: var(--primary);
}

/* ============================================
   NOTICES SECTION
   ============================================ */
.notices-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(128, 0, 0, 0.08);
    height: 100%;
}

.notices-container .nav-tabs {
    border-bottom: 2px solid var(--border-light);
}

.notices-container .nav-tabs .nav-link {
    color: var(--text-medium);
    border: none;
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
}

.notices-container .nav-tabs .nav-link.active {
    color: var(--primary);
    background: none;
    border-bottom: 2px solid var(--primary);
}

.notice-header h5 {
    color: var(--primary);
    font-size: 1rem;
    margin: 15px 0;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-list li::before {
    content: '\f0a9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 0.75rem;
    margin-top: 5px;
}

.notice-list li a {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.notice-list li a:hover {
    color: var(--primary);
}

.notice-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.view-all-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   DEPARTMENT CARDS (Homepage)
   ============================================ */
.service-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.service-box h4 {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    min-height: 48px;
}

.service-box .read-more {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 20px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s;
}

.service-box .read-more:hover {
    background: white;
    color: var(--navy);
}

.service-box.blue .icon { color: #4fc3f7; }
.service-box.green .icon { color: #81c784; }
.service-box.orange .icon { color: #ffb74d; }
.service-box.purple .icon { color: #ba68c8; }
.service-box.pink .icon { color: #f06292; }
.service-box.red .icon { color: #ef5350; }

.service-box.blue:hover { border-color: #4fc3f7; }
.service-box.green:hover { border-color: #81c784; }
.service-box.orange:hover { border-color: #ffb74d; }
.service-box.purple:hover { border-color: #ba68c8; }
.service-box.pink:hover { border-color: #f06292; }
.service-box.red:hover { border-color: #ef5350; }

/* ============================================
   DEPARTMENT PAGE LAYOUT (Sidebar + Content)
   ============================================ */
.content-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(128, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 130px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background-color: rgba(128, 0, 0, 0.05);
    color: var(--primary);
    padding-left: 25px;
}

.sidebar ul li.active {
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.sidebar ul li i {
    width: 24px;
    color: var(--primary);
}

.dept-main-content {
    flex: 1;
    min-width: 0;
}

.content-header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.content-subheader h2 {
    color: var(--primary-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.content-body {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(128, 0, 0, 0.06);
}

.content-body h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.content-body p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
}

.department-card {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.department-card:hover {
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.1);
}

.department-card .card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 20px;
}

.department-card .card-header h5 {
    color: white;
    font-size: 0.95rem;
}

.department-card .card-body ul {
    padding-left: 20px;
}

.department-card .card-body li {
    padding: 4px 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================
   ABOUT KANKAVLI PAGE
   ============================================ */
.text-maroon {
    color: var(--primary) !important;
}

.card-overlay {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: inherit;
}

.card-overlay > * {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

/* ============================================
   SAVDAV WATERFALL PAGE
   ============================================ */
.savdav-section {
    max-width: 900px;
    margin: 0 auto;
}

.savdav-header h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.savdav-description p {
    color: var(--text-medium);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.savdav-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.feature-card h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card h4 i {
    margin-right: 8px;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.savdav-gallery {
    margin: 40px 0;
}

.gallery-title h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
}

.travel-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.06);
}

.travel-info h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

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

.travel-method {
    padding: 20px;
    border-radius: 10px;
    background: var(--bg-gradient-1);
}

.travel-method h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.travel-method h4 i {
    margin-right: 8px;
}

.travel-method p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   BHALACHANDRA MAHARAJ PAGE
   ============================================ */
.temple-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    max-height: 450px;
}

.temple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temple-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(128, 0, 0, 0.85));
    color: white;
}

.temple-image-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.temple-image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.temple-text {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.06);
}

.temple-text p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 15px;
}

.temple-text p:last-child {
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 30px;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 15px;
    width: 70px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    background: var(--bg-gradient-1);
    padding: 5px;
    border-radius: 5px;
}

.timeline-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-text {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
}

.quote-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 10px;
}

.quote-author {
    font-size: 0.9rem;
    opacity: 0.8;
}

.schedule-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.06);
    margin-top: 25px;
}

.schedule-heading {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-time {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: center;
    margin-right: 15px;
}

.schedule-event {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ============================================
   RACHANA (PS Structure) PAGE
   ============================================ */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.org-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.org-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.08);
    transition: all 0.3s;
    min-width: 200px;
    max-width: 280px;
    flex: 1;
}

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

.org-card.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.org-card.primary h4,
.org-card.primary p {
    color: white;
}

.org-card h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.org-card p {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin: 0;
}

.org-connector {
    width: 3px;
    height: 30px;
    background: var(--primary);
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 3px dotted rgba(255, 255, 255, 0.2);
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
}

.footer .footer-item h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer .footer-item a {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer .footer-item a:hover {
    color: white;
    padding-left: 5px;
}

.footer .footer-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-gallery {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.footer-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.footer-search-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-gallery:hover .footer-search-icon {
    opacity: 1;
}

/* Copyright */
.copyright {
    background: #12121f;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.6);
}

.copyright a:hover {
    color: white;
}

.btn-hover-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.btn-hover-color:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border: none;
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.3);
    transition: all 0.3s;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-header.bg-primary {
    background-color: var(--primary) !important;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    body {
        padding-top: 90px;
    }

    .topbar {
        padding: 5px 0;
    }

    .topbar .col-md-8,
    .topbar .col-md-4 {
        text-align: center;
        margin-bottom: 5px;
    }

    .topbar-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar-info a {
        margin: 5px 10px;
        display: inline-block;
    }

    .topbar-icon {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .navbar-brand img {
        max-width: 180px;
    }

    .navbar-nav {
        margin-top: 10px;
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 2px 0;
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .carousel-header .carousel-item img {
        height: 50vh;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        width: 50px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 80px;
    }

    .navbar-brand img {
        max-width: 160px;
    }

    .topbar-info a {
        font-size: 0.8rem;
    }

    .carousel-header .carousel-item img {
        height: 40vh;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .page-header h3 {
        font-size: 1.5rem;
    }

    .bdo-image-container {
        height: 220px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-date {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 10px;
        display: inline-block;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 100%;
    height: 10px;
    background-color: #1fa1c4;
    border-radius: 10px;
    margin: 20px 0;
}

/* Button overrides */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

/* Nav pills for about page */
.nav-pills .nav-link.active {
    background-color: var(--primary);
}

.nav-pills .nav-link {
    color: var(--primary);
}
