/* ===== HERO SECTION ===== */
.hero-container {
    padding-top: 10rem;
    padding-bottom: 5rem;
}
.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.div1 {
    grid-area: 1 / 1 / 2 / 6;
}

.div2 {
    grid-area: 2 / 1 / 3 / 6;
}

.div3 {
    grid-area: 3 / 1 / 4 / 3;
}

.div4 {
    grid-area: 3 / 3 / 4 / 5;
}

.div5 {
    grid-area: 4 / 1 / 5 / 5;
}

/* Div4 Styling */
.div5 {
    padding-block: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.div5-content {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
}

.circles-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.circle {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.circle.bg-primary {
    background-color: var(--color-primary) !important;
}

.circle.bg-light.bg-opacity-25 {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.circle-image {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stat-percentage {
    margin: 0 1rem;
}

.stat-number {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1;
}

.stat-description {
    flex: 1;
    order: -1 !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;

    span {
        display: none;
    }
}

.stat-text {
    font-size: 16px !important;
    color: var(--text-secondary) !important;
    margin: 0;
    white-space: nowrap;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
}

/* Hero Small Buttons Styling */
.hero-btn-small,
.btn.btn-outline-light.hero-btn-small {
    border-radius: 50px !important;
    background: transparent !important;
    border: 2px solid rgba(--color-dashed-border) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-width: 96px !important;
    /* 24px * 4 = 96px for small button */
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.hero-btn-small:hover,
.btn.btn-outline-light.hero-btn-small:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.hero-btn-small:active,
.btn.btn-outline-light.hero-btn-small:active {
    transform: translateY(0) !important;
}

.hero-buttons {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Div2 Hero Text Styling */
.div2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-block: 1rem;
    gap: 0.85rem;
}

.hero-text-left {
    text-align: left;
    width: 100%;
}

.hero-title {
    font-size: 1.85rem !important;
}

.hero-subtitle-text {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    color: var(--text-secondary) !important;
    font-weight: 400;
    text-align: left;
    width: 100%;
}


.hero-title .text-clip--primary-alt {
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-bottom-right {
    text-align: left;
}

.circles-stat-group {
    order: 1 !important;
}

/* Div3 Styling with Borders and Glassmorphism */
.div3 {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-block: 1rem;
    border-top: 1px dashed rgba(--color-dashed-border);
    border-bottom: 1px solid rgba(--color-dashed-border);
    border-image: repeating-linear-gradient(to right, rgba(--color-dashed-border) 0, rgba(--color-dashed-border) 6px, transparent 6px, transparent 10px) 1;
    border-image-slice: 1;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: start !important;
}

.glassmorphism-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 150px !important;
    height: 150px !important;
    padding: 1.5rem !important;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.box-text-top-right {
    position: absolute;
    font-size: 12px !important;
    top: 1rem !important;
    right: 1rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0;
}

.box-stat-bottom-left {
    position: absolute;
    font-size: 2rem !important;
    bottom: 1rem !important;
    left: 1rem !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    line-height: 1;
}

/* Stacked Glassmorphism Box Styles */
.glassmorphism-box.stacked {
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
}

.glassmorphism-box.stacked .box-section-top {
    position: relative;
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glassmorphism-box.stacked .box-section-bottom {
    position: relative;
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glassmorphism-box.stacked .box-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0.5rem 0;
}

.glassmorphism-box.stacked .box-text-top-right {
    position: static;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0;
    text-align: right;
}
.glassmorphism-box.stacked .box-text-top-right {
    font-size: 11px !important;
}

.glassmorphism-box.stacked .box-stat-bottom-left {
    position: static;
    font-size: 1.5rem !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    line-height: 1;
    text-align: right;
}

.glassmorphism-box.stacked .stat-suffix {
    font-size: 0.7em;
}

/* Responsive text for small screens - show shorter version */
@media (min-width: 768px) {
    .glassmorphism-box.stacked .box-stat-bottom-left {
        font-size: 2rem !important;
    }
}


.div3-text-content {
    width: 30%;
    padding-left: 2rem;
}

.multi-line-text {
    color: var(--text-secondary) !important;
    font-weight: 400;
    margin: 0;
    text-align: right;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

/* Responsive Hero Layout for screens 992px and below */

/* Smaller hero title on very small screens */
@media (max-width: 350px) {
    .btn.btn-outline-light.hero-btn-small.hero-talk-btn {
        display: none !important;
    }
}
@media (min-width: 576px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-subtitle-text {
        font-size: 1rem !important;
    }
    .div2 {
        padding-block: 1rem !important;
    }

    .div2 {
        gap: 0.5rem !important;
    }

    .div3 {
        padding-block: 1rem !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .circle {
        width: 40px !important;
        height: 40px !important;
    }

    .circle-image {
        width: 40px !important;
        height: 40px !important;
    }

    .circles-container {
        gap: 0.5rem !important;
    }
    
    /* Make stat text appear under the circles */
    .div5-content {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .circles-stat-group {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .stat-description {
        width: 100% !important;
        margin-top: 0.5rem !important;
        order: 2 !important;
    }

    .stat-text {
        text-align: left !important;
        white-space: normal !important;
        order: 2 !important;
    }

    .hero-6 {
        padding-top: 0 !important;
    }

    .hero-6 .max-container {
        padding-top: 4rem !important;
    }

    .div3-text-content {
        width: 55% !important;
        padding-left: 0 !important;
    }
    
}


/* Ensure buttons always stay left-aligned and horizontal on all screen sizes */
@media (min-width: 768px) {
    
    .hero-buttons {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
    }

    /* Reduce hero heading padding on smaller screens */
    .hero-container {
        padding-top: 15rem !important;
    }

    .hero-title {
        font-size: 3.5rem !important;
    }
    .hero-subtitle-text,
    .hero-subtitle-bottom-right,
    .multi-line-text {
        font-size: 1.15rem !important;
    }

    .div3 {
        padding-block: 2rem !important;
    }

    .glassmorphism-box {
        width: 200px !important;
        height: 200px !important;
    }
    .div3-text-content {
        width: 52% !important;
    }
    .multi-line-text {
        line-height: 1.5 !important;
    }

    .box-text-top-right {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 14px;
    }

    /* Reorganize div5 layout on smaller screens */
    .div5-content {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    /* Circles and stat percentage stay together as a group */
    .circles-stat-group {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    .circle {
        width: 55px !important;
        height: 55px !important;
    }

    .circle-image {
        width: 55px !important;
        height: 55px !important;
    }

    .stat-description {
        width: 100% !important;
        margin-top: 0.5rem !important;
    }

    .stat-text {
        text-align: left !important;
        white-space: normal !important;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem !important;
        font-weight: 300;
        line-height: 1.1;
        color: var(--text-primary) !important;
        width: 100% !important;
    }

    .div2 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
        padding-block: 2rem;
    }

    .hero-buttons {
        padding: 1rem 0;
    }


    .hero-subtitle-text {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .div3 {
        padding-block: 2rem;
    }

    .div3-text-content {
        width: 50% !important;
        padding-left: 1.5rem !important;
    }

    .multi-line-text {
        font-size: 20px !important;
        line-height: 1.6;
    }

    .glassmorphism-box {
        padding: 2rem;
        width: 200px;
        height: 200px;
    }
    
    .box-stat-bottom-left {
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 2rem;
    }

    .div5-content {
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Change glassmorphism box to side-by-side layout on large screens */
    .glassmorphism-box.stacked {
        flex-direction: row !important;
        width: 400px !important;
        height: 200px !important;
    }

    .glassmorphism-box.stacked .box-section-top {
        height: 100%;
        width: 50%;
        padding-right: 0.75rem;
    }

    .glassmorphism-box.stacked .box-stat-bottom-left {
        text-align: left !important;
        font-size: 2.5rem !important;
    }

    .glassmorphism-box.stacked .box-text-top-right {
        font-size: 1rem !important;
    }

    .glassmorphism-box.stacked .box-section-bottom {
        height: 100%;
        width: 50%;
        padding-left: 0.75rem;
    }

    .glassmorphism-box.stacked .box-separator {
        width: 1px;
        height: 100%;
        margin: 0 0.75rem;
    }
}

@media (min-width: 1200px) {
    .box-stat-bottom-left {
        font-size: 3rem !important;
    }
    .div3-text-content {
        display: flex;
        align-items: flex-end !important;
        justify-content: flex-end !important;
    }
    .multi-line-text {
        align-self: flex-end !important;
        width: 80%;
    }
}

@media (min-width: 1400px) {
    .div2 {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .hero-text-left {
        max-width: 70% !important;
        text-align: left !important;
    }

    .hero-subtitle-bottom-right {
        text-align: right;
        max-width: 35%;
        align-self: flex-end;
    }   
}