/* ========================================
   CHAMPARAN COLLEGE - MODERN THEME CSS
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.modern-page-wrapper {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.modern-main {
    flex: 1;
}

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: all;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modern-loader {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.modern-loader p {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   TOP CONTACT BAR
   ======================================== */
.top-contact-bar {
    background: var(--gray-900);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-contact-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-contact-bar a:hover {
    color: var(--primary-light);
}

.top-contact-bar i {
    margin-right: 6px;
    color: var(--primary);
}

.top-contact-social a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 6px;
    margin-left: 6px;
    transition: all 0.3s;
}

.top-contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   MODERN HEADER
   ======================================== */
.modern-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-header .navbar {
    padding: 12px 0;
    transition: all 0.3s;
    margin-bottom: 0;
    border: none;
    min-height: auto;
}

.logo-img {
    height: 59px;
    max-width: 256px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav > li > a {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    margin: 0;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav > li > a:after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a.active {
    color: var(--primary);
}

.navbar-nav > li > a:hover:after,
.navbar-nav > li > a.active:after {
    transform: scaleX(1);
}

.modern-dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 8px;
    border: 1px solid var(--gray-200);
    animation: fadeDown 0.3s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 4px;
    border-radius: 12px;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white)!important;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-modern-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-modern-sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 8px;
}

/* ========================================
   HERO / SLIDER MODERN STYLES
   ======================================== */
#home .rev_slider_wrapper {
    position: relative;
}

.rev_slider .tp-caption {
    font-family: 'Inter', system-ui, sans-serif !important;
}

.slider-custom-modern .tp-caption.tp-resizeme {
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(37,99,235,0.4)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 36px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ========================================
   MODERN MAIN CONTENT
   ======================================== */
.modern-main {
    min-height: 60vh;
}

/* ========================================
   INNER HEADER / PAGE HERO
   ======================================== */
.inner-header {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(37,99,235,0.6));
}

.inner-header .section-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.inner-header .title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.inner-header .breadcrumb {
    background: transparent;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.inner-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.inner-header .breadcrumb a:hover {
    color: var(--white);
}

.inner-header .breadcrumb .active {
    color: var(--primary-light);
}
.navbar-brand {
    padding: 3px 19px 21px 17px;
}
/* ========================================
   SECTION STYLES
   ======================================== */
.bg-white,
.bg-silver-light,
.bg-theme-color-2 {
    padding: 0px 0;
}

section {
    position: relative;
}

.section-content h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-content .line-bottom-centered {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-content .line-bottom {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ========================================
   MODERN CARDS
   ======================================== */
.modern-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.modern-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.modern-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.modern-card .card-body-modern {
    padding: 24px;
}

.modern-card .card-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.modern-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.modern-card .card-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ========================================
   INFO BOXES / SERVICE CARDS
   ======================================== */
.modern-info-box {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-info-box::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.4s;
    transform-origin: left;
}

.modern-info-box:hover::before {
    transform: scaleX(1);
}

.modern-info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.modern-info-box .icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.4s;
}

.modern-info-box:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}

.modern-info-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.modern-info-box p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   STATS ROW
   ======================================== */
.modern-stats {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ========================================
   COURSE CARDS
   ======================================== */
.modern-course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
}

.modern-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.modern-course-card .course-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.modern-course-card .course-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-course-card:hover .course-header img {
    transform: scale(1.08);
}

.modern-course-card .course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.modern-course-card .course-body {
    padding: 24px;
}

.modern-course-card .course-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.modern-course-card .course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.modern-course-card .course-meta span {
    font-size: 13px;
    color: var(--gray-500);
}

.modern-course-card .course-meta strong {
    color: var(--primary);
}

/* ========================================
   FORMS
   ======================================== */
.modern-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.modern-form-section .form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--gray-50);
}

.modern-form-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
    background: var(--white);
}

.modern-form-section label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.modern-form-section .form-group {
    margin-bottom: 16px;
}

/* ========================================
   TABS
   ======================================== */
.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray-500);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary-light);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

.tab-pane .bg-silver-light {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 30px;
}

/* ========================================
   GALLERY MODERN
   ======================================== */
.modern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    display: block;
}

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

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

.gallery-card .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.gallery-card .gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.portfolio-filter a {
    display: inline-block;
    padding: 8px 20px;
    margin: 4px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.portfolio-filter a.active,
.portfolio-filter a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========================================
   CONTACT SECTION MODERN
   ======================================== */
.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.contact-card .contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.4s;
}

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

.contact-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    line-height: 1.6;
}

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

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    margin-top: 0px;
}

.footer-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
    text-align: center;
}

.cta-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 2px;
    width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
}

.copyright-text {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.copyright-text a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.copyright-text a:hover {
    color: var(--white);
}

.scrollToTop {
    display: inline-flex;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

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

/* ========================================
   DIVIDER / PARALLAX SECTIONS
   ======================================== */
.divider {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
}

.divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(37,99,235,0.7));
}

.divider .section-content {
    position: relative;
    z-index: 2;
}

.divider h2,
.divider h3 {
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/*.divider p {
    color: rgba(255,255,255,0.9);
}*/

/* ========================================
   ANIMATIONS
   ======================================== */
.wow {
    visibility: visible;
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .navbar-header {
       /* float: left !important;*/
    }

    .navbar-toggle {
        float: right !important;
        margin-right: 0 !important;
    }

    .navbar-collapse {
        width: 100% !important;
        float: none !important;
        position: static !important;
        clear: both !important;
        background: var(--white);
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border: 1px solid var(--gray-200);
    }

    .navbar-nav {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .navbar-nav > li {
        float: none !important;
        width: 100% !important;
    }

    .navbar-nav.navbar-right {
        float: none !important;
        text-align: left !important;
        margin-right: 0 !important;
    }

    .navbar-nav > li > a {
        padding: 10px 0 !important;
    }

    .navbar-nav > li > a:after {
        display: none;
    }

    .modern-dropdown,
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        animation: none;
    }

    .inner-header .title {
        font-size: 30px;
    }

    .cta-title {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .top-contact-bar {
        display: none !important;
    }

    section,
    .bg-white,
    .bg-silver-light {
        padding: 50px 0;
    }

    .inner-header {
        min-height: 220px;
    }

    .inner-header .title {
        font-size: 26px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .section-content h3 {
        font-size: 24px;
    }

    .modern-form-section {
        padding: 24px;
    }

    .modern-card .card-img-wrapper,
    .modern-course-card .course-header {
        height: 160px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.glass-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.rounded-custom {
    border-radius: 16px;
}

.table-modern {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
}

/* ========================================
   BOOTSTRAP 3/5 HYBRID UTILITIES
   ======================================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

@media (min-width: 768px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-inline-flex { display: inline-flex !important; }
    .d-sm-table-cell { display: table-cell !important; }
}

@media (min-width: 992px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 1200px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
    .d-lg-inline-block { display: inline-block !important; }
}

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }

.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }

.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 16px !important; }
.me-lg-2 { margin-right: 8px !important; }
.me-lg-3 { margin-right: 16px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 16px !important; }
.ms-lg-3 { margin-left: 16px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 48px !important; }
.mt-lg-0 { margin-top: 0 !important; }
.mt-lg-3 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 48px !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-lg-start { text-align: left !important; }
.text-lg-end { text-align: right !important; }

.w-100 { width: 100% !important; }

/* BS3 navbar compatibility */
.navbar-header { overflow: visible; }
.navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-right: 15px; margin-top: 8px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background: #333; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-nav { float: left; margin: 0; }
.navbar-nav > li { float: left; }
.navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; }
.navbar-right { float: right !important; }
.navbar-toggle collapsed { border-color: #ddd; }
.navbar-toggle .icon-bar { background-color: #888; }
/* Modern Tabs */
.modern-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--gray-100);
    padding: 8px;
    border-radius: 16px;
}

.modern-tab-btn {
    background: transparent;
    color: var(--gray-600) !important;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s;
    width: 100%;
}

    .modern-tab-btn:hover {
        background: var(--white);
        color: var(--primary) !important;
    }

    .modern-tab-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--white) !important;
        box-shadow: 0 4px 15px rgba(37,99,235,0.3);
    }

.modern-tab-content {
    min-height: 400px;
}

@media (max-width: 991.98px) {
    .modern-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
    }

    .modern-tab-btn {
        white-space: nowrap;
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .inner-header {
        min-height: 220px;
    }

        .inner-header .title {
            font-size: 26px;
        }
}
