/* Hero Sections Zig-Zag Layout */
.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 40px 0;
    padding: 0 20px;
}

.company-section {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.company-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.company-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #d2691e), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-section:hover::before {
    opacity: 1;
}

/* Right Aligned Sections */
.section-right {
    align-self: flex-end;
    text-align: right;
}

.section-right .hero-h5-bottom {
    text-align: right;
}

.section-right .section-description {
    text-align: right;
}

/* Left Aligned Sections */
.section-left {
    align-self: flex-start;
    text-align: left;
}

.section-left .hero-h5-bottom {
    text-align: left;
}

.section-left .section-description {
    text-align: left;
}

/* Typography */
.company-section .hero-h5-bottom {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
}

.section-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

/* Add numbering to sections */
.company-section::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary, #d2691e);
    border-radius: 50%;
    top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.section-right::after {
    right: 30px;
}

.section-left::after {
    left: 30px;
}

.company-section:nth-child(1)::after {
    content: '01';
}

.company-section:nth-child(2)::after {
    content: '02';
}

.company-section:nth-child(3)::after {
    content: '03';
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .hero-subtitle {
        gap: 40px;
        padding: 0 15px;
    }

    .company-section {
        max-width: 100%;
        padding: 25px 30px;
        margin: 0 auto;
    }

    .section-right,
    .section-left {
        align-self: center;
        text-align: center;
    }

    .section-right .hero-h5-bottom,
    .section-left .hero-h5-bottom,
    .section-right .section-description,
    .section-left .section-description {
        text-align: center;
    }

    .section-right::after,
    .section-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 767px) {
    .hero-subtitle {
        gap: 30px;
        padding: 0 10px;
    }

    .company-section {
        padding: 20px 25px;
    }

    .company-section .hero-h5-bottom {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 479px) {
    .company-section {
        padding: 18px 20px;
    }

    .company-section .hero-h5-bottom {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .section-description {
        font-size: 14px;
    }
}

/* Animation for sections */
.company-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.company-section:nth-child(1) {
    animation-delay: 0.2s;
}

.company-section:nth-child(2) {
    animation-delay: 0.4s;
}

.company-section:nth-child(3) {
    animation-delay: 0.6s;
}

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

