/* ========================================
    GeneX UI Overrides for Infrgy Template
    Premium Design System — V3 (Fully Aligned)
    ======================================== */

/* === Global Reset & Typography === */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #F8FAFC !important;
    color: #1E293B !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em;
}

/* Typography scale */
h1 {
    font-size: 2.75rem !important;
    line-height: 1.15 !important;
}

h2 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
}

h3 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
}

h4 {
    font-size: 1.35rem !important;
    line-height: 1.4 !important;
}

h5 {
    font-size: 1.15rem !important;
    line-height: 1.45 !important;
}

h6.text-primary {
    color: #3B82F6 !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    margin-bottom: 0.75rem !important;
}

p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Unified Section Spacing */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.my-5 {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
}

/* === Global Overflow Fix === */
html,
body {
    overflow-x: hidden !important;
}

/* ========================================
    NAVBAR — Fully Aligned at 64px
    ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    min-height: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Force ALL navbar children to 64px height */
.navbar .navbar-brand,
.navbar .nav-item.nav-link,
.navbar a.btn,
.navbar .nav-item.btn,
.navbar .navbar-nav {
    height: 64px !important;
    max-height: 64px !important;
    display: flex !important;
    align-items: center !important;
}

/* Navbar brand */
.navbar-brand {
    padding: 0 24px !important;
    height: 64px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar-brand img {
    max-height: 38px !important;
    height: auto !important;
    width: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    display: block !important;
}

.navbar-brand img:hover {
    transform: none !important;
}

/* Nav Links — perfectly centered */
.navbar .nav-item.nav-link {
    text-transform: capitalize !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #475569 !important;
    padding: 0 14px !important;
    margin: 0 2px !important;
    border-radius: 10px;
    transition: all 0.3s ease !important;
    position: relative;
    line-height: 64px !important;
    height: 64px !important;
}

.navbar .nav-item.nav-link:hover,
.navbar .nav-item.nav-link.active {
    color: #1E40AF !important;
    background-color: rgba(30, 64, 175, 0.06) !important;
}

/* CTA button in navbar — perfectly aligned */
.navbar a.btn,
.navbar .nav-item.btn {
    height: 40px !important;
    max-height: 40px !important;
    padding: 0 22px !important;
    font-size: 0.85rem !important;
    line-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    align-self: center !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-right: 16px;
    height: 64px !important;
    display: flex;
    align-items: center !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* ========================================
    IMAGE STYLING — Scoped to Content Only
    ======================================== */

/* Content images (not logos, not navbar, not icons) */
img:not(.navbar-brand img):not(.no-rounded):not(.media-item img):not(.footer img):not(.owl-dot img) {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Explicit image classes */
.img-content,
img.img-fluid:not(.navbar-brand img):not(.media-item img) {
    border-radius: 24px !important;
}

/* Preserve rounded on elements with .rounded */
.rounded {
    border-radius: 24px !important;
}

/* iframe videos — rounded */
.ratio.rounded iframe,
.ratio.rounded,
.ratio.rounded.overflow-hidden iframe {
    border-radius: 24px !important;
    overflow: hidden !important;
}

.ratio.rounded.overflow-hidden {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

/* ========================================
    GLASSMORPHISM UTILITIES
    ======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08) !important;
}

.glass-dark {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.6)) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 24px !important;
}

/* ========================================
    CAROUSEL / HERO
    ======================================== */
.header-carousel .owl-carousel-inner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5)) !important;
}

.header-carousel .owl-carousel-item img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Carousel dots */
.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 56px;
    height: 56px;
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.5);
    border: 2px solid #3B82F6;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: all 0.4s ease;
}

/* ========================================
    PAGE HEADER (inner pages)
    ======================================== */
.page-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.6)),
        url("../img/New folder/new/2.webp") center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.2), transparent 60%);
    pointer-events: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #3B82F6 !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ========================================
    VIDEO PLAY CARD
    ======================================== */
.video-play-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 24px;
    display: block;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.video-play-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.video-play-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-play-card:hover img {
    transform: scale(1.05);
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.55) 100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-play-card:hover .video-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.play-button-overlay {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.5), 0 0 60px rgba(30, 64, 175, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    position: relative;
}

.play-button-overlay i {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-left: 4px;
}

.video-play-card:hover .play-button-overlay {
    transform: scale(1.12);
    background: linear-gradient(135deg, #0B1B3D, #1E40AF);
    box-shadow: 0 0 50px rgba(30, 64, 175, 0.6), 0 0 100px rgba(30, 64, 175, 0.3);
}

/* ========================================
    MEDIA CARDS — Equal Height Grid
    ======================================== */
.media-item {
    border-radius: 24px !important;
    padding: 1.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.media-item img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.media-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(30, 64, 175, 0.15) !important;
}

.media-item::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #3B82F6;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.media-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.media-item p {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
    flex-grow: 1 !important;
}

/* ========================================
    VIDEO MODAL
    ======================================== */
.modal-content.glass-dark {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border-radius: 24px !important;
}

/* ========================================
    TEAM CARDS
    ======================================== */
.team-item {
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.team-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12) !important;
}

.team-item img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: cover !important;
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: none !important;
}

.team-item:hover img {
    transform: scale(1.05);
}

.team-social-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #1E40AF, #0F172A);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.team-item:hover .team-social-overlay {
    bottom: 0;
}

.team-social-overlay a {
    color: #fff !important;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.team-social-overlay a:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
    BUTTONS
    ======================================== */
.btn {
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 0.95rem !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #1e3a8a) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.35) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0B1B3D, #1E40AF) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.45) !important;
    border: none !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: #1E40AF !important;
    border: 2px solid #1E40AF !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #1E40AF !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

/* ========================================
    SERVICE / FEATURE ITEMS
    ======================================== */
.service-item {
    border-radius: 24px !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06) !important;
    transition: all 0.4s ease !important;
    overflow: visible !important;
    border: none !important;
    background: #FFFFFF !important;
    margin-top: 50px !important;
}

.service-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1) !important;
}

.service-icon {
    position: relative;
    margin: -50px auto 25px auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E40AF;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
}

/* ========================================
    PORTFOLIO / GALLERY
    ======================================== */
#portfolio-flters li {
    display: inline-block;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: #1E40AF;
    border-color: transparent;
    background: rgba(30, 64, 175, 0.06);
}

.portfolio-img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.6));
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: 0.2s;
}

.portfolio-item .portfolio-img img {
    border-radius: 24px !important;
}

/* ========================================
    QUOTE SECTION
    ======================================== */
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* ========================================
    ABOUT / FEATURE / CONTACT EDGE SECTIONS
    ======================================== */
@media (min-width: 992px) {

    .container.about,
    .container.feature,
    .container.contact {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* ========================================
    TESTIMONIAL
    ======================================== */
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: #1E40AF;
    font-size: 45px;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #0F172A;
    transform: scale(1.1);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    border-radius: 24px !important;
    transform: scale(.95);
    transition: all 0.4s ease;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

/* ========================================
    FOOTER
    ======================================== */
.footer {
    background: linear-gradient(180deg, #0F172A 0%, #0B1B3D 100%) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF, #3B82F6, #60A5FA, #3B82F6, #1E40AF);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

.footer .btn.btn-social {
    margin-right: 8px;
    color: #9B9B9B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer .btn.btn-social:hover {
    color: #fff;
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #3B82F6;
    letter-spacing: 0.5px;
    transform: translateX(4px);
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .copyright a {
    color: #F1F5F9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .copyright a:hover {
    color: #3B82F6;
}

/* Newsletter input — flexbox, no absolute positioning issues */
.footer .position-relative.w-100 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: static !important;
}

.footer .form-control.bg-transparent {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.footer .position-relative.w-100 .btn-primary {
    position: static !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Mobile newsletter fix */
@media (max-width: 576px) {
    .footer .position-relative.w-100 {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .footer .form-control.bg-transparent {
        width: 100% !important;
    }

    .footer .position-relative.w-100 .btn-primary {
        width: 100% !important;
    }
}

/* ========================================
    SECTION BACKGROUNDS
    ======================================== */
.bg-light {
    background-color: #F1F5F9 !important;
}

.bg-white {
    background-color: #FFFFFF !important;
}

/* ========================================
    SECTION HEADING DECORATION
    ======================================== */
.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #3B82F6);
    border-radius: 3px;
    margin: 12px auto 0;
}

/* ========================================
    CARD UTILITIES
    ======================================== */
.card-elevated {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-elevated:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

/* ========================================
    BADGE STYLES
    ======================================== */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
    margin-bottom: 12px;
}

.source-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3B82F6;
    animation: badgeDot 1.5s ease-in-out infinite;
}

/* ========================================
    BACK TO TOP
    ======================================== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #1E40AF, #3B82F6) !important;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5) !important;
}

/* ========================================
    WIRELESS CENTERING — Proper Cross-browser
    ======================================== */
.wireless_main {
    text-align: center;
}

.wireless_video {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
    SMOOTH SCROLL
    ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
    RESPONSIVE — NAVBAR MOBILE
    ======================================== */
@media (max-width: 991px) {
    .navbar {
        height: auto !important;
        min-height: 64px !important;
        max-height: none !important;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 12px 0;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .navbar .navbar-nav {
        height: auto !important;
        max-height: none !important;
    }

    .navbar .nav-item.nav-link {
        height: auto !important;
        max-height: none !important;
        line-height: normal !important;
        padding: 12px 24px !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .navbar .navbar-brand {
        height: 64px !important;
        padding: 0 16px !important;
    }

    .navbar a.btn,
    .navbar .nav-item.btn {
        height: auto !important;
        max-height: none !important;
        line-height: normal !important;
        margin: 10px 24px !important;
        padding: 12px 22px !important;
        width: calc(100% - 48px) !important;
        text-align: center !important;
        display: block !important;
    }
}

/* ========================================
    RESPONSIVE — MOBILE SIZING
    ======================================== */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-dots {
        right: 10px;
    }

    .header-carousel .owl-dots .owl-dot {
        width: 32px;
        height: 32px;
    }

    .header-carousel .owl-dots .owl-dot.active {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .float-orb--sm {
        width: 100px !important;
        height: 100px !important;
    }

    .float-orb--md {
        width: 175px !important;
        height: 175px !important;
    }

    .float-orb--lg {
        width: 250px !important;
        height: 250px !important;
    }

    .glass-dark.p-5 {
        padding: 1.5rem !important;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px !important;
        height: 40px !important;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .my-5 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

/* ========================================
    WIRELESS LEFT — Desktop
    ======================================== */
@media (min-width: 768px) {
    .wireless_left {
        left: 33%;
    }
}

/* ========================================
    SECTION DIVIDER — Subtle Gradient Line
    ======================================== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.15), transparent);
    margin: 0;
    border: none;
}

.section-divider--thick {
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.2), rgba(59, 130, 246, 0.3), rgba(30, 64, 175, 0.2), transparent);
}

/* ========================================
    BLOCKQUOTE REFINEMENT
    ======================================== */
blockquote.border-start {
    border-radius: 0 16px 16px 0 !important;
}

/* ========================================
    IMAGE OVERLAY GRADIENT (team card)
    ======================================== */
.img-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
}

/* ========================================
    PAGE HEADER PARTICLES
    ======================================== */
.page-header-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.page-header-particles span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.page-header-particles span:nth-child(1) {
    left: 5%;
    top: 80%;
    animation-delay: 0s;
    width: 4px;
    height: 4px;
}

.page-header-particles span:nth-child(2) {
    left: 15%;
    top: 30%;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.page-header-particles span:nth-child(3) {
    left: 25%;
    top: 70%;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}

.page-header-particles span:nth-child(4) {
    left: 35%;
    top: 45%;
    animation-delay: 3s;
    width: 2px;
    height: 2px;
}

.page-header-particles span:nth-child(5) {
    left: 50%;
    top: 20%;
    animation-delay: 4s;
    width: 6px;
    height: 6px;
}

.page-header-particles span:nth-child(6) {
    left: 60%;
    top: 85%;
    animation-delay: 0.5s;
    width: 4px;
    height: 4px;
}

.page-header-particles span:nth-child(7) {
    left: 70%;
    top: 35%;
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

.page-header-particles span:nth-child(8) {
    left: 80%;
    top: 55%;
    animation-delay: 2.5s;
    width: 5px;
    height: 5px;
}

.page-header-particles span:nth-child(9) {
    left: 90%;
    top: 15%;
    animation-delay: 3.5s;
    width: 4px;
    height: 4px;
}

.page-header-particles span:nth-child(10) {
    left: 95%;
    top: 75%;
    animation-delay: 5s;
    width: 3px;
    height: 3px;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0.8;
    }
}

/* ========================================
    FILTER PILLS (Media Page)
    ======================================== */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

.filter-btn:hover {
    background: #DBEAFE !important;
    color: #1E40AF !important;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #1E40AF !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.35) !important;
}

/* ========================================
    NEWS GRID ITEM (Filter Transitions)
    ======================================== */
.news-item {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* ========================================
    IMAGE ZOOM UTILITY
    ======================================== */
.img-zoom-target {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-glow:hover .img-zoom-target {
    transform: scale(1.06) !important;
}

/* ========================================
    SOURCE BADGE (Inline source label)
    ======================================== */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
    margin-bottom: 12px;
}

.source-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3B82F6;
    animation: badgeDot 1.5s ease-in-out infinite;
}

/* ========================================
    RESPONSIVE — MEDIA PAGE STATS
    ======================================== */
@media (max-width: 768px) {
    .page-header .display-3 {
        font-size: 1.75rem !important;
    }

    .page-header .fs-5 {
        font-size: 0.95rem !important;
    }
}