/* Responsive styles */

/* ==========================================
   1. Large Desktop (min-width: 1400px)
   ========================================== */
@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1440px;
    }
}

/* ==========================================
   2. Desktop (min-width: 992px)
   ========================================== */
@media (min-width: 992px) {
    .mega-menu-item .mega-menu::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    .mega-menu-item .dropdown-menu {
        display: none;
    }

    .mega-menu-item .dropdown-menu.show {
        display: block;
    }

    .mega-menu-body-scroll {
        max-height: none;
    }

    .navbar-nav .nav-link {
        position: relative;
    }

    .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        content: none;
    }

    .navbar-nav > .nav-item:last-child > .nav-link::after {
        content: none !important;
    }
}

/* ==========================================
   3. Small Desktop / Laptop (max-width: 1199.98px)
   ========================================== */
@media (max-width: 1199.98px) {
    .mega-menu-featured {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
    }
}

/* ==========================================
   4. Tablets & IPads Landscape (max-width: 991.98px)
   ========================================== */
@media (max-width: 991.98px) {
    .top-bar-inner {
        justify-content: space-between;
    }

    .top-bar-contacts {
        padding: 0.45rem 0;
        gap: 0.5rem 0.85rem;
    }

    .top-bar-branch {
        margin-right: 0;
    }

    .top-bar-link {
        font-size: 0.72rem;
        padding: 0.22rem 0.55rem;
    }

    .top-bar-link span {
        font-size: 0.72rem;
    }

    .btn-top-branch {
        font-size: 0.72rem;
        padding: 0 0.9rem;
    }

    .btn-top-branch {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .brand-cert {
        font-size: 0.58rem;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
    }

    .site-header .navbar {
        padding: 0.65rem 0;
    }

    .navbar-nav {
        padding: 0.85rem 0 0.65rem;
        gap: 0.35rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.85rem !important;
        border-bottom: none;
        border-radius: 10px;
    }

    .navbar-nav > .nav-item:last-child > .nav-link {
        margin-left: 0;
        margin-top: 0.35rem;
        text-align: center;
        justify-content: center;
    }

    .mega-menu-item .nav-link {
        border-bottom: none;
    }

    .mega-menu {
        position: static !important;
        transform: none !important;
        animation: none;
        box-shadow: none;
        border: 1px solid rgba(27, 95, 167, 0.12);
        border-radius: 14px;
        margin: 0.35rem 0 0.75rem !important;
        padding: 0.85rem !important;
        background: #f7fafd;
        max-height: min(72vh, 620px);
        overflow-y: auto;
    }

    .mega-menu-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.65rem;
    }

    .mega-menu-title {
        font-size: 0.95rem;
    }

    .mega-menu-desc {
        font-size: 0.75rem;
    }

    .mega-menu-featured {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .mega-featured-card img {
        width: 44px;
        height: 32px;
    }

    .mega-featured-card span {
        font-size: 0.68rem;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .mega-col-title {
        font-size: 0.75rem;
    }

    .mega-product-list a {
        font-size: 0.78rem;
        padding: 0.38rem 0.45rem;
    }

    .purpose-text {
        max-width: 100%;
    }

    .purpose-illustration {
        margin-top: 1rem;
    }

    .purpose-illustration img {
        margin: 0 auto;
    }

    .network-map-wrap {
        margin-top: 1.5rem;
        margin-bottom: 0;
        padding-left: 0;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile map: city name right under each pin */
    .bpin:not(.bpin-hq) .bpin-city-label {
        display: block !important;
    }

    .bpin {
        width: 22px;
        height: 28px;
        z-index: 12;
        overflow: visible;
    }

    .bpin-hq {
        z-index: 14;
    }

    .bpin-dot {
        width: 16px;
        height: 16px;
        border-width: 1.5px;
    }

    .bpin-dot::after {
        width: 4px;
        height: 4px;
        margin: -2px 0 0 -2px;
    }

    .bpin-dot-hq,
    .bpin-hq .bpin-dot {
        width: 18px;
        height: 18px;
    }

    .bpin-pulse {
        width: 10px;
        height: 10px;
        margin-left: -5px;
        margin-bottom: -5px;
    }

    .bpin-pulse-hq {
        width: 12px;
        height: 12px;
        margin-left: -6px;
        margin-bottom: -6px;
    }

    .bpin-city-label,
    .bpin-label-bottom,
    .bpin-label-top,
    .bpin-label-left,
    .bpin-label-right,
    .bpin-lucknow .bpin-city-label,
    .bpin-noida .bpin-city-label {
        display: block !important;
        top: 100% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        margin-top: 0 !important;
        font-size: 7.5px !important;
        font-weight: 600;
        line-height: 1.1;
        max-width: 54px;
        white-space: nowrap;
        overflow: visible;
    }

    .bpin-hq .bpin-city-label {
        font-size: 8px !important;
        color: #ffcc80 !important;
    }

    .network-stat {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 0.75rem auto 0;
        text-align: center;
        z-index: 1;
    }

    .network-stat-number {
        font-size: 2.25rem;
    }

    .network-stat-label {
        font-size: 0.8rem;
    }

    .imap-tip {
        max-width: min(260px, 88vw);
        font-size: 0.78rem;
        left: 50% !important;
        right: auto !important;
        top: 8px !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        z-index: 40;
        text-align: left;
        pointer-events: none;
    }

    .map-interactive-wrapper {
        max-width: 100%;
        margin-right: auto;
    }

    .pin-label {
        font-size: 0.65rem;
        padding: 1px 3.5px;
    }

    .network-content {
        text-align: center;
        padding-right: 0;
    }

    .network-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-top-item.border-end {
        border-right: none !important;
        border-bottom: 1px solid #d8dee8;
        padding-bottom: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .footer-top-item:last-child {
        border-bottom: none;
    }

    .footer-copyright {
        text-align: left;
        margin-top: 0.5rem;
    }

    .hero-carousel .carousel-item {
        aspect-ratio: 1920 / 677;
        max-height: none;
    }

    .hero-indicators-vertical {
        right: 0.65rem;
        gap: 0.7rem;
    }

    .hero-slide-visual-left {
        width: 32%;
    }

    .hero-slide-visual-right {
        width: 34%;
    }

    .hero-tagline-ribbon span {
        white-space: normal;
    }

    .product-card-lg {
        height: 260px;
    }

    .solar-overlay-custom {
        bottom: 40px;
        left: 30px;
    }

    .about-page-banner {
        max-height: clamp(180px, 32vw, 280px);
    }

    .about-page-badge {
        width: clamp(80px, 14vw, 110px);
        bottom: -12px;
        right: 8px;
    }

    .about-page-section {
        padding: 2rem 0 3rem;
    }

    .about-bottom-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
    }

    .about-cert-logos {
        flex: none;
        padding-right: 0;
        border-right: none;
        padding-bottom: 1.75rem;
        border-bottom: 1px dotted #b8c2cc;
        justify-content: center;
    }

    .about-stats {
        justify-content: center;
        width: 100%;
        gap: 2rem;
        padding-left: 0;
    }

    .about-stat-number {
        font-size: 2.15rem;
    }

    .about-features-section {
        padding: 2.75rem 0 3.25rem;
    }

    .about-feature-card {
        padding: 1.5rem 1.35rem 1.6rem;
    }

    .about-global-section {
        padding: 3.5rem 0;
    }

    .about-global-body {
        padding-left: 0;
    }

    .about-global-visual {
        margin-top: 0.5rem;
    }

    .about-global-globe {
        max-width: 420px;
    }

    .press-slider-wrap {
        padding: 0 2.35rem;
    }

    .press-media-card {
        flex: 0 0 calc(50% - 0.58rem);
    }

    .press-media-link img {
        min-height: 200px;
    }

    .feedback-carousel {
        padding-bottom: 2.25rem;
    }
}

/* ==========================================
   5. Tablets & Mobile Portrait (max-width: 768px / 767.98px)
   ========================================== */
@media (max-width: 768px) {
    .tp-lightbox-prev {
        left: 10px;
        top: auto;
        bottom: -70px;
        transform: none;
    }

    .tp-lightbox-next {
        right: 10px;
        top: auto;
        bottom: -70px;
        transform: none;
    }

    .tp-lightbox-close {
        top: -50px;
        right: 10px;
    }

    .tp-lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }

    .tp-lightbox-img {
        max-height: 70vh;
    }
}

@media (max-width: 767.98px) {
    .product-card-feature {
        min-height: 180px;
        aspect-ratio: 4 / 3.2;
    }

    .product-feature-overlay {
        padding: 0.85rem 1rem;
    }

    .product-feature-title {
        font-size: clamp(0.9rem, 4.2vw, 1.15rem);
    }

    .product-card-transformer {
        aspect-ratio: 16 / 11;
        min-height: 200px;
    }

    .transformer-headline {
        left: 66%;
        gap: 0.1rem;
    }

    .transformer-line-white {
        font-size: clamp(0.72rem, 3.2vw, 1rem);
    }

    .transformer-line-cyan {
        font-size: clamp(0.95rem, 4.2vw, 1.35rem);
    }

    .transformer-brand {
        top: 0.75rem;
        right: 0.85rem;
    }

    .transformer-category {
        left: 0.85rem;
        bottom: 0.75rem;
        font-size: 0.75rem;
    }

    .transformer-tagline {
        right: 0.85rem;
        bottom: 0.75rem;
        font-size: 0.52rem;
        max-width: 55%;
        white-space: normal;
    }

    .video-section {
        min-height: 360px;
    }

    .video-play-area {
        width: 130px;
        height: 130px;
        margin-bottom: 1.25rem;
    }

    .video-watermark {
        width: 115px;
        height: 115px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .trusted-section {
        padding: 3rem 0 2.5rem;
    }

    .logo-item {
        width: 140px;
        height: 60px;
        padding: 0 1rem;
    }

    .logo-item img {
        max-height: 48px;
    }

    .logo-slider-wrap {
        mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    }

    .news-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .news-card-title {
        font-size: 1.05rem;
    }

    .news-card-text {
        font-size: 0.875rem;
    }



    .solar-title-custom {
        font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    }

    .hero-carousel .carousel-item {
        aspect-ratio: 1920 / 677;
        min-height: 0;
        max-height: none;
    }

    .hero-slide-overlay {
        top: calc(70% + 50px);
    }

    .hero-slide {
        min-height: 380px;
    }

    .hero-slide-visual-left {
        width: 38%;
        opacity: 0.85;
    }

    .hero-slide-visual-right {
        width: 40%;
        opacity: 0.85;
    }

    .hero-slide-content {
        max-width: 92%;
    }

    .hero-title-line {
        font-size: clamp(1rem, 4.8vw, 1.35rem);
        letter-spacing: 0.05em;
    }

    .hero-title-main {
        font-size: clamp(1.55rem, 8vw, 2.35rem);
    }

    .hero-subtitle {
        font-size: clamp(0.62rem, 2.8vw, 0.78rem);
        letter-spacing: 0.08em;
    }

    .hero-tagline-ribbon {
        padding: 0.4rem 1rem;
        margin-top: 0.75rem;
    }

    .hero-tagline-ribbon span {
        font-size: 0.68rem;
    }

    .btn-hero-slide {
        margin-top: 0.85rem;
        padding: 0.55rem 1.5rem;
        font-size: 0.8rem;
    }

    .intro-section {
        padding: 3rem 0;
    }

    .intro-label {
        margin-bottom: 1.1rem;
        font-size: 0.625rem;
        letter-spacing: 0.2em;
    }

    .intro-heading {
        font-size: clamp(1.15rem, 5vw, 1.45rem);
        line-height: 1.4;
    }

    .intro-text {
        margin-top: 1.35rem;
        font-size: 0.875rem;
        line-height: 1.58;
        max-width: 100%;
    }

    .trust-shield-badge {
        width: 128px;
        margin-top: 0.75rem;
    }
}

/* ==========================================
   6. Mobile Devices Landscape / Portrait (max-width: 575.98px / 575px)
   ========================================== */
@media (max-width: 575.98px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar-contacts {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0.75rem;
    }

    .top-bar-link {
        justify-content: center;
    }

    .top-bar-branch {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .btn-top-branch {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 1rem;
    }

    .brand-logo {
        gap: 0.5rem;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .mega-menu-featured {
        grid-template-columns: 1fr;
    }

    .bpin:not(.bpin-hq) .bpin-city-label {
        display: block !important;
    }

    .bpin-city-label,
    .bpin-hq .bpin-city-label {
        font-size: 7px !important;
        max-width: 48px;
        top: 100% !important;
        left: 50% !important;
        margin-top: 0 !important;
        transform: translateX(-50%) !important;
    }

    .network-stat {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 0.65rem;
        text-align: center;
    }

    .network-stat-number {
        font-size: 1.85rem;
    }

    .network-stat-label {
        font-size: 0.72rem;
    }

    .network-btn {
        width: 100%;
        max-width: 260px;
    }

    .about-breadcrumb {
        margin-bottom: 1.5rem;
    }

    .about-cert-logos {
        gap: 1rem 1.25rem;
    }

    .about-cert-logo {
        height: 46px;
        max-width: 95px;
    }

    .about-stats {
        gap: 1.25rem 1.5rem;
        flex-wrap: wrap;
    }

    .about-stat-item {
        text-align: center;
        flex: 1;
        min-width: 64px;
    }

    .about-stat-number {
        font-size: 1.85rem;
    }

    .about-stat-label {
        font-size: 0.75rem;
        white-space: normal;
    }

    .about-features-section {
        padding: 2.25rem 0 2.75rem;
    }

    .about-feature-icon {
        width: 46px;
        height: 46px;
    }

    .about-feature-svg {
        width: 42px;
        height: 42px;
    }

    .about-feature-title {
        font-size: 1rem;
    }

    .about-feature-text {
        font-size: 0.8125rem;
    }

    .about-global-section {
        padding: 2.75rem 0;
    }

    .about-global-head {
        gap: 0.85rem;
        padding: 1.1rem 0;
    }

    .about-global-body {
        padding-bottom: 1.1rem;
    }

    .about-global-body p {
        font-size: 0.8125rem;
    }

    .press-slider-wrap {
        padding: 0 2rem;
    }

    .press-slider-nav {
        width: 36px;
        height: 36px;
    }

    .press-media-card {
        flex: 0 0 100%;
    }

    .press-media-link img {
        min-height: 240px;
    }

    .feedback-card {
        padding: 1.15rem 1.1rem 1.1rem;
    }

    .feedback-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575px) {
    .brand-logo {
        max-height: 50px;
    }
}

/* ==========================================
   7. Accessibility Preferences
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .stagger-children>* {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float-badge,
    .float-globe,
    .about-banner-img,
    .play-btn {
        animation: none;
    }

    .hero-slide-content.hero-animate>* {
        animation: none;
    }
}