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

:root {
    --primary-color: #AA0000; /* Logo Maroon */
    --secondary-color: #03337B; /* Logo Navy Blue */
    --accent-color: #FFD700; /* Gold accent for better contrast with dark red/blue */
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Utilities */
.section-alt {
    background-color: var(--bg-light);
}

.section-img-bg {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-img-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92); /* Semi-transparent overlay to keep text readable */
    z-index: 1;
}

.section-img-bg .container {
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #7A0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #D62828;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.section-title h2 {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.section-white {
    background-color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .news-marq {
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-dark);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: grid;
    grid-template-areas: "heroArea";
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    grid-area: heroArea;
    position: relative;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-slider img {
    width: 33.3333%;
    height: auto;
    display: block;
    min-height: 600px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-container {
    grid-area: heroArea;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-form {
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 0px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    width: 400px;
}

.hero-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

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

.form-group input, .form-group select {
    /* width: 100%; */
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
}

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

/* Stats Section */
.stats {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 33px;
    /* color: var(--secondary-color); */
    color: var(--white);
}

.stat-item p {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-text p {
    line-height: 1.8;
}

.about-video {
    margin-top: 50px;
    border: 8px solid var(--white);
    background: var(--white);
    transition: var(--transition);
}

.about-video:hover {
    transform: scale(1.02);
}

/* Programs Section */
.programs {
    padding: 80px 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid #DDD;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tabs-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.program-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.program-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Admission Process */
.process {
    padding: 80px 0;
}

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

.process-step {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Scrolling Reel Styles */
.scrolling-reel {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, blue 10%, blue 90%, transparent);
}

.reel-track {
    display: inline-flex;
    animation: scrollReel 40s linear infinite;
    gap: 20px;
}

.reel-track:hover {
    animation-play-state: paused;
}

.reel-item {
    flex-shrink: 0;
    width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.reel-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollReel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* -50% because we duplicated the items + half the gap */
}

/* MOU Scrolling Logos */
.mou-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.mou-scroll {
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    position: relative;
}

.mou-track {
    display: inline-block;
    animation: scrollLogos 20s linear infinite;
}

.mou-track img {
    height: 50px;
    margin: 0 50px;
    display: inline-block;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.mou-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Recruiter Scrolling Logos */
.recruiter-scroll {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    background: rgba(255, 255, 255, 0);
}

.recruiter-track {
    display: inline-block;
    animation: scrollLogos 35s linear infinite;
}

.recruiter-track img {
    height: 60px;
    margin: 0 40px;
    display: inline-block;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.recruiter-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: #021B41; /* Dark Navy version of the logo blue */
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a i {
    width: 10px;
    font-size: 18px;
    height: 15px;
}

/* MITSUCET Section Styles */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.phase-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.phase-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.phase-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.phase-card p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.phase-card span {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Combined Admission & MITSUCET Section */
.admission-mitsucet-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.process-grid-side {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.process-grid-side .process-step {
    display: flex;
    gap: 20px;
    text-align: left;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.process-grid-side .step-icon {
    flex-shrink: 0;
    margin: 0;
}

.process-grid-side h4 {
    margin-bottom: 5px;
    font-size: 20px;
}

.process-grid-side p {
    font-size: 15px;
    margin: 0;
}

.mitsucet-col {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

/* Vertical Timeline */
.timeline-vertical {
    position: relative;
    margin-top: 30px;
    padding-left: 30px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #EEE;
}

.timeline-item-v {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item-v:last-child {
    padding-bottom: 0;
}

.timeline-dot-v {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px #EEE;
    z-index: 2;
}

.timeline-content-v h4 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.timeline-content-v p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 992px) {
    .admission-mitsucet-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Testimonial Scrolling */
.testimonial-scroll {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, blue 10%, blue 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 20s linear infinite;
    width: max-content;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex-shrink: 0;
    width: 400px;
    margin: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
    }
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 968px) {
    header {
        position: relative;
    }
    header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .hero {
        padding: 0;
        min-height: auto;
        display: block;
        color: var(--text-dark);
        width: 100%;
    }
    .hero-bg {
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: auto;
    }
    .hero-bg img {
        min-height: auto;
    }
    .hero-bg::after {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 20px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        color: var(--primary-color);
        text-shadow: none;
    }
    .hero-content p {
        color: var(--text-light);
    }
    .hero-form {
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        backdrop-filter: none;
        border: 1px solid #eee;
        margin-top: -50px;
        position: relative;
        z-index: 10;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    nav {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
