/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3; /* A professional blue */
    --secondary-color: #0d2c4b; /* A darker blue for text/backgrounds */
    --logo-blue-color: #0D2C4B; /* Specific blue from the Belhekar logo */
    --accent-color: #28a745; /* A vibrant green for CTAs and highlights */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* --- Header & Navbar --- */
.header {
    background: var(--white-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 45px;
    margin-right: 12px;
}

.nav-logo span {
    font-size: 1.3rem;
    color: var(--logo-blue-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    background: url('https://images.pexels.com/photos/267885/pexels-photo-267885.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 92, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* UPDATED: Styles for the infinite typing animation */
@keyframes typing-loop {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--white-color); }
}

.animated-headline {
  display: inline-block;
  overflow: hidden; 
  border-right: .1em solid var(--white-color); /* The cursor */
  white-space: nowrap; 
  animation: 
    typing-loop 4s steps(33, end) infinite alternate, /* This line creates the infinite type/delete effect */
    blink-caret .75s step-end infinite;
}
/* END: Animated headline styles */


.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

/* --- Sections General Padding --- */
section {
    padding: 80px 0;
}

.features-section {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}
.about-text .section-title {
    text-align: left;
}
.about-text .section-title::after {
    margin: 10px 0 0;
}
.about-text p {
    margin-bottom: 20px;
}

/* --- Curriculum Section --- */
.curriculum-section {
    background: var(--light-gray);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.highlight-item {
    background: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, color 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px); 
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.highlight-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.highlight-item:hover i {
    color: var(--accent-color);
}


/* --- Admissions Section --- */
.admissions-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.eligibility, .process {
    flex: 1;
}

.eligibility h3, .process h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.process ol {
    list-style: none;
    padding-left: 0;
}

.process li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.process li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white-color);
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.process .btn {
    margin-top: 20px;
}

/* --- Career Section --- */
.career-section {
    background: var(--light-gray);
}
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.career-card {
    background: var(--white-color);
    border: 1px solid #ddd;
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 5px;
    text-align: center;
    /* UPDATED: Changed transition for animation */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.3s ease, border-left-color 0.3s ease;
    /* ADDED: Initial state for animation */
    opacity: 0;
    transform: translateY(40px);
}

/* ADDED: Visible state for animation */
.career-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.career-card:hover {
    /* UPDATED: The hover transform now only needs to scale */
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
    border-left-color: var(--accent-color);
}
.career-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.career-card:hover i {
    color: var(--accent-color);
}
.career-card h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
}


/* --- CTA Section --- */
.cta-section {
    background: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about h3, .footer-contact h3, .footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-about p {
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-social a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 25px 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-apply-btn {
        display: none; /* Hide button next to nav items on smaller screens */
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    .about-container {
        flex-direction: column;
    }
    .admissions-content {
        flex-direction: column;
        padding: 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        margin-top: 20px;
    }
    .nav-logo span {
        display: none; /* Hides the text on small screens, keeping only the logo */
    }
    .logo-image {
        margin-right: 0;
    }
}
/* --- Styles for the Admission Page Container --- */
.form-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--light-gray);
    padding: 40px 20px;
}

.form-content-wrapper {
    width: 100%;
    max-width: 600px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-header h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 0;
}

.form-header p {
    color: #666;
    margin: 5px 0 0;
}
.form-header p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Reusable Form Styles --- */
.admission-form .form-group {
    margin-bottom: 20px;
}

.admission-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.admission-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admission-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- Styles for the Thank You Page --- */
.thank-you-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--light-gray);
    padding: 20px;
}
.thank-you-box {
    background: var(--white-color);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.thank-you-box h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.thank-you-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}