/* General Overrides and Definitions */
:root {
    --primary-red: #C6385A;
    /* New Berry Red */
    --dark-blue: #0f172a;
    /* Slate 900 */
    --light-grey: #f8f9fa;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --accent-red: #a32c49;
    /* Darker Berry Red for hovers */
}

body {
    padding-top: 155px;
    /* Offset for Fixed Header */
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (max-width: 991px) {
    body {
        padding-top: 100px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================================
   TITLE BAR (top strip)
   ============================================================ */
.title-bar {
    background-color: var(--dark-blue);
    border-bottom: 2px solid var(--primary-red);
    font-family: 'Open Sans', sans-serif;
}

/* Social icon circles */
.title-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
}

.title-social-btn:hover {
    transform: scale(1.18);
    opacity: 0.85;
    color: #fff;
}

/* Centre college name */
.college-main-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.college-sub-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.6px;
    margin-top: 3px;
}

/* Right phone / whatsapp */
.title-contact-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.title-contact-link:hover {
    color: #ffffff;
}

.whatsapp-link {
    color: #4ade80 !important;
}

.whatsapp-link:hover {
    color: #86efac !important;
}

/* ============================================================
   PREMIUM DESIGN UTILITIES
   ============================================================ */
:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --premium-navy: #0f172a;
    --premium-red: #991b1b;
    --soft-slate: #f1f5f9;
}

.glass-strip {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.gradient-text-red {
    background: linear-gradient(45deg, #b91c1c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-premium-navy {
    background-color: var(--premium-navy);
}

.bg-soft-slate {
    background-color: var(--soft-slate);
}

.bento-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.hover-slide-up {
    position: relative;
    overflow: hidden;
}

.hover-slide-up img {
    transition: transform 0.6s ease;
}

.hover-slide-up:hover img {
    transform: scale(1.08);
}

.premium-shadow {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hover-ring:hover {
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
}

/* ============================================================
   SITE HEADER / MAIN NAVBAR
   ============================================================ */
.full-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-header-wrap.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.title-bar {
    transition: all 0.4s ease;
    overflow: hidden;
    max-height: 500px;
}

.full-header-wrap.scrolled .title-bar {
    max-height: 0;
    margin-top: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.main-navbar {
    background-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
}

.full-header-wrap.scrolled .main-navbar {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* ---- Logo in navbar ---- */
.navbar-logo-icon svg {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo-icon svg {
    transform: scale(1.06);
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #fff;
}

.logo-line-1 {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo-line-2 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.logo-line-3 {
    font-size: 0.45rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ---- Nav links ---- */
.main-nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1.25rem 0.65rem !important;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/* Underline slide-in on hover */
.main-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
    transition: transform 0.25s ease;
}

.main-nav-link:hover::after,
.main-nav-link.active-link::after {
    transform: translateX(-50%) scaleX(1);
}

.main-nav-link:hover,
.main-nav-link.active-link {
    color: #ffffff !important;
}

/* ---- Dropdown ---- */
.main-dropdown {
    border: none;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 8px 0;
    min-width: 200px;
    background: #ffffff;
    margin-top: 0 !important;
}

.main-dropdown .dropdown-item {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-blue);
    padding: 9px 20px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.main-dropdown .dropdown-item:hover {
    background-color: rgba(198, 56, 90, 0.08);
    color: var(--primary-red);
    padding-left: 26px;
}

/* Certificate Hover Preview */
.cert-preview-item {
    position: relative;
}

.cert-preview-box {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 250px;
    height: auto;
    background: #fff;
    border: 3px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3000;
    pointer-events: none;
}

.cert-preview-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Desktop Hover Dropdown */
@media (min-width: 1400px) {
    .hover-dropdown:hover>.dropdown-menu {
        display: block !important;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }
}

/* Nested Dropdowns (Sub-menus) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: -100%;
    /* Push sub-menu to the left as it's at the far right edge */
    margin-top: 0;
    margin-left: -5px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* Adjust for right alignment */
.dropdown-menu-end .dropdown-submenu .dropdown-menu {
    left: auto;
    right: 100%;
    margin-right: 5px;
}

.cert-preview-item:hover .cert-preview-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) scale(1);
    left: calc(100% + 15px);
}

/* Responsive adjustment for preview */
@media (max-width: 1399.98px) {
    .cert-preview-box {
        position: relative;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100%;
        visibility: visible;
        opacity: 1;
        display: none;
        margin-top: 10px;
        pointer-events: auto;
    }

    .cert-preview-item:hover .cert-preview-box {
        display: block;
    }
}


/* ---- Mobile collapse ---- */
@media (max-width: 1399.98px) {
    .navbar-collapse {
        background: var(--primary-red);
        padding: 1rem 0.75rem;
        border-radius: 0 0 10px 10px;
        margin-top: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-height: 70vh;
        overflow-y: auto;
    }

    .main-nav-link {
        padding: 0.65rem 0.75rem !important;
        border-radius: 6px;
    }

    .main-nav-link::after {
        display: none;
    }

    .main-nav-link:hover,
    .main-nav-link.active-link {
        background: rgba(255, 255, 255, 0.15);
    }

    .main-dropdown {
        background: rgba(255, 255, 255, 0.12);
        box-shadow: none;
        border-radius: 6px;
        margin-left: 1rem;
    }

    .main-dropdown .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
    }

    .main-dropdown .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding-left: 28px;
    }
}

/* ---- Logo responsive ---- */
@media (max-width: 768px) {
    .logo-line-1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .logo-line-2 {
        font-size: 0.65rem;
    }

    .logo-line-3 {
        font-size: 0.4rem;
    }

    .navbar-logo-icon svg {
        width: 40px;
        height: 34px;
    }

    /* Title bar centre on mobile */
    .college-main-name {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .college-sub-name {
        font-size: 0.62rem;
    }

    .title-contact-link {
        font-size: 0.68rem;
    }
}

/* Hero Slider Animation */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
    padding-top: 100px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossFade 12s infinite ease-in-out;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

@keyframes crossFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h5 {
        font-size: 0.9rem !important;
    }

    .accreditations-strip {
        padding: 0.5rem 1rem !important;
    }

    .accreditations-strip span {
        font-size: 0.65rem !important;
    }
}

.hero-btn {
    transition: all 0.3s ease;
    border: none;
    background-color: #bb0b21;
}

.hero-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Info Cards */
.info-cards-section {
    padding-bottom: 5rem;
}

.info-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(198, 56, 90, 0.3);
}

.border-danger {
    border-color: var(--primary-red) !important;
}

.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.btn-outline-danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-danger:hover {
    background-color: var(--primary-red);
    color: #fff;
}

/* Enhancements for Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Enhancements */
.footer-links a {
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red) !important;
    padding-left: 5px;
}

.counter-box {
    transition: all 0.4s ease;
}

.counter-box:hover {
    background-color: rgba(198, 56, 90, 0.08) !important;
    border-color: var(--primary-red) !important;
    transform: translateY(-10px);
}

.recruiter-logo {
    transition: all 0.3s ease;
}

.recruiter-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.transition-up {
    transition: all 0.3s ease;
}

.transition-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.value-box {
    background: #fff;
    cursor: default;
}

.value-icon i {
    transition: transform 0.3s ease;
}

.course-card:hover .placeholder-graphic i {
    transform: scale(1.1);
}

/* Custom Accordion Styling */
.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 12px !important;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background-color: #fff;
    color: #0f172a;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--primary-red);
}

.custom-accordion .accordion-button::after {
    background-image: none;
    content: '\2b';
    /* FontAwesome Plus icon or simple plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    content: '\f068';
    /* Minus icon */
    transform: rotate(180deg);
    color: var(--primary-red);
}

.custom-accordion .accordion-body {
    border-top: 1px solid #f1f3f5;
}

/* Contact Form & Button Styles */
.btn-berry {
    background-color: #be185d;
    /* Specific berry/pinkish-red from screenshot */
    transition: all 0.3s ease;
}

.btn-berry:hover {
    background-color: #9d174d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(190, 24, 93, 0.3);
}

.form-control:focus {
    background-color: #fff !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.1) !important;
}

/* Footer Refinements */
.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hover-red:hover {
    color: var(--primary-red) !important;
    padding-left: 5px;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.info-bar-section {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.transition-bg-hover:hover {
    background-color: #a31046 !important;
    /* Slightly darker shift for red part */
}

@media (max-width: 768px) {
    .red-accent-box {
        display: none;
    }
}

.value-box:hover .value-icon i {
    transform: scale(1.2) rotate(10deg);
}

.work-card h5 {
    position: relative;
    padding-bottom: 10px;
}

.work-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
}

.founder-img-wrapper img {
    transition: all 0.5s ease;
}

.founder-card:hover .founder-img-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--primary-red);
    opacity: 0.1;
    z-index: -1;
    border-radius: 10px;
}

/* ============================================================
   ABOUT SOCIETY & VISION/MISSION
   ============================================================ */
.society-section {
    background-color: #fff;
}

.vision-mission-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.vision-card {
    background: #fff;
    border-left: 5px solid var(--primary-red);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.vision-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--dark-blue);
    line-height: 1.8;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(198, 56, 90, 0.1);
    border-color: var(--primary-red);
}

.mission-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   GOVERNANCE & MEMBERS TABLE
   ============================================================ */
.governance-section {
    background-color: var(--light-grey);
}

.governance-table {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.governance-table thead {
    background-color: var(--dark-blue);
    color: #fff;
}

.governance-table th {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.governance-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.reg-cert-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.reg-cert-box:hover {
    border-color: var(--primary-red);
    background: rgba(198, 56, 90, 0.02);
}

@media (max-width: 768px) {
    .vision-text {
        font-size: 1.1rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PREMIUM INDEX PAGE ENHANCEMENTS
   ============================================================ */

/* Hero — Animated word entrance */
.hero-headline {
    font-size: 3.2rem;
    letter-spacing: 0.5px;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: wordFadeUp 0.55s forwards;
}

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

/* Hero subtext */
.hero-subtext {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.88;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.95rem;
    }
}

/* Hero eyebrow badge */
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
}

/* Ghost CTA button */
.hero-btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* Scroll cue */
.hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-chevron {
    animation: bounceY 1.5s infinite ease-in-out;
}

@keyframes bounceY {

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

    50% {
        transform: translateY(6px);
    }
}

/* Decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #C6385A, transparent);
    top: -80px;
    left: -100px;
}

.hero-orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #C6385A, transparent);
    bottom: -60px;
    right: -80px;
    animation-delay: 3s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 20px) scale(1.08);
    }
}

/* Admission pulse dot */
.admission-pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Section eyebrow + divider */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-red);
    background: rgba(198, 56, 90, 0.07);
    padding: 5px 16px;
    border-radius: 50px;
    border: 1px solid rgba(198, 56, 90, 0.18);
}

.section-divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-red), #ef4444);
}

/* Step cards */
.step-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    transition: border-color 0.3s ease;
}

.step-card:hover {
    border-top-color: var(--primary-red);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(198, 56, 90, 0.07);
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    top: 8px;
    right: 14px;
    letter-spacing: -2px;
    user-select: none;
}

.step-number-success {
    color: rgba(34, 197, 94, 0.1);
}

/* About feature icon box */
.about-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(198, 56, 90, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.about-feature-item:hover .about-feature-icon {
    background: rgba(198, 56, 90, 0.15);
}

/* Premium testimonial glass card */
.premium-testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(198, 56, 90, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.premium-testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 5rem;
    color: rgba(198, 56, 90, 0.05);
    position: absolute;
    top: 10px;
    right: 15px;
    line-height: 1;
    pointer-events: none;
}

.premium-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(198, 56, 90, 0.12);
    border-color: rgba(198, 56, 90, 0.25);
}

/* Testimonial avatar initials circle */
.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #ef4444);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

/* Stars */
.stars i {
    font-size: 0.9rem;
}

/* ============================================================
   MOBILE RESPONSIVENESS REFINEMENTS (INDEX.PHP)
   ============================================================ */
@media (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 550px;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-headline {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-subtext {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 30px !important;
    }

    .hero-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-btn-ghost {
        width: 100%;
    }

    /* Admission Strip */
    .premium-admission-strip {
        margin-top: -20px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        border-radius: 15px !important;
    }

    .admission-strip .container {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .admission-strip .bg-danger {
        width: 100%;
        justify-content: center;
    }

    /* About & Counters */
    .about-counters-section {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
    }

    .about-feature-item {
        margin-bottom: 15px;
    }

    .bg-soft-slate {
        padding: 30px 20px !important;
        border-radius: 30px !important;
    }

    .counter-box {
        padding: 20px 10px !important;
    }

    .counter-box h3 {
        font-size: 1.5rem !important;
    }

    /* Our Institutions */
    .our-institutions-section {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .inst-card {
        margin-bottom: 10px;
    }

    /* Facilities Section */
    .facilities-section {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    /* Gallery */
    .gallery-section .col-6 {
        padding: 5px !important;
    }

    .gallery-section img {
        height: 160px !important;
    }

    /* Testimonials */
    .premium-testimonial-card {
        padding: 1.5rem !important;
    }

    /* Newsletter */
    .glass-strip {
        padding: 25px 20px !important;
        border-radius: 25px !important;
        max-width: 100% !important;
    }

    .glass-strip input {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.8rem !important;
    }

    .accreditations-strip {
        flex-direction: column;
        border-radius: 15px !important;
        padding: 10px 15px !important;
    }

    .accreditations-strip span {
        text-align: center;
        line-height: 1.4;
    }
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS REFINEMENTS
   ============================================================ */
@media (max-width: 991.98px) {
    /* Global Typography */
    .display-3 { font-size: 2.5rem !important; }
    .display-4 { font-size: 2.2rem !important; }
    .display-5 { font-size: 2rem !important; }
    .display-6 { font-size: 1.8rem !important; }

    /* Hero Sections (Institutional & General) */
    .inst-hero, .about-hero, .campus-hero {
        min-height: 450px !important;
        text-align: center !important;
        padding-top: 80px !important;
        padding-bottom: 60px !important;
    }

    .inst-hero h1, .about-hero h1 {
        font-size: 2.5rem !important;
    }

    .inst-hero p.lead {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Flex Container Stacking */
    .d-flex.flex-wrap.gap-3.justify-content-lg-start {
        justify-content: center !important;
    }

    /* Feature/Stats Cards */
    .backdrop-blur {
        width: 100% !important;
        justify-content: center !important;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    /* Section Spacing */
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Images */
    .img-wrapper img {
        height: 300px !important;
    }

    .img-wrapper.rounded-5 {
        border-radius: 25px !important;
    }

    /* List Items */
    .list-unstyled.d-flex.flex-column.gap-3 {
        text-align: left;
        padding-left: 10px;
    }

    /* Cards */
    .card.rounded-5, .card.rounded-4 {
        border-radius: 20px !important;
    }

    /* Alignment Fixes */
    .text-lg-start, .text-lg-end {
        text-align: center !important;
    }

    /* CTA Banners */
    .banner-cta .d-flex {
        flex-direction: column;
        gap: 15px !important;
    }

    .banner-cta .btn {
        width: 100%;
    }

    /* Title Bar (Header) */
    .header-college-name {
        font-size: 0.9rem !important;
    }
    
    .header-affiliation {
        font-size: 0.65rem !important;
    }

    .title-bar-social {
        padding-bottom: 0 !important;
    }

    .title-bar-contact {
        padding-top: 5px !important;
        padding-bottom: 10px !important;
    }
}

/* Fix for overlapping elements on small mobiles */
@media (max-width: 400px) {
    .display-3 { font-size: 2rem !important; }
    .display-4 { font-size: 1.8rem !important; }
    
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Ensuring tables are responsive */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

/* Final Mobile Refinements */
@media (max-width: 991.98px) {
    .inst-detail-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .inst-detail-section .display-6 {
        font-size: 2rem !important;
    }

    .inst-sticky-col {
        text-align: center !important;
        margin-bottom: 30px;
    }

    .inst-detail-section ul {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .inst-pill-nav-wrap {
        top: 100px !important; /* Adjusted for smaller scrolled header */
    }
}

@media (max-width: 767.98px) {
    /* Contact Page */
    .contact-hero .display-4 {
        font-size: 1.8rem !important;
    }

    .contact-form-section .p-5 {
        padding: 30px 20px !important;
    }

    /* Footer Info Bar */
    .info-bar-section .px-5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .info-bar-section .red-accent-box {
        display: none;
    }

    .info-bar-section .ms-4 {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .info-bar-section .justify-content-between {
        justify-content: center !important;
        flex-direction: column;
        gap: 10px;
    }

    /* Internal Heros */
    .internal-hero-section .display-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .inst-pill {
        padding: 7px 16px !important;
        font-size: 0.8rem !important;
    }
    
    .main-footer .col-lg-5 h3 {
        font-size: 1.5rem !important;
    }
}