/* About Us Redesign Specific Styles */

/* 1. Sub-navigation Bar */
.sub-nav-container {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 80px;
    /* Adjust based on main nav height */
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sub-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-nav-item {
    margin: 0;
}

.sub-nav-link {
    display: block;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    color: var(--primary);
    background: #f0fbfb;
    border-color: rgba(10, 186, 181, 0.2);
    font-weight: 500;
}

/* 2. Intro Section Redesign */
.intro-section-redesign {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
}

.intro-container-redesign {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.intro-text-wrapper {
    flex: 1;
}

.intro-heading-redesign {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.intro-desc-redesign p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Counters inside text wrapper */
.intro-counters {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.intro-counter-item {
    text-align: left;
}

.intro-counter-number {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.intro-counter-suffix {
    font-size: 20px;
    color: #333;
}

.intro-counter-label {
    font-size: 14px;
    color: #999;
}

.intro-image-wrapper {
    flex: 1;
    position: relative;
}

.intro-image-placeholder {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    /* Aspect ratio replacement */
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, transparent 48%, #ddd 49%, #ddd 51%, transparent 52%);
}

.intro-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top right, transparent 48%, #ddd 49%, #ddd 51%, transparent 52%);
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}


/* 3. Vision Icons Row */
.vision-icons-section {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

.vision-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.vision-icon-item {
    padding: 20px;
    transition: transform 0.3s;
}

.vision-icon-item:hover {
    transform: translateY(-5px);
}

.vision-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0fbfb;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.vision-icon-circle svg {
    width: 30px;
    height: 30px;
}

.vision-icon-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.vision-icon-bar {
    width: 40px;
    height: 3px;
    background: #eee;
    margin: 10px auto;
}


/* 4. History Horizontal Timeline */
.history-section-redesign {
    padding: 60px 0;
    background-color: #f8fdf9;
    text-align: center;
}

.history-timeline-container {
    position: relative;
    margin-top: 50px;
    padding: 0 40px;
}

.history-timeline-line {
    position: absolute;
    top: 20px;
    /* Adjust to align with dots */
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.history-items-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.history-item-node {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.history-dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #ccc;
    border-radius: 50%;
    margin: 12px auto 20px;
    /* Align with line */
    position: relative;
    transition: all 0.3s;
}

.history-item-node:hover .history-dot,
.history-item-node.active .history-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 186, 181, 0.2);
}

.history-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

.history-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.history-content-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    height: 250px;
    /* approximate */
    overflow: hidden;
    position: relative;
}

.history-img-placeholder {
    width: 100%;
    height: 140px;
    background: #f9f9f9;
    border: 1px solid #eee;
    /* X placeholder style */
    position: relative;
    margin-bottom: 15px;
}

.history-img-placeholder::before,
.history-img-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 1px;
    background: #ddd;
}

.history-img-placeholder::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.history-img-placeholder::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}



/* Carousel Styling */
.qualifications-carousel-container {
    position: relative;
    padding: 0 40px;
    margin-top: 40px;
}

.qualifications-carousel-window {
    overflow: hidden;
    width: 100%;
}

.qualifications-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.qualification-item-carousel {
    flex: 0 0 calc(25% - 15px);
    /* 4 items per view: 25% each minus gap */
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
    /* Prevent flux item from expanding beyond basis due to content */
    min-width: 0;
    overflow: hidden;
    /* Extra safety */
}

/* Ensure images inside are responsive */
.qualification-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qualification-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid var(--primary);
    /* Teal Border */
    width: 45px;
    /* Slightly larger */
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* Teal Arrow */
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 15px rgba(10, 186, 181, 0.3);
}

.prev-btn {
    left: -25px;
}

/* Outside by a bit */
.next-btn {
    right: -25px;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 25px;
    border-radius: 10px;
    /* Pill shape */
    background: var(--primary);
}



/* Responsive Carousel */
@media (max-width: 1024px) {
    .qualification-item-carousel {
        flex: 0 0 calc(33.333% - 14px);
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .qualification-item-carousel {
        flex: 0 0 calc(50% - 10px);
        /* 2 items */
    }
}

@media (max-width: 480px) {
    .qualification-item-carousel {
        flex: 0 0 100%;
        /* 1 item */
    }
}

/* 6. Corporate Activities Grid */
.activities-section-redesign {
    padding: 60px 0;
    background-color: #f8fdf9;
}

/* Added Styles replacing inline */
.qualifications-section {
    padding: 60px 0;
    background-color: #f8fdf9;
    text-align: center;
}

.patents-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.environment-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.activity-card {
    border: 1px solid #eee;
    background: #fff;
}

.activity-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

.activity-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f9f9f9;
    position: relative;
    /* X placeholder */
}

.activity-img-box::before,
.activity-img-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 1px;
    background: #ddd;
}

.activity-img-box::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.activity-img-box::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.activity-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

/* 7. Environment Tabs */
.env-tabs-container {
    margin-top: 40px;
}

.env-tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.env-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.env-tab-btn:hover {
    color: var(--primary);
}

.env-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.env-tabs-content {
    position: relative;
}

.env-tab-panel {
    display: none;
}

.env-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.env-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.env-img-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.env-img-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.env-img-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-container-redesign {
        flex-direction: column;
    }

    .intro-counters {
        flex-wrap: wrap;
        gap: 20px;
    }

    .vision-icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .items-wrapper {
        flex-wrap: wrap;
    }

    .qualifications-grid-redesign {
        grid-template-columns: repeat(2, 1fr);
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .env-tabs-nav {
        flex-direction: column;
        gap: 0;
    }

    .env-tab-btn {
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
        text-align: left;
        bottom: 0;
    }

    .env-tab-btn.active {
        border-bottom-color: #eee;
        border-left-color: var(--primary);
    }

    .env-images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    .vision-icons-grid,
    .qualifications-grid-redesign,
    .items-wrapper {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .intro-counters {
        flex-direction: column;
        align-items: center;
    }

    .counter-item {
        width: 100%;
        margin-bottom: 20px;
    }
}