:root {
    --primary-red: #c0392b;
    --primary-red-hover: #a53125;
    --primary-dark: #a93226;
    --text-dark: #223344;
    --text-heading: #223344;
    --text-medium: #546678;
    --text-light: #8899aa;
    --bg-light: #fafafa;
    --bg-pinkish: #fff6f5;
    --bg-pink-card: #fdefec;
    --footer-bg: #142f36;
    --border-light: #f0e6e5;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-medium);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-hover);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.underline {
    height: 3px;
    width: 60px;
    background-color: var(--primary-red);
    margin: 15px auto 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-red:hover {
    background-color: var(--primary-red-hover);
}

.btn-black {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-black:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-red-outline {
    background-color: var(--primary-red);
    color: #fff;
    padding: 10px 25px;
    font-size: 0.9rem;
    border-radius: 20px;
}

.btn-red-outline:hover {
    background-color: var(--text-dark);
}

.btn-block {
    width: 100%;
    border-radius: 8px;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Form Status Message */
.form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status:not(:empty) {
    display: block;
}

.status-success {
    background-color: #eafaf1;
    color: #1d8a4a;
    border: 1px solid #a9dfbf;
}

.status-error {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

/* Header */
.header {
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-text-red {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-divider {
    height: 35px;
    width: 1px;
    background-color: #ccc;
    margin: 0 15px;
}

.logo-text-dark {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-top {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-text-bottom {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: #0a0f19 url('hero_section.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Prevent horizontal scroll on some browsers */
}

.hero-overlay-center {
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(to bottom,
            rgba(10, 15, 25, 0.55) 0%,
            rgba(10, 15, 25, 0.78) 50%,
            rgba(10, 15, 25, 0.60) 100%);
}

.hero-content {
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
    color: #f0f0f0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section Improvements */
.about-modern-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visuals {
    position: relative;
}

.visual-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-red) 100%);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.3);
    margin-bottom: 30px;
    transform: translateY(-10px);
}

.visual-card .visual-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.visual-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h4 {
    font-size: 2.2rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-box i {
    font-size: 2.8rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.stat-box span {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content-modern .badge-red {
    background: rgba(192, 57, 43, 0.1);
    color: var(--primary-red);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title-left h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-title-left .highlight {
    color: var(--primary-red);
}

.about-content-modern .lead-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-content-modern .sub-text {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-features-list {
    list-style: none;
    margin-bottom: 35px;
}

.about-features-list li {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.icon-check {
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--primary-red);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8rem;
}

/* Courses */
.courses-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-pink-card);
}

.course-icon-box {
    background-color: var(--bg-pinkish);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    height: 180px;
    width: 100%;
}

.course-content {
    padding: 30px 40px 40px;
}

.course-content h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.course-duration {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-desc {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    min-height: 100px;
    line-height: 1.6;
}

/* Why SPIIMT */
.whyus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.whyus-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whyus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.whyus-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.whyus-card h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.whyus-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Campus Gallery — Horizontal Slider */
.gallery.section {
    padding: 60px 0;
}

.gallery-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 8px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    cursor: grab;
}

.gallery-track:active {
    cursor: grabbing;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 420px;
    height: 320px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.8), rgba(140, 20, 10, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    gap: 8px;
}

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

.gallery-item .overlay i {
    color: #fff;
    font-size: 1.8rem;
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* Prev / Next Buttons */
.scroll-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-red);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.scroll-btn:hover {
    background: #a00;
    transform: scale(1.1);
}

.scroll-btn.left {
    margin-right: 12px;
}

.scroll-btn.right {
    margin-left: 12px;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 88%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        transform: scale(0.75);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.25s, transform 0.25s;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* Governing Members */
.governing.section {
    background: var(--bg-pinkish);
}

.governing-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.governing-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.governing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.governing-name {
    color: var(--text-dark);
    font-weight: 700;
}

.governing-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-red);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Contact */
.contact-box-outer {
    background-color: var(--bg-pink-card);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-left h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-list .icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-wrapper h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Contact Extras (Map & Social) */
.contact-extras {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 3px solid #fff;
    margin-bottom: 25px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-social span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-red);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(192, 57, 43, 0.3);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.footer-social a {
    color: #fff;
    font-size: 1.1rem;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .about-modern-wrapper {
        grid-template-columns: 1fr;
    }

    .courses-cards {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-box-outer {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px;
    }

    .governing-list {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 320px;
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .nav-list {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 25px;
        z-index: 99;
    }

    .nav-list.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .section {
        padding: 55px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-modern-wrapper {
        gap: 35px;
    }

    .visual-card {
        padding: 25px;
    }

    .visual-card h3 {
        font-size: 1.3rem;
    }

    .section-title-left h2 {
        font-size: 2rem;
    }

    .courses-cards {
        grid-template-columns: 1fr;
    }

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

    .gallery-item {
        flex: 0 0 260px;
        height: 200px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .contact-box-outer {
        padding: 25px 20px;
        gap: 25px;
    }

    .form-wrapper {
        padding: 25px 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

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

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

    .gallery-item {
        flex: 0 0 220px;
        height: 170px;
    }

    .contact-box-outer {
        padding: 20px 15px;
    }

    .form-wrapper {
        padding: 20px 15px;
    }

    .logo-text-top,
    .logo-text-bottom {
        font-size: 0.65rem;
    }

    .logo-text-red {
        font-size: 1.5rem;
    }
}
