/*
Theme Name:   GeneratePress Child
Theme URI:    https://elkgrovesmilecenter.com/wp-blog/generatepress-child/
Description:  Child theme for GeneratePress
Author:       Osky Dental
Author URI:   https://elkgrovesmilecenter.com/wp-blog/
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepresschild
*/


/* ================= SECTION ================= */
.egsc_blog_section {
    padding: 90px 0;
    background: #f7f7f7;
}

/* ================= HEADER ================= */
.egsc_blog_header {
    text-align: center;
    margin-bottom: 60px;
}

.egsc_blog_title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ================= GRID ================= */
.egsc_blog_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* ================= CARD ================= */
.egsc_blog_card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* HOVER EFFECT */
.egsc_blog_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* ================= IMAGE ================= */
.egsc_blog_img {
    display: block;
}

.egsc_blog_img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Keeps card heights even for the few posts with no image in the source. */
.egsc_blog_img_placeholder {
    display: block;
    width: 100%;
    height: 240px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%),
        linear-gradient(135deg, #e0b54d 0%, #c9992f 100%);
}

/* ================= CONTENT ================= */
.egsc_blog_content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* META */
.egsc_blog_meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

/* ================= H3 ================= */
.egsc_blog_heading {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.egsc_blog_heading a {
    text-decoration: none;
    color: #1a1a1a;
    transition: 0.3s;
}

.egsc_blog_heading a:hover {
    color: #03a0b3; /* subtle highlight */
}

/* TEXT */
.egsc_blog_excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;
}

/* BUTTON */
.egsc_blog_btn {
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #03a0b3;
    display: inline-block;
}

.egsc_blog_btn:hover {
    text-decoration: underline;
}

/* ================= PAGINATION ================= */
.egsc_blog_pagination {
    margin-top: 60px;
    text-align: center;
}

.egsc_blog_pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #333;
}

.egsc_blog_pagination .current {
    background: #03a0b3;
    color: #fff;
    border-color: #03a0b3;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .egsc_blog_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .egsc_blog_grid {
        grid-template-columns: 1fr;
    }

    .egsc_blog_section {
        padding: 60px 0;
    }

    .egsc_blog_title {
        font-size: 30px;
    }

    .egsc_blog_img img {
        height: 200px;
    }
}



/*Blog Detail Page */

/* ================= HERO ================= */
.egsc_single_hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.egsc_single_hero_bg img {
    position: absolute;
    width: 100%;
    height: 450px;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* Overlay */
.egsc_single_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Content */
.egsc_single_hero_content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Breadcrumb */
.egsc_single_breadcrumb {
    font-size: 14px;
    margin-bottom: 12px;
}

.egsc_single_breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.egsc_single_breadcrumb span {
    margin: 0 6px;
}

/* TITLE */
.egsc_single_title {
    font-size: 42px !important;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* META */
.egsc_single_meta {
    font-size: 14px;
    color: #ddd;
}

/* ================= CONTENT ================= */
.egsc_single_content {
    padding: 90px 0;
    background: #f7f7f7;
}

/* CARD */
.egsc_single_card {
    background: #fff;
    padding: 50px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* TEXT WRAP */
.l_single_content_wrap {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* ================= H2 ================= */
.l_single_content_wrap h2 {
    font-size: 30px;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* ================= H3 ================= */
.l_single_content_wrap h3 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* TEXT */
.l_single_content_wrap p {
    margin-bottom: 18px;
}

/* IMAGE RULE */
.l_single_content_wrap img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin: 25px 0;
}

/* LIST */
.l_single_content_wrap ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.l_single_content_wrap li {
    margin-bottom: 10px;
}

/* LINKS */
.l_single_content_wrap a {
    color: #03a0b3;
    text-decoration: underline;
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {

    .egsc_single_hero {
        height: 300px;
    }

    .egsc_single_hero_bg img {
        height: 300px;
    }

    .egsc_single_title {
        font-size: 26px !important;
    }

    .egsc_single_content {
        padding: 60px 0;
    }

    .egsc_single_card {
        padding: 25px;
    }

    .l_single_content_wrap img {
        height: auto;
    }

    .l_single_content_wrap h2 {
        font-size: 24px;
    }

    .l_single_content_wrap h3 {
        font-size: 20px;
    }
}