/* Endura Home Care - Premium Clinical Corporate Medical Design System */

:root {
    --primary: #0F766E;        /* Solid Teal 800 */
    --secondary: #14B8A6;      /* Solid Teal 500 */
    --accent: #10B981;         /* Emerald 500 */
    --white: #FFFFFF;
    --surface: #F8FAFC;        /* Slate 50 */
    --dark: #1E293B;           /* Slate 800 */
    --dark-muted: #475569;     /* Slate 600 */
    --border: #E2E8F0;         /* Slate 200 */
}

/* Base Body Styling */
body {
    background-color: var(--surface);
    color: var(--dark);
    font-family: 'Inter', 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.glass-nav.scrolled {
    background: rgba(15, 118, 110, 0.98);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.15);
}

/* Premium Card hover effects */
.premium-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--white);
    border: 1px solid var(--border);
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.08);
    border-color: var(--secondary);
}

/* Glow highlights */
.glow-primary {
    box-shadow: 0 0 50px rgba(15, 118, 110, 0.15);
}

.glow-secondary {
    box-shadow: 0 0 50px rgba(20, 184, 166, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Mega Menu Custom Styling */
.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-item-mega:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Floating Actions Button Hover */
.float-btn {
    transition: all 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Admissions Timeline */
.timeline-path {
    position: relative;
}

.timeline-path::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--border);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-path::before {
        left: 20px;
    }
}

.timeline-dot {
    background-color: var(--primary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--secondary);
}

/* Counter Text Animation */
.counter-value {
    font-weight: 800;
}

/* Custom buttons */
.btn-solid-primary {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-solid-primary:hover {
    background-color: #0d635c;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.btn-solid-secondary {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-solid-secondary:hover {
    background-color: #0f9f8f;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.2);
}

/* WhatsApp Widget Pulse */
.whatsapp-widget {
    background-color: #25D366;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Image Containers */
.img-zoom-container {
    overflow: hidden;
    position: relative;
}

.img-zoom-container img {
    transition: transform 0.6s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.06);
}

/* Carousel controls Custom styling */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
}

p {
    color: var(--dark-muted);
}

/* ========================================
   CUSTOMER REVIEWS SECTION
======================================== */

.reviews-section {
    padding: 120px 0;
    background-color: #f8fafc;
}

.reviews-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Section Heading */

.reviews-heading {
    text-align: center;
    margin-bottom: 64px;
}

.reviews-subtitle {
    display: block;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.reviews-title {
    color: #134e4a;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
}

.reviews-description {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}


/* ========================================
   REVIEWS GRID
======================================== */

.reviews-grid {
    display: grid;

    /* Four cards per row on desktop */
    grid-template-columns: repeat(4, minmax(0, 1fr));

    /* Horizontal and vertical spacing */
    column-gap: 32px;
    row-gap: 36px;

    align-items: stretch;
}


/* ========================================
   INDIVIDUAL REVIEW BOX
======================================== */

.review-box {
    background-color: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    /* Space inside each card */
    padding: 28px;

    /* Prevent text from overflowing */
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;

    /* Equal height within each grid row */
    height: 100%;

    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.review-box:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
    transform: translateY(-3px);
}


/* ========================================
   CUSTOMER NAME AND AVATAR
======================================== */

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 22px;
    min-width: 0;
}

.review-avatar {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ccfbf1;
    color: #115e59;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.review-customer {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.review-name {
    margin: 0;

    color: #0f172a;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* ========================================
   STARS AND REVIEW DATE
======================================== */

.review-rating {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    gap: 8px 12px;

    margin-bottom: 22px;
}

.review-stars {
    color: #eab308;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-date {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}


/* ========================================
   REVIEW CONTENT
======================================== */

.review-content {
    margin: 0;

    color: #475569;

    font-size: 14px;
    line-height: 1.9;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* ========================================
   GOOGLE REVIEWS BUTTON
======================================== */

.reviews-button-container {
    display: flex;
    justify-content: center;
    align-items: center;

    /* Space after the last row of cards */
    margin-top: 64px;

    /* Space after the button */
    margin-bottom: 24px;
}

.reviews-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 18px 32px;

    background-color: #115e59;
    color: #ffffff;

    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.reviews-button:hover {
    background-color: #0f766e;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.reviews-button i {
    font-size: 17px;
}


/* ========================================
   TABLET RESPONSIVE
======================================== */

@media (max-width: 1024px) {

    .reviews-section {
        padding: 100px 0;
    }

    .reviews-container {
        padding: 0 28px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 26px;
        row-gap: 30px;
    }

    .reviews-title {
        font-size: 36px;
    }

    .review-box {
        padding: 26px;
    }

}


/* ========================================
   MOBILE RESPONSIVE
======================================== */

@media (max-width: 640px) {

    .reviews-section {
        padding: 80px 0;
    }

    .reviews-container {
        padding: 0 20px;
    }

    .reviews-heading {
        margin-bottom: 42px;
    }

    .reviews-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .reviews-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .reviews-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .reviews-grid {
        grid-template-columns: minmax(0, 1fr);

        row-gap: 24px;
    }

    .review-box {
        padding: 24px;
        border-radius: 18px;
    }

    .review-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .review-name {
        font-size: 14px;
    }

    .review-rating {
        margin-bottom: 18px;
    }

    .review-content {
        font-size: 14px;
        line-height: 1.85;
    }

    .reviews-button-container {
        margin-top: 44px;
        margin-bottom: 16px;
    }

    .reviews-button {
        padding: 16px 22px;
        gap: 10px;
        font-size: 13px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {

    .reviews-container {
        padding: 0 14px;
    }

    .reviews-title {
        font-size: 26px;
    }

    .review-box {
        padding: 20px;
    }

    .reviews-button {
        padding: 14px 18px;
        font-size: 12px;
    }

}