/* Why Maestra Section */
.why-maestra {
    padding: 50px 0 60px 0;
    background-color: var(--background-dark-section-O01);
    color: var(--text-white);
    transition: all 0.3s;
}

.why-maestra .cta-button {
    width: fit-content;
    background: var(--maestra-yellow);
    text-decoration: none;
    color: black;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: var(--font-md);
    border: none;
    padding: 0.5rem 1.5rem;
    height: 2.5em;
    cursor: pointer;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    position: relative;
}

.why-maestra .cta-button::before {
    display: block;
    content: "→";
    margin-right: 0.5em;
    font-family: monospace;
    font-size: var(--font-xl);
    font-weight: 400;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50%, 100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-maestra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
}

.why-maestra-grid.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.why-maestra-grid.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.why-maestra-grid .content {
    padding: 25px;
    text-align: left;
    color: var(--text);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    position: relative;
}

.why-maestra-grid .content .cta-button {
    margin-top: auto;
}

.why-maestra-grid .content p {
    flex: 1;
    margin-bottom: 1rem;
    font-size: var(--font-md);
    font-weight: 400;
    line-height: 1.5;
}

.why-maestra-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    width: 100%;
}

.why-maestra-title .icon-svg,
.why-maestra-title img {
    position: absolute;
    right: -20px;
    top: -20px;
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    transform:
        perspective(200px)
        rotateX(10deg)
        rotateY(-20deg)
        rotateZ(0deg);
    transform-origin: center center;
    z-index: 0;
}

.why-maestra-title img {
    right: -48px;
    top: -48px;
    opacity: 0.06;
    transform: none;
    filter: brightness(0) saturate(100%);
}

.dark-mode .why-maestra-title img {
    filter: brightness(0) saturate(100%) invert(1);
}

.why-maestra-title .icon-svg svg {
    width: 80px;
    height: 80px;
}

/* Color cycling for icons */
.why-maestra-grid .content:nth-child(4n+1) .icon-svg svg {
    color: var(--maestra-blue);
}

.why-maestra-grid .content:nth-child(4n+2) .icon-svg svg {
    color: var(--maestra-green);
}

.why-maestra-grid .content:nth-child(4n+3) .icon-svg svg {
    color: var(--maestra-yellow);
}

.why-maestra-grid .content:nth-child(4n+4) .icon-svg svg {
    color: var(--maestra-purple);
}

/* Color cycling for CTA buttons */
.why-maestra-grid .content:nth-child(4n+1) .cta-button {
    background: var(--maestra-blue);
    color: white;
}

.why-maestra-grid .content:nth-child(4n+2) .cta-button {
    background: var(--maestra-green);
    /* color: var(--text-light); */
    color: white;
}

.why-maestra-grid .content:nth-child(4n+3) .cta-button {
    background: var(--maestra-yellow);
    /* color: black; */
    color: white;
}

.why-maestra-grid .content:nth-child(4n+4) .cta-button {
    background: var(--maestra-purple);
    color: white;
}

.why-maestra-grid .content:nth-child(4n+1) .cta-button:hover {
    background-color: var(--maestra-blue);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--maestra-blue) 25%, transparent);
}

.why-maestra-grid .content:nth-child(4n+2) .cta-button:hover {
    background-color: var(--maestra-green);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--maestra-green) 25%, transparent);
}

.why-maestra-grid .content:nth-child(4n+3) .cta-button:hover {
    background-color: var(--maestra-yellow);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--maestra-yellow) 25%, transparent);
}

.why-maestra-grid .content:nth-child(4n+4) .cta-button:hover {
    background-color: var(--maestra-purple);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--maestra-purple) 25%, transparent);
}

.why-maestra-title .img-icon-container {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
}

.why-maestra-title img {
    height: 250%;
    width: auto;
}

.why-maestra-title h3 {
    font-size: var(--font-lg);
    margin: 0;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans';
}

.why-maestra-grid .item1 {
    grid-row: span 1;
}

.why-maestra-grid div h3,
.why-maestra-grid div p {
    color: var(--text);
    z-index: 3 !important;
    position: relative;
}

.why-maestra .grand-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text);
}

@media(max-width:991px) {

    /* Why Maestra Section */
    .why-maestra-grid {
        grid-template-columns: 1fr !important; /* Single column layout for small screens */
    }

    .why-maestra-grid .item1 {
        grid-row: auto; /* Auto layout for small screens */
    }


}

@media(max-width:767px){

.text-image .big-card-case-text h2
{
text-align:center !important;
}

	.why-maestra-grid
    {
    	grid-template-columns: inherit !important;
    }
    
    .why-maestra-grid.grid-4
    {
    	grid-template-columns: 1fr;
    }
    
    .why-maestra-columns div {
        width: 100%;
    }

}

.why-maestra {
    background-color: transparent !important;
}

.why-maestra-grid .content {
    background: color-mix(in srgb, var(--text) 5%, transparent) !important;
    color: var(--text) !important;
    border: none !important;
    overflow: hidden;
}

.why-maestra-grid .content div h3, .why-maestra-grid .content div p {
    color: var(--text) !important;
}

.why-maestra-title h3 {
    min-height: 66.3px;
}
