.os-008f20a6-container {
    font-family: inherit;
    color: #333;
    padding: 40px 0;
    background-color: #f7eed7; /* Matching the background from the image */
    background: linear-gradient(135deg, #fbf7ee 0%, #ecdcca 100%);
    border-radius: 20px;
    padding: 60px 40px;
}

.os-008f20a6-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 30px;
}

.os-008f20a6-header-right {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

[dir="rtl"] .os-008f20a6-header-right {
    text-align: right;
}

.os-008f20a6-header-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.os-008f20a6-small-title {
    color: #b78a48;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.os-008f20a6-small-title::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #b78a48;
}

.os-008f20a6-main-title {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}
.os-008f20a6-main-title p {
    margin: 0;
}
.os-008f20a6-main-title b, .os-008f20a6-main-title strong {
    color: #b78a48; /* Highlight color for bold text */
}

.os-008f20a6-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 350px;
    text-align: right;
    align-self: flex-end;
}
.os-008f20a6-description p {
    margin-bottom: 10px;
}

/* 5 Cards Grid Layout */
.os-008f20a6-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for better control */
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.os-008f20a6-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    text-decoration: none !important;
    background-color: #e6e0d5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.os-008f20a6-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Standard cards span 1 column, 1 row in a 4-col layout (takes 25% width each usually, we want 2 small cards next to 1 large card, so small cards take 1 col each, large takes 2 cols) */
.os-008f20a6-card {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 250px;
}

/* Large card spans 2 columns (wider) and 2 rows (taller) */
.os-008f20a6-card.os-008f20a6-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.os-008f20a6-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.os-008f20a6-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Hover Animations */
.os-008f20a6-card:hover .hover-effect-zoom-in .os-008f20a6-card-img {
    transform: scale(1.1);
}

.os-008f20a6-card:hover .hover-effect-zoom-out .os-008f20a6-card-img {
    transform: scale(1.1); /* initially scaled, but we want zoom out, so let's set initial state */
}
.hover-effect-zoom-out .os-008f20a6-card-img {
    transform: scale(1.15);
}
.os-008f20a6-card:hover .hover-effect-zoom-out .os-008f20a6-card-img {
    transform: scale(1);
}

.os-008f20a6-card:hover .hover-effect-scale-up .os-008f20a6-card-img {
    transform: scale(1.1) rotate(3deg);
}

.os-008f20a6-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
    height: 60%;
    z-index: 2;
}

.os-008f20a6-card-content {
    flex: 1;
}

.os-008f20a6-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.os-008f20a6-card-large .os-008f20a6-card-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.os-008f20a6-card-subtitle {
    font-size: 14px;
    margin: 0;
    color: #e0e0e0;
}

.os-008f20a6-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    flex-shrink: 0;
    margin-right: 15px; /* RTL spacing */
}

[dir="ltr"] .os-008f20a6-card-icon {
    margin-right: 0;
    margin-left: 15px;
}

.os-008f20a6-card:hover .os-008f20a6-card-icon {
    background: rgba(255, 255, 255, 0.5);
}

.os-008f20a6-card-icon i {
    font-size: 14px;
    color: #fff;
}

@media (max-width: 992px) {
    .os-008f20a6-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .os-008f20a6-card {
        grid-column: span 1;
    }
    
    .os-008f20a6-card.os-008f20a6-card-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .os-008f20a6-container {
        padding: 40px 20px;
    }

    .os-008f20a6-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .os-008f20a6-header-left {
        justify-content: flex-start;
    }

    .os-008f20a6-description {
        text-align: right;
    }
    
    .os-008f20a6-main-title {
        font-size: 40px;
    }
    
    .os-008f20a6-grid {
        grid-template-columns: 1fr;
    }
    
    .os-008f20a6-card, .os-008f20a6-card.os-008f20a6-card-large {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }
}
