/*
Theme Name: Daoud Theme
Theme URI: https://daoudgroup.com
Author: Daoud Group
Author URI: https://daoudgroup.com
Description: Custom WordPress theme for Daoud Group - industrial manufacturing and casting solutions
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daoud
Tags: business, industrial, manufacturing, custom
*/


:root {
    --primary-blue: #2563eb;
    --dark-bg: #1e293b;
    --darker-bg: #0f172a;
}

body {
    font-family: 'Axiforma', sans-serif;
    background-color: #132344;
    overflow-x: hidden;
}

.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    height: 4rem;
}

.navbar-brand-logo {
    font-family: 'MinionPro', serif;
    font-weight: bold;
    color: #0f172a !important;
    text-decoration: none;
    margin-right: 80px;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    margin: 100px 20px 20px 20px;
    border-radius: 30px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 100px 0;
    padding-left: 50px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-text {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.active .hero-logo-container {
    animation-name: fadeInUp;
    animation-delay: 0.2s;
}

.active .hero-title {
    animation-name: fadeInUp;
    animation-delay: 0.4s;
}

.active .hero-subtitle {
    animation-name: fadeInUp;
    animation-delay: 0.6s;
}

.hero-controls-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-controls {
    pointer-events: auto;
}

/* Divisions Section */
.divisions-section {
    padding: 80px 20px;
    color: white;
    min-height: 100vh;
}

.division-image-container {
    height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.division-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fade-in-image {
    animation: fadeInZoom 0.8s ease forwards;
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.division-row {
    margin-bottom: 15vh;
}

.division-content {
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 80vh;
}

.division-info {
    margin-top: 0;
    margin-bottom: 30px;
}

.division-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: auto;
    align-items: flex-end;
}

.partner-link {
    display: block;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.partner-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.partner-logo.partner-logo-lg {
    height: 120px;
    filter: none;
}


.division-title {
    font-size: 4rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.division-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin: 0;
}

.logo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
    padding-bottom: 60px;
    margin-top: 100px;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-logo-item:hover {
    opacity: 1;
}

.footer-logo-img {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-right: 15px;
    line-height: 1;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-logo-text span {
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-logo-text small {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #999;
}



.hero-logo {
    font-size: 5rem;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #fff;
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.carousel-control {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    position: static;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
}


.image-gallery {
    background-color: transparent;
    padding: 0 20px 20px 20px;
}

.gallery-container {
    display: flex;
    height: 80vh;
    gap: 20px;
}

.gallery-item {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
}

.gallery-item:hover {
    flex: 3;
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.gallery-subtitle {
    color: #ccc;
    font-size: 1.2rem;
}

.gallery-item::before {
    display: none;
}


.search-input {
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    padding: 8px 20px;
}

.btn-login {
    border-radius: 25px;
    padding: 8px 20px;
    border: none;
    color: #0f172a;
    background: transparent;
    font-weight: 500;
}

.btn-login:hover {
    color: #2563eb;
}

.btn-login:focus {
    outline: none;
    box-shadow: none;
}

.btn-contact {
    border-radius: 25px;
    padding: 8px 25px;
    border: none;
    background-color: #132344;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #1d4ed8;
    color: white;
}

.btn-lang {
    border: none;
    background: transparent;
    color: #6b7280;
    padding: 8px 12px;
    font-weight: 500;
}

.btn-lang.active {
    color: var(--primary-blue);
    font-weight: bold;
}

.btn-lang:focus {
    outline: none;
    box-shadow: none;
}


.navbar-nav .nav-item {
    margin-right: 40px;
}

.products-section {
    padding: 0 40px;
}



.product-row:last-child {
    margin-bottom: 0px;
}

.product-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
}

.product-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px;
}

.product-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-card-wrapper {
    flex: 0 0 260px;
}



.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.4);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.slider-btn.prev-btn {
    left: 20px;
}

.slider-btn.next-btn {
    right: 20px;
}

.slider-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.product-brand-logo {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-right: 15px;
    font-family: 'Times New Roman', serif;
    line-height: 1;
}

.product-brand-div {
    font-size: 1.3rem;
    font-weight: lighter;
    color: white;
    display: block;
}

.product-brand-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    display: block;
}

.product-brand-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.dummy-controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.dummy-control {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    opacity: 0.5;
}

.product-cte-btn {
    font-size: 0.8rem;
    margin-top: 15px;
    text-transform: lowercase;
    font-weight: bold;
    padding: 8px 24px;
}

.product-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Responsiveness Adjustments --- */

/* Large Desktop / Laptop adjustments to prevent breaking before tablet mode */
@media (max-width: 1350px) {
    .navbar-brand-logo {
        margin-right: 30px;
        font-size: 2rem;
    }

    .navbar-nav .nav-item {
        margin-right: 20px;
    }

    .search-input {
        width: 200px !important;
    }
}

/* Tablet and Mobile View (Below 992px) */
@media (max-width: 991px) {

    .navbar-custom {
        height: auto;
        padding: 10px 0;
    }

    .navbar-toggler {
        border: none;
        margin-top: 5px;
    }
    .navbar-brand{
        padding-top: 0;
    }

    .navbar-brand-logo {
        font-size: 2rem;
    }

    .navbar-collapse {
        background-color: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar .d-flex.align-items-center.gap-3 {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 1rem !important;
    }

    .search-input {
        width: 100% !important;
    }

    .btn-login {
        width: 100%;
        text-align: center;
        border: 1px solid #eee;
    }

    .gallery-container {
        height: auto;
        flex-direction: column;
    }

    .gallery-item {
        height: 250px;
        width: 100%;
        flex: none;
        margin-bottom: 20px;
    }

    .gallery-item:hover {
        flex: none;
        transform: scale(1.02);
    }

    

    /* 3. Division Section Fixes */
    .division-content {
        height: auto;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        display: block;
    }

    .division-info {
        margin-bottom: 40px;
    }

    .division-title {
        margin-top: 30px;
        font-size: 2.5rem;
    }

    .division-image-container {
        height: 300px;
    }

    .division-partners {
        margin-top: 0;
        justify-content: center;
        gap: 30px;
        padding-bottom: 30px;
    }

    .product-sidebar {
        margin-bottom: 20px;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .product-brand-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .product-cte-btn {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .product-card-wrapper {
        flex: 0 0 240px;
    }

    .product-card {
        height: 360px;
    }

    .products-section {
        padding-left: 0;
        padding-right: 0;
    }

    .products-section .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .product-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-row>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .product-sidebar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .product-slider {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dummy-controls {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 6vw, 1.8rem);
        margin-bottom: 2rem;
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        line-height: 1.3;
    }

    .hero-logo-container {
        margin-bottom: 2rem !important;
    }

    .hero-logo {
        font-size: 3rem;
        /* Reduced from 5rem */
    }

    .hero-logo-container h2 {
        font-size: 1.5rem !important;
    }

    .hero-logo-container p {
        font-size: 0.8rem !important;
    }

    .hero-content {
        padding-left: 20px;
        /* More breathing room */
        padding-right: 20px;
    }

    .hero-section {
        margin-left: 10px;
        margin-right: 10px;
        min-height: 55vh;
    }

    .image-gallery {
        padding: 5px;
    }
}

/* --- Divisions Page Specific Styles --- */

.division-showcase-slider {
    width: 100%;
    margin-bottom: 50px;
}

.division-slide-card {
    height: 500px;
    width: 100%;
    background-color: #0d1b35;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.division-slide-card:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.5s ease;
}

.division-slide-card:hover .slide-bg {
    filter: grayscale(0%);
    opacity: 0.6;
}

.slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 150px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.4));
}

.slide-left i {
    color: white;
}

.partner-logo-lg {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (max-width: 991px) {
    .slide-content-overlay {
        padding: 40px;
        flex-direction: column;
        justify-content: space-around !important;
        align-items: center !important;
        text-align: center;
    }

    .slide-left {
        width: 100%;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .slide-right {
        text-align: center !important;
        width: 100%;
        margin-bottom: 20px;
    }

    .slide-right p {
        margin-left: 0 !important;
        font-size: 1.1rem !important;
        margin-right: auto;
        margin-left: auto;
    }

    .slide-right .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .division-slide-card {
        height: auto;
        min-height: 400px;
    }

    /* Mobile: Display companies in 2 columns */
    .companies-logo-container {
        flex-direction: row !important;
        gap: 1rem !important;
    }

    .companies-logo-row {
        flex-direction: row !important;
        gap: 1rem !important;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .partner-logo-lg {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        max-height: 60px !important;
        width: auto !important;
    }
}

/* --- Division Landing Page Specific Styles --- */

.division-landing-wrapper {
    margin-top: 100px;
    padding: 0 40px 80px 40px;
    color: white;
}

.division-landing-header {
    margin-bottom: 80px;
}

.division-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.division-landing-icon {
    height: 4.5rem;
    width: auto;
    margin-right: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.division-landing-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.division-landing-subtitle {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.division-landing-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 1000px;
    line-height: 1.6;
}

/* Companies Grid Section */
.companies-section-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 60px;
}

.companies-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.companies-grid-container.single-item {
    justify-content: flex-start;
}

.company-card-block {
    flex: 0 0 250px;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.company-logo {
    max-height: 180px;
}

.company-logo-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
    min-height: 180px;
}

.company-logo-d {
    font-family: 'Times New Roman', serif;
    font-size: 6rem;
    color: var(--primary-blue);
    font-weight: bold;
    line-height: 0.8;
    margin-right: 15px;
}

.company-logo-text {
    display: flex;
    flex-direction: column;
}

.company-logo-brand {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.company-logo-division {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-desc {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    flex-grow: 1;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
}

.btn-explore-company {
    background-color: #cbd5e1;
    /* Light gray */
    color: #0f172a;
    font-weight: 700;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    border: none;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.btn-explore-company:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    color: #0f172a;

}

@media (max-width: 768px) {
    .division-slide-card {
        height: auto;
        min-height: 500px;
    }
    .division-landing-title {
        font-size: 2.5rem;
    }

    .division-landing-icon {
        height: 2.5rem;
    }

    .division-landing-subtitle {
        font-size: 1.5rem;
    }

    .companies-section-title {
        font-size: 2.5rem;
    }

    .division-landing-wrapper {
        padding: 0 20px 60px 20px;
    }

    .company-card-block {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .companies-grid-container.single-item {
        justify-content: center;
    }
}

.division-page-icon {
    max-height: 55px;
    font-size: 4rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .division-landing-title {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .division-page-icon {
        font-size: 2rem;
        max-width: 9rem;
    }
    

    .division-title-row {
        gap: 10px;
    }
}

/* --- News Page Styles --- */

.news-container {
    margin-top: 100px;
}

.news-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background-color: #0f172a;
    transition: transform 0.3s ease;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.news-card:hover .news-bg {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Gradient Overlay - Darker at bottom for text readability */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(15, 23, 42, 1) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-card-side .news-overlay {
    justify-content: space-between;
}

.news-card-side .news-title-side {
    margin-bottom: auto;
}

.news-card-hero {
    height: 600px;
}

.news-card-hero .news-overlay {
    justify-content: space-between;
    padding: 60px;
}

.news-title-hero {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: auto;
    max-width: 80%;
}

.news-content-bottom {
    margin-top: auto;
}

.news-excerpt {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 90%;
}

.news-card-side {
    flex: 1;
    min-height: 180px;
}

.news-title-side {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.news-excerpt-side {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feed Cards (Bottom Grid) */


.news-title-feed {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .news-card-hero {
        height: 500px;
    }

    .news-card-hero .news-overlay {
        padding: 30px;
        justify-content: flex-end;
    }

    .news-excerpt-hero-mobile {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-title-hero {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .news-card-side {
        height: 300px;
        flex: none;
    }
}

@media (max-width: 576px) {
    .news-container {
        padding: 0 15px;
    }

    .news-title-hero {
        font-size: 1.8rem;
    }

    .news-title-side {
        font-size: 1.5rem;
    }

    .news-card-hero {
        height: 450px;
    }
}

/* --- Post Page Styles --- */

.post-page-container {
    margin-top: 100px;
    margin-bottom: 50px;
    height: 80vh;
    min-height: 600px;
}

.post-hero-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background-color: #0f172a;
}

.post-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.post-content-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, rgba(30, 41, 59, 1) 0%, rgba(30, 41, 59, 0.95) 60%, rgba(30, 41, 59, 0) 100%);
    padding: 60px;
    padding-right: 100px;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    line-height: 1.1;
}

.post-body-scroll {
    overflow-y: auto;
    padding-right: 20px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.post-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.post-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.post-body-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* Post Page Mobile Adjustments */
@media (max-width: 991px) {
    .post-content-panel {
        width: 100%;
        background: rgba(15, 23, 42, 0.9);
        padding: 40px;
    }

    .post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .post-page-container {
        height: auto;
        min-height: 80vh;
    }

    .post-hero-wrapper {
        border-radius: 20px;
    }

    .post-content-panel {
        padding: 30px 20px;
        position: relative;
        min-height: 70vh;
    }

    .post-title {
        font-size: 2rem;
    }
}

/* Careers Page Styles */
.careers-container {
    padding-top: calc(4rem + 40px);
    height: 100vh;
    padding-bottom: 20px;
}

.careers-hero {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
}

.careers-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.6) contrast(1.1);
}

.careers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.careers-content {
    max-width: 1000px;
    z-index: 2;
    color: white;
}

.careers-subtitle {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.careers-title {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.careers-desc {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    line-height: 1.4;
}

.btn-apply {
    background-color: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px 60px;
    border-radius: 8px;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: #ffffff;
    transform: scale(1.05);
    color: #0f172a;

}

/* Mobile Responsive */
@media (max-width: 768px) {
    .careers-subtitle {
        font-size: 1.8rem;
    }

    .careers-title {
        font-size: 2.8rem;
    }

    .careers-desc {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .btn-apply {
        padding: 12px 40px;
        font-size: 1rem;
    }

    .careers-container {
        height: auto;
        min-height: 100vh;
    }

    .careers-hero {
        min-height: calc(100vh - 120px);
    }
}

/* ============================================
   PRODUCTS PAGE STYLES
   ============================================ */

.products-hero-section {
    margin: 100px 20px 40px 20px;
    padding: 100px 0;
    position: relative;
    background-color: #0f172a;
    background-image: url('https://images.unsplash.com/photo-1565193566173-034e4654b0fc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    text-align: center;
    overflow: hidden;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.products-hero-title {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.products-hero-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.products-section {
    padding: 60px 0;
    min-height: 100vh;
}

/* Filter Tabs */
.products-filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Brand Filter */
.brands-filter {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.brand-filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.brand-filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Product Cards */
.product-grid-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-grid-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.product-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.spec-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.btn-product-details {
    background: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-product-details:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-product-details.disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-product-details.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   PRODUCT DETAILS PAGE STYLES
   ============================================ */

.breadcrumb-section {
    margin: 120px 20px 0 20px;
    padding: 20px 0;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item {
    color: #94a3b8;
}

.breadcrumb-item a {
    color: #cbd5e1;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-blue);
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #64748b;
}

.product-details-section {
    padding: 40px 0 80px 0;
    min-height: 100vh;
}

.product-detail-image {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    height: 530px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 0 0;
}

.product-brand-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.product-detail-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.product-highlights {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: #cbd5e1;
    margin-bottom: 12px;
    font-size: 1rem;
}

.btn-request-quote {
    background: var(--primary-blue);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request-quote:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-download-spec {
    background: transparent;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-spec:hover {
    background: white;
    color: #132344;
}

/* Specifications Table */
.specifications-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.specifications-table {
    color: white;
    margin-bottom: 0;
}

.specifications-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.specifications-table th {
    color: #132344;
    font-weight: 700;
    padding: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.specifications-table td {
    color: #132344;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specifications-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
}

.product-card-small {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.product-card-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 20px 30px 20px;
    margin: 40px 20px 20px 20px;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero-title {
        font-size: 2.5rem;
    }

    .products-hero-subtitle {
        font-size: 1.2rem;
    }

    .products-filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
    }

    .product-detail-title {
        font-size: 2rem;
    }

    .product-detail-image {
        height: 300px;
        margin-bottom: 30px;
    }

    .specifications-table {
        font-size: 0.85rem;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 10px 8px;
    }
}

/* ============================================
   CAREERS FORM STYLES
   ============================================ */
.careers-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.careers-form-wrapper {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.careers-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.application-form-card {
    width: 100%;
    height: 100%;
    max-width: none;
    background-color: white;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #0f172a;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.application-form-card form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    overflow: hidden;
}

/* Adjustments for specific screen sizes */
@media (max-width: 991px) {
    .application-form-card {
        padding: 20px;
        overflow-y: auto;
        display: block;
    }

    .application-form-card form {
        display: block;
        overflow-y: visible;
    }
}

/* Override Bootstrap margins for compactness */
.careers-form-wrapper .mb-3 {
    margin-bottom: 0.5rem !important;
}

.careers-form-wrapper .mb-4 {
    margin-bottom: 0.8rem !important;
}

.careers-form-wrapper .mb-2 {
    margin-bottom: 0.25rem !important;
}

.form-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
}

.form-brand-logo {
    display: flex;
    align-items: center;
}

.d-mark {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d1b35;
    line-height: 1;
    margin-right: 10px;
}

.d-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.d-text span {
    font-size: 1rem;
    font-weight: 800;
    color: #0d1b35;
}

.d-text small {
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--primary-blue);
    font-weight: 600;
}

.form-label-custom {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #0f172a;
}

.form-input-custom {
    background-color: #f1f5f9;
    /* Suitable Grey, Slate-100 */
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 5px 10px;
    color: #334155;
    height: 38px;
    font-size: 0.9rem;
}

.form-input-custom:focus {
    background-color: #fff;
    border-color: #cbd5e1;
    box-shadow: none;
}

textarea.form-input-custom {
    height: auto;
    min-height: 60px;
}

.upload-box {
    background-color: #e2e8f0;
    border: none;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.upload-box:hover {
    background-color: #cbd5e1;
}

.upload-box i {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.upload-text {
    font-size: 0.7rem;
    color: #0f172a;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-submit-application {
    background-color: transparent;
    border: 2px solid #0d1b35;
    color: #0d1b35;
    padding: 8px 30px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-submit-application:hover {
    background-color: #0d1b35;
    color: white;
}

/* Horizontal alignment for left column inputs */
.form-group-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.form-group-row label {
    width: 130px;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
}

.form-group-row input {
    flex-grow: 1;
}

/* Specific mobile adjustment overrides */
@media (max-width: 991px) {
    .form-group-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.8rem;
    }

    .form-group-row label {
        width: 100%;
        margin-bottom: 2px;
    }

    .form-main-title {
        font-size: 1.4rem;
    }
}


/* About Us Page Specific Styles */
.about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 120px 20px 80px;
    margin-top: 80px;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Mission & Vision Section */
.mission-vision-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.mission-vision-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mission-vision-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mission-vision-content p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
}

.mission-vision-image {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mission-vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-vision-image {
        height: 300px;
    }
}

/* Core Competencies Section */
.competencies-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
    position: relative;
}

.competencies-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.competencies-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.competency-item {
    margin-bottom: 40px;
}

.competency-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 15px;
}

.competency-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

.competencies-image {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
}

.competencies-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .competencies-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .competencies-image {
        height: 300px;
    }
}

/* Values Section */
.values-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

.values-highlights {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.highlight-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.highlight-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #3b82f6;
}

.highlight-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Milestones Section */
.milestones-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.milestones-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.milestone-year {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.milestone-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: white;
    font-weight: 600;
    opacity: 1;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.milestone-column {
    text-align: left;
    margin-bottom: 30px;
}

.milestone-timeline {
    position: relative;
    padding-bottom: 50px;
}

.milestone-year {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    z-index: 5;
}

.milestone-column {
    position: relative;
    text-align: center;
    z-index: 2;
    min-height: 220px;
}

@media (max-width: 767px) {
    .milestone-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        background: #dee2e6;
        z-index: 1;
    }

    .milestone-column {
        text-align: left;
        padding-left: 50px;
        margin-bottom: 30px;
        min-height: auto;
    }

    .milestone-dot {
        position: absolute;
        left: 14px;
        top: 5px;
        width: 14px;
        height: 14px;
        background: #fff;
        border-radius: 50%;
        border: 3px solid #0d6efd;
    }

    .desktop-lines {
        display: none;
    }
}

@media (min-width: 768px) {
    .milestone-dot {
        width: 20px;
        height: 20px;
        background: #fff;
        border: none;
        border-radius: 50%;
        margin: 10px auto;
        position: relative;
        z-index: 2;
    }

    /* Line Container */
    .desktop-lines {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    /* Horizontal straight lines inside rows */
    .h-line {
        position: absolute;
        height: 2px;
        background: rgb(59, 130, 246);
        left: 16.66%;
        right: 16.66%;
    }

    /* Adjusted Tops for larger text */
    .h-line-row-1 {
        top: 80px;
    }

    .h-line-row-2 {
        top: 300px;
    }

    /* 80 + 220 */
    .h-line-row-3 {
        top: 520px;
    }

    /* 80 + 440 */

    /* C-Shape Connectors */
    .c-curve {
        position: absolute;
        width: 10%;
        border: 2px solid rgb(59, 130, 246);
    }

    /* Right Curve (Row 1 to Row 2) */
    .c-curve-right {
        left: 83.33%;
        top: 80px;
        height: 220px;
        border-left: none;
        border-radius: 0 50px 50px 0;
        width: 8%;
    }

    /* Left Curve (Row 2 to Row 3) */
    .c-curve-left {
        right: 83.33%;
        top: 300px;
        height: 220px;
        border-right: none;
        border-radius: 50px 0 0 50px;
        width: 8%;
    }

    /* Straight Line Drop for last item (Row 3 to Row 4) */
    .v-line-last {
        position: absolute;
        left: 84.2%;
        top: 520px;
        height: 220px;
        width: 2px;
        background: #dee2e6;
    }
}

@media (max-width: 768px) {
    .milestone-description {
        max-width: 100%;
    }
}

/* Numbers Section */
.numbers-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.numbers-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.number-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.number-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.number-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 15px;
}

.number-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
}

/* Knowledge Section */
.knowledge-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.knowledge-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.knowledge-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.knowledge-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.knowledge-image {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

.knowledge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .knowledge-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .knowledge-image {
        height: 300px;
    }
}

/* Network Section */
.network-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.network-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.network-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.network-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.network-image {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    /* order: -1; Removed to flip layout */
}

.network-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .network-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .network-image {
        height: 300px;
        order: 0;
    }
}

/* Financial Section */
.financial-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.financial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.financial-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.financial-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.financial-image {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

.financial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .financial-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .financial-image {
        height: 300px;
    }
}

/* Growth Section */
.growth-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 20px;
}

.growth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.growth-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.growth-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.growth-image {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

.growth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .growth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .growth-image {
        height: 300px;
        order: 0;
    }
}

/* Section spacing */
section {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

section:last-of-type {
    border-bottom: none;
}

.section-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(59, 130, 246);
    margin-bottom: 20px;
    display: inline-block;
}

/* Static Gallery Style for Numbers */
.numbers-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item-static {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
}

.gallery-overlay-static {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
}

.gallery-title-static {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.gallery-subtitle-static {
    color: #ccc;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .numbers-gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Button Styles */
.btn-explore {
    border-radius: 30px;
    padding: 12px 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.btn-explore:hover {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}
