/* ============================================================
   NIMS — Nigamananda Institute of Management Studies
   Master Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --navy: #0a1628;
    --navy-light: #122044;
    --royal: #1a56db;
    --royal-light: #3b82f6;
    --gold: #d4a853;
    --gold-light: #f0c264;
    --white: #ffffff;
    --light: #f5f7fa;
    --light-2: #eef2f7;
    --gray: #6b7280;
    --dark: #111827;
    --teal: #0d9488;
    --success: #059669;
    --danger: #e11d48;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

a { text-decoration: none; color: var(--royal); transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; }

/* ---------- Utility Classes ---------- */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }
.bg-navy { background: var(--navy); }
.bg-light-section { background: var(--light); }
.bg-royal { background: var(--royal); }
.bg-gradient-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.bg-gradient-royal { background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%); }
.text-gold { color: var(--gold) !important; }
.text-royal { color: var(--royal) !important; }
.text-navy { color: var(--navy) !important; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--royal), var(--gold));
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}
.section-header p {
    font-size: 17px;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
}
.section-header.text-white h2 { color: var(--white); }
.section-header.text-white p { color: rgba(255,255,255,0.7); }

/* ---------- Buttons ---------- */
.view-profile-btn {
 padding: 10px 20px;
 border: unset;
 border-radius: 15px;
 color: #ffffff !important;
 z-index: 1;
 background: linear-gradient(135deg, var(--navy), #0a4f9e);
 position: relative;
 font-weight: 700;
 font-size: 15px;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms;
 overflow: hidden;
 display: inline-block;
 text-align: center;
 text-decoration: none;
}
.view-profile-btn::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 height: 100%;
 width: 0;
 border-radius: 15px;
 background: linear-gradient(135deg, #064e3b, #047857);
 z-index: -1;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms;
}
.view-profile-btn:hover {
 color: #ffffff !important;
}
.view-profile-btn:hover::before {
 width: 100%;
}
.btn-nims {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary-nims {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    background-size: 200% auto;
    color: var(--white) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.btn-primary-nims:hover {
    background-position: right center;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.btn-outline-nims {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.btn-outline-nims:hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
.btn-gold-nims {
    background: linear-gradient(180deg, #e5be6b 0%, var(--gold) 100%);
    color: var(--navy) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-gold-nims:hover {
    background: linear-gradient(180deg, #f2cd79 0%, #dfb358 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--gold); }
.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 6px;
    font-size: 13px;
}
.top-bar .social-links a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ---------- Site Header ---------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ---------- Navbar ---------- */
.navbar-nims {
    position: relative;
    background: transparent;
    padding: 15px 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    transition: var(--transition);
    z-index: 1000;
}
.navbar-nims.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95); /* Premium dark navy */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.navbar-nims .navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-nims .navbar-brand {
    margin-left: 15px;
}
.navbar-nims .navbar-brand img {
    height: 60px;
    transition: var(--transition);
}
.navbar-nims.sticky .navbar-brand img {
    height: 50px;
}
/* Custom Animated Hamburger */
.navbar-nims .custom-toggler {
    border: none;
    background: transparent;
    padding: 0;
    margin-right: 15px;
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
}
.custom-toggler svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-toggler .line {
    fill: none;
    stroke: var(--white);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-nims.sticky .custom-toggler .line {
    stroke: var(--white);
}
.custom-toggler .line-top-bottom {
    stroke-dasharray: 12 63;
}
.custom-toggler[aria-expanded="true"] svg {
    transform: rotate(-45deg);
}
.custom-toggler[aria-expanded="true"] svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}
.navbar-nims .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--white) !important;
    padding: 10px 18px !important;
    margin: 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}
.navbar-nims.sticky .nav-link {
    color: var(--white) !important;
}
.navbar-nims .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 1px solid var(--gold);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}
.navbar-nims .nav-link:hover, 
.navbar-nims .nav-link.active {
    transform: translateY(-2px);
}
.navbar-nims .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}
.navbar-nims .nav-link:hover,
.navbar-nims .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--white) !important;
}
.navbar-nims.sticky .nav-link:hover, 
.navbar-nims.sticky .nav-link.active {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.05));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--gold) !important;
}
.navbar-nims .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    min-width: 220px;
    border-top: 3px solid var(--gold);
}
@media (min-width: 992px) {
    .navbar-nims .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropFade 0.2s ease-out forwards;
    }
}
@keyframes dropFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.navbar-nims .dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    font-weight: 500;
    color: var(--dark);
}
.navbar-nims .dropdown-item:hover {
    background: var(--light);
    color: var(--royal);
    padding-left: 25px;
}
.navbar-nims .btn-apply {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
}
.navbar-nims .btn-apply:hover {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    transform: translateY(-2px);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.hero-section .hero-slide {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-section .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 33, 54, 0.7); /* Darker overlay for RCM look */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}
.hero-content .hero-tag {
    display: inline-block;
    background: rgba(212,168,83,0.2);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212,168,83,0.4);
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* ---------- Welcome / About Section ---------- */
.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-2);
    transition: var(--transition);
}
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-img-wrapper img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-wrapper .experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.experience-badge .number { font-size: 36px; font-weight: 800; display: block; line-height: 1; }
.experience-badge .text { font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* ---------- Why Choose / Features ---------- */
.why-choose-parallax {
    position: relative;
    background-image: url('../img/college/clg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
    color: var(--white);
}
.why-choose-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.85); /* Deep Navy overlay */
    z-index: -1;
}
.why-choose-parallax .section-header h2,
.why-choose-parallax .section-header p {
    color: var(--white);
}
.why-choose-parallax .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.why-choose-parallax .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
}
.why-choose-parallax .feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.why-choose-parallax .feature-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.why-choose-parallax .feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.why-choose-parallax .feature-card .feature-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(212, 168, 83, 0.15); /* Soft gold */
    color: var(--gold);
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.why-choose-parallax .feature-card:hover .feature-icon {
    background: var(--gold);
    color: var(--white);
    transform: rotateY(180deg);
}

/* ---------- History Parallax ---------- */
.history-parallax {
    position: relative;
    background-image: url('../img/college/clg2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
    color: var(--white);
}
.history-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.85); /* Deep Navy overlay */
    z-index: -1;
}
.history-parallax .section-header h2,
.history-parallax .section-header p {
    color: var(--white);
}
.history-parallax .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.history-parallax p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ---------- Mission Parallax ---------- */
.mission-parallax {
    position: relative;
    background-image: url('../img/college/clg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
    color: var(--white);
}
.mission-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.88); /* Slightly darker Navy overlay */
    z-index: -1;
}
.mission-parallax h2,
.mission-parallax p,
.mission-parallax li {
    color: var(--white);
}
.mission-parallax .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-2);
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal);
}
.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(26,86,219,0.1), rgba(26,86,219,0.05));
    color: var(--royal);
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--royal), var(--royal-light));
    color: var(--white);
    transform: rotateY(180deg);
}
.feature-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-card p { font-size: 14px; color: var(--gray); margin: 0; }

/* ---------- Courses Section ---------- */
.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-2);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    height: 100%;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--gold);
}
.course-card .course-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.course-card .course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.course-card:hover .course-img img { transform: scale(1.1); }
.course-card .course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--navy);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.course-card .course-body {
    padding: 25px;
}
.course-card .course-body h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.course-card .course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray);
}
.course-card .course-meta span i { margin-right: 5px; color: var(--royal); }
.course-card .course-body p { font-size: 14px; color: var(--gray); }

/* ---------- Stats / Counters ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: rgba(212,168,83,0.08);
    border-radius: 50%;
}
.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}
.stat-item .stat-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 15px;
}
.stat-item .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-heading);
}
.stat-item .stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-2);
    position: relative;
    margin: 10px;
}
.testimonial-card .quote-icon {
    font-size: 40px;
    color: rgba(26,86,219,0.15);
    position: absolute;
    top: 20px;
    right: 25px;
}
.testimonial-card .testimonial-text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card .student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-card .student-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}
.testimonial-card .student-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
}
.testimonial-card .student-course {
    font-size: 13px;
    color: var(--gray);
}

/* ---------- News / Events ---------- */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-2);
    transition: var(--transition);
    height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-card .news-img {
    height: 200px;
    overflow: hidden;
}
.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-body {
    padding: 25px;
}
.news-card .news-date {
    font-size: 13px;
    color: var(--royal);
    font-weight: 600;
    margin-bottom: 10px;
}
.news-card .news-body h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.news-card .news-body p { font-size: 14px; color: var(--gray); }

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Contact Section ---------- */
.contact-form .form-control {
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    height: auto;
}
.contact-form select.form-control {
    height: auto !important;
}
.contact-form .form-control:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.contact-info-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    height: 100%;
}
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212,168,83,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}
.contact-info-item h6 { font-size: 16px; color: var(--white); margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer h5 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.footer p { font-size: 14px; line-height: 1.8; }
.footer .footer-links { list-style: none; padding: 0; }
.footer .footer-links li { margin-bottom: 10px; }
.footer .footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.footer .footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer .footer-links a i { margin-right: 8px; color: var(--gold); font-size: 12px; }
.footer .footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}
.footer .footer-contact li i { color: var(--gold); font-size: 16px; margin-top: 3px; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    margin-right: 8px;
    transition: var(--transition);
}
.footer .social-links a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
    padding: 170px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 400px; height: 400px;
    background: rgba(212,168,83,0.05);
    border-radius: 50%;
}
.page-banner h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}
.page-banner .breadcrumb {
    background: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 15px; }
.page-banner .breadcrumb-item.active { color: var(--gold); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---------- Scrolling Marquee ---------- */
.marquee-bar {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 0;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}
.marquee-bar marquee a { color: var(--navy); margin: 0 30px; }
.marquee-bar marquee a:hover { color: var(--royal); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 36px; }
    .section-header h2 { font-size: 28px; }
    .stat-item .stat-number { font-size: 36px; }
    .navbar-nims .navbar-collapse {
        background: var(--navy);
        padding: 15px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
        margin-top: 10px;
    }
    .navbar-nims .nav-link { padding: 12px 16px !important; }
    .section-padding { padding: 50px 0; }
}

@media (max-width: 767px) {
    .hero-content h1 { font-size: 28px; }
    .hero-section { min-height: 60vh; }
    .section-header h2 { font-size: 24px; }
    .stat-item .stat-number { font-size: 30px; }
    .top-bar .d-flex { flex-direction: column; text-align: center; gap: 5px; }
    .about-card { padding: 25px; }
    .page-banner { padding: 150px 0 40px; }
    .page-banner h1 { font-size: 30px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.8s ease forwards; }

/* ---------- Scroll to Top ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--royal), var(--royal-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.scroll-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    transform: translateY(-3px);
}
.scroll-top.show { display: flex; }

/* ---------- Loading Spinner ---------- */
.page-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Swiper Overrides ---------- */
.swiper-pagination-bullet {
    width: 12px; height: 12px;
    background: var(--light-2);
    opacity: 1;
    transition: var(--transition);
}
.swiper-pagination-bullet-active {
    background: var(--royal);
    width: 30px;
    border-radius: 6px;
}

/* ---------- GSAP Initial States ---------- */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
.gsap-stagger-section .feature-card,
.gsap-stagger-section .course-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    width: 100%;
}
.hero-slide {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 15, 45, 0.6); /* Navy tint for overlay */
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px; /* Offset for the header */
}
.hero-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-buttons .btn-nims {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ---------- Overlapping Stats ---------- */
.overlap-box-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -90px;
    margin-bottom: 60px;
}
.overlap-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    padding: 35px 25px;
    border: 1px solid rgba(255,255,255,0.05);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.overlap-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.3);
}
.overlap-box .stat-item {
    flex: 1;
}
.stat-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.15); /* Soft white glass background */
    backdrop-filter: blur(5px);
}
.overlap-box .stat-item:hover .stat-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}
.text-primary-nims, .text-gold {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.stat-number-wrapper {
    margin-bottom: 5px;
}
.stat-number, .stat-suffix {
    font-size: 36px;
    font-family: var(--font-heading);
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Ensure legibility on yellow */
}
.stat-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .overlap-box {
        flex-direction: column;
    }
    .overlap-box .stat-item {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }
    .overlap-box .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ---------- About Section ---------- */
.about-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.about-img-wrapper img {
    width: 100%;
    display: block;
}
.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--royal);
    color: #fff;
    padding: 20px 30px;
    border-top-left-radius: 20px;
    text-align: center;
}
.experience-badge .number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}
.experience-badge .text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------- Section Headers ---------- */
.section-tag {
    display: inline-block;
    color: var(--royal);
    background: rgba(212,168,83,0.1);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-header {
    margin-bottom: 40px;
    text-align: center;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    position: relative;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(212,168,83,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--royal);
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-card:hover .icon-box {
    background: var(--royal);
    color: #fff;
}
.feature-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy);
}

/* ---------- Course Cards ---------- */
.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.course-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.course-card:hover .course-img img {
    transform: scale(1.05);
}
.course-content {
    padding: 25px;
}
.course-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 10px;
    border: 1px solid rgba(0,0,0,0.02);
}
.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.client-info img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* ---------- News Cards ---------- */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.news-img {
    height: 200px;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-img img {
    transform: scale(1.05);
}
.news-content {
    padding: 25px;
}
.news-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}
.news-meta span {
    margin-right: 15px;
}
.news-meta i {
    color: var(--royal);
    margin-right: 5px;
}
.news-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

/* ============ DIRECTOR (Apple-Inspired Scroll Animation) ============ */
.scroll-driven-director {
    background: #0b1836;
}
.director-anim-img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    transform: scale(0.8);
    will-change: transform;
}
.director-img-wrapper {
    position: relative;
    display: inline-block;
}
.director-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.director-badge {
    background: rgba(212, 168, 83, 0.15);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-30px);
    will-change: transform, opacity;
}
.director-heading {
    font-size: 3rem;
    letter-spacing: -1px;
    opacity: 0;
    will-change: opacity;
}
.director-gold-line {
    height: 3px;
    background: var(--gold);
    width: 0%;
    will-change: width;
}
.anim-para {
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}
.director-identity h4,
.director-identity p {
    opacity: 0;
    will-change: opacity;
}
.director-bg-quote {
    font-size: 400px;
    font-family: serif;
    color: var(--white);
    line-height: 1;
    opacity: 0;
    top: -50px;
    right: 50px;
    pointer-events: none;
    transform: scale(0.5);
    will-change: transform, opacity;
}
/* Glassmorphism for parallax testimonials */
.testimonial-parallax {
    position: relative;
    background-image: url('../img/college/clg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}
.testimonial-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.85);
    z-index: -1;
}
.testimonial-parallax .testimonial-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.testimonial-parallax .testimonial-card .testimonial-text {
    color: rgba(255, 255, 255, 0.9) !important;
}
.testimonial-parallax .testimonial-card .student-name {
    color: var(--white) !important;
}
.testimonial-parallax .testimonial-card .student-course {
    color: rgba(255, 255, 255, 0.6) !important;
}
.testimonial-parallax .testimonial-card .quote-icon {
    color: rgba(212, 168, 83, 0.4) !important;
}
