/* Global Styles */
:root {
    --primary-color: #004b8f;
    --primary-dark: #003366;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --border-color: #e1e1e1;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

/* Global Fix for Horizontal Scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

h4,
h5,
h6 {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 8px 20px !important;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Header */
.top-bar {
    background-color: var(--primary-color);
    padding: 5px 0;
    font-size: 12px;
    border-bottom: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-socials {
    display: flex;
    align-items: center;
}

.top-socials a {
    margin-left: 20px;
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
}

.top-socials a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    margin-top: 0.5rem;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: 0.3s;
}

.logo img {
    max-height: 50px;
    transition: 0.3s;
}

/* Nav Menu */
.nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.header-right-btn {
    display: block;
}

/* Dropdowns & Mega Menu */
.nav-item-dropdown,
.nav-item-mega {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    z-index: 1001;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown-menu a {
    font-size: 12px;
    display: block;
    padding: 8px 20px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 30px;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
}

.nav-item-mega:hover .mega-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.btn-hero-1,
.btn-hero-2 {
    padding: 4px 20px 4px 20px !important;
    font-size: 14px !important;
    background-color: #004b8f;
    color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-hero-2 {
    background-color: #fff;
    border: 1px solid #004b8f;
    color: #004b8f;
}

.btn-hero-2:hover {
    background-color: #004b8f;
    color: #fff;
}

.btn-hero-1:hover {
    background-color: #003366;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-col h4 {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.mega-menu-link {
    display: flex !important;
    align-items: center;
    padding: 6px 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
    transition: 0.2s;
    border-bottom: 1px dashed #f5f5f5;
    font-size: 14px !important;
}

.mega-menu-link:hover {
    color: var(--primary-color) !important;
    padding-left: 5px !important;
}

.mega-menu-link i {
    margin-right: 8px;
    color: #ccc;
    font-size: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 2000;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1616486338812-3dadae4b4f9d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 10px;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
}

/* Blog Grid */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
}

.date {
    font-size: 12px;
    color: #999;
}

/* About & Contact */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
}

/* Footer */
footer {
    background-color: #3d3d3d;
    color: #ccc;
    font-size: 14px;
}

.footer-socials-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-socials-bar a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: 0.3s;
}

.footer-socials-bar a:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col h3 {
    color: #ffffff !important;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-col p i {
    width: 20px;
    color: var(--primary-color);
    text-align: center;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    background-color: transparent !important;
    color: #aaa;
}

.footer-logo-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Ensure full height for vertical centering */
}

.footer-logo-container img {
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

/* Specific alignments for desktop footer columns */
/* Specific alignments for desktop footer columns */
@media (min-width: 993px) {

    /* Logo Column (1st) */
    .footer-grid>.footer-col:nth-child(1) {
        justify-content: center;
    }

    /* All other columns (Pages, Policies, Contact) - Left Align Items & Text */
    .footer-grid>.footer-col:nth-child(2),
    .footer-grid>.footer-col:nth-child(3),
    .footer-grid>.footer-col:nth-child(4) {
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Headers & Paragraphs */
    .footer-grid>.footer-col:nth-child(2) h3,
    .footer-grid>.footer-col:nth-child(3) h3,
    .footer-grid>.footer-col:nth-child(4) h3,
    .footer-grid>.footer-col:nth-child(4) p {
        width: 100%;
        text-align: left;
        justify-content: flex-start !important;
    }
}

/* Fixed Icons */
.fixed-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.fixed-icons.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fixed-icon-item {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: 0.3s;
    border: none;
}

.fixed-icon-item:hover {
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    right: 55px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.fixed-icon-item:hover .tooltip {
    opacity: 1;
}

/* Modern Detail Pages */
.page-header-modern {
    background: #000;
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 10px;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-title {
    color: #fff;
    font-size: 20px;
    /* Updated to 20px as requested */
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.sidebar-box {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.sidebar-menu-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.sidebar-menu-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Layout Grid for Sidebar Wrapper */
.sidebar-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.sidebar-col {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
}

.content-col {
    flex: 1;
}

@media (max-width: 992px) {
    .fixed-icons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-layout {
        flex-direction: column-reverse;
        /* Content Top, Sidebar Bottom */
    }

    .sidebar-layout.sidebar-right {
        flex-direction: column;
    }

    .sidebar-col {
        width: 100%;
        margin-bottom: 0px;
        margin-top: 10px;
        /* Add space between content and sidebar on mobile */
        position: static !important;
        /* Disable sticky on mobile */
        height: auto !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col p {
        justify-content: center;
    }

    .header-right-btn {
        display: none;
    }

    .nav-container {
        display: none;
    }

    .mega-menu {
        position: relative;
        width: 100%;
        left: 0 !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        display: none;
        padding: 10px;
    }

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

    .nav-item-mega:hover .mega-menu {
        position: relative;
        animation: none;
    }

    .page-header-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .top-info {
        display: none;
    }

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

    .top-socials {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Header Social Spacing Increased to 10px gap */
    .top-socials a {
        font-size: 14px;
        margin: 0 10px !important;
        margin-left: 0;
    }
    span {
        font-size:12px;
    }

    .logo img {
        max-height: 40px;
    }

    span {
        font-size:16px;
    }

    /* Mobile Menu Toggle Fix - Ultra High Z-Index & Click Area */
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 2147483647;
        position: relative;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 50px;
        pointer-events: auto;
    }

    /* Mobile Menu Full Screen - Sliding Animation */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        /* Start off-screen */
        background: #fff;
        z-index: 2147483646;
        padding: 40px 20px;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* Smooth slide */
        /* Smooth slide */
    }

    .nav-menu.active {
        left: 0;
        /* Slide in */
    }

    .nav-menu a {
        font-size: 22px;
        font-weight: 700;
        color: #333;
    }

    .mobile-menu-close {
        display: block;
        z-index: 2147483648;
    }

    /* Typography */
    p {
        font-size: 12px !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 14px !important;
    }

    .hero-title {
        font-size: 20px !important;
    }

    .hero-badge {
        font-size: 12px !important;
    }

    /* Hero Image Larger */
    .hero-image-container {
        width: 100% !important;
        margin-top: 20px;
        box-shadow: none;
    }

    /* Buttons */
    .btn {
        padding: 8px 15px !important;
        font-size: 12px !important;
    }

    /* Hero Button Specifics - Restoring requested size slightly */
    .btn-hero-1,
    .btn-hero-2 {
        padding: 8px 20px !important;
        font-size: 12px !important;
        white-space: nowrap;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: row !important;
        width: 100% !important;
        margin: 0 auto 30px auto !important;
        gap: 4% !important;
        justify-content: space-between;
    }

    /* Footer Styles */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        text-align: center;
        padding-bottom: 20px;
    }

    /* Column 1 (Logo) - Span 2 columns */
    .footer-grid>.footer-col:nth-child(1) {
        grid-column: span 2;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    /* Column 2 (Pages) */
    .footer-grid>.footer-col:nth-child(2) {
        text-align: center;
    }

    /* Column 3 (Policies) */
    .footer-grid>.footer-col:nth-child(3) {
        text-align: center;
    }

    /* Column 4 (Contact Info) - HIDE */
    .footer-grid>.footer-col:nth-child(4) {
        display: none !important;
    }


    .footer-col h3 {
        font-size: 14px !important;
        text-align: left;
        /* Ensure header aligns left on mobile if wanted, user asked for ul li but consistent headers look better, wait user said ul li specifically */
    }

    /* User request: mobile footer da ul içinde ki liler sola dayalı olsun */
    .footer-col ul li {
        text-align: left;
        display: flex;
        align-items: center;
        /* keep icon aligned */
    }

    .footer-col ul li a {
        font-size: 12px !important;
    }

    /* About Page Mobile Fixes */
    .page-header-title {
        font-size: 12px !important;
        /* User requested 14px title on mobile */
    }

    .page-header-breadcrumb {
        display: none;
    }

    .about-text-modern {
        font-size: 12px !important;
        /* User requested 12px text on mobile */
        padding: 15px;
        /* User requested 15px gap from everywhere */
    }

    .about-grid-modern {
        gap: 15px !important;
    }

    .footer-socials-bar {
        gap: 5px;
    }

    .footer-socials-bar a {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        margin: 0 2px;
    }

    .copyright {
        padding: 10px;
    }

    .copyright p {
        font-size: 9px !important;
    }

    .fixed-icon-item {
        display: none;
    }

    .fixed-icon-item.whatsapp-icon {
        display: flex;
        right: 20px;
        bottom: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Services Simple Grid, appended outside media query */
.services-simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .services-simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-simple-grid {
        grid-template-columns: 1fr;
    }
}

.service-box-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.service-box-simple.white-bg {
    background: #fff;
}

.service-box-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.service-arrow {
    color: #ddd;
    transition: 0.3s;
}

.service-box-simple:hover .service-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Blog Slider Styles */
.blog-slider-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.blog-slider-container::-webkit-scrollbar {
    height: 6px;
}

.blog-slider-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.blog-slider-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.blog-slider-wrapper {
    display: flex;
    gap: 25px;
}

.blog-slide-card {
    min-width: 320px;
    width: 320px;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

@media (max-width: 992px) {
    .services-simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-simple-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .service-box-simple {
        padding: 5px;
    }

    .service-title {
        font-size: 9px;
    }

    .blog-slide-card {
        min-width: 280px;
        width: 280px;
    }
}

/* Sidebar Typography - Requested Update */
.sidebar-title,
.sidebar-box h4 {
    font-size: 18px !important;
}

.sidebar-box p,
.sidebar-menu-list a,
.sidebar-box .btn {
    font-size: 14px !important;
}

/* Mobile Sidebar Typography (-2px) */
@media (max-width: 768px) {

    .sidebar-title,
    .sidebar-box h4 {
        font-size: 16px !important;
    }

    .sidebar-box p,
    .sidebar-menu-list a,
    .sidebar-box .btn {
        font-size: 12px !important;
    }
}