/* 0) GLOBAL RESET */
html,
body,
#root,
.homepage {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* font-family: 'Open Sans', sans-serif; */
}

/* 1) CAROUSEL & SLIDES */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 1s ease;
}

.slide.active {
    left: 0;
    opacity: 1;
}

/* 2) OVERLAY */
.overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 40%;
    text-align: left;
}

.slide .pretitle,
.slide .title,
.slide .buttons {
    opacity: 0;
    transform: translateX(-50px);
}

.pretitle {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #12214a; /* changed */
}

.title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem;
    color: #12214a; /* changed */
}

.about-heading {
    padding: 30px 20px;
    font-size: clamp(24px, 3vw, 40px);
    color: #1a1a50;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 3px solid #1a1a50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.about-text {
    color: #2d3748;
    text-align: left;
    margin: 30px auto;
    max-width: 1200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    padding: 0 20px;
}

.about-text h1,
.about-text h2,
.about-text h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a50;
}

.about-text p {
    padding: 15px 0;
    color : grey;
    margin: 0;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    padding-left: 20px;
}

.about-text p:hover {
    border-left-color: #1a1a50;
    background-color: #fafbff;
    transform: translateX(5px);
}

.about-text p:first-child {
    font-weight: 600;
    color: #1a1a50;
    font-size: 1.3rem;
    border-left: none;
    background: linear-gradient(90deg, #1a1a50, transparent);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.about-text p:first-child:hover {
    transform: none;
    background: linear-gradient(90deg, #1a1a50, #2c2c80);
}

.about-text a {
    color: #20306d; /* or any contrasting color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-text a:hover {
    color: #12214a; /* darker shade on hover */
    text-decoration: underline;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide.active .pretitle {
    animation: slideInFromLeft 1s ease-out forwards 0.3s;
}

.slide.active .title {
    animation: slideInFromLeft 1.2s ease-out forwards 0.6s;
}

.slide.active .buttons {
    animation: slideInFromLeft 1.4s ease-out forwards 0.9s;
}

/* 5) TEXT STYLES */
.pretitle {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #fff;
}

.title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem;
    color: #fff;
}

/* 6) BUTTONS */
.buttons .btn {
    margin-right: 1rem;
    text-align: center;
    text-decoration: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: background 0.3s, color 0.3s;
}

.btn.solid {
    background: #20306d;
    color: #fff;
}

.btn.solid:hover {
    background: #12214a;
}

.btn.outline {
    text-decoration: none;
    background: transparent;
    color: #fff;
    border-color: #20306d;
}

.btn.outline:hover {
    background: #20306d;
    color: #fff;
}

/* 7) NAV CONTROLS */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #20306d;
    border-radius: 4px;
}

.nav.prev {
    left: 1rem;
}

.nav.next {
    right: 1rem;
}

.nav.prev:hover,
.nav.next:hover {
    background: #12214a;
    color: #fff;
}

/* 8) CONSULT SECTION */
.consult {
    width: 100%;
    background: #12214a;
    text-align: center;
    padding: 3rem 1rem;
    box-sizing: border-box;
}

.consult h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.consult .highlight {
    color: #ffea00;
}

.consult .btn {
    border-radius: 30px;
}

.consult .btn.outline {
    border-color: #fff;
    color: #fff;
}

.consult .btn.outline:hover {
    background: #fff;
    color: #20306d;
}

/* 9) MEDIA QUERIES */
@media (max-width: 768px) {
    .carousel {
        height: 70vh;
    }

    .overlay {
        left: 50%;
        top: 40%;
        transform: translate(-50%, -40%);
        width: 90%;
        max-width: 100%;
    }

    .title {
        font-size: 2.5rem;
        text-align: center;
    }

    .pretitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .buttons .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 0 0.75rem 0;
    }

    .nav {
        font-size: 1.8rem;
        padding: 0.4rem 0.8rem;
    }

    .consult h2 {
        font-size: 1.8rem;
    }
    .about-heading {
        padding: 20px 15px;
        font-size: clamp(24px, 3vw, 32px);
    }
    
    .about-text {
        margin: 20px auto;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .about-text p {
        font-size: 1rem;
        padding: 12px 0;
        padding-left: 15px;
    }
    
    .about-text p:first-child {
        font-size: 1.1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 60vh;
    }

    .overlay {
        left: 50%;
        top: 40%;
        transform: translate(-50%, -40%);
        width: 90%;
        max-width: 100%;
    }

    .title {
        font-size: 1.7rem;
        text-align: center;
    }

    .pretitle {
        font-size: 0.7rem;
        text-align: center;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .buttons .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 0 0.75rem 0;
    }

    .nav {
        font-size: 1.3rem;
        padding: 0.3rem 0.6rem;
    }

    .consult h2 {
        font-size: 1.3rem;
    }
}