/* ============================================
   STJIT - Premium Engineering College Website
   ============================================ */

:root {
    --primary: #142882;
    --primary-light: #2A40A0;
    --primary-dark: #0B195C;
    --secondary: #F4B400;
    --secondary-dark: #D49E00;
    --accent: #0D6EFD;
    --accent-light: #3D8BFD;
    --bg: #F8FAFC;
    --text: #333333;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 4px 24px rgba(20, 40, 130, 0.08);
    --shadow-lg: 0 12px 40px rgba(20, 40, 130, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

p {
    text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: var(--secondary);
}

.top-bar-list li {
    display: inline-flex;
    align-items: center;
}

.top-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 12px;
}

.top-social a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.top-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.top-link:hover {
    color: var(--secondary);
}

.btn-accent {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 16px;
}

.btn-accent:hover {
    background: var(--secondary-dark);
    color: var(--primary);
}

/* ---- Header / Navbar ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.site-header .navbar {
    background: #ffffff !important;
    padding: 10px 0;
    border-bottom: 2px solid var(--border);
    transition: var(--transition);
}

/* Extra specificity to guarantee white navbar */
header.site-header nav.navbar,
header#siteHeader nav.navbar {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
nav.navbar .navbar-nav .nav-link {
    font-weight: 500;
    color: #1a1a2e !important;
    padding: 8px 14px !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.btn-nav {
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 20px !important;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary-light);
    color: var(--white);
}

.navbar-toggler {
    border: 2px solid var(--primary) !important;
    padding: 6px 10px;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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='%23142882' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
}

/* Dropdown toggle arrow visible */
.navbar-light .navbar-nav .dropdown-toggle::after {
    color: #1a1a2e;
}

/* Dropdown Hover & Styling */
@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.2s ease-in;
    }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu:not(.mega-menu) {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.dropdown-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: var(--bg);
    color: var(--primary);
    padding-left: 24px;
}

/* Mega Menu */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    border: none;
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px 0;
    margin-top: 0 !important;
}

.mega-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list li {
    margin-bottom: 8px;
}

.mega-list a {
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.mega-dept-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.mega-dept-link i {
    color: var(--accent);
    width: 20px;
}

.mega-dept-link:hover {
    background: var(--bg);
    color: var(--primary);
}

.mega-feature img {
    border-radius: var(--radius);
}

/* Mobile Nav */
.mobile-nav li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--text);
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--accent);
}

/* Notice Bar */
.notice-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
}

.notice-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notice-label {
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-marquee {
    overflow: hidden;
    flex: 1;
}

.notice-track {
    display: flex;
    gap: 40px;
    animation: marquee 7s linear infinite;
    white-space: nowrap;
}

.notice-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notice-item:hover {
    color: var(--secondary);
}

.notice-date {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---- Hero Slider ---- */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    max-height: 900px;
}

.hero-swiper,
.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 40, 130, 0.85) 0%, rgba(20, 40, 130, 0.5) 50%, rgba(20, 40, 130, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 180, 0, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--secondary);
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--secondary);
    width: 32px;
    border-radius: 6px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--white);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 24px;
}

/* ---- Section Styles ---- */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.05rem;
    margin: 0 auto;
    text-align: center;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* ---- Stats Counter ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-card {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(244, 180, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
}

/* ---- Cards ---- */
.card-modern {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-modern .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-modern .card-body {
    padding: 24px;
}

.card-modern .card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 16px;
}

.card-modern h5 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.card-modern p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover {
    color: var(--primary);
    gap: 10px;
}

/* Gradient Card */
.gradient-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.gradient-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
}

.gradient-card h4 {
    color: var(--white);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 24px;
}

/* ---- About / Message Cards ---- */
.message-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    height: 100%;
}

.message-card .message-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    margin-bottom: 16px;
}

.message-card .message-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.message-card .message-title {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.message-card .message-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---- Department Grid ---- */
.dept-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.dept-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dept-card:hover img {
    transform: scale(1.08);
}

.dept-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.9) 0%, rgba(0, 33, 71, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}

.dept-card-overlay i {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.dept-card-overlay h5 {
    color: var(--white);
    margin-bottom: 4px;
}

.dept-card-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

/* ---- Recruiters ---- */
.recruiter-logo {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruiter-logo:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--secondary);
    line-height: 1;
    position: absolute;
    top: 16px;
    left: 24px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin: 0;
    font-size: 14px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 100px 0 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(244, 180, 0, 0.05);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ---- Sidebar ---- */
.page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
}

.sidebar-title {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 18px;
    color: var(--accent);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bg);
    color: var(--primary);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.cta-card i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.cta-card h6 {
    color: var(--white);
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
}

/* ---- Tables ---- */
.table-modern {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.table-modern thead {
    background: var(--primary);
    color: var(--white);
}

.table-modern th {
    font-weight: 600;
    font-size: 13px;
    padding: 14px 16px;
    border: none;
}

.table-modern td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: var(--bg);
}

/* ---- Accordion ---- */
.accordion-modern .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-modern .accordion-button {
    font-weight: 600;
    color: var(--primary);
    padding: 16px 20px;
    background: var(--white);
    box-shadow: none;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: var(--bg);
    color: var(--primary);
}

.accordion-modern .accordion-body {
    padding: 16px 20px;
    color: var(--text-muted);
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 71, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: var(--white);
    font-size: 28px;
}

/* ---- Contact Form ---- */
.form-modern .form-control,
.form-modern .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-modern label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

/* ---- Contact Info Cards ---- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.contact-info-card i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-item .timeline-date {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ---- Event Cards ---- */
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-card-img {
    height: 200px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-card-img img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 20px;
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-dark);
    font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 8px;
    font-size: 14px;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 16px;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    font-size: 18px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ---- Tabs ---- */
.nav-tabs-modern {
    border: none;
    gap: 8px;
    margin-bottom: 32px;
}

.nav-tabs-modern .nav-link {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    padding: 10px 20px;
}

.nav-tabs-modern .nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---- Download Cards ---- */
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.download-card i {
    font-size: 28px;
    color: var(--accent);
}

.download-card-info h6 {
    margin: 0 0 4px;
    font-size: 14px;
}

.download-card-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Facility Detail ---- */
.facility-icon-lg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 16px;
}

/* ---- Ripple Button ---- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .stats-section {
        margin-top: 0;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-sidebar {
        position: static;
        margin-bottom: 32px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 48px 0;
    }

    .message-card {
        padding: 24px;
    }
}

/* ---- Utilities ---- */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.bg-primary-custom {
    background: var(--primary) !important;
}

.bg-secondary-custom {
    background: var(--secondary) !important;
}

.border-custom {
    border-color: var(--border) !important;
}

/* Image fallback styling */
img[src=""],
img:not([src]) {
    display: none;
}

/* Lazy load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}


body.home-page .top-bar {
    position: relative;
    z-index: 101;
}

body.home-page .notice-bar {
    position: relative;
    z-index: 99;
}

/* ---- Filter Buttons ---- */
#eventFilters {
    gap: 12px;
}

.filter-btn {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14.5px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    outline: none;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.25);
    transform: translateY(-2px);
}

/* ---- Department Card Alt (Index Page) ---- */
.dept-card-alt {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dept-card-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.12);
}

.dept-img-top {
    height: 180px;
    overflow: hidden;
}

.dept-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dept-card-alt:hover .dept-img-top img {
    transform: scale(1.08);
}

.dept-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dept-short {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

.dept-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.dept-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.explore-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.explore-link:hover {
    color: var(--primary);
}

.explore-link i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dept-card-alt:hover .explore-link i {
    transform: translateX(5px);
}

/* ---- Mobile Responsiveness Adjustments ---- */
@media (max-width: 768px) {

    /* Notice Bar */
    .notice-track {
        animation-duration: 4s !important;
    }

    /* Hero Section */
    .hero-section {
        height: 70vh;
        min-height: 480px;
    }

    .hero-title {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        white-space: normal;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        margin-bottom: 20px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-outline {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Page Headers */
    .page-header {
        padding: 30px 0 !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important;
    }

    /* Section Spacing */
    .section {
        padding: 40px 0 !important;
    }

    .section-sm {
        padding: 30px 0 !important;
    }

    /* Sections - General text */
    .section-title {
        font-size: 1.5rem !important;
    }

    /* Buttons - Make inline buttons wrap and stack on mobile */
    .mt-4.p-3.bg-light.rounded a.btn,
    .btn-sm.me-2 {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    /* Admissions Page - buttons */
    .btn-outline-primary.btn-sm,
    .btn-primary.btn-sm {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0 !important;
    }

    /* CTA Section */
    .cta-section .d-flex {
        flex-direction: column;
        gap: 12px;
    }

    .cta-section .btn {
        width: 100%;
        text-align: center;
    }

    /* Stat Cards */
    .stat-number {
        font-size: 2rem !important;
    }

    /* Message / About Cards */
    .message-card {
        padding: 20px !important;
    }

    .message-card .message-img {
        width: 120px !important;
        height: 120px !important;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-top {
        padding: 30px 0;
    }

    .footer-brand h4 {
        font-size: 1rem;
    }

    /* Department cards */
    .dept-card-alt {
        margin-bottom: 16px;
    }

    /* Event cards */
    .event-card {
        margin-bottom: 16px;
    }

    /* Table section label */
    .table-responsive {
        font-size: 0.85rem;
    }

    /* Recruiter slider */
    .recruiter-logo img {
        width: 120px !important;
        height: 50px !important;
    }

    /* Contact offices */
    .col-md-6.col-lg-3 {
        margin-bottom: 16px;
    }

    /* Programs page */
    .programs-filter {
        gap: 6px !important;
    }

    .programs-filter .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Back to top & WhatsApp */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 24px;
        right: 16px;
    }

    .floating-whatsapp {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 24px;
        left: 16px;
    }

    /* Nav tabs modern (gallery etc.) */
    .nav-tabs-modern {
        gap: 6px !important;
    }

    .nav-tabs-modern .nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Swiper pagination */
    .swiper-pagination {
        position: relative;
        margin-top: 16px;
    }

    /* Row gutter on mobile */
    .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
}

/* ---- Floating WhatsApp ---- */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}