:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a4a73;
    --secondary: #c9a227;
    --secondary-light: #e0b93d;
    --accent: #e74c3c;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; }

a { text-decoration: none; transition: var(--transition); }

/* ===== TOP BAR ===== */
.top-bar { font-size: 0.85rem; }
.top-bar a:hover { color: var(--secondary) !important; }

/* ===== NAVBAR ===== */
.navbar { padding: 0.8rem 0; transition: var(--transition); }
.navbar-brand { font-family: var(--font-heading); }
.nav-link {
    color: #444 !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.92rem;
    position: relative;
    border-radius: 8px;
}
.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary) !important;
    background: rgba(30,58,95,0.05);
}
.nav-item.active .nav-link { font-weight: 600; }
.dropdown-menu {
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownSlide 0.2s ease;
}
@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}
.dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 15px rgba(30,58,95,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,58,95,0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201,162,39,0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,162,39,0.4);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-light:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0.7) 50%, rgba(30,58,95,0.5) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}
.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 4;
}
.hero-shape svg { display: block; }

/* ===== SECTIONS ===== */
.section-padding { padding: 5rem 0; }
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}
.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    margin: 1rem auto;
}
.section-line.left { margin: 1rem 0; }

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-img-wrapper {
    overflow: hidden;
    position: relative;
}
.card-img-wrapper img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card:hover .card-img-wrapper img { transform: scale(1.1); }
.card-body { padding: 1.5rem; }
.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

/* ===== PROGRAM CARDS ===== */
.program-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.program-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.program-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== FACULTY CARDS ===== */
.faculty-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.faculty-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.faculty-card:hover::before { transform: scaleX(1); }
.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.faculty-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30,58,95,0.1), rgba(201,162,39,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.faculty-card:hover .faculty-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: rotateY(360deg);
}

/* ===== NEWS CARDS ===== */
.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .news-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img { transform: scale(1.08); }
.news-date {
    background: var(--secondary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}
.news-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
}
.stat-item {
    text-align: center;
    padding: 2rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.stat-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: -10px; left: 20px;
    line-height: 1;
}
.testimonial-img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}

/* ===== EVENT CARDS ===== */
.event-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.event-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.event-date-box {
    min-width: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
.event-date-box .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date-box .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,58,95,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.1);
}
.form-label { font-weight: 500; color: var(--primary); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer { font-size: 0.95rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    padding: 0;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.breadcrumb-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== PAGE CONTENT ===== */
.page-content { font-size: 1.05rem; line-height: 1.9; }
.page-content h2 { color: var(--primary); margin: 2rem 0 1rem; font-size: 1.8rem; }
.page-content h3 { color: var(--primary-light); margin: 1.5rem 0 0.8rem; font-size: 1.4rem; }
.page-content p { margin-bottom: 1.2rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.page-content li { margin-bottom: 0.5rem; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius); border: none; padding: 1rem 1.5rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: none;
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.pagination .page-link:hover, .pagination .active .page-link {
    background: var(--primary);
    color: #fff;
}

/* ===== SWIPER CUSTOM ===== */
.swiper-pagination-bullet { width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--secondary) !important; width: 30px; border-radius: 5px; }

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-animation { animation: float 4s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(201,162,39,0); }
}
.pulse-glow { animation: pulse-glow 2s infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }
    .hero-title { font-size: 2.2rem; }
    .section-padding { padding: 3rem 0; }
    .stat-number { font-size: 2rem; }
    .event-card { flex-direction: column; }
    .event-date-box { flex-direction: row; gap: 0.5rem; padding: 0.5rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .btn { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== SELECTION ===== */
::selection { background: var(--secondary); color: #fff; }
