/* =================================
   Budli About Us Page Styles
   Theme: wp-template
   Loaded on page-about-us.php
================================= */

:root {
    --bg-light: #f8f9fa;
    --bg-blue: #0b78b6;
    --bg-pink: #d41e57;
    --text-blue: #0b78b6;
    --text-pink: #d41e57;
    --border-light: #eaeaea;
}

/* Gutenberg Editor Specific Overrides */
.editor-styles-wrapper .usp-icon,
.editor-styles-wrapper .step-circle {
    background-color: var(--bg-pink) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    margin: 0 auto 20px auto !important;
}

.editor-styles-wrapper .step-circle {
    width: 120px !important;
    height: 120px !important;
}

.editor-styles-wrapper .usp-icon iconify-icon,
.editor-styles-wrapper .step-circle iconify-icon,
.editor-styles-wrapper iconify-icon {
    display: inline-block !important;
    min-width: 1em !important;
    min-height: 1em !important;
    font-size: 32px !important;
    color: white !important;
}

.editor-styles-wrapper .step-circle iconify-icon {
    font-size: 48px !important;
}

/* Ensure background colors are rendered in the editor for common utility classes */
.editor-styles-wrapper .bg-light { background-color: #f8f9fa !important; padding: 20px !important; }
.editor-styles-wrapper .bg-blue { background-color: #0b78b6 !important; color: white !important; padding: 20px !important; }
.editor-styles-wrapper .bg-pink { background-color: #d41e57 !important; color: white !important; padding: 20px !important; }

/* Force text visibility inside colored sections in editor */
.editor-styles-wrapper .bg-blue p, 
.editor-styles-wrapper .bg-blue h1, 
.editor-styles-wrapper .bg-blue h2, 
.editor-styles-wrapper .bg-blue h3,
.editor-styles-wrapper .bg-pink p,
.editor-styles-wrapper .bg-pink h2 {
    color: #ffffff !important;
}

/* Ensure cards are visible and well-spaced in editor */
.editor-styles-wrapper .card {
    background: white !important;
    border: 1px solid #eee !important;
    padding: 32px 24px !important;
    text-align: center !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Layout Utilities */
.about-page-main {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Backgrounds */
.bg-light {
    background-color: var(--bg-light);
}

.bg-blue {
    background-color: var(--bg-blue);
    color: white;
}

.bg-pink {
    background-color: var(--bg-pink);
    color: white;
}

/* Carousel Containers */
.carousel-container {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding: 10px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.carousel-container>* {
    flex: 0 0 calc(33.333% - 22px);
    /* Default 3 items for grid-3 sections */
    scroll-snap-align: start;
    min-width: 280px;
}

#mediaCarousel>*,
#spotlightCarousel>* {
    flex: 0 0 auto;
    /* Natural width for spotlight/media */
}

/* Typography */
.section-title {
    font-size: 32px;
    font-weight: 700;
    /* Increased weight for visibility */
    margin: 0 0 24px 0;
    color: #000;
    /* Pure black for maximum contrast */
    line-height: 1.2;
}

.section-title.white {
    color: #fff;
}

.text-pink {
    color: var(--text-pink);
}

.text-blue {
    color: var(--text-blue);
}

/* Breadcrumb Styling */
.breadcrumb-section {
    padding: 48px 0 24px 0;
}

.breadcrumb-section h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-pink);
}

.breadcrumb span {
    color: #888;
    margin-left: 4px;
}

/* Specific Section Content */
.intro-text p {
    font-size: 16px;
    /* Increased size */
    color: #222;
    /* Darker for better visibility */
    margin-bottom: 24px;
    font-weight: 400;
}

.intro-img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.about-youtube-embed {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #000;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 fallback that works broadly */
}

.about-youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@supports (aspect-ratio: 16 / 9) {
    .about-youtube-embed {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Components */
.card {
    background: white !important;
    border-radius: 8px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    box-sizing: border-box !important;
    color: #222 !important; 
    flex: 1 1 auto !important;
}

/* Force ALL text elements inside the card and surrounding USP area to be visible */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card p, .card div, .card span, .card li, .card strong, .card em, .card b {
    color: #222 !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 15px !important; /* Ensure readable size */
    margin-bottom: 8px !important;
}

/* Gutenberg Shortcode Visual Aid */
.editor-styles-wrapper [data-type="core/shortcode"] {
    border: 1px dashed #0b78b6 !important;
    background: #f0f7ff !important;
    padding: 10px !important;
    border-radius: 4px !important;
    position: relative !important;
}

.editor-styles-wrapper [data-type="core/shortcode"]::before {
    content: "Budli Shortcode Placeholder";
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #0b78b6;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Fix for empty icon blocks in editor */
.editor-styles-wrapper .usp-icon:empty::after,
.editor-styles-wrapper .step-circle:empty::after {
    content: "Icon Placeholder";
    color: white;
    font-size: 10px;
    text-align: center;
}

.editor-styles-wrapper .usp-icon:empty::after {
    font-size: 8px;
}

.editor-styles-wrapper .step-circle:empty::after {
    font-size: 12px;
}

/* Fix "Why Budli?" link visibility below the boxes */
.about-page-main a {
    color: inherit;
    text-decoration: underline;
}

.about-page-main .bg-blue a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.about-page-main .bg-blue a:hover {
    color: #f0f0f0 !important;
}

/* Fix staggered (zigzag) alignment of Gutenberg columns */
.wp-block-columns {
    align-items: stretch !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    height: auto !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.usp-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: var(--bg-pink) !important;
    color: white !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px auto !important;
    flex-shrink: 0 !important;
}

.usp-icon iconify-icon {
    font-size: 32px !important;
    color: white !important;
    display: block;
    line-height: 1;
}

.step-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-pink);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.step-circle iconify-icon {
    font-size: 56px;
    color: #fff;
    display: block;
    line-height: 1;
}

.testimonial-card-wrapper {
    padding: 10px;
}

.testimonial-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: white;
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
    font-size: 16px;
    /* Increased size */
    color: #000;
    /* Pure black for maximum visibility */
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviewer img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info .name {
    font-size: 15px;
    font-weight: 700;
    /* Bolder */
    color: #000;
    /* Pure black */
}

.reviewer-info .city {
    font-weight: 500;
    color: #333;
    /* Darker */
}

.stars {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 6px;
    display: flex;
    gap: 2px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--bg-blue);
}

.arrow-btns {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-pink);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.arrow-btn:disabled {
    background: #e5b0c0;
    cursor: not-allowed;
}

.arrow-btn iconify-icon {
    font-size: 24px;
}

/* Special Elements */
.circle-diagram {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.video-thumb-container {
    max-width: 480px;
    margin: 0 auto;
}

.video-mini-thumb {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.spotlight-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Ensure it stays in one row for the carousel */
    gap: 64px;
    margin-bottom: 48px;
}

.spotlight-logos img {
    height: 56px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s, filter 0.3s;
}

.spotlight-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

.recognition-award {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recognition-award img {
    max-height: 200px;
    object-fit: contain;
}

.office-grid img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .grid-2 {
        gap: 32px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .spotlight-logos {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .arrow-btns {
        align-self: flex-end;
    }

    .office-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .office-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }
}