/* ===================================
   About Us - Alternating Layout Component
   Zigzag text-visual layout for engaging content display
   ================================ */

/* ===================================
   Alternating Section Container
   ================================ */

.alternating-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 40px 0;
}

/* ===================================
   Alternating Row
   ================================ */

.alternating-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInAlternating 0.6s ease-out forwards;
}

/* Stagger animation */
.alternating-row:nth-child(1) { animation-delay: 0.1s; }
.alternating-row:nth-child(2) { animation-delay: 0.2s; }
.alternating-row:nth-child(3) { animation-delay: 0.3s; }
.alternating-row:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInAlternating {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reverse direction for even rows */
.alternating-row:nth-child(even) {
    flex-direction: row-reverse;
}

.alternating-row:nth-child(even) {
    animation-name: fadeInAlternatingReverse;
}

@keyframes fadeInAlternatingReverse {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Alternating Content Box
   ================================ */

.alternating-content {
    flex: 1;
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    border: 2px solid #e7ecf1;
    box-shadow: 0 4px 12px rgba(24, 53, 68, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternating-content:hover {
    border-color: #e1c126;
    box-shadow: 0 8px 24px rgba(24, 53, 68, 0.14);
    transform: translateY(-4px);
}

/* ===================================
   Alternating Visual/Icon Box
   ================================ */

.alternating-visual {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #e7ecf1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternating-row:hover .alternating-visual {
    border-color: #e1c126;
    background: linear-gradient(135deg, #fefcf5 0%, #ffffff 100%);
}

/* ===================================
   Large Icon Styling
   ================================ */

.alternating-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #183544 0%, #2a5166 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(24, 53, 68, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternating-row:hover .alternating-icon {
    background: linear-gradient(135deg, #e1c126 0%, #f0d04f 100%);
    transform: scale(1.1) rotate(5deg);
}

.alternating-icon i {
    font-size: 64px;
    color: white;
    transition: all 0.3s ease;
}

.alternating-row:hover .alternating-icon i {
    color: #183544;
}

/* ===================================
   Content Typography
   ================================ */

.alternating-content h3 {
    color: #183544;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: Montserrat, sans-serif;
    line-height: 1.3;
}

.alternating-content .alternating-subtitle {
    color: #e1c126;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: block;
}

.alternating-content h5 {
    color: #183544;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: Montserrat, sans-serif;
}

.alternating-content h5:first-of-type {
    margin-top: 0;
}

.alternating-content p {
    color: #54565a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.alternating-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Decorative Elements
   ================================ */

.alternating-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, #e1c126 0%, transparent 100%);
    border-radius: 2px;
}

.alternating-content {
    position: relative;
}

/* ===================================
   Number Badge (optional for numbered steps)
   ================================ */

.alternating-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: #e1c126;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #183544;
    box-shadow: 0 4px 10px rgba(225, 193, 38, 0.4);
    font-family: Montserrat, sans-serif;
}

/* ===================================
   Responsive Design
   ================================ */

@media (max-width: 992px) {
    .alternating-row {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .alternating-visual {
        flex: 0 0 200px;
        padding: 30px;
    }
    
    .alternating-icon {
        width: 110px;
        height: 110px;
    }
    
    .alternating-icon i {
        font-size: 48px;
    }
    
    .alternating-content {
        padding: 25px 30px;
    }
    
    .alternating-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .alternating-row,
    .alternating-row:nth-child(even) {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .alternating-visual {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px;
    }
    
    .alternating-icon {
        width: 100px;
        height: 100px;
    }
    
    .alternating-icon i {
        font-size: 44px;
    }
    
    .alternating-content {
        width: 100%;
        padding: 25px;
    }
    
    .alternating-content h3 {
        font-size: 1.3rem;
    }
    
    .alternating-content h5 {
        font-size: 1.05rem;
    }
    
    .alternating-content p {
        font-size: 0.9rem;
    }
}

/* ===================================
   Compact Variant (for simpler layouts)
   ================================ */

.alternating-row.compact .alternating-visual {
    flex: 0 0 180px;
    padding: 20px;
}

.alternating-row.compact .alternating-icon {
    width: 80px;
    height: 80px;
}

.alternating-row.compact .alternating-icon i {
    font-size: 36px;
}

.alternating-row.compact .alternating-content {
    padding: 25px 30px;
}
