/* ==========================================================
   DJJ Healthcare
   service-pages.css
========================================================== */

/* ==========================================================
   ALTERNATE SECTION
========================================================== */
.sectionAlt {
    background: #f7fafc;
    position: relative;
}

/* ==========================================================
   TWO COLUMN SERVICE GRID
========================================================== */
.servicesGridTwo {
    grid-template-columns: repeat(2, 1fr);

    max-width: 1000px;

    margin: 0 auto;
}

/* ==========================================================
   INFO CARD
========================================================== */
.infoCard {
    background: #fff;
    padding: 0 40px 40px 40px;
    margin-top: 110px;
    border-radius: 28px;
    box-shadow: var(--shadow-small);
    transition:
        transform 0.35s,
        box-shadow 0.35s;
}

.infoCard:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.infoCard h3 {
    margin: 24px 0 18px;
    color: var(--primary);
    font-size: 1.7rem;
}

.infoCard p {
    margin: 0;
    color: var(--text-light);
}

.infoCard .serviceImage {
    margin-top: -110px;
}


/* ==========================================================
   INFO ICON
========================================================== */
.infoIcon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #67d6e6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: var(--shadow-small);
}

.infoCard:hover .infoIcon {
    transform: rotate(10deg) scale(1.05);
    transition: 0.35s;
}

/* ==========================================================
   FEATURE SECTION
========================================================== */
.featureSection {
    padding-top: 0;
    padding-bottom: 30px;
    background: linear-gradient(135deg, var(--secondary), #53bfd1);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
/* .featureSection::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -160px;
    right: -140px;
} */

/* .featureSection::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -100px;
    left: -80px;
} */

/* ==========================================================
   FEATURE CARD
========================================================== */
.featureCard {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.featureCard h2 {
    color: #fff;
    margin: 30px 0;
}

.featureCard p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

/* ==========================================================
   FEATURE ICON
========================================================== */
.featureIcon {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================
   GOAL CARD
========================================================== */
.goalCard {
    max-width: 950px;
    margin: 0 auto;
    padding: 70px;
    background: #fff;
    border-radius: 36px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.goalCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.goalCard h2 {
    margin: 22px 0 36px;
}

/* ==========================================================
   BLOCKQUOTE
========================================================== */
.aimSection {
    padding-bottom: 40px;
}

.goalCard blockquote {
    font-size: 1.45rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.8;
    color: var(--primary);
    margin: 0 auto 50px;
    max-width: 760px;
    position: relative;
}

.goalCard blockquote::before {
    content: '“';
    position: absolute;
    left: -30px;
    top: -35px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.08);
    font-family: serif;
}

.goalCard .btn {
    margin-top: 10px;
}

/* ==========================================================
   REVERSE ABOUT GRID
========================================================== */
.aboutGrid.reverse {
    grid-template-columns: 1fr 1fr;
}

.aboutGrid.reverse .aboutImage {
    order: 1;
}

.aboutGrid.reverse .aboutContent {
    order: 2;
}

/* ==========================================================
   TIMELINE
========================================================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 20px 0;
}

/* vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    transform: translateX(-50%);
    border-radius: 10px;
}

/* ==========================================================
   ITEM
========================================================== */
.timelineItem {
    position: relative;
    width: 50%;
    padding: 0 60px 70px;
    box-sizing: border-box;
}

.timelineItem:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timelineItem:nth-child(even) {
    left: 50%;
}

/* ==========================================================
   ICON
========================================================== */
.timelineIcon {
    position: absolute;
    top: 0;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, var(--secondary), #67d6e6); */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
    /* box-shadow: var(--shadow-small); */
    z-index: 5;
}

.timelineItem:nth-child(odd) .timelineIcon {
    right: -37px;
}

.timelineItem:nth-child(even) .timelineIcon {
    left: -37px;
}

/* ==========================================================
   CONTENT
========================================================== */
.timelineContent {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-small);
    transition:
        transform 0.35s,
        box-shadow 0.35s;
}

.revealLeft .timelineContent {
    margin-right: -40px;
    padding-right: 40px;
}

.revealRight .timelineContent {
    margin-left: -40px;
    padding-left: 40px;
}

.timelineContent:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.timelineContent h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.timelineContent p {
    margin: 0;
    color: var(--text-light);
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 992px) {
    .timeline::before {
        left: 37px;
    }

    .timelineItem {
        width: 100%;
        left: 0 !important;
        padding: 0 0 45px 95px;
        text-align: left !important;
    }

    .timelineItem .timelineIcon {
        left: 0 !important;
        right: auto !important;
    }

    .revealLeft .timelineIcon {
        transform: scale(-1, 1);
    }

    .revealLeft .timelineContent {
        margin-left: -40px;
        padding-left: 40px;
        margin-right: 0px;
        padding-right: 30px;

    }

    .servicesGridTwo {
        grid-template-columns: 1fr;
    }

    .goalCard {
        padding: 50px 35px;
    }

    .aboutGrid.reverse {
        grid-template-columns: 1fr;
    }

    .aboutGrid.reverse .aboutImage,
    .aboutGrid.reverse .aboutContent {
        order: initial;
    }
}

@media (max-width: 768px) {
    .infoCard {
        padding: 30px;
    }

    .goalCard {
        padding: 40px 25px;
    }

    .goalCard blockquote {
        font-size: 1.2rem;
    }
}
