.customer-container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.customer-top-grid {
    margin-bottom: 20px;
}

/* =======================
   TOP SECTION
======================= */
.top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-layout .center a,
.top-featured a {
    height: 100%;
}

.top-featured,
.top-grid .card:nth-child(2),
.top-grid .card:nth-child(3),
.top-grid .card:nth-child(4),
.top-grid .card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
}

/* =======================
   CARD STYLING
======================= */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover img {
    transform: scale(1.05);
}
.card:hover .time,
.card:hover .meta,
.card:hover .title {
    color: #ffffff;
}
.card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgb(0, 0, 0), transparent);
    display: block;
}
.card .time,
.card .meta {
    font-size: 12px;
    color: #cccccc;
    margin-top: 6px;
    transition: color 0.5s ease;
}
.card .time {
    margin-top: 0;
    margin-bottom: 8px;
}
.card .title {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #dddddd;
    transition: color 0.5s ease;
}

.grid-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left1" "left2" "right1" "right2";
}

#customerRowBottomGrid2 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: -76px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.image-left-align,
.image-right-align {
    max-width: 100%;
    margin-bottom: 20px;
}

/* Assign grid areas */
.left1 {
    grid-area: left1;
}

.left2 {
    grid-area: left2;
}

.center {
    grid-area: center;
}

.right1 {
    grid-area: right1;
}

.right2 {
    grid-area: right2;
}

.top-featured .title,
.center .title {
    font-size: 26px;
}

/* ======================
    for videos
======================= */
#customerVideos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 3rem 0;
}
#customerVideos .embed-responsive {
    background-color: #000000;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
}
#customerVideos h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
    margin-top: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ==========================
   MOBILE
========================== */
@media (min-width: 768px) {
    .image-left-align {
        float: left;
        margin-right: 20px;
    }
    .image-right-align {
        float: right;
        margin-left: 20px;
    }
    .image-left-align,
    .image-right-align {
        max-width: 350px;
    }
    #customerRowBottomGrid2 {
        margin-top: -40px;
    }
    #customerRowBottomGrid2,
    .top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .top-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    .grid-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "left1 left2" "center center" "right1 right2";
    }
    #customerVideos {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .image-left-align,
    .image-right-align {
        max-width: 500px;
    }
    .top-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    #customerRowBottomGrid2 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        margin-top: -20px;
    }
    .top-featured {
        grid-column: 1/2;
        grid-row: 1/3;
    }
    .top-grid .card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    .top-grid .card:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }
    .top-grid .card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    .top-grid .card:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }
    .grid-layout {
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        grid-template-areas: "left1 center right1" "left2 center right2";
    }
    .top-heading h3 {
        max-width: 1000px;
    }
    #customerVideos {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
@media (max-width: 1200px) {
    .top-featured .title,
    .center .title {
        font-size: 1.5rem;
    }
    .title {
        font-size: 1rem;
    }
    .overlay {
        padding: 20px 10px 10px;
    }
}
/* ==========================
   MOBILE
========================== */
@media (max-width: 600px) {
    .grid-layout,
    .left-column,
    .right-column,
    .top-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    .top-grid {
        grid-template-rows: 1fr;
    }
    .title {
        font-size: 16px;
    }
    .center .title {
        font-size: 20px;
    }
}
/* ==========================
    single page
========================== */
.restro-green-color {
    color: #00897b;
}

.top-heading h3 {
    margin: 0 auto;
    font-size: 1.5rem;
    padding: 1rem 0 0;
    text-transform: uppercase;
    font-weight: 500 !important;
    text-align: center;
}
.customer-story-single-page {
    text-align: justify;
}
.customer-story-single-page img {
    border-radius: 12px;
    box-shadow: 0 1px 7px 0 #cccccc;
    margin-bottom: 15px;
    width: 100%;
}
.customer-story-single-page .hero {
    margin-bottom: 20px;
}
.customer-story-single-page p {
    font-size: 1.2rem;
    line-height: 1.8;
}
.customer-story-single-page .secondary-text {
    font-size: 1.5rem;
    padding-bottom: 20px;
}
.customer-story-single-page .secondary-text:first-letter {
    font-size: 5rem;
    float: left;
    line-height: 5.3rem;
    margin-right: 0.7rem;
}
.customer-story-single-page .share-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 1.5rem;
}
.customer-story-single-page .share-panel li {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border: 1px solid #cccccc;
    border-radius: 50%;
}
.customer-story-single-page .share-panel li:hover {
    border-color: #007bff;
}
.customer-story-single-page .share-panel li a {
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
    border-radius: 50%;
    color: #343a40;
}
.customer-story-single-page .share-panel li a:hover {
    color: #007bff;
}

@media (min-width: 768px) {
    .top-heading h3 {
        font-size: 3.7rem;
        padding: 3rem 0 1rem;
    }
    .customer-story-single-page .hero {
        margin-bottom: 4rem;
    }
    .customer-story-single-page .share-panel {
        margin-bottom: 4rem;
    }
    .customer-story-single-page .secondary-text {
        margin-bottom: 70px !important;
        padding: 0 70px;
    }
}
