/* CCBAT — premium university theme (white + blue) */
:root {
    --ccbat-primary: #003d7a;
    --ccbat-primary-dark: #002a54;
    --ccbat-accent: #0066cc;
    --ccbat-light: #e8f2fc;
    --ccbat-gold: #c9a227;
    --ccbat-text: #1a2332;
    --ccbat-muted: #5c6b7a;
    --ccbat-radius: 12px;
    --ccbat-shadow: 0 12px 40px rgba(0, 61, 122, 0.12);
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ccbat-text);
    overflow-x: hidden;
}

h1, h2, h3, .display-font {
    font-family: var(--font-display);
    font-weight: 700;
}

.text-primary-ccbat {
    color: var(--ccbat-primary) !important;
}

.bg-primary-ccbat {
    background: linear-gradient(135deg, var(--ccbat-primary) 0%, var(--ccbat-accent) 100%) !important;
}

.btn-ccbat {
    background: linear-gradient(135deg, var(--ccbat-accent), var(--ccbat-primary));
    border: none;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-ccbat:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.btn-outline-ccbat {
    border: 2px solid var(--ccbat-primary);
    color: var(--ccbat-primary);
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: all 0.25s ease;
}

.btn-outline-ccbat:hover {
    background: var(--ccbat-primary);
    color: #fff;
}

/* Top announcement bar */
.announcement-bar {
    background: var(--ccbat-primary-dark);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.45rem 0;
}

/* Navbar */
.navbar-ccbat {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: padding 0.3s ease;
}

.navbar-ccbat .navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--ccbat-primary) !important;
}

.navbar-ccbat .nav-link {
    font-weight: 600;
    color: var(--ccbat-text);
    padding: 0.5rem 0.85rem !important;
}

.navbar-ccbat .nav-link:hover,
.navbar-ccbat .nav-link.active {
    color: var(--ccbat-accent);
}

/* Hero */
.hero-section {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 42, 84, 0.88) 0%, rgba(0, 61, 122, 0.55) 55%, rgba(0, 102, 204, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    color: #fff;
    line-height: 1.15;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 540px;
}

/* Section utilities */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--ccbat-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards */
.card-ccbat {
    border: none;
    border-radius: var(--ccbat-radius);
    box-shadow: var(--ccbat-shadow);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.card-ccbat:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 61, 122, 0.18);
}

.card-ccbat .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Why choose / feature icons */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--ccbat-light);
    color: var(--ccbat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Stats counter */
.stats-section {
    background: linear-gradient(135deg, var(--ccbat-primary-dark), var(--ccbat-primary));
    color: #fff;
}

.stat-item h3 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--ccbat-radius);
    padding: 2rem;
    box-shadow: var(--ccbat-shadow);
}

/* Gallery grid */
.gallery-item {
    border-radius: var(--ccbat-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

/* Footer */
.footer-ccbat {
    background: var(--ccbat-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 4rem;
}

.footer-ccbat a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-ccbat a:hover {
    color: #fff;
}

/* Animations (AOS complement) */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page headers */
.page-hero {
    background: linear-gradient(135deg, var(--ccbat-primary-dark), var(--ccbat-accent));
    color: #fff;
    padding: 7rem 0 4rem;
    margin-top: -1px;
}

/* Admin */
.admin-sidebar {
    min-height: 100vh;
    background: var(--ccbat-primary-dark);
    width: 260px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-content {
    background: #f4f7fb;
    min-height: 100vh;
}

.stat-card-admin {
    border: none;
    border-radius: var(--ccbat-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-top: 6rem;
    }
}
