/* ===== Martolia Director Quote Box ===== */
.martolia-director-box {
    position: relative;
    background: var(--secondary-color);
    padding: 30px 30px;
    border-radius: 18px;
    border-left: 6px solid var(--accent-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Quote Symbol */
.martolia-quote-symbol {
    position: absolute;
    top: 0px;
    right: 22px;
    font-size: 150px;
    font-family: serif;
    color: var(--accent-color);
    opacity: 0.18;
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s ease;
}

/* Title */
.martolia-director-title {
    font-family: var(--accent-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

/* Highlight Quote */
.martolia-highlight-quote {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Sub Quote */
.martolia-sub-quote {
    font-style: italic;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 18px;
}

/* Message Text */
.martolia-director-text {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
}

/* Name */
.martolia-director-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.martolia-director-name span {
    font-weight: 500;
    color: var(--text-color);
}

/* ===== Hover Animation ===== */
.martolia-director-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 10px rgba(47, 61, 126, 0.25);
}

.martolia-director-box:hover .martolia-quote-symbol {
    transform: scale(1.08) rotate(-5deg);
    transition: transform 0.4s ease;
}

/* service card  css  */
.service-card1 {
    position: relative;
    padding: 14px;
    background: transparent;
}
.service-card1__corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgb(255, 137, 33);
    transition: all 0.6s ease;
}

.service-card1__corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}
.service-card1__corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}
.service-card1__corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}
.service-card1__corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* FULL BORDER ELEMENTS (hidden initially) */
.service-card1__border-horizontal,
.service-card1__border-vertical {
    position: absolute;
    background: rgb(255, 137, 33);
    transition: transform 0.6s ease;
}

.service-card1__border-horizontal {
    height: 3px;
    left: 0;
    right: 0;
    transform: scaleX(0);
}

.service-card1__border-vertical {
    width: 3px;
    top: 0;
    bottom: 0;
    transform: scaleY(0);
}

/* Positions for full borders */
.service-card1__border-top {
    top: 0;
    left: 0;
}
.service-card1__border-bottom {
    bottom: 0;
    left: 0;
}
.service-card1__border-left {
    top: 0;
    left: 0;
}
.service-card1__border-right {
    top: 0;
    right: 0;
}

/* Hover → expand full border */
.service-card1:hover .service-card1__border-horizontal,
.service-card1:hover .service-card1__border-vertical {
    transform: scale(1);
}

/* ========== IMAGE ========== */
.service-card1__img-container {
    padding: 10px;
    border-radius: 5px;
}

.service-card1__img-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.service-card1__img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========== OVERLAY ========== */
.service-card1__overlay {
    position: absolute;
    inset: 0;
    background: var(--re-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card1__zoom-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 23px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: transform 0.4s ease;
}

/* HOVER EFFECTS */
.service-card1:hover .service-card1__img {
    transform: scale(1.12);
}
.service-card1:hover .service-card1__overlay {
    opacity: 1;
    transform: scale(1);
}
.service-card1:hover .service-card1__zoom-icon {
    transform: scale(1);
}

/* TITLE */
.service-card1__title {
    margin-top: 14px;
    height: 56px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
}

.specialty-slider-container {
    margin: 0 auto;
    padding: 0 30px;
}

.specialty-slider {
    width: 100%;
    padding: 10px 0 20px !important;
}

.swiper-wrapper {
    align-items: stretch;
}

.specialty-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 20rem;
    position: relative;
}

.specialty-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.specialty-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.specialty-card:hover .specialty-img img {
    transform: scale(1.15);
}

.specialty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.specialty-card:hover .specialty-overlay {
    opacity: 1;
}

.specialty-overlay-text {
    color: white;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.specialty-overlay-text h4 {
    color: #fff;
}
.specialty-overlay-text p {
    margin-bottom: 0;
}

.specialty-card:hover .specialty-overlay-text {
    transform: translateY(0);
}

/* Navigation - Original Position */
.speciality-sld-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 15px;
}

.speciality-sld-nav .swiper-nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    top: 15px;
}

.speciality-sld-nav .swiper-nav-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    opacity: 1;
    z-index: -1;
}

.speciality-sld-nav .swiper-nav-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(46, 139, 87, 0.3);
}

.speciality-sld-nav .swiper-button-prev::after,
.speciality-sld-nav .swiper-button-next::after {
    display: none;
}

.speciality-sld-nav .swiper-pagination-progress {
    width: 250px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.speciality-sld-nav .swiper-pagination-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color)
    );
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.speciality-sld-nav .swiper-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.speciality-sld-nav .current-slide {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.speciality-sld-nav .total-slides {
    color: #777;
}

/* Services Section - Removed top border animation */
.facility-section {
    background-color: white;
    padding: 100px 0px;
}

.facility-providing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-left: 5px solid var(--accent-color);
}

.facility-providing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.facility-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(
        135deg,
        rgba(47, 61, 126, 0.1),
        rgba(237, 125, 58, 0.1)
    );
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.facility-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    opacity: 0;
    transition: all 0.4s ease;
}

.facility-providing-card:hover .facility-icon::before {
    opacity: 1;
}

.facility-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.facility-providing-card:hover .facility-icon i {
    color: white;
    transform: rotateY(360deg) scale(1.2);
}

.facility-provide-text {
    height: 10rem;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar styling */
.facility-provide-text::-webkit-scrollbar {
    width: 5px;
}

.facility-provide-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.facility-provide-text::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 4px;
}

.facility-provide-text::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        var(--accent-color),
        var(--primary-color)
    );
}

/* For Firefox */
.facility-provide-text {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}
.facility-providing-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.facility-providing-card p {
    color: #777;
    font-size: 1rem;
    line-height: 1.7;
}

/* Project Map Section */
.project-sitemap-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    margin-bottom: 35px;
}

.project-sitemap-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    background-color: #e9f5eb;
    margin-bottom: 25px;
}

.project-sitemap {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}

.project-sitemap:hover {
    transform: scale(1.03);
}

/* ================= MODAL ================= */
.bookNowModal .modal-content {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* ================= HEADER ================= */
.bookNowModal-header {
    background: linear-gradient(135deg, #2f3d7e, #4356b8);
    padding: 18px 26px;
    border-bottom: none;
}

.bookNowModal-header .modal-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
}

.bookNowModal-header .close {
    opacity: 1;
}

.bookNowModal .modal-body {
    padding: 30px 20px;
}
/* ================= FORM ================= */
.bookNowModal-field {
    margin-bottom: 22px;
}

.bookNowModal-field input,
.bookNowModal-field textarea {
    width: 100%;
    background: #f6f7fb;
    border: 1px solid #dcdff1;
    padding: 14px 16px;
    color: #333;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.bookNowModal-field textarea {
    resize: none;
}

.bookNowModal-field input::placeholder,
.bookNowModal-field textarea::placeholder {
    color: #8b8fa8;
}

/* Focus */
.bookNowModal-field input:focus,
.bookNowModal-field textarea:focus {
    background: #ffffff;
    border-color: #ed7d3a;
    box-shadow: 0 0 0 3px rgba(237, 125, 58, 0.15);
    outline: none;
}

/* ================= ERROR ================= */
.error-text {
    color: #e63946;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.modal-backdrop.show {
    opacity: 0.35;
}

.marquee-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

/* Marquee Wrapper */
.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

/* Marquee Text with Blinking Effect */
.marquee-text {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 60px;
    animation: colorBlink 2.5s infinite alternate;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Color Blinking Animation - Red/Yellow Theme */
@keyframes colorBlink {
    0% {
        color: #ff5722; /* Deep Orange */
        text-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
    }
    33% {
        color: #ffc107; /* Amber */
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    }
    66% {
        color: #f44336; /* Red */
        text-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
    }
    100% {
        color: #ff9800; /* Orange */
        text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    }
}

/* Pause on hover */
.marquee-container:hover .marquee-wrapper {
    animation-play-state: paused;
}

/* Gradient overlay for smooth edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


/* Base Toast */
.toast-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    width:fit-content;
    max-width: 90%;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    font-size: 15px;
    z-index: 999999;
}

/* Text */
.toast-text {
    text-align: center;
    flex: 1;
}

/* Icon */
.toast-icon {
    font-size: 20px;
}

/* Success */
.toast-success {
    border-left: 5px solid #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

/* Danger */
.toast-danger {
    border-left: 5px solid #dc3545;
}

.toast-danger .toast-icon {
    color: #dc3545;
}

/* Warning */
.toast-warning {
    border-left: 5px solid #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

/* Animations */
.toast-enter {
    animation: slideDown 0.5s ease-out forwards;
}

.toast-leave {
    animation: slideUp 0.5s ease-in forwards;
}

/* Keyframes */
@keyframes slideDown {
    0% {
        transform: translate(-50%, -40px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -40px);
        opacity: 0;
    }
}





/* Add subtle background pattern */
.marquee-container {
    background-image:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, 0.9) 0%,
            transparent 20%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 255, 255, 0.9) 0%,
            transparent 20%
        );
    background-color: #fefefe;
}
/* Responsive */

  .error-text {
    font-size: 13px;
}

input:has(+ .error-text:not(:empty)),
textarea:has(+ .error-text:not(:empty)) {
    border-color: #dc3545;
}
@media (max-width: 992px) {
 
    .facility-section {
        padding: 50px 0px;
    }
}

@media (max-width: 768px) {
    .marquee-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .marquee-wrapper {
        animation: marquee 20s linear infinite;
    }

    .marquee-container {
        padding: 15px 0;
    }
    .specialty-slider-container {
        padding: 0 15px;
    }

    .swiper-pagination-progress {
        width: 200px;
    }
     .service-card1__img {
        height:13rem;
    }

}

@media (max-width: 576px) {
    .swiper-nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    .facility-section {
        padding: 30px 0px;
    }
    
       .marquee-text {
        font-size: 1.3rem;
        padding: 0 40px;
    }

    .marquee-wrapper {
        animation: marquee 18s linear infinite;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 60px;
    }
      .service-card1__img {
        height:15rem;
    }
    
}

@media (max-width: 400px){
    .service-card1__img {
        height:12rem;
    }
}