* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

:root {
    --primary: #8b181b;
    /* Deep Maroon Red */
    --secondary: #d32f2f;
    /* Bright Red */
    --accent: #f59e0b;
    /* Golden Amber */
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ff4d4d, #f97316);
    /* More vibrant red-orange for visibility */
    -webkit-background-clip: text;
    background-clip: text;

}

.text-gradient-alt {
    background: linear-gradient(135deg, var(--accent), #fde047);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    min-height: 35px;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header & Nav */
header {

    top: 35px;
    /* Matches .top-bar height */
    left: 0;
    width: 100%;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(139, 24, 27, 0.4);
    animation: pulse 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(139, 24, 27, 0.5);
    animation: none;
}

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

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Hero Section - Full Background Layout */
.hero {
    min-height: 90vh;
    padding: 150px 8% 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    background-size: 130%;
    background-position: 20% center;
    background-color: #f0f0f0;
    background-attachment: scroll;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger overlay for better text contrast */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-spacer {
    display: none;
    /* Removed as we use flex now */
}

.hero-info {
    flex: 1;
    max-width: 500px;
    color: white;
    animation: fadeIn 1s ease-out both;
    z-index: 2;
    padding: 0;
    background: transparent;
}

.hero-info h1 {
    font-size: 4rem;
    margin: 15px 0;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    /* High-contrast shadow for readability on complex backgrounds */
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-info p {
    font-size: 1.2rem;
    color: white;
    margin-top: 15px;
    font-weight: 500;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 1);
    line-height: 1.5;
}

.hero-badge {
    background: var(--accent);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 5px;
    font-weight: 700;
    text-shadow: none;
    display: inline-block;
}

.hero-form-container {
    animation: slideUp 0.8s ease-out 0.2s both;
    flex: 1;
    max-width: 400px;
    z-index: 2;
}

.enroll-form {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.enroll-form h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary);
    text-align: center;
}

.enroll-form p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-light);
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 24, 27, 0.1);
}

/* Programs Section */
.programs {
    padding: 60px 5%;
    background: var(--bg-white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* Campus Section */
.campus {
    padding: 60px 5%;
    display: flex;

    gap: 60px;
    background: linear-gradient(to right, var(--bg-light) 50%, var(--bg-white) 50%);
}

.campus-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-image:hover img {
    transform: scale(1.05);
}

.campus-content {
    flex: 1;
}

.campus-list {
    list-style: none;
    margin-top: 30px;
}

.campus-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.campus-list li:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--accent);
}

.campus-list li i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Disciplines Section (Pill Layout) */
.disciplines-section {
    padding: 50px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.disciplines-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.discipline-pill {
    background: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid #f0f0f0;
}

.discipline-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .disciplines-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 0 10px;
    }

    .discipline-pill {
        padding: 8px 6px;
        font-size: 0.8rem;
        width: 100%;
        min-height: 55px;
        /* Forces uniform height */
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1.2;
    }

    .discipline-pill:last-child:nth-child(odd) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: calc(50% - 5px);
        /* Maintain same size as half-width columns */
    }
}

/* Embibe Section */
.embibe {
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--primary), var(--text-dark));
    color: white;
    text-align: center;
    border-radius: 30px;
    margin: 40px 5% 60px;
    /* Reduced margin */
    position: relative;
    overflow: hidden;
}

.embibe h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.embibe p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.embibe .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

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

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .top-bar {
        padding: 10px 5%;
        font-size: 0.75rem;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    header {
        top: 35px;
        padding: 10px 5%;
    }

    .logo {
        font-size: 1.2rem;
        gap: 10px;
    }

    .logo img {
        height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 160px 5% 60px;
    }

    .hero-info {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-info h1 {
        font-size: 2.8rem;
    }

    .hero-form-container {
        max-width: 500px;
        width: 100%;
    }

    .campus {
        flex-direction: column;
        padding: 60px 5%;
        gap: 40px;
    }

    .campus-image {
        width: 100%;
    }

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

@media (max-width: 600px) {
    .top-bar {
        background: rgba(139, 24, 27, 0.98);
        /* Slightly transparent primary */
        backdrop-filter: blur(5px);
        flex-direction: column;
        gap: 6px;
        padding: 12px 10px;
        text-align: center;
        font-size: 0.78rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-bar span {
        justify-content: center;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    header {
        top: 72px;
        /* Adjusted for taller mobile top-bar */
        padding: 10px 5%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .logo {
        font-size: 1.1rem;
        gap: 10px;
    }

    .logo img {
        height: 35px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 160px 20px 60px;
        /* Precise horizontal padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        min-height: auto;
        /* Allow content to dictate height */
    }

    .hero::before {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.85) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.7) 100%);
    }

    .hero-info {
        margin-bottom: 45px;
        width: 100%;
    }

    .hero-info h1 {
        font-size: 2.5rem;
        /* Slightly smaller for better fit */
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .hero-info h1 .text-gradient {
        background: linear-gradient(135deg, #ff6b6b, #e03131);
        /* Vibrant red for punch */
        -webkit-background-clip: text;
        background-clip: text;

    }

    .hero-info p {
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.7;
        /* Increased for better readability */
        opacity: 0.95;
        margin-top: 50px;
        /* Moved even further down as requested */
        padding: 0 10px;
        letter-spacing: 0.2px;
    }

    .hero-badge {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .hero-form-container {
        width: 100%;
        max-width: 420px;
    }

    .enroll-form {
        padding: 35px 25px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }

    .enroll-form h3 {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5%;
    }

    .feature-card {
        padding: 35px 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
        text-align: center;
        /* Centered for mobile perfection */
    }

    .feature-card::before {
        left: 50%;
        top: 0;
        width: 60px;
        height: 4px;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }

    .feature-card:hover::before {
        transform: translateX(-50%) scaleX(1);
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 40px;
        padding: 0 15px;
        opacity: 0.9;
    }

    .embibe {
        margin: 40px 15px 80px;
        padding: 55px 20px;
        border-radius: 25px;
        box-shadow: 0 15px 40px rgba(139, 24, 27, 0.2);
    }

    .embibe h2 {
        font-size: 1.8rem;
    }

    .embibe p {
        font-size: 1rem;
    }

    .campus-list li {
        padding: 20px;
        gap: 15px;
        flex-direction: column;
        text-align: center;
    }

    .campus-list li i {
        font-size: 2rem;
    }

    section .btn,
    .hero-form-container .btn {
        width: 100%;
        /* Full width for content buttons */
        text-align: center;
    }

    header .btn {
        width: auto;
        /* Keep header button compact */
        padding: 8px 15px;
        font-size: 0.8rem;
    }

}

/* Professional Maroon Footer */
.main-footer {
    background: #8b181b;
    /* Solid deep maroon as per second image */
    color: white;
    padding: 30px 5% 20px;
    margin-top: 20px;
    border-top: 3px solid var(--accent);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    /* Reduced gap */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 35px;
    /* Smaller logo */

    object-fit: contain;
}

.footer-logo span {
    font-size: 1.4rem;
    /* Smaller font */
    font-weight: 800;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Reduced gap */
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    /* Smaller font */
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact .contact-item i {
    color: var(--accent);
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    /* Reduced padding */
    width: 100%;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom strong {
    color: white;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Footer Adjustments */
@media (max-width: 600px) {
    .main-footer {
        padding: 40px 5% 20px;
    }

    .footer-logo span {
        font-size: 1.4rem;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-contact .contact-item {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* Sticky Contact Bar (Floating/Bar Logic) */
.contact-sticky-bar {
    position: fixed;
    z-index: 9999;
    display: flex;
    transition: all 0.3s ease;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Desktop View: Floating Circles on the Right */
@media (min-width: 769px) {
    .contact-sticky-bar {
        bottom: 40px;
        right: 30px;
        flex-direction: column;
        gap: 15px;
        display: flex;
    }

    .contact-sticky-bar .call-btn {
        display: none;
    }

    .contact-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        display: flex;
    }

    .whatsapp-btn {
        background: #25d366;
    }

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

    .contact-btn span {
        display: none;
    }

    .contact-btn i {
        font-size: 1.6rem;
    }

    .contact-btn:hover {
        transform: scale(1.1);
        filter: brightness(1.1);
    }
}

/* Mobile View: Fixed Bar at Bottom (Icon on top, Text below) */
@media (max-width: 768px) {
    .contact-sticky-bar {
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .contact-btn {
        flex-direction: column;
        gap: 4px;
        color: #444 !important;
        font-size: 0.8rem;
        flex: 1;
    }

    .contact-btn i {
        font-size: 1.4rem;
        color: #e03131;
        /* Theme Red for icons */
    }

    /* Remove specific backgrounds on mobile for the clean look */
    .call-btn,
    .whatsapp-btn,
    .appointment-btn {
        background: none !important;
        box-shadow: none !important;
    }

    body {
        padding-bottom: 70px;
    }
}