/* Add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}
/* Custom Fonts - Vikrant ! I have removed this optimization because of the font issue. */

/* Custom Color Palette */
:root {
--primary-dark-blue: #0A0F35;
--primary-medium-blue: #000270;
--primary-button-blue: #000270;
--brand-red: #171BAB; /* Same as the blue in the image */
--brand-text: #333333;
}
/* Global Styles & Typography */
body {
font-family: 'Montserrat', sans-serif;
color: #000000;
margin: 0;
transition: padding-top 0.3s ease; /* Smooth transition for padding adjustment */
}
/* FIX: Increased selector specificity to override Tailwind's base styles and set correct weight */
body h1, body h2, body h3, body h4, body h5, body h6 {
font-family: 'Montserrat', sans-serif;
color: var(--primary-medium-blue);
font-weight: 600;
}
/* Responsive H2 sizing - FIX: Reverted to original size */
h2 {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem;
}
/* FIX: Paragraphs updated to Roboto, 400 weight, and justified */
p {
font-family: "Roboto", Sans-serif;
font-weight: 400;
line-height: 1.7;
color: #555;
text-align: justify;
}
.font-roboto {
font-family: 'Roboto', sans-serif;
}
.btn {
transition: all 0.3s ease-in-out;
display: inline-block;
background-color: var(--primary-button-blue);
border-radius: 4px;
text-transform: uppercase;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
background-color: var(--brand-red);
}
/* Hero Section */
.hero-clip { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
/* Backgrounds */
.bg-stats-map {
background-image: url('https://kvatransformer.com/wp-content/uploads/2025/07/mapfinal-1.png');
background-size: contain; background-position: center; background-repeat: no-repeat;
}
.contact-bg-image {
background-image: linear-gradient(rgba(0, 2, 112, 0.85), rgba(0, 2, 112, 0.85)), url('https://kvatransformer.com/wp-content/uploads/2025/06/power-transformer-top-image-replace.jpg');
background-size: cover;
background-position: center;
}
.contact-bg-image h2,
.contact-bg-image p,
.contact-bg-image div {
color: #ffffff;
}
/* About Us Image Style */
.about-us-image-container::before {
content: ''; position: absolute; background: var(--primary-medium-blue); width: 60%;
height: 110%; top: -5%; right: 0; z-index: -1; border-radius: 8px;
}
/* --- UPDATED FAQ STYLES --- */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out, padding-bottom 0.5s ease-out;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.faq-item.open .faq-answer {
    max-height: 1000px;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}
.faq-icon {
    transition: transform 0.3s ease-in-out;
}
/* Slider Customization */
.client-slider .swiper-button-next,
.client-slider .swiper-button-prev {
color: var(--primary-medium-blue);
top: 50%;
transform: translateY(-50%);
}
@media (max-width: 768px) {
.hero-clip { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
h1 { font-size: 2.5rem !important; }
.about-us-image-container::before { display: none; }
.client-slider .swiper-button-next,
.client-slider .swiper-button-prev {
display: none;
}
}
/* FIX: Added mobile-specific styles from user request */
@media (max-width: 767px) {
    h2, .elementor-heading-title {
        font-size: 1.4375rem !important; /* 23px */
    }
    p, .elementor-text-editor {
        font-size: 14px;
    }
    .why-choose-us-item p {
        font-size: 14px; /* Ensure consistency */
    }
}

/* --- Reusable Container --- */
.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
/* --- Site Header - MODIFIED FOR FLOATING --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
/* --- Header Top Bar --- */
.header-top {
    background-color: #171BAB;
    color: #ffffff;
    position: relative;
    height: 55px;
}
.header-top-container {
    position: relative;
    height: 100%;
    justify-content: space-between;
}
.header-top-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    bottom: 0;
    width: 33%;
    background-color: #ffffff;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
    z-index: 1;
}
.cert-logos, .contact-details {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}
.cert-logos {
    gap: 15px;
    padding-left: 10px;
}
.cert-logos img {
    height: 38px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 2px;
}
.contact-details {
    gap: 25px;
}
.contact-details a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}
.contact-details a:hover {
    opacity: 0.8;
}
/* --- Main Header Navigation --- */
.header-main {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.header-main .header-container {
    justify-content: space-between;
}
.site-logo img {
    max-height: 75px;
    display: block;
}
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 28px;
}
.main-navigation ul li {
    position: relative;
}
.main-navigation a {
    text-decoration: none;
    color: #171BAB;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}
.main-navigation a:hover {
    color: #0056b3;
}
.cta-button {
    background-color: #171BAB;
    color: #ffffff;
    padding: 18px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #00015a;
}
/* --- Submenu Styles (JS Controlled) --- */
.main-navigation .has-submenu > a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-navigation .submenu-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
}
.main-navigation .has-submenu.submenu-open > a .submenu-arrow {
    transform: rotate(90deg);
}
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    padding: 10px 0;
    margin-top: 10px;
    list-style: none;
    min-width: 260px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    z-index: 1000;
}
.main-navigation .has-submenu.submenu-open > .sub-menu {
    display: block;
}
.main-navigation .sub-menu li {
    width: 100%;
}
.main-navigation .sub-menu a {
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
}
.main-navigation .sub-menu a:hover {
    background-color: #f5f5f5;
}
/* --- Mobile Specific Elements --- */
.hamburger-menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--brand-text);
}
/* --- Responsive adjustments for header --- */
@media (max-width: 1024px) {
    .main-navigation, .cta-button {
        display: none;
    }
    .hamburger-menu-icon {
        display: block;
    }
    .header-top {
        height: auto;
        padding: 8px 0;
    }
    .header-top-container {
        flex-direction: column;
        gap: 8px;
    }
    .header-top-container::before {
        display: none; /* Hide the angled background on mobile */
    }
    .cert-logos, .contact-details {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .cert-logos {
        gap: 10px;
        padding-left: 0;
    }
    .cert-logos img {
        height: 30px;
    }
    .contact-details {
        gap: 15px;
        font-size: 13px;
    }
    .contact-details a {
        font-size: 13px;
    }
    .header-main {
        padding: 10px 15px;
    }
    .header-main .header-container {
        padding: 0 10px;
    }
    .site-logo img {
        max-height: 50px;
    }
}

/* Base styles for the section's grid container */
.why-choose-us-section .grid {
    max-width: 56rem; /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; /* A smaller gap for mobile */
}
.why-choose-us-item {
    display: flex;
    flex-direction: row; /* Always row */
    align-items: center; /* Vertically center icon with text */
    text-align: left;
    padding: 1rem;
}
/* Style for the icon container */
.why-choose-us-item .icon {
    flex-shrink: 0;
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    margin-right: 1.5rem; /* Space between icon and text */
}
.why-choose-us-item .icon img {
    margin: 0 auto; /* Ensure icon is centered */
}
.why-choose-us-item p {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    text-align: left;
}
/* --- Styles for Desktop (md screens and up) --- */
@media (min-width: 768px) {
    .why-choose-us-section .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem; /* Restore original gaps for desktop */
    }
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #F7F7F7;
}
.gallery-main-image-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    aspect-ratio: 16 / 10;
    background-color: #e0e0e0;
}
.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}
.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 2, 112, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    opacity: 1; /* Always visible */
}
.gallery-nav-button:hover {
    background-color: rgba(0, 2, 112, 0.8);
}
.gallery-nav-button.prev { left: 10px; }
.gallery-nav-button.next { right: 10px; }
.gallery-thumbnails-wrapper {
    position: relative;
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 10px; /* Padding for mobile */
}
.gallery-thumbnails-container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.gallery-thumbnails-container::-webkit-scrollbar {
    display: none;
}
.gallery-thumbnail {
    width: 100px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
    background-color: #e0e0e0;
}
.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}
.gallery-thumbnail.active {
    border-color: var(--primary-medium-blue);
    opacity: 1;
    transform: scale(1.05);
}
.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
#lightbox.active {
    display: flex;
    opacity: 1;
}
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}
.lightbox-close-button {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.lightbox-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 2, 112, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.lightbox-nav-button:hover {
    background-color: rgba(0, 2, 112, 0.7);
}
.lightbox-nav-button.prev { left: 15px; border-radius: 0 5px 5px 0; }
.lightbox-nav-button.next { right: 15px; border-radius: 5px 0 0 5px; }
@media (max-width: 768px) {
    .gallery-nav-button { width: 40px; height: 40px; font-size: 20px; }
}

/* Popup Menu Styles */
.popup-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.popup-menu-container.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}
.popup-menu-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #ffffff;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}
.popup-menu-container.active .popup-menu-content {
    right: 0;
}
.popup-header {
    background-color: var(--brand-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
}
.popup-close-button {
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.popup-nav-body {
    flex-grow: 1;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.popup-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}
.popup-logo img {
    height: 45px;
}
.popup-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}
.popup-nav-links li a {
    display: block;
    padding: 15px 0;
    color: var(--brand-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}
.popup-nav-links li a:hover {
    color: var(--brand-red);
}
.popup-nav-links .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-nav-links .submenu-arrow {
    display: inline-block;
    font-size: 20px;
    transition: transform 0.3s ease;
}
.popup-nav-links .has-submenu.submenu-open > a .submenu-arrow {
    transform: rotate(90deg);
}
.popup-nav-links .submenu {
    list-style: none;
    padding-left: 20px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s ease-out;
}
.popup-nav-links .has-submenu.submenu-open > .submenu {
    max-height: 1000px; 
}
.popup-nav-links .submenu a {
    font-size: 16px;
    font-weight: 400;
    padding: 12px 15px;
}
@media (max-width: 767px) {
    .popup-menu-content {
        max-width: 320px;
    }
}

/* Floating Action Button Styles */
#fab-container {
    z-index: 998;
}

#fab-actions {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}
#fab-container.open #fab-actions {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.fab-action-button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease;
}
.fab-action-button:hover {
    transform: scale(1.1);
}
#fab-container.open #fab-icon {
    transform: rotate(180deg);
}
#go-to-top {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
}
#go-to-top.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Social Icon Enhancements */
.social-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}
.social-icon:hover {
    background-color: #ffffff;
    color: var(--primary-medium-blue);
    transform: scale(1.1) rotate(5deg);
}
.social-icon i {
    font-size: 22px;
}

/* ========================================================================= */
/* MANUFACTURING PROCESS PAGE - SCROLLING LAYOUT                           */
/* ========================================================================= */

.mf-section {
    padding-top: 150px;
    padding-bottom: 4rem;
}

.mf-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .mf-section {
        padding-top: 180px;
    }
    .mf-container {
        grid-template-columns: 3fr 9fr; /* 2-column layout for desktop */
        gap: 3rem;
        align-items: start;
    }
}

/* --- Sticky Sidebar Navigation --- */
.mf-sidebar {
    position: sticky;
    top: 180px; /* Adjust this value to sit perfectly below your header */
    align-self: start; /* Important for sticky positioning in a grid */
}

.manufacturing-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manufacturing-nav li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    border: 1px solid #2a2a63;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #000270;
    color: white;
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
}
.manufacturing-nav li a span {
    flex-grow: 1;
    text-align: left;
    margin: 0 0.75rem;
}
.manufacturing-nav li a:hover {
    background-color: var(--brand-red);
    transform: translateX(5px);
}
.manufacturing-nav li a.active {
    background-color: var(--brand-red);
    transform: translateX(5px);
    font-weight: 600;
}

/* --- Scrollable Content Panel --- */
.mf-content-block {
    padding-bottom: 4rem; /* Space between each section */
}
.mf-content-block:last-child {
    padding-bottom: 0;
}
.mf-content-panel h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 2.5rem;
    }
}
.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}