
/* =========================================================
   HOME PAGE - home.css
   Neha Eye Centre
   ========================================================= */

.home-content {
    width: 96%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 35px 0 55px;
}


/* =========================================================
   FOUR FEATURE CARDS
   ========================================================= */

.home-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 0 45px;
}

.home-card {
    position: relative;
    display: flex;
    flex-direction: column;

    min-height: 300px;
    padding: 0;

    background: #ffffff;
    border: 1px solid #dcecef;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(7, 59, 92, 0.08);

    text-decoration: none;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.home-card::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background: #35b8c5;

    z-index: 3;
}

.home-card:hover {
    transform: translateY(-6px);

    border-color: #b9dfe5;

    box-shadow:
        0 12px 30px rgba(7, 59, 92, 0.14);
}


/* =========================================================
   CARD GRAPHIC AREA
   ========================================================= */

.card-graphic {
    position: relative;

    width: 100%;
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #edf9fa 0%,
            #f7fcfd 55%,
            #e7f5f7 100%
        );

    overflow: hidden;
}


/* Decorative circles */

.card-graphic::before,
.card-graphic::after {
    content: "";
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.card-graphic::before {
    width: 100px;
    height: 100px;

    right: -42px;
    top: -48px;

    border: 1px solid rgba(53, 184, 197, 0.18);
}

.card-graphic::after {
    width: 65px;
    height: 65px;

    left: -30px;
    bottom: -34px;

    background: rgba(53, 184, 197, 0.08);
}


/* =========================================================
   CARD 1 - EYE GRAPHIC
   ========================================================= */

.graphic-eye {
    position: relative;

    width: 82px;
    height: 48px;

    border: 3px solid #087c91;
    border-radius: 70% 15%;
    transform: rotate(45deg);

    z-index: 2;
}

.eye-pupil {
    position: absolute;

    width: 23px;
    height: 23px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(-45deg);

    background: #087c91;

    border-radius: 50%;

    box-shadow:
        0 0 0 7px rgba(8, 124, 145, 0.12);
}

.eye-pupil::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    top: 4px;
    left: 5px;

    background: #ffffff;

    border-radius: 50%;
}


/* =========================================================
   CARD 2 - MEDICAL CROSS GRAPHIC
   ========================================================= */

.graphic-cross {
    position: relative;

    width: 58px;
    height: 58px;

    z-index: 2;
}

.graphic-cross span {
    position: absolute;

    display: block;

    background: #0a8297;

    border-radius: 7px;
}

.graphic-cross span:first-child {
    width: 58px;
    height: 18px;

    left: 0;
    top: 20px;
}

.graphic-cross span:last-child {
    width: 18px;
    height: 58px;

    left: 20px;
    top: 0;
}


/* =========================================================
   CARD 3 - CALENDAR GRAPHIC
   ========================================================= */

.graphic-calendar {
    position: relative;

    width: 66px;
    height: 58px;

    background: #ffffff;

    border: 3px solid #087c91;
    border-radius: 7px;

    box-shadow:
        0 5px 12px rgba(7, 59, 92, 0.10);

    z-index: 2;
}

.calendar-top {
    position: absolute;

    left: -3px;
    top: -3px;

    width: calc(100% + 6px);
    height: 15px;

    background: #087c91;

    border-radius: 5px 5px 0 0;
}

.calendar-top::before,
.calendar-top::after {
    content: "";

    position: absolute;

    top: -6px;

    width: 7px;
    height: 13px;

    background: #087c91;

    border-radius: 4px;
}

.calendar-top::before {
    left: 13px;
}

.calendar-top::after {
    right: 13px;
}

.calendar-body {
    position: absolute;

    left: 10px;
    right: 10px;
    bottom: 8px;
    top: 22px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 5px;

    align-content: center;
}

.calendar-body i {
    display: block;

    width: 7px;
    height: 7px;

    margin: auto;

    background: #53b8c4;

    border-radius: 50%;
}


/* =========================================================
   CARD 4 - LOCATION GRAPHIC
   ========================================================= */

.graphic-location {
    position: relative;

    width: 54px;
    height: 68px;

    z-index: 2;
}

.graphic-location::before {
    content: "";

    position: absolute;

    width: 43px;
    height: 43px;

    left: 5px;
    top: 2px;

    background: #087c91;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);
}

.location-dot {
    position: absolute;

    width: 15px;
    height: 15px;

    left: 19px;
    top: 16px;

    background: #ffffff;

    border-radius: 50%;

    z-index: 2;
}

.graphic-location::after {
    content: "";

    position: absolute;

    width: 45px;
    height: 9px;

    left: 5px;
    bottom: 1px;

    background: rgba(7, 59, 92, 0.10);

    border-radius: 50%;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 21px 22px 22px;

    text-align: left;
}

.card-content h2 {
    margin: 0 0 9px;

    color: #073b5c;

    font-family:
        "Poppins",
        "Inter",
        Arial,
        sans-serif;

    font-size: 19px;
    font-weight: 600;

    line-height: 1.35;
}

.card-content p {
    margin: 0;

    color: #536b75;

    font-family:
        "Inter",
        "Poppins",
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;

    margin-top: auto;
    padding-top: 17px;

    color: #087c91;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.3;
}

.arrow {
    display: inline-block;

    margin-left: 7px;

    font-size: 18px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}

.home-card:hover .arrow {
    transform: translateX(5px);
}


/* =========================================================
   INTRODUCTION SECTION
   ========================================================= */

.home-introduction {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 55px;

    padding: 38px 42px;

    background:
        linear-gradient(
            135deg,
            #f2fafb 0%,
            #f9fcfd 100%
        );

    border: 1px solid #dcecef;
    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(7, 59, 92, 0.05);
}


/* =========================================================
   INTRODUCTION TEXT
   ========================================================= */

.introduction-text {
    flex: 1;
    max-width: 780px;
}

.introduction-text p {
    margin: 0 0 18px;

    color: #405965;

    font-family:
        "Inter",
        "Poppins",
        Arial,
        sans-serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.8;
}

.introduction-text p strong {
    color: #073b5c;
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;

    margin-top: 3px;

    color: #087c91;

    font-family:
        "Inter",
        "Poppins",
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.read-more span {
    margin-left: 7px;

    font-size: 18px;

    transition:
        transform 0.25s ease;
}

.read-more:hover span {
    transform: translateX(5px);
}

.introduction-image {
    flex: 0 0 400px;
    width: 400px;
    height: 600px;

    overflow: hidden;
    border-radius: 8px;

    box-shadow:
        0 8px 24px rgba(7, 59, 92, 0.12);
}

.introduction-image img {
    display: block;

    width: 400px;
    height: 600px;

    max-width: none;

    object-fit: cover;

    border-radius: 8px;
}

@media (max-width: 767px) {

    .introduction-image {
        flex: none;

        width: 300px;
        height: 450px;

        max-width: 100%;

        margin: 0 auto;
    }

    .introduction-image img {
        width: 300px;
        height: 450px;
    }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .home-content {
        width: 96%;
        padding-top: 30px;
    }

    .home-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .home-card {
        min-height: 285px;
    }

    .home-introduction {
        gap: 35px;
        padding: 32px;
    }

    .introduction-text p {
        font-size: 15px;
        line-height: 1.75;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .home-content {
        width: 98%;
        padding: 25px 0 40px;
    }

    .home-cards {
        grid-template-columns: 1fr;

        gap: 17px;

        margin-bottom: 32px;
    }

    .home-card {
        min-height: 0;
    }

    .card-graphic {
        height: 105px;
    }

    .card-content {
        padding: 19px 20px 21px;
    }

    .card-content h2 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 14px;
    }

    .card-link {
        padding-top: 15px;
    }


    /* Introduction */

    .home-introduction {
        flex-direction: column;
        align-items: stretch;

        gap: 28px;

        padding: 25px 20px 28px;
    }

    .introduction-text {
        max-width: none;
    }

    .introduction-text p {
        font-size: 15px;
        line-height: 1.75;
    }

    .introduction-image {
        flex: none;

        width: 300px;
        height: 450px;

        max-width: 100%;

        margin: 0 auto;
    }

    .introduction-image img {
        width: 300px;
        height: 450px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 350px) {

    .home-content {
        width: 98%;
    }

    .card-content {
        padding-left: 17px;
        padding-right: 17px;
    }

    .home-introduction {
        padding-left: 16px;
        padding-right: 16px;
    }

    .introduction-image {
        width: 100%;
        height: auto;

        aspect-ratio: 2 / 3;
    }

    .introduction-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }

}

