/* Art of Parenting Page Specific Styles */

/* Banner Section */
.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    display: block;
    height: auto;
}

.banner-secondary {
    width: 100%;
    overflow: hidden;
    margin: 60px 0;
}

.banner-secondary img {
    width: 100%;
    display: block;
    height: auto;
}

/* Introduction Section */
.intro-section {
    padding: 60px 0 50px;
    text-align: center;
}

.intro-header {
    margin-bottom: 30px;
}

.intro-logo {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.intro-text {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.intro-text p {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Read More functionality - Hidden on desktop */
.intro-more-text {
    display: inline;
}

.read-more-btn {
    display: none;
}

/* Objectives Section */
.objectives-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.objectives-section .container {
    text-align: center;
}

.objectives-section img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Show desktop infographic by default, hide mobile */
.objectives-section .infographic-desktop {
    display: block;
}

.objectives-section .infographic-mobile {
    display: none !important;
}

/* Hide mobile title and subtitle on desktop */
.objectives-title-mobile,
.objectives-subtitle-mobile {
    display: none;
}

/* Mobile Objectives Text Section */
.objectives-text-section {
    display: none; /* Hidden on desktop */
    padding: 40px 0;
    background-color: #f8f8f8;
}

.objectives-text-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.objectives-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E2188F;
    text-align: center;
    margin-bottom: 30px;
}

.objectives-list {
    padding: 0;
    margin: 0;
}

.objectives-list p {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: 15px 0;
}

.objectives-list hr {
    width: 60px;
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px auto;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #E2188F;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 30px;
}

/* Part 1: Intro Text */
.benefits-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

/* Part 2: Image Columns */
.benefits-row-images {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-col-large,
.benefit-col-small {
    text-align: left;
}

/* Desktop Only Elements - Show on desktop, hide on mobile */
.benefit-img-desktop,
.benefit-title-desktop,
.benefit-desc-desktop {
    display: block;
}

.benefit-img-desktop {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.benefit-title-desktop {
    font-size: 18px;
    font-weight: 700;
    color: #E2188F;
    margin-bottom: 10px;
}

.benefit-desc-desktop {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Only Elements - Hide on desktop */
.benefit-title-mobile,
.benefit-img-mobile,
.benefit-desc-mobile {
    display: none;
}

/* Part 3 & 4: Alternate Rows - Desktop */
.benefits-row-alternate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

/* Desktop: Text box on left, image on right */
.benefits-alternate-left .benefit-text-box.benefit-desktop {
    grid-column: 1;
    grid-row: 1;
    background-color: #f5f5f5;
    padding: 40px 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-alternate-left .benefit-image-box.benefit-desktop {
    grid-column: 2;
    grid-row: 1;
}

/* Desktop: Image on left, text box on right */
.benefits-alternate-right .benefit-image-box.benefit-desktop {
    grid-column: 1;
    grid-row: 1;
}

.benefits-alternate-right .benefit-text-box.benefit-desktop {
    grid-column: 2;
    grid-row: 1;
    background-color: #f5f5f5;
    padding: 40px 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-text-box.benefit-desktop h3 {
    font-size: 18px;
    font-weight: 700;
    color: #E2188F;
    margin-bottom: 15px;
}

.benefit-text-box.benefit-desktop p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.benefit-image-box.benefit-desktop {
    display: flex;
    align-items: stretch;
}

.benefit-image-box.benefit-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Delivery Section */
.delivery-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.section-description {
    text-align: center;
    font-size: 16px;
    color: #333;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.delivery-item {
    text-align: center;
}

/* Desktop Only Elements */
.delivery-img-desktop,
.delivery-content-desktop {
    display: block;
}

.delivery-img-desktop {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

.delivery-content-desktop h3 {
    font-size: 18px;
    font-weight: 700;
    color: #E2188F;
    margin-bottom: 10px;
}

.delivery-content-desktop p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Only Elements - Hide on desktop */
.delivery-title-mobile,
.delivery-img-mobile,
.delivery-desc-mobile {
    display: none;
}

/* Outcomes Section */
.outcomes-section {
    padding: 60px 0;
    background-color: #fff;
}

.outcomes-section .section-description {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.outcome-box {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outcome-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.projects-grid {
    max-width: 1200px;
    margin: 40px auto 0;
}

.projects-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.projects-row.projects-single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-item {
    text-align: center;
}

.project-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.5;
    text-align: center;
}

/* Project Carousel Styles */
.project-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    line-height: 1;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 0;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #E2188F;
}

.carousel-indicator:hover {
    background-color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .benefits-row-images {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-row-alternate {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-row.projects-single {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .intro-text {
        padding: 0 20px;
    }

    /* Read More functionality - Mobile only */
    .intro-more-text {
        display: none;
    }

    .intro-text.expanded .intro-more-text {
        display: inline;
    }

    .read-more-btn {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 24px;
        background-color: #E2188F;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .read-more-btn:hover {
        background-color: #c41478;
    }

    .intro-text.expanded .read-more-btn {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .benefits-intro {
        padding: 0 20px;
        font-size: 14px;
    }

    .benefits-row-images {
        grid-template-columns: 1fr;
    }

    /* ========================================
       MOBILE VIEW: Completely separate design
       ALL FOUR sections use identical mobile classes
       Sequence: Title → Image → Text
       ======================================== */

    /* Hide ALL desktop-only elements */
    .benefit-img-desktop,
    .benefit-title-desktop,
    .benefit-desc-desktop,
    .benefit-desktop {
        display: none !important;
    }

    /* Show and style ALL mobile-only elements identically */
    .benefit-col-large,
    .benefit-col-small,
    .benefits-row-alternate {
        display: block;
        text-align: center;
        margin-bottom: 40px;
    }

    /* Mobile Title - Same for all 4 sections */
    .benefit-title-mobile {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: #E2188F;
        margin: 0 0 20px 0;
        padding: 0;
        text-align: center;
    }

    /* Mobile Image - Same for all 4 sections */
    .benefit-img-mobile {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 0 0 20px 0;
        padding: 0;
    }

    /* Mobile Description - Same for all 4 sections */
    .benefit-desc-mobile {
        display: block;
        font-size: 14px;
        color: #666;
        line-height: 1.7;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    /* ========================================
       DELIVERY SECTION - MOBILE VIEW
       Sequence: Title → Image → Text
       ======================================== */

    /* Hide desktop delivery elements */
    .delivery-img-desktop,
    .delivery-content-desktop {
        display: none !important;
    }

    /* Show and style mobile delivery elements */
    .delivery-item {
        display: block;
        text-align: center;
        margin-bottom: 40px;
    }

    .delivery-title-mobile {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: #E2188F;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .delivery-img-mobile {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 0 0 20px 0;
    }

    .delivery-desc-mobile {
        display: block;
        font-size: 14px;
        color: #666;
        line-height: 1.7;
        margin: 0;
        text-align: center;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .outcome-box {
        padding: 25px 18px;
    }

    /* Show mobile infographic and objectives text on mobile */
    .objectives-section .infographic-desktop {
        display: none !important;
    }

    .objectives-section .infographic-mobile {
        display: block !important;
    }

    /* Show mobile title and subtitle */
    .objectives-title-mobile {
        display: block;
        margin-bottom: 15px;
    }

    .objectives-subtitle-mobile {
        display: block;
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .objectives-text-section {
        display: block;
    }

    /* Hide title and subtitle in text section on mobile (shown in objectives-section instead) */
    .objectives-text-section .section-title,
    .objectives-text-section .objectives-subtitle {
        display: none;
    }

    .objectives-list {
        text-align: center;
    }

    .objectives-list p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .intro-logo {
        max-width: 350px;
    }

    .intro-text p,
    .section-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .benefits-intro {
        font-size: 13px;
    }

    /* Smaller mobile: Adjust font sizes for all mobile elements */
    .benefit-title-mobile {
        font-size: 16px;
    }

    .benefit-desc-mobile {
        font-size: 13px;
    }

    .delivery-title-mobile {
        font-size: 16px;
    }

    .delivery-desc-mobile {
        font-size: 13px;
    }

    .outcome-box {
        padding: 20px 15px;
    }

    .outcome-box p {
        font-size: 13px;
    }

    .intro-section {
        padding: 40px 0 30px;
    }

    .objectives-section {
        padding: 40px 0;
    }

    .objectives-text-section {
        padding: 30px 0;
    }

    .objectives-subtitle-mobile {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .objectives-list p {
        font-size: 13px;
        margin: 12px 0;
    }

    .benefits-section {
        padding: 40px 0;
    }

    .delivery-section {
        padding: 40px 0;
    }

    .outcomes-section {
        padding: 40px 0;
    }

    .projects-section {
        padding: 40px 0;
    }

    .banner-secondary {
        margin: 40px 0;
    }
}

/* Extra small mobile improvements */
@media (max-width: 375px) {
    .intro-logo {
        max-width: 280px;
    }

    .carousel-nav {
        padding: 8px 12px;
        font-size: 24px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}
