/* =========================================
   ECCETRA STYLE REDESIGN - EDUDOTS
   Theme: Light, Teal, Playful, 3D | Style: Modern EdTech
   ========================================= */

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

:root {
    /* --- Palette (Extracted from Logo) --- */
    --prm-purple: #411E3D;
    --prm-purple-dark: #2a1127;
    --prm-purple-light: #FFFFFF;
    /* Pure White */
    --prm-orange: #F6931E;
    --prm-text-main: #2b1228;
    /* Dark Purple for Text */
    --prm-text-body: #4A4A4A;
    /* Body */
    --prm-white: #FFFFFF;

    /* --- UI Properties --- */
    --radius-lg: 20px;
    /* Signature roundness */
    --radius-md: 12px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 40px rgba(65, 30, 61, 0.1);
    --shadow-card: 0 15px 30px rgba(0, 0, 0, 0.05);

    /* --- Typography --- */
    --font-main: 'Manrope', sans-serif;
}

/* --- Global Overrides --- */
body {
    background-color: var(--prm-white);
    color: var(--prm-text-body);
    font-family: var(--font-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--prm-text-main);
    font-weight: 800;
    /* Extra bold headings */
    letter-spacing: -0.01em;
}

p {
    color: var(--prm-text-body);
    font-weight: 500;
}

a {
    color: var(--prm-text-main);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--prm-orange);
}

/* --- Utilities --- */
.text-purple {
    color: var(--prm-purple) !important;
}

.text-orange {
    color: var(--prm-orange) !important;
}

.text-prm-body {
    color: var(--prm-text-body) !important;
}

/* Maintain old utility names for compatibility during transition if needed, 
   but mapping them to new colors */
.text-teal {
    color: var(--prm-purple) !important;
}

.text-yellow {
    color: var(--prm-orange) !important;
}

.bg-teal-light {
    background-color: var(--prm-purple-light) !important;
}

/* --- Buttons --- */
.btn-ecc {
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-ecc-primary {
    background-color: var(--prm-orange);
    color: var(--prm-white) !important;
    box-shadow: 0 4px 15px rgba(246, 147, 30, 0.2);
}

.btn-ecc-primary:hover {
    background-color: #e58718;
    transform: translateY(-2px);
    color: var(--prm-white) !important;
}

.btn-ecc-white {
    background-color: var(--prm-white);
    color: var(--prm-orange) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #eee;
}

.btn-ecc-white:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    color: var(--prm-orange) !important;
    border-color: var(--prm-orange);
}

.btn-ecc-secondary {
    background-color: var(--prm-purple);
    color: var(--prm-white) !important;
    box-shadow: 0 4px 15px rgba(65, 30, 61, 0.2);
}

.btn-ecc-secondary:hover {
    background-color: var(--prm-purple-dark);
    transform: translateY(-2px);
    color: var(--prm-white) !important;
}


/* --- Header --- */
header,
nav.navbar,
nav.navbar.validnavs.navbar-sticky {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #FFFFFF !important;
    /* Pure White */
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* Ensure mobile menu matches */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #FFFFFF;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

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

/* Logo in mobile menu */
.navbar-collapse img[alt="Logo"] {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav.navbar-nav li a {
    color: var(--prm-text-main) !important;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    padding-bottom: 5px;
}

/* Sliding Underline Effect */
.nav.navbar-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--prm-orange);
    transition: width 0.3s ease-in-out;
}

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

.nav.navbar-nav li.active a {
    color: var(--prm-orange) !important;
}

.navbar-toggle i {
    color: var(--prm-text-main) !important;
}

/* Enhanced Button Effects */
.btn-ecc-primary,
.btn-ecc-white {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-ecc-primary::before,
.btn-ecc-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn-ecc-primary:hover::before,
.btn-ecc-white:hover::before {
    left: 100%;
}


/* --- Hero Section --- */
.hero-ecc {
    padding-top: 140px;
    padding-bottom: 80px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero-left {
    padding-right: 20px;
}

.hero-badge {
    background: var(--prm-orange);
    color: #000;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--prm-text-main);
}

/* Ensure brand color in hero for contrast on white background */
.hero-ecc .text-teal {
    color: var(--prm-purple) !important;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--prm-text-body);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-img-container {
    position: relative;
    text-align: center;
}

.hero-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-img-container:hover img {
    transform: scale(1.02);
}



/* --- Stats Bar --- */
.stats-bar {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--prm-purple-light);
    color: var(--prm-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.stat-info h4 {
    margin: 0;
    font-size: 24px;
    color: var(--prm-purple);
}

.stat-info p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    font-size: 13px;
    color: #888;
}


/* --- About Us --- */
.section-about {
    padding: 100px 0;
    overflow: hidden;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.main-about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.about-experience-card {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--prm-purple);
    color: var(--prm-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(65, 30, 61, 0.3);
    text-align: center;
    border: 5px solid var(--prm-white);
}

.about-experience-card h3 {
    color: var(--prm-orange);
    font-size: 40px;
    margin: 0;
}

.about-experience-card p {
    color: var(--prm-white);
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.feature-icon-mini {
    width: 35px;
    height: 35px;
    background: var(--prm-purple-light);
    color: var(--prm-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-item h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 15px;
    margin-bottom: 0;
}

/* --- Services Grid --- */
.section-services {
    padding: 100px 0;
}

.service-card-ecc {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card-ecc:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--prm-purple-light);
}

.service-card-ecc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--prm-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card-ecc:hover::before {
    transform: scaleX(1);
}

.service-icon-ecc {
    margin-bottom: 25px;
}

.service-icon-ecc i {
    font-size: 40px;
    color: var(--prm-purple);
}

.service-card-ecc h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* --- Colleges Section --- */
.section-colleges {
    padding: 80px 0;
}

.college-logo {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    position: relative;
    border: 1px solid #f0f0f0;
}

.college-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--prm-purple-light);
}

.college-logo img {
    max-height: 40px;
    max-width: 100%;
    margin-bottom: 10px;
}

.college-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--prm-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.city-group h3 {
    border-left: 4px solid var(--prm-orange);
    padding-left: 15px;
    color: var(--prm-purple);
}

/* --- Footer Redesign --- */
footer.ecc-footer {
    background-color: #FFFFFF;
    color: var(--prm-text-body);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

footer.ecc-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--prm-orange), #f0f0f0);
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget h3 {
    color: var(--prm-text-main);
    font-size: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--prm-orange);
    border-radius: 3px;
}

.footer-widget p {
    color: var(--prm-text-body);
    font-size: 15px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: var(--prm-text-body) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links li a i {
    font-size: 12px;
    margin-right: 10px;
    color: var(--prm-orange);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--prm-orange) !important;
    padding-left: 8px;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    display: flex;
    margin-bottom: 20px;
}

.footer-contact-info li i {
    width: 40px;
    height: 40px;
    background: #f8f8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--prm-orange);
    font-size: 16px;
}

.footer-contact-info li .info-text {
    flex: 1;
}

.footer-contact-info li .info-text p {
    margin: 0;
    color: var(--prm-text-body);
}

.footer-contact-info li .info-text span {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--prm-text-main);
}

.footer-social {
    margin-top: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #f8f8f8;
    color: var(--prm-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--prm-orange);
    color: var(--prm-white);
    transform: translateY(-5px);
}

/* Newsletter Box */
.newsletter-form {
    background: #f8f8f8;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
}

.newsletter-form h4 {
    color: var(--prm-text-main);
    margin-bottom: 15px;
}

.newsletter-input-group {
    position: relative;
    margin-top: 20px;
}

.newsletter-input-group input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--prm-text-main);
    outline: none;
}

.newsletter-input-group button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--prm-orange);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
    background: #e58718;
}

.footer-bottom {
    background: #f8f8f8;
    padding: 25px 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Specific Contact Card Style for Dark Theme */
.contact-card-dark {
    background: #FFFFFF;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    box-shadow: var(--shadow-card);
    margin-bottom: 50px;
}

.contact-card-dark .form-control {
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    color: var(--prm-text-main) !important;
}

.contact-card-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* --- Testimonials --- */
.section-testimonials {
    padding: 100px 0;
    background-color: var(--prm-purple-light);
    /* Light Purple Background */
}

.testimonial-card-ecc {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote-icon {
    font-size: 40px;
    color: var(--prm-orange);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--prm-text-body);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
    margin-right: 15px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h5 {
    font-size: 16px;
    margin: 0;
    color: var(--prm-purple);
}



/* --- Booking Modal --- */
.modal-content-ecc {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-content-ecc .form-control {
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid #eee;
    background: #fcfcfc;
    height: auto;
    font-size: 15px;
}

.modal-content-ecc .form-control:focus {
    border-color: var(--prm-orange);
    box-shadow: none;
    background: #fff;
}

.modal-header .close {
    outline: none;
    opacity: 0.5;
}

/* --- Process Section (Roadmap) --- */
.section-process {
    padding: 100px 0;
    background-color: var(--prm-white);
    position: relative;
    overflow: hidden;
}

.process-container {
    position: relative;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 70px;
    bottom: 70px;
    width: 3px;
    background: var(--prm-purple-light);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-content {
    width: 45%;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.process-step:hover .process-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--prm-purple-light);
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--prm-purple);
    color: var(--prm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid var(--prm-white);
    box-shadow: 0 0 0 3px var(--prm-purple-light);
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    background: var(--prm-orange);
    transform: translateX(-50%) scale(1.1);
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-content h4 {
    color: var(--prm-purple);
    margin-bottom: 10px;
    font-size: 20px;
}

.process-content p {
    margin-bottom: 0;
    font-size: 15px;
}

.process-icon-box {
    width: 45%;
    text-align: center;
}

.process-icon-box i {
    font-size: 50px;
    color: var(--prm-purple-light);
    transition: all 0.3s ease;
}

.process-step:hover .process-icon-box i {
    color: var(--prm-orange);
    transform: rotate(10deg);
}

@media (max-width: 991px) {
    .process-line {
        left: 30px;
    }

    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 70px;
    }

    .process-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }

    .process-icon-box {
        width: 100%;
        text-align: left;
        display: none;
    }

    .process-step:hover .process-number {
        transform: translateX(-50%) scale(1.1);
    }
}