@import url(aos.css);

/* Brand partners */
.home-brands {
    position: relative;
    overflow: hidden;
    padding: 44px 0 52px;
    background: #eaf5ff url('../images/index-brands.png') center / cover no-repeat;
    color: #091c46;
}

.home-brands-inner {
    position: relative;
    z-index: 1;
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
}

.home-brands-heading {
    margin-bottom: 24px;
    text-align: center;
}

.home-brands-kicker {
    margin-bottom: 8px;
    color: #1674ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.home-brands-heading h2 {
    margin: 0;
    color: #091c46;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.home-brands-divider {
    position: relative;
    width: 180px;
    max-width: 60%;
    height: 1px;
    margin: 16px auto 0;
    background: #dce8f2;
}

.home-brands-divider::after {
    position: absolute;
    top: -1px;
    left: calc(50% - 18px);
    width: 36px;
    height: 3px;
    background: #08b449;
    border-radius: 2px;
    content: '';
}

.home-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-brand-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 18px rgba(9, 28, 70, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(9, 28, 70, 0.09);
}

.home-brand-media {
    position: absolute;
    inset: 0 0 0 54%;
    background: #b5d9f6;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.home-brand-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    transition: transform 0.5s ease;
}

.home-brand-card:hover .home-brand-media img {
    transform: scale(1.04);
}

.home-brand-media::after {
    position: absolute;
    inset: 0;
    background: rgba(222, 240, 255, 0.55);
    clip-path: polygon(18% 0, 23% 0, 5% 100%, 0 100%);
    content: '';
}

.home-brand-content {
    position: relative;
    width: 58%;
    min-height: 250px;
    padding: 26px 4% 24px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: anywhere;
}

.home-brand-content h3 {
    margin: 0 0 8px;
    color: #091c46;
    font-size: clamp(20px, 1.35vw, 25px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.home-brand-content h4 {
    margin: 0 0 10px;
    color: #1e3a6d;
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 600;
    line-height: 1.4;
}

.home-brand-body {
    margin: 0;
    color: #52637f;
    font-size: 13.5px;
    line-height: 1.55;
}

.home-brand-body p { margin: 0 0 0.5em; }
.home-brand-body > :last-child { margin-bottom: 0; }
.home-brand-body img { max-width: 100%; height: auto; }
.home-brand-body table { display: block; max-width: 100%; overflow-x: auto; }

.home-brand-content strong {
    color: #00ac39;
    font-weight: 600;
}

.home-brands-watermark {
    position: absolute;
    bottom: -0.15em;
    left: 0;
    width: 100%;
    color: rgba(98, 172, 234, 0.07);
    font-size: clamp(26px, 3.8vw, 64px);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .home-brands-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-brand-card { min-height: 230px; }
    .home-brand-content { width: 58%; min-height: 230px; padding: 22px 5% 22px 4.5%; }
    .home-brand-content h3 { font-size: 22px; }
    .home-brand-content h4 { font-size: 14px; }
    .home-brand-body { font-size: 13px; }
}

@media (max-width: 767px) {
    .home-brands { padding: 36px 0 44px; }
    .home-brand-media { position: relative; inset: auto; height: 160px; clip-path: none; }
    .home-brand-media::after { display: none; }
    .home-brand-content { width: 100%; min-height: auto; padding: 20px 18px 24px; }
    .home-brand-content h3 { margin-bottom: 6px; font-size: 20px; }
    .home-brand-content h4 { font-size: 14px; }
    .home-brand-body { font-size: 13px; }
}

/* Base reset for home */
body {
    overflow-x: hidden;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.home-banner {
    position: relative;
    overflow: hidden;
    background: #0f1c30;
}

.home-banner .swiper-slide {
    position: relative;
    min-height: 580px;
    height: min(46.875vw, 900px);
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-banner .banner-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-banner .banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.home-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.45) 65%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 2;
}

.home-banner .l-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
}

.home-banner .banner-content {
    max-width: 640px;
    padding: 60px 0;
}

.home-banner .banner-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #0b63c5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-banner .banner-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #102a43;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.home-banner .banner-subtitle {
    font-size: 19px;
    font-weight: 700;
    color: #243b53;
    margin-bottom: 14px;
}

.home-banner .banner-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #486581;
    margin-bottom: 30px;
    max-width: 520px;
}

.home-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0b63c5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 32px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(11, 99, 197, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}

.home-banner .banner-btn:hover {
    background: #0952a5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 99, 197, 0.45);
    color: #ffffff;
}

.home-banner .bannerswiper-prev,
.home-banner .bannerswiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334e68;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.home-banner .bannerswiper-prev {
    left: 24px;
}

.home-banner .bannerswiper-next {
    right: 24px;
}

.home-banner .bannerswiper-prev:hover,
.home-banner .bannerswiper-next:hover {
    background: #0b63c5;
    color: #ffffff;
    border-color: #0b63c5;
}

.home-banner .banner-pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.home-banner .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9fb3c8;
    opacity: 0.8;
    margin: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-banner .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 6px;
    background: #0b63c5;
    opacity: 1;
}

/* ==========================================================================
   2. BANNER FEATURE BADGES STRIP
   ========================================================================== */
.home-banner-features {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 26px 0;
    position: relative;
    z-index: 5;
}

.banner-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.banner-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.banner-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 1.5px solid #0b63c5;
    background: #f0f7ff;
    color: #0b63c5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.banner-feature-item:hover .banner-feature-icon {
    background: #0b63c5;
    color: #ffffff;
    transform: scale(1.05);
}

.banner-feature-text {
    font-size: 13px;
    font-weight: 700;
    color: #102a43;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.35;
    max-width: 140px;
}

/* ==========================================================================
   3. ABOUT SECTION
   ========================================================================== */
.home-about {
    padding: 85px 0 90px;
    background: #ffffff;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.home-about-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #0b63c5;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.home-about-title {
    font-size: 40px;
    font-weight: 800;
    color: #102a43;
    line-height: 1.2;
    margin-bottom: 22px;
}

.home-about-desc p {
    font-size: 15px;
    line-height: 1.85;
    color: #486581;
    margin-bottom: 28px;
}

.home-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b63c5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 30px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(11, 99, 197, 0.28);
    transition: all 0.25s ease;
    text-decoration: none;
}

.home-about-btn:hover {
    background: #0952a5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 99, 197, 0.38);
}

.home-about-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.about-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.about-badge-icon {
    color: #0b63c5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    transition: transform 0.25s ease;
}

.about-badge-item:hover .about-badge-icon {
    transform: translateY(-3px);
}

.about-badge-label {
    font-size: 11px;
    font-weight: 700;
    color: #102a43;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.35;
}

.home-about-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    background: #f1f5f9;
}

.home-about-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-about-image-wrap:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   4. HISTORY SECTION (FACTORY IMAGES)
   ========================================================================== */
.home-history {
    background: #f8fafc;
    padding: 75px 0 95px;
}

.home-history-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.home-history-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #0b63c5;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.home-history-title {
    font-size: 36px;
    font-weight: 800;
    color: #102a43;
    line-height: 1.2;
    margin: 0;
}

.home-history-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334e68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.history-nav-btn:hover {
    background: #0b63c5;
    border-color: #0b63c5;
    color: #ffffff;
    transform: scale(1.05);
}

.history-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.home-history-slider {
    overflow: hidden;
}

.history-card-pair {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.history-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.history-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.history-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.history-card:hover .history-card-media img {
    transform: scale(1.06);
}

.history-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 99, 197, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.history-card:hover .history-card-overlay {
    opacity: 1;
}

.history-card-zoom-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #0b63c5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   5. LIGHTBOX MODAL
   ========================================================================== */
.tongyun-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tongyun-lightbox.is-open {
    display: flex;
}

.tongyun-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.tongyun-lightbox__container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tongyun-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

.tongyun-lightbox__close:hover {
    color: #0b63c5;
}

.tongyun-lightbox__content {
    max-height: 85vh;
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
}

.tongyun-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.tongyun-lightbox__caption {
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .home-banner .banner-title { font-size: 38px; }
    .home-about-title { font-size: 34px; }
    .home-about-grid { gap: 40px; }
}

@media (max-width: 992px) {
    .home-banner .swiper-slide { min-height: 480px; height: 50vh; }
    .banner-features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .banner-feature-item { justify-content: flex-start; }
    .home-about { padding: 60px 0; }
    .home-about-grid { grid-template-columns: 1fr; gap: 36px; }
    .home-about-image-wrap { max-width: 600px; margin: 0 auto; }
    .home-history { padding: 55px 0 70px; }
}

@media (max-width: 768px) {
    .home-banner .swiper-slide { min-height: 420px; }
    .home-banner .banner-content { padding: 40px 0; }
    .home-banner .banner-title { font-size: 28px; }
    .home-banner .banner-subtitle { font-size: 16px; }
    .home-banner .bannerswiper-prev,
    .home-banner .bannerswiper-next { display: none; }
    .home-about-title { font-size: 28px; }
    .home-history-title { font-size: 28px; }
    .home-about-badges { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
    .banner-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .home-banner-features { padding: 20px 0; }
    .home-history-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
