/**
 * Techno Plus Engineers - Custom Bridge & Styling Layer
 */

:root {
    --primary-color: #0095da;
    --primary-hover: #00aeef;
    --heading-color: #2e3192;
    --accent-orange: #ffac1a;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Header & Navigation Fixes */
header.primary_header_left {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    z-index: 999;
}

.bizberg_header_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo img.site_logo {
    max-height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img.site_logo {
    transform: scale(1.02);
}

#responsive-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

#responsive-menu > li {
    position: relative;
    margin: 0 4px;
}

#responsive-menu > li > a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #2e3192;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 4px;
}

#responsive-menu > li:hover > a,
#responsive-menu > li.current-menu-item > a,
#responsive-menu > li.current-menu-ancestor > a {
    color: var(--primary-color);
    background: rgba(0, 149, 218, 0.06);
}

/* Dropdown Sub-menu */
#responsive-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

#responsive-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#responsive-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f2f2f2;
}

#responsive-menu .sub-menu li:last-child a {
    border-bottom: none;
}

#responsive-menu .sub-menu li:hover > a,
#responsive-menu .sub-menu li.current-menu-item > a {
    color: var(--primary-color);
    background: #f7faff;
    padding-left: 24px;
}

/* Mobile Navigation */
.slicknav_menu {
    display: none;
    background: transparent;
    padding: 0;
}

@media (max-width: 991px) {
    #responsive-menu {
        display: none !important;
    }
    .slicknav_menu {
        display: block !important;
    }
    .slicknav_btn {
        background: var(--primary-color) !important;
        border-radius: 4px;
        margin: 15px 0;
    }
    .slicknav_nav {
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 10px 0;
    }
    .slicknav_nav a {
        color: #333 !important;
        font-weight: 600;
        padding: 10px 20px !important;
    }
    .slicknav_nav a:hover,
    .slicknav_nav .slicknav_row:hover {
        background: #f0f7fc !important;
        color: var(--primary-color) !important;
    }
}

/* Hero / Breadcrumb Banner */
.homepage_banner {
    padding: 90px 0 80px;
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    text-align: center;
}

.homepage_banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 25, 45, 0.72);
}

.homepage_banner .container {
    position: relative;
    z-index: 2;
}

.homepage_banner .banner_title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.homepage_banner .banner_subtitle {
    color: #f0f4f8;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    margin: 0;
}

/* Page Section Spacing */
.blog-section {
    padding: 50px 0 60px;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-weight: 600;
}

/* Buttons */
.btn-primary,
.elementor-button,
a.elementor-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 24px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover,
.elementor-button:hover,
a.elementor-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 149, 218, 0.3);
}

/* Footer Enhancements */
#colophon {
    background: #0095da;
    color: #ffffff;
}

#colophon h2 {
    color: #ffffff !important;
}

#colophon a {
    color: #e0f2fe;
    text-decoration: none;
    transition: color 0.2s ease;
}

#colophon a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#colophon .hfe-nav-menu li a {
    padding: 6px 0;
    display: inline-block;
    font-size: 15px;
}

.hfe-copyright-wrapper {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #e0f2fe;
    font-size: 14px;
}

/* Popup Modal Styles */
.pum-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pum-container {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: pumFadeIn 0.3s ease;
}

@keyframes pumFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.pum-title {
    background: var(--primary-color);
    color: #ffffff;
    padding: 16px 24px;
    font-size: 20px;
    font-weight: 600;
}

.pum-content {
    padding: 24px;
}

.pum-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.pum-close:hover {
    transform: scale(1.2);
}

.wpcf7-response-output {
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.wpcf7-response-output.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-response-output.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Gallery Lightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Flash alerts */
.flash-container {
    padding: 15px 0 0;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}
