:root {
    --primary: #FC800A;
    --primary-hover: #FC800A;
    --secondary: #171E45;
    --accent: #FFD5C0;
    --bg-light: #FBF1E3;
    --text-dark: #171E45;
    --text-muted: #9E9E9E;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(252, 128, 10, 0.05);
    --shadow-md: 0 10px 20px rgba(252, 128, 10, 0.08);
    --shadow-lg: 0 20px 40px rgba(252, 128, 10, 0.12);
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 50rem;
    --bg-gradient-primary: linear-gradient(135deg, #FC800A 0%, #f25c05 100%);
}

.placeholder-white::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

/* Custom Utilities */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-white-custom {
    color: var(--white) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

/* Hover Animations */
.transition {
    transition: all 0.3s ease;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-zoom {
    transition: transform 0.6s ease;
}

.hover-lift:hover .hover-zoom {
    transform: scale(1.05);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover,
.group:hover .hover-scale {
    transform: scale(1.15);
}

/* Gradients */
.bg-gradient-warm {
    background: linear-gradient(135deg, #ffffff 0%, #fae9e0 100%);
}

.bg-gradient-primary {
    background: var(--bg-gradient-primary);
}

/* Buttons inside the orange gradient course card */
.custom-card.future-batch .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border-radius: var(--radius-xl);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.custom-card.future-batch .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.custom-card.future-batch .btn-light {
    background: #fff;
    color: var(--primary) !important;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    padding: 0.75rem 1.8rem;
}

.custom-card.future-batch .btn-light:hover {
    background: #fff;
    color: var(--primary-hover);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.9rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Group Hover Utilities */
.group:hover .group-hover-translate {
    transform: translateX(8px);
}

.group:hover .group-hover-scale {
    transform: scale(1.15);
}

.group:hover .group-hover-text-primary {
    color: var(--primary) !important;
}

.group:hover .group-hover-text-success {
    color: #198754 !important;
}

.group:hover .group-hover-text-warning {
    color: #ffc107 !important;
}

.group:hover .group-hover-opacity-100 {
    opacity: 1 !important;
}

.opacity-0 {
    opacity: 0 !important;
}

.group-hover-translate,
.group-hover-scale,
.group-hover-text-primary,
.group-hover-text-success,
.group-hover-text-warning,
.group-hover-opacity-100 {
    transition: all 0.3s ease;
}

/* Global Button Hover Glow Effect */

.btn-primary-custom,
.btn-outline-custom,
.btn-light,
.btn-outline-light {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glow animation */
.btn-primary-custom:hover,
.btn-outline-custom:hover,
.btn-light:hover,
.btn-outline-light:hover {

    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 0 10px rgba(252, 128, 10, 0.4),
        0 0 20px rgba(252, 128, 10, 0.3),
        0 0 30px rgba(252, 128, 10, 0.2),
        0 10px 25px rgba(252, 128, 10, 0.25);
}

.btn-primary-custom::before,
.btn-outline-custom::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(252, 128, 10, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}

.btn-primary-custom:hover::before,
.btn-outline-custom:hover::before {
    opacity: 1;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 5px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: var(--bg-gradient-warm);
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Floating Icons Background */

.hero-floating-icons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 40px;
    opacity: 0.25;
    animation: floatIcons 12s ease-in-out infinite;
}

/* Different icon positions */
.icon1 {
    top: 15%;
    left: 8%;
    color: #FC800A;
    animation-duration: 10s;
}

.icon2 {
    top: 70%;
    left: 5%;
    color: #ff4d6d;
    animation-duration: 14s;
}

.icon3 {
    top: 20%;
    right: 10%;
    color: #3a86ff;
    animation-duration: 12s;
}

.icon4 {
    top: 65%;
    right: 8%;
    color: #8338ec;
    animation-duration: 16s;
}

.icon5 {
    top: 60%;
    left: 45%;
    color: #06d6a0;
    animation-duration: 13s;
}

.icon6 {
    top: 35%;
    right: 25%;
    color: #ffbe0b;
    animation-duration: 11s;
}

/* Floating animation */

@keyframes floatIcons {

    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }

}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 8px;
    left: 0;
    background-color: var(--accent);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-gradient-primary);
    z-index: 1;
    opacity: 0.4;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 5px;
    bottom: -15px;
    left: 0;
    background: var(--bg-gradient-primary);
    border-radius: 5px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards (Courses & Features) */
.custom-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background-color: var(--white);
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.custom-card .card-body {
    padding: 2.5rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.custom-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* Specialized Features Lists */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.check-list li i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-right: 15px;
    background: var(--bg-light);
    border-radius: 50%;
    padding: 5px;
}

/* Reading Room Section */
.reading-room {
    background:
        radial-gradient(ellipse at 10% 50%, rgba(252, 128, 10, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(151, 63, 234, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 90%, rgba(249, 110, 160, 0.15) 0%, transparent 45%),
        linear-gradient(135deg, #0f1535 0%, #171E45 45%, #1a1060 100%);
    position: relative;
    overflow: hidden;
}

/* Animated icons overlay */
.reading-room-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.rr-icon {
    position: absolute;
    opacity: 0.4;
    animation: rrFloat 14s ease-in-out infinite;
}

.rr-icon:nth-child(1) {
    top: 8%;
    left: 6%;
    color: #FC800A;
    font-size: 65px;
    animation-duration: 11s;
    animation-delay: 0s;
}

.rr-icon:nth-child(2) {
    top: 75%;
    left: 4%;
    color: #b97def;
    font-size: 45px;
    animation-duration: 16s;
    animation-delay: -3s;
}

.rr-icon:nth-child(3) {
    top: 20%;
    left: 30%;
    color: #F96EA0;
    font-size: 38px;
    animation-duration: 13s;
    animation-delay: -5s;
}

.rr-icon:nth-child(4) {
    top: 55%;
    left: 55%;
    color: #FC800A;
    font-size: 55px;
    animation-duration: 18s;
    animation-delay: -1s;
}

.rr-icon:nth-child(5) {
    top: 15%;
    right: 8%;
    color: #88B520;
    font-size: 48px;
    animation-duration: 12s;
    animation-delay: -7s;
}

.rr-icon:nth-child(6) {
    top: 70%;
    right: 5%;
    color: #E4A21A;
    font-size: 40px;
    animation-duration: 15s;
    animation-delay: -4s;
}

.rr-icon:nth-child(7) {
    top: 45%;
    left: 15%;
    color: #F96EA0;
    font-size: 42px;
    animation-duration: 10s;
    animation-delay: -2s;
}

.rr-icon:nth-child(8) {
    top: 88%;
    left: 65%;
    color: #b97def;
    font-size: 50px;
    animation-duration: 17s;
    animation-delay: -9s;
}

.rr-icon:nth-child(9) {
    top: 35%;
    right: 22%;
    color: #FC800A;
    font-size: 35px;
    animation-duration: 14s;
    animation-delay: -6s;
}

.rr-icon:nth-child(10) {
    top: 60%;
    right: 35%;
    color: #88B520;
    font-size: 58px;
    animation-duration: 20s;
    animation-delay: -8s;
}

@keyframes rrFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-25px) rotate(10deg) scale(1.08);
    }

    66% {
        transform: translateY(15px) rotate(-8deg) scale(0.92);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

.feature-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.feature-list li i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Faculty Section Redesign */
.faculty-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 400px;
    /* Fixed height for consistent grid */
}

.faculty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.faculty-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.faculty-card:hover .faculty-img {
    transform: scale(1.08);
}

/* Glassmorphic Overlay */
.faculty-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #111 0%, rgba(17, 17, 17, 0.85) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transition: transform 0.4s ease;
    transform: translateY(calc(100% - 100px));
    /* Only show name/badge by default */
}

.faculty-card:hover .faculty-overlay {
    transform: translateY(0);
    /* Reveal all details on hover */
    background: linear-gradient(to top, rgba(16, 21, 53, 0.95) 0%, rgba(16, 21, 53, 0.8) 100%);
    backdrop-filter: blur(8px);
}

.faculty-details {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(15px);
    margin-top: 1rem;
}

.faculty-card:hover .faculty-details {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Achievements */
.achievement-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    background: var(--bg-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
.footer {
    background-color: #1c1512;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--bg-gradient-primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 991px) {

    /* --- Navbar --- */
    /* On tablet/mobile the glassmorphic inner wrapper should stack naturally */
    #mainNav .container>div[style*="border-radius"] {
        flex-wrap: wrap;
        border-radius: 1rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* --- Hero --- */
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 120px !important;
        padding-bottom: 64px !important;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        max-width: 100% !important;
    }

    /* Center the CTA buttons on tablet */
    .hero-content .d-flex.flex-wrap {
        justify-content: center;
    }

    /* Social proof strip — center on tablet */
    .hero-content .d-flex.align-items-center.gap-3.mt-2 {
        justify-content: center;
    }

    /* Image wrapper — sane max-width, centered */
    .hero-image-wrapper .position-relative.mx-auto {
        max-width: 420px !important;
    }

    /* Floating card within image shouldn't overflow on tablet */
    .hero-image-wrapper .position-absolute.bottom-0.start-0.m-4 {
        margin: 0.75rem !important;
        padding: 0.6rem 0.9rem !important;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {

    /* --- Navbar: hide underline indicator on mobile stacked nav --- */
    .nav-link::after {
        display: none !important;
    }

    /* --- Hero --- */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 48px !important;
    }

    /* Stack hero buttons vertically on small phones */
    .hero-content .d-flex.flex-wrap.align-items-center.gap-3.mb-4 {
        flex-direction: column;
        width: 100%;
    }

    .hero-content .d-flex.flex-wrap.align-items-center.gap-3.mb-4 .btn {
        width: 100%;
        text-align: center;
    }

    /* Social proof strip compact */
    .hero-content .d-flex.align-items-center.gap-3.mt-2 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem !important;
    }

    /* Hero Image: allow a more landscape-friendly ratio on phones */
    .hero-image-wrapper .position-relative.mx-auto {
        max-width: 340px !important;
    }

    .hero-image-wrapper img.hero-image {
        aspect-ratio: 4/3 !important;
    }

    /* Floating card on hero image: hide on very small to prevent overflow */
    .hero-image-wrapper .position-absolute.bottom-0.start-0.m-4 {
        display: none !important;
    }

    /* --- Glassmorphic Navbar inner container --- */
    #mainNav .container>div[style*="border-radius"] {
        border-radius: 0.75rem !important;
    }

    /* --- Reading room: stack columns properly --- */
    .reading-room .col-lg-5,
    .reading-room .col-lg-7 {
        padding: 0 !important;
    }

    /* --- Faculty cards — proper sizing --- */
    .faculty-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- General section padding --- */
    .py-5.my-lg-5,
    .py-5.my-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* --- Section title --- */
    .section-title {
        font-size: 1.75rem;
    }

    /* Achievement number smaller on mobile */
    .achievement-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }

    /* Blog cards — single column handled by Bootstrap, but ensure padding is sane */
    .blog-card .card-body {
        padding: 1.25rem;
    }

    /* Footer compact */
    .footer {
        padding-top: 3rem;
    }

    /* Prevent decorative blobs and offset cards from causing horizontal scroll */
    [style*="translateX("] {
        transform: none !important;
    }

    [style*="width: 400px"],
    [style*="width: 300px"],
    [style*="width: 250px"] {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* When visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}