/*--------------------------------------------------------------
[Custom Stylesheet]

- Page-specific styling for:
  - Landing page (`welcome.blade.php`)
  - Donations page (`donations.blade.php`)
---------------------------------------------------------------*/

/* Shared helpers */

body.landing-page,
body.donations-page {
    background-color: #ffffff;
}

/*--------------------------------------------------------------
Landing page overrides
---------------------------------------------------------------*/

body.landing-page .banner_outer {
    /* Keep banner consistent when used on the landing page explicitly */
    padding-top: 0;
    padding-bottom: 0;
    /* Use the same green gradient as the base theme */
    background: linear-gradient(135deg, #9dcc7e 0%, #7aad5e 100%);
}

/* Features: dashboard mockup sizing (desktop) */
body.landing-page .basic-feature .featurephone img {
    /* Keep original larger size on big screens */
    width: 75%;
    height: auto;
}

/* Offer section: tighter bottom so less gap above search section */
body.landing-page .offer-section {
    padding-bottom: 40px;
}

/* Search section: balanced layout, text left / mockup right */
body.landing-page .search-section {
    padding: 48px 0 32px;
}

/* FAQ section: less top padding so it sits closer to search section */
body.landing-page .accordian-section {
    padding-top: 40px;
}

body.landing-page .search-section .row {
    display: flex;
    align-items: center;
}

/* Vertically center text in its column so it aligns with the image */
body.landing-page .search-section .row > .col-lg-6:first-child {
    display: flex;
    align-items: center;
}

body.landing-page .search-section .search-mockup-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 0;
}

body.landing-page .search-section .search_content {
    padding-right: 20px;
}

body.landing-page .search-section .search_content .search-icon {
    margin-bottom: 16px;
}

body.landing-page .search-section .search_content h2 {
    margin-bottom: 14px;
}

body.landing-page .search-section .search_content p,
body.landing-page .search-section .search_content .p-text {
    padding-right: 0;
    margin-bottom: 10px;
}

body.landing-page .search-section .search_content .p-text {
    margin-bottom: 0;
}

body.landing-page .search-section .search_content .search-button {
    margin-top: 24px;
}

body.landing-page .search-section .search_content .try_free_btn {
    background-color: var(--e-global-color-accent);
    color: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

body.landing-page .search-section .search_content .try_free_btn:hover {
    background-color: var(--e-global-color-secondary);
    color: #fff;
}

/* Override base/responsive absolute positioning - keep mockup in flow, aligned right */
body.landing-page .search-section .search_wrapper {
    position: relative;
    text-align: right;
    width: 100%;
}

body.landing-page .search-section .search_wrapper .search-phone1 {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    margin: 0;
    display: block;
    line-height: 0;
}

body.landing-page .search-section .search_wrapper .search-phone1 img {
    width: 100%;
    max-width: 820px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: 0;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.08)) drop-shadow(0 6px 16px rgba(122, 173, 94, 0.1));
}

body.landing-page .banner_outer .banner_wrapper2 {
    /* Position single hero image similarly to original phones */
    margin-top: -40px;
    text-align: right;
}

body.landing-page .banner_outer .banner_wrapper2 .banner-hero-mockup {
    position: relative;
    z-index: 2;
}

body.landing-page .banner_outer .banner_wrapper2 .banner-hero-mockup img {
    /* Make mockup large but not overflowing */
    width: 120%;
    height: auto;
    min-width: 520px;
    max-width: none;
    display: inline-block;
    object-fit: contain;
}

body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback {
    position: absolute;
    top: -20px;
    right: -60px;
    z-index: 1;
}

body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback img {
    /* Slightly larger than the mockup, contained around phones */
    width: 90%;
    height: auto;
    display: block;
    transform: translate(54px, 89px);
}

/* Reduce extra empty space under the header banner on landing page (base desktop) */
body.landing-page .banner-section {
    padding-top: 80px;
    padding-bottom: 110px;
}

/*--------------------------------------------------------------
Landing page responsive tweaks
---------------------------------------------------------------*/

/* Large tablets / small desktops */
@media (max-width: 1199.98px) {
    body.landing-page .banner_outer .banner_wrapper2 {
        margin-top: -20px;
    }

    body.landing-page .banner_outer .banner_wrapper2 .banner-hero-mockup img {
        width: 105%;
        min-width: 0;
    }

    body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback {
        top: -10px;
        right: -30px;
    }

    body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback img {
        width: 95%;
        transform: translate(30px, 50px);
    }

    /* Stack features image and text nicely on medium screens */
    body.landing-page .basic-feature .feature_wrapperleft {
        position: relative;
        margin-bottom: 40px;
    }

    /* Hide orange background shape on medium screens for cleaner layout */
    body.landing-page .basic-feature .featurephoneback {
        display: none;
    }

    body.landing-page .basic-feature .featurephone {
        position: static;
        left: auto;
        top: auto;
    }

    body.landing-page .basic-feature .featurephone img {
        transform: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* Medium screens: modestly larger dashboard mockup */
    body.landing-page .basic-feature .featurephone img {
        width: 65%;
    }

    /* Medium screens: center search mockup, responsive image size */
    body.landing-page .search-section .search_wrapper {
        text-align: center;
        margin-top: 20px;
    }

    body.landing-page .search-section .search_wrapper .search-phone1 img {
        min-width: 0;
        max-width: 680px;
        width: 100%;
    }
}

/* Tablets and below */
@media (max-width: 991.98px) {
    body.landing-page .banner_outer .banner_wrapper2 {
        margin-top: 20px;
        text-align: center;
    }

    body.landing-page .banner_outer .banner_wrapper2 .banner-hero-mockup img {
        width: 90%;
        min-width: 0;
    }

    body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback {
        top: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback img {
        width: 90%;
        transform: none;
    }

    body.landing-page .banner-section {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    /* Stack features image and text vertically on tablets */
    body.landing-page .basic-feature .feature_wrapperleft {
        position: relative;
        margin-bottom: 40px;
    }

    /* Hide orange background shape and keep only the phone image */
    body.landing-page .basic-feature .featurephoneback {
        display: none;
    }

    body.landing-page .basic-feature .featurephone {
        position: static;
        left: auto;
        top: auto;
    }

    body.landing-page .basic-feature .featurephone img {
        transform: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* Tablets: centered dashboard mockup */
    body.landing-page .basic-feature .featurephone img {
        width: 75%;
    }

    /* Tablets: stack search content and mockup nicely */
    body.landing-page .search-section .search_wrapper {
        text-align: center;
        margin-top: 30px;
    }

    body.landing-page .search-section .search_wrapper .search-phone1 img {
        min-width: 0;
        max-width: 500px;
        width: 100%;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    body.landing-page .banner_outer .banner_wrapper2 .banner-hero-mockup img {
        width: 100%;
    }

    body.landing-page .banner_outer .banner_wrapper2 .bannerphoneback img {
        width: 100%;
    }

    body.landing-page .banner-section {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    /* Make hero title smaller on small screens */
    body.landing-page .banner-section .banner_content h1 {
        font-size: 27px;
        line-height: 32px;
    }

    /* Small phones: keep dashboard mockup large but not overwhelming */
    body.landing-page .basic-feature .featurephone img {
        width: 90%;
    }

    /* Small phones: full-width search mockup */
    body.landing-page .search-section .search_wrapper {
        text-align: center;
        margin-top: 24px;
    }

    body.landing-page .search-section .search_wrapper .search-phone1 img {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/*--------------------------------------------------------------
Available section: single DeenLink UIS mockup
- Replaces three phone images with one composite image
- Hidden on mobile (d-none d-md-block on col)
- Larger, responsive image with tight section spacing
---------------------------------------------------------------*/

/* Tighter section padding for landing page available section */
body.landing-page .available-section {
    padding: 56px 0 64px;
}

body.landing-page .available-section .available_content h2 {
    padding-right: 0;
    margin-bottom: 8px;
}

body.landing-page .available-section .available_content p {
    padding-right: 0;
    margin-bottom: 20px;
}

body.landing-page .available-section .row {
    align-items: center;
}

body.landing-page .available-section .available-uis-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    padding-left: 24px;
}

body.landing-page .available-section .available-uis-mockup {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

body.landing-page .available-section .available-uis-mockup img {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    body.landing-page .available-section {
        padding: 48px 0 56px;
    }

    body.landing-page .available-section .available-uis-mockup img {
        max-width: 580px;
    }

    body.landing-page .available-section .available-uis-wrapper {
        padding-left: 16px;
    }
}

@media (max-width: 991.98px) {
    body.landing-page .available-section {
        padding: 44px 0 52px;
    }

    body.landing-page .available-section .available-uis-wrapper {
        justify-content: center;
        padding-left: 0;
        padding-top: 24px;
    }

    body.landing-page .available-section .available-uis-mockup img {
        max-width: 480px;
    }
}

/* Mobile: mockup hidden, minimal padding */
@media (max-width: 767.98px) {
    body.landing-page .available-section {
        padding: 40px 0 48px;
    }

    body.landing-page .available-section .available_content {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    body.landing-page .available-section {
        padding: 36px 0 44px;
    }
}

/*--------------------------------------------------------------
Donations page – enhanced styling
---------------------------------------------------------------*/

body.donations-page {
    background: linear-gradient(180deg, #f8faf6 0%, #ffffff 24%);
}

/* Header / banner */
body.donations-page .donations-banner.banner_outer {
    padding: 28px 0 32px;
    background: linear-gradient(135deg, #8dc46f 0%, #6fa84d 50%, #5a8f3d 100%);
    border-radius: 0 0 80px 80px;
    box-shadow: 0 12px 40px rgba(90, 143, 61, 0.25);
    position: relative;
    overflow: hidden;
}

body.donations-page .donations-banner.banner_outer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

body.donations-page .donations-header-inner {
    position: relative;
    z-index: 1;
}

body.donations-page .donations-logo-wrap {
    display: inline-block;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

body.donations-page .donations-header-logo {
    height: 52px !important;
    width: auto;
    display: block;
}

body.donations-page .donations-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 6px;
}

body.donations-page .donations-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Content section */
body.donations-page .donations-content-section {
    padding: 48px 0 56px;
    background: transparent;
}

body.donations-page .donations-intro {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #5a6b52;
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 500;
}

/* Cards */
body.donations-page .donations-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(90, 143, 61, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(141, 196, 111, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.donations-page .donations-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(90, 143, 61, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.donations-page .donations-card:last-child {
    margin-bottom: 0;
}

body.donations-page .donations-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
}

body.donations-page .donations-card--bank .donations-card-icon {
    background: linear-gradient(135deg, #6fa84d 0%, #5a8f3d 100%);
    box-shadow: 0 4px 12px rgba(111, 168, 77, 0.35);
}

body.donations-page .donations-card--international .donations-card-icon {
    background: linear-gradient(135deg, #5a8f3d 0%, #4a7a32 100%);
    box-shadow: 0 4px 12px rgba(90, 143, 61, 0.35);
}

body.donations-page .donations-card--support .donations-card-icon {
    background: linear-gradient(135deg, #7aad5e 0%, #6fa84d 100%);
    box-shadow: 0 4px 12px rgba(122, 173, 94, 0.35);
}

body.donations-page .donations-card-body {
    flex: 1;
    min-width: 0;
}

body.donations-page .donations-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3a26;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

body.donations-page .donations-details {
    margin: 0;
    display: grid;
    gap: 10px 16px;
}

body.donations-page .donations-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: baseline;
}

body.donations-page .donations-detail-row dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5c42;
    margin: 0;
}

body.donations-page .donations-detail-row dd {
    font-size: 1rem;
    color: #2d3a26;
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

body.donations-page .donations-card-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5c42;
    margin: 0;
    font-weight: 500;
}

/* Footer */
body.donations-page .donations-footer {
    padding: 24px 0;
    background: #2d3a26;
    margin-top: 0;
}

body.donations-page .donations-footer-inner {
    text-align: center;
}

body.donations-page .donations-footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
}

/* Donations page responsive */
@media (max-width: 767.98px) {
    body.donations-page .donations-banner.banner_outer {
        padding: 22px 0 26px;
        border-radius: 0 0 48px 48px;
    }

    body.donations-page .donations-title {
        font-size: 1.75rem;
    }

    body.donations-page .donations-subtitle {
        font-size: 0.9rem;
    }

    body.donations-page .donations-content-section {
        padding: 36px 0 44px;
    }

    body.donations-page .donations-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    body.donations-page .donations-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    body.donations-page .donations-detail-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}