﻿/* =========================================
   HERO
========================================= */

.eyecare-hero {
    padding: 120px 0 120px;

    background:
        linear-gradient(rgba(3,30,60,.75), rgba(3,30,60,.75)),
        url("../Images/DSC06658.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    margin: auto;
    color: #fff;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.15;
    font-weight: 700;
    margin: 25px 0;
}

.hero-content p {
    font-size: 22px;
    line-height: 1.6;
    opacity: .9;
}


/* =========================================
   STICKY SPECIALITY NAVIGATION
========================================= */

.speciality-nav {
    background: #fff;
    position: sticky;
    top: 80px;
    z-index: 900;
    padding: 18px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}


/* ONE SINGLE ROW */

.speciality-grid {
    display: flex;
    flex-wrap: nowrap;              /* IMPORTANT */
    gap: 14px;

    overflow-x: auto;               /* horizontal scroll */
    overflow-y: hidden;

    padding: 4px 2px 10px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


/* Chrome / Edge / Safari scrollbar */

.speciality-grid::-webkit-scrollbar {
    height: 5px;
}

.speciality-grid::-webkit-scrollbar-track {
    background: transparent;
}

.speciality-grid::-webkit-scrollbar-thumb {
    background: #c9d3dc;
    border-radius: 10px;
}


/* =========================================
   SPECIALITY CARD
========================================= */

.speciality-card {
    /* Prevent cards from shrinking */
    flex: 0 0 110px;
    min-width: 110px;
    height: 105px;
    background: #f8fbff;
    padding: 15px 8px;
    border-radius: 16px;
   border: 1px solid #e7eef5;
    text-align: center;
    text-decoration: none;
    transition: all .35s ease;
    color: #183153;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ICON */

.speciality-card i {
    font-size: 28px;
   margin-bottom: 9px;
    display: block;
    transition: .3s;
}


/* TEXT */

.speciality-card span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}


/* HOVER */

.speciality-card:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13,110,253,.20);
}


/* =========================================================
   COMMON SERVICE SECTION
========================================================= */

.eye-section {
    padding: 30px 0;
    background: #ffffff;

}


/* Alternate background */

.eye-section:nth-child(even) {
    background: #f8fbff;

}
.eye-section {
    display: none;
}

.eye-section.active-section {
    display: block;
}
.speciality-card.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, .20);
}

.speciality-card.active i {
    color: #fff;
}

/* =========================================================
   SERVICE IMAGE
========================================================= */

.service-image-box {
    position: relative;
    background: #ffffff;
    padding: 12px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(24, 49, 83, .12);

}


/* Main image */

.service-preview-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition:  opacity .25s ease, transform .35s ease;
}


/* Image hover */

.service-image-box:hover .service-preview-image {
    transform: scale(1.02);

}


/* Image caption */

.service-image-caption {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    padding: 12px 18px;
    background: rgba(3, 30, 60, .85);
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(8px);

}


/* =========================================================
   SERVICE CONTENT
========================================================= */

.section-subtitle {
    display: inline-block;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;

}


.eye-section h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #183153;
    margin-bottom: 20px;

}


.service-description {
    color: #5d6b7a;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;

}


/* =========================================================
   SERVICE BLOCK
========================================================= */

.service-block {
    background: #ffffff;
    border: 1px solid #e4ebf2;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .04);

}


/* Heading */

.service-block h5 {
    color: #183153;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;

}


.service-block h5 i {
    color: #0d6efd;
    font-size: 18px;

}


/* =========================================================
   INTERACTIVE SERVICE LIST
========================================================= */

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;

}


.service-list li {
    position: relative;
    padding: 9px 10px;
    border-radius: 8px;
    color: #4d5d6c;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .25s ease,  color .25s ease, transform .25s ease;

}


.service-list li span {
    color: #0d6efd;
    font-weight: 700;
    margin-right: 6px;

}


/* Hover */

.service-list li:hover {
    background: #eef6ff;
    color: #0d6efd;
    transform: translateX(4px);

}


/* Active */

.service-list li.active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(13, 110, 253, .18);

}


.service-list li.active span {
    color: #ffffff;

}


/* =========================================================
   APPOINTMENT BUTTON
========================================================= */

.appointment-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 25px;
    border-radius: 30px;
    background: #0d6efd;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;

}


.appointment-btn:hover {
    background: #0957c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, .2);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .eye-section {
       padding: 60px 0;

    }

    .eye-section h2 {
        font-size: 36px;

    }

    .service-preview-image {
       height: 350px;

    }

    .service-list {
        grid-template-columns: 1fr;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .eye-section {
        padding: 45px 0;

    }

    .eye-section h2 {
        font-size: 30px;

    }

    .service-description {
        font-size: 15px;

    }

    .service-image-box {
        border-radius: 18px;
        margin-bottom: 10px;

    }

    .service-preview-image {
       height: 280px;
        border-radius: 13px;

    }

    .service-image-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
        font-size: 13px;
        padding: 10px 14px;

    }

    .service-block {
        padding: 16px;
        border-radius: 14px;

    }

   .service-list {
        grid-template-columns: 1fr;
        gap: 5px;

    }

    .service-list li {
        font-size: 13px;
        padding: 10px 8px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
    .eye-section h2 {
        font-size: 27px;

    }

    .service-preview-image {
        height: 240px;

    }

}