/* =====================================================
   VRINDAVAN INSTITUTE OF MANAGEMENT
   Brand Identity CSS — Reimagined 2026
   Color Palette: Deep Maroon + Gold + Warm Ivory
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Palette */
    --primary: #7B1F2E;
    /* Deep maroon */
    --primary-dark: #55141F;
    /* Darker maroon */
    --primary-light: #9E3345;
    /* Lighter maroon */
    --gold: #C8962A;
    /* Rich gold */
    --gold-light: #E2B84A;
    /* Light gold */
    --gold-pale: #F5E6C0;
    /* Pale gold background */
    --dark: #1A0D10;
    /* Near-black */
    --grey: #6B7280;
    /* Muted grey */
    --light-grey: #F9F5F0;
    /* Warm off-white */
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #55141F 0%, #7B1F2E 50%, #9E3345 100%);
    --gradient-gold: linear-gradient(135deg, #C8962A 0%, #E2B84A 100%);
    --gradient-dark: linear-gradient(180deg, #1A0D10 0%, #2D1219 100%);

    /* UI */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --shadow-sm: 0 2px 8px rgba(123, 31, 46, 0.08);
    --shadow-md: 0 8px 28px rgba(123, 31, 46, 0.14);
    --shadow-lg: 0 20px 50px rgba(123, 31, 46, 0.18);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Typography sizes */
    --fs-xs: 0.8rem;
    /* 13px */
    --fs-sm: 1rem;
    /* 16px */
    --fs-md: 1.15rem;
    /* 18px */
    --fs-lg: 1.3rem;
    /* 21px */
    --fs-xl: 1.6rem;
    /* 26px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.6rem;
    /* 42px */
    --fs-4xl: 3.2rem;
    /* 51px */
    --fs-hero: 3.4rem;
    /* 54px — fits comfortably on laptop */
}

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

/* Lock root font-size so rem calculations are immune to Bootstrap overrides */
html {
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 20px !important;
    /* Beat Bootstrap's 14px */
    color: #2D1219;
    background: var(--white);
    line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-hero);
}

h2 {
    font-size: var(--fs-4xl);
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

p {
    font-size: var(--fs-md);
    color: var(--grey);
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

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

a:hover,
a:focus {
    text-decoration: none !important;
}

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

/* ===================== SECTION PADDING ===================== */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.bg-ivory {
    background: var(--light-grey);
    /* flat: use where hard separation is needed */
}

/* Use this only when the section sits between two white sections */
.bg-ivory-fade {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F9F5F0 18%, #F9F5F0 82%, #FFFFFF 100%);
}

.bg-dark-maroon {
    background: var(--gradient-dark);
}

/* =================== SECTION HEADING =================== */
.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(200, 150, 42, 0.12);
    border: 1px solid rgba(200, 150, 42, 0.3);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title {
    font-size: var(--fs-3xl);
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-title span {
    color: var(--gold);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 4px;
    margin: 0 auto 30px;
}

.section-divider.left {
    margin: 0 0 30px;
}

/* =================== BUTTONS =================== */
.btn-primary-vim {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    font-size: var(--fs-sm);
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(123, 31, 46, 0.35);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary-vim:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(123, 31, 46, 0.45);
    filter: brightness(1.1);
}

.btn-gold-vim {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: var(--gradient-gold);
    color: var(--dark) !important;
    font-size: var(--fs-sm);
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(200, 150, 42, 0.35);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-gold-vim:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(200, 150, 42, 0.5);
}

.btn-outline-vim {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 34px;
    background: transparent;
    color: var(--white) !important;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.btn-outline-vim:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

/* =================== CARDS =================== */
.vim-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(123, 31, 46, 0.06);
    transition: var(--transition);
    height: 100%;
}

.vim-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 150, 42, 0.2);
}

.vim-card-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: rgba(123, 31, 46, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.vim-card:hover .vim-card-icon {
    background: var(--gradient-primary);
    color: var(--gold-light);
}

.vim-card h3 {
    font-size: var(--fs-xl);
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.vim-card p {
    font-size: var(--fs-sm);
    color: var(--grey);
    margin: 0;
}

/* =================== INNER PAGE BANNER =================== */
/* Shared gradient band behind banner and overview sections */
.inner-hero-band {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.inner-page-banner-area {
    background: transparent;
    padding: 90px 0 70px;
    position: relative;
    z-index: 1;
}

.inner-page-banner-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.08;
    z-index: 0;
}

.pagination-area {
    position: relative;
    z-index: 2;
}

.pagination-area h1 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: var(--fs-3xl);
    margin-bottom: 16px;
}

.pagination-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-area ul li,
.pagination-area ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.pagination-area ul li a:hover {
    color: var(--gold-light);
}

/* =================== STATS =================== */
.stats-no-bg {
    background: transparent !important;
    padding-bottom: 100px;
}

/* Downward wave at bottom of stats (cuts into white below) */
.stats-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
    pointer-events: none;
    z-index: 1;
}

/* Upward wave at top — white arch rising from the top edge */
.section-wave-top {
    padding-top: 100px !important;
    /* extra room for the arch */
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    /* matches white section above */
    clip-path: ellipse(55% 100% at 50% 0%);
    pointer-events: none;
    z-index: 1;
}

.stat-block {
    text-align: center;
    padding: 20px 10px;
    position: relative;
    z-index: 2;
}

.stat-block .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-block .stat-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =================== HERO =================== */

/* Shared background band — hero + stats share ONE gradient */
.hero-stats-band {
    background: linear-gradient(180deg, #55141F 0%, #7B1F2E 55%, #5A1520 100%);
    position: relative;
    overflow: hidden;
}

.vim-hero {
    background: transparent;
    /* inherits from .hero-stats-band */
    min-height: 82vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding: 120px 0 60px;
}

/* container inside flex parent: just z-index, DO NOT set width:100% 
   (that kills Bootstrap's auto centering margins) */
.vim-hero>.container {
    position: relative;
    z-index: 2;
}

.vim-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.08;
    pointer-events: none;
}

.vim-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.vim-hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gold);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.vim-hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    bottom: -100px;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.vim-hero-content {
    position: relative;
    z-index: 2;
}

.vim-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 150, 42, 0.15);
    border: 1px solid rgba(200, 150, 42, 0.4);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.vim-hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.vim-hero h1 .gold-text {
    color: var(--gold-light);
}

.vim-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--fs-lg);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.vim-hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

/* =================== ABOUT ROW =================== */
.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge-box .badge-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about-badge-box .badge-text {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================== MBA COURSE TABS =================== */
.course-details-tab-btn li a {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--grey);
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: var(--transition);
}

.course-details-tab-btn li.active a,
.course-details-tab-btn li a:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--gold);
}

/* =================== FOOTER =================== */
footer {
    background: var(--gradient-dark);
    color: #A8957B;
}

/* =================== UTILITY =================== */
.text-gold {
    color: var(--gold);
}

.text-maroon {
    color: var(--primary);
}

.fw-700 {
    font-weight: 700;
}

.mt-0 {
    margin-top: 0;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 991px) {
    :root {
        --fs-hero: 2.8rem;
        --fs-4xl: 2.4rem;
        --fs-3xl: 2rem;
        --fs-2xl: 1.7rem;
    }

    .section-padding {
        padding: 70px 0;
    }

    /* Fix Bootstrap 3 uneven float heights in 2-column grids */
    .stats-section [class*="col-"]:nth-child(2n+1),
    .mba-overview-strip [class*="col-"]:nth-child(2n+1) {
        clear: left;
    }
}

@media (max-width: 767px) {
    :root {
        --fs-hero: 2.3rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-padding-sm {
        padding: 40px 0;
    }

    .about-badge-box {
        display: none;
    }

    .vim-hero {
        min-height: auto;
        padding: 90px 0 60px;
    }

    .vim-hero-badge {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .stat-block {
        padding: 16px 6px;
        margin-bottom: 24px;
    }

    .stat-block .stat-number {
        font-size: 2rem;
    }

    .stat-block .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .stats-section {
        padding-bottom: 100px;
    }

    .vim-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-hero: 2.3rem;
    }

    .vim-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary-vim,
    .btn-gold-vim,
    .btn-outline-vim {
        width: 100%;
        justify-content: center;
    }

    .inner-page-banner-area {
        padding: 70px 0 50px;
    }

    .pagination-area h1 {
        font-size: 2rem;
    }
}

/* =====================================================
   ANIMATIONS — pure CSS @keyframes only
   No opacity:0 hidden states. No scroll jank.
   ===================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero & Inner Page Banners */
.vim-hero-content,
.pagination-area {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Secondary Hero Elements & Main Content Blocks */
.hero-visual-wrap,
.about-img-wrap,
.about-content-col,
.contact-info-col,
.contact-form-col {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Page load gold bar */
@keyframes loadBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform-origin: left center;
    animation: loadBar 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 9999;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

    .vim-hero-content,
    .hero-visual-wrap,
    .pagination-area,
    .about-img-wrap,
    .about-content-col,
    .contact-info-col,
    .contact-form-col {
        animation: none;
    }

    body::after {
        display: none;
    }
}