/* ===========================
   GOOGLE FONT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   GLOBAL
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

section {
    padding: 90px 0;
}

.container {
    max-width: 1200px;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* ===========================
   BUTTONS
=========================== */
.btn-orange {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 28px;
    transition: 0.3s;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    background: #fff !important;
    padding: 15px 0;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand span {
    color: #6366f1;
    font-size: 24px;
    font-weight: 700;
}

/* === FIX: Prevent nav links from wrapping === */
.navbar-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 5px;
}

.nav-item {
    white-space: nowrap !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 10px 12px !important;
    transition: 0.3s;
    white-space: nowrap !important;
}

.nav-link:hover {
    color: #6366f1 !important;
}

/* Hide scrollbar for cleaner look */
.navbar-nav::-webkit-scrollbar {
    height: 3px;
}

.navbar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.navbar-nav::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

/* === Make nav items smaller on smaller screens === */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 14px !important;
        padding: 10px 10px !important;
    }
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 13px !important;
        padding: 10px 8px !important;
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 12px !important;
        padding: 10px 6px !important;
    }
}

@media (max-width: 576px) {
    .nav-link {
        font-size: 11px !important;
        padding: 10px 5px !important;
    }
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    text-align: center;
    padding: 25px;
    transition: background 0.3s ease;
}

footer p {
    margin: 0;
}

/* ===========================
   RESPONSIVE - NAVBAR & FOOTER
=========================== */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: left !important;
        margin-top: 20px;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .btn-orange {
        display: inline-block;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .btn-orange {
        width: 100%;
    }
}

/* ==========================================================
   DARK THEME FOR PUBLIC PAGES (HOMEPAGE)
========================================================== */
body.dark-theme {
    background: #0f0f1a !important;
    color: #e5e7eb !important;
}

body.dark-theme .navbar {
    background: #1a1a2e !important;
    border-bottom: 1px solid #2a2a4a !important;
}

body.dark-theme .navbar .nav-link {
    color: #9ca3af !important;
}

body.dark-theme .navbar .nav-link:hover {
    color: #818cf8 !important;
}

body.dark-theme .navbar .navbar-brand {
    color: #e5e7eb !important;
}

body.dark-theme .navbar .navbar-toggler {
    border-color: #2a2a4a !important;
}

body.dark-theme .navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body.dark-theme .btn-orange {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
}

body.dark-theme .btn-orange:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

body.dark-theme footer {
    background: #0f0f1a !important;
    border-top: 1px solid #2a2a4a !important;
}

body.dark-theme footer p {
    color: #9ca3af !important;
}

/* ---------- HERO SECTION ---------- */
body.dark-theme .hero {
    background: #0f0f1a !important;
}

body.dark-theme .hero .hero-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: #818cf8 !important;
}

body.dark-theme .hero h1,
body.dark-theme .hero h2 {
    color: #e5e7eb !important;
}

body.dark-theme .hero .lead {
    color: #9ca3af !important;
}

body.dark-theme .hero .btn-explore {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
}

body.dark-theme .hero .btn-explore:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

/* ---------- CARDS ---------- */
body.dark-theme .card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .card .card-title {
    color: #e5e7eb !important;
}

body.dark-theme .card .card-text {
    color: #9ca3af !important;
}

body.dark-theme .section-title {
    color: #e5e7eb !important;
}

body.dark-theme .section-title::after {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
}

/* ---------- WELCOME BOX ---------- */
body.dark-theme .welcome-box {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .welcome-box h3 {
    color: #e5e7eb !important;
}

body.dark-theme .welcome-box p {
    color: #9ca3af !important;
}

/* ---------- ABOUT CARDS ---------- */
body.dark-theme .about-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .about-card h4 {
    color: #e5e7eb !important;
}

body.dark-theme .about-card p {
    color: #9ca3af !important;
}

/* ---------- CALENDAR ---------- */
body.dark-theme .calendar-box {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .calendar-box h3 {
    color: #e5e7eb !important;
}

body.dark-theme .calendar-box p {
    color: #9ca3af !important;
}

body.dark-theme .mini-calendar-wrapper {
    background: rgba(99, 102, 241, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.08) !important;
}

body.dark-theme .mini-calendar-header span {
    color: #e5e7eb !important;
}

body.dark-theme .mini-calendar-table td {
    color: #9ca3af !important;
}

body.dark-theme .mini-calendar-table td.other-month {
    color: #4a4a5a !important;
}

body.dark-theme .mini-calendar-table td.today {
    border: 2px solid #818cf8 !important;
}

body.dark-theme .mini-event-text {
    color: #9ca3af !important;
}

body.dark-theme .mini-event-more {
    color: #818cf8 !important;
}

body.dark-theme .mini-event-more:hover {
    color: #a78bfa !important;
}

/* ---------- ANNOUNCEMENT CARDS ---------- */
body.dark-theme .announcement-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .announcement-card .card-title {
    color: #e5e7eb !important;
}

body.dark-theme .announcement-card .date-text {
    color: #9ca3af !important;
}

body.dark-theme .announcement-card .item-box {
    background: #0f0f1a !important;
}

body.dark-theme .announcement-card .item-box:hover {
    background: #1f1f3a !important;
}

body.dark-theme .announcement-card .title-text {
    color: #e5e7eb !important;
}

body.dark-theme .announcement-card .more-text {
    color: #6b7280 !important;
}

/* ---------- CLUB CARDS ---------- */
body.dark-theme .club-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .club-card h4 {
    color: #e5e7eb !important;
}

body.dark-theme .club-card p {
    color: #9ca3af !important;
}

body.dark-theme .club-card .club-overlay {
    background: rgba(15, 15, 26, 0.8) !important;
}

/* ---------- ACTIVITY CARDS ---------- */
body.dark-theme .activity-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .activity-card h4 {
    color: #e5e7eb !important;
}

body.dark-theme .activity-card p {
    color: #9ca3af !important;
}

body.dark-theme .activity-card .activity-meta {
    color: #6b7280 !important;
}

body.dark-theme .activity-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border-color: rgba(99, 102, 241, 0.15) !important;
}

/* ---------- DOCUMENT CARDS ---------- */
body.dark-theme .document-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .document-card .document-title {
    color: #e5e7eb !important;
}

body.dark-theme .document-card .document-desc {
    color: #9ca3af !important;
}

/* ---------- ACHIEVEMENT CARDS ---------- */
body.dark-theme .achievement-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .achievement-card h4 {
    color: #e5e7eb !important;
}

body.dark-theme .achievement-card p {
    color: #9ca3af !important;
}

body.dark-theme .achievement-card ul li {
    color: #9ca3af !important;
    border-bottom-color: #2a2a4a !important;
}

body.dark-theme .achievement-card ul li i {
    color: #818cf8 !important;
}

body.dark-theme .achievement-card ul li:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-theme .achievement-year {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #818cf8 !important;
    border-color: rgba(99, 102, 241, 0.1) !important;
}

/* ---------- CONTACT ---------- */
body.dark-theme .contact-info-card {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .contact-info-card h4 {
    color: #e5e7eb !important;
}

body.dark-theme .contact-info-card p {
    color: #9ca3af !important;
}

body.dark-theme .contact-icon {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #818cf8 !important;
}

body.dark-theme .social-link {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
    color: #e5e7eb !important;
}

body.dark-theme .social-link i {
    color: #818cf8 !important;
}

body.dark-theme .social-link:hover {
    background: rgba(99, 102, 241, 0.05) !important;
    border-color: #818cf8 !important;
}

/* ---------- REPORTS & GALLERY ---------- */
body.dark-theme .reports-header h2 {
    color: #e5e7eb !important;
}

body.dark-theme .gallery-header h2 {
    color: #e5e7eb !important;
}

body.dark-theme .report-icon {
    background: rgba(99, 102, 241, 0.1) !important;
}

body.dark-theme .btn-back {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #818cf8 !important;
    border-color: rgba(99, 102, 241, 0.1) !important;
}

body.dark-theme .btn-back:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
    color: #fff !important;
}

/* ---------- SEARCH BAR ---------- */
body.dark-theme .search-bar {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .search-bar input {
    background: #0f0f1a !important;
    color: #e5e7eb !important;
    border-color: #2a2a4a !important;
}

body.dark-theme .search-bar input::placeholder {
    color: #6b7280 !important;
}

body.dark-theme .search-bar input:focus {
    border-color: #818cf8 !important;
}

/* ---------- HERO BACKGROUND ---------- */
body.dark-theme .hero-section {
    background-color: #0f0f1a !important;
}

body.dark-theme .hero-section::before {
    background: rgba(15, 15, 26, 0.85) !important;
}

/* ---------- MAIN CONTENT BACKGROUND ---------- */
body.dark-theme #home,
body.dark-theme #about,
body.dark-theme #announcement,
body.dark-theme #clubs,
body.dark-theme #activities,
body.dark-theme #documents,
body.dark-theme #achievement,
body.dark-theme #contact {
    background: #0f0f1a !important;
}

body.dark-theme .welcome-section {
    background: #0f0f1a !important;
}

body.dark-theme .carousel-section {
    background: #0f0f1a !important;
}

/* ---------- INDEX PAGE OVERRIDES ---------- */
body.dark-theme .section-title {
    color: #e5e7eb !important;
}

body.dark-theme .section-title::after {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
}

body.dark-theme .hero-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: #818cf8 !important;
}

/* ---------- SCROLLBAR ---------- */
body.dark-theme ::-webkit-scrollbar-track {
    background: #0f0f1a;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #2a2a4a;
    border-radius: 10px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #3a3a5a;
}

/* ==========================================================
   VISION & MISSION PAGE
   ========================================================== */
body.dark-theme .vision-wrapper {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .vision-header h2 {
    color: #e5e7eb !important;
}

body.dark-theme .vision-header p {
    color: #9ca3af !important;
}

body.dark-theme .vision-card,
body.dark-theme .mission-card {
    background: rgba(129, 140, 248, 0.05) !important;
    border-color: rgba(129, 140, 248, 0.12) !important;
}

body.dark-theme .vision-card:hover,
body.dark-theme .mission-card:hover {
    border-color: rgba(129, 140, 248, 0.3) !important;
    box-shadow: 0 20px 60px rgba(129, 140, 248, 0.15) !important;
}

body.dark-theme .vision-card h3,
body.dark-theme .mission-card h3 {
    color: #e5e7eb !important;
}

body.dark-theme .vision-text {
    color: #9ca3af !important;
}

body.dark-theme .vision-tagline {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(167, 139, 250, 0.08)) !important;
    color: #a5b4fc !important;
    border-left-color: #818cf8 !important;
}

body.dark-theme .mission-list li {
    color: #9ca3af !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .mission-list li:hover {
    color: #e5e7eb !important;
    background: rgba(129, 140, 248, 0.06) !important;
}

body.dark-theme .core-values {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .core-values h3 {
    color: #e5e7eb !important;
}

body.dark-theme .value-item {
    background: rgba(129, 140, 248, 0.05) !important;
    border-color: rgba(129, 140, 248, 0.08) !important;
}

body.dark-theme .value-item:hover {
    border-color: rgba(129, 140, 248, 0.3) !important;
    box-shadow: 0 15px 50px rgba(129, 140, 248, 0.15) !important;
}

body.dark-theme .value-item h5 {
    color: #e5e7eb !important;
}

body.dark-theme .value-item p {
    color: #9ca3af !important;
}

body.dark-theme .btn-back {
    background: rgba(129, 140, 248, 0.12) !important;
    color: #a5b4fc !important;
    border-color: rgba(129, 140, 248, 0.2) !important;
}

body.dark-theme .btn-back:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
    color: #fff !important;
}