/* Header Styles - Gönen Belediyesi - Complex Grid Layout */
:root {
    --header-bg: var(--bg-white);
    --nav-text: var(--text-main);
    --nav-hover: var(--primary-color);
    --social-bg: rgba(128, 128, 128, 0.6);
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--nav-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Main Header Container */
.main-header {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100px;
}

/* Left Column - Logo and Site Title */
.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-section img {
    height: 80px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 100;
    margin: 0;
    -webkit-text-stroke: 0;
    letter-spacing: 0.3rem;
}

/* Right Column - 3 Column Nested Grid */
.header-right {
    display: grid;
    grid-template-columns: auto auto 30px;
    gap: 0;
    align-items: stretch;
    height: 100%;
    width: auto;
    max-width: none;
}

/* Column 1 - Atatürk Portrait */
.ataturk-section {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.ataturk-section img {
    height: 100px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Column 2 - Two Row Menu Area */
.menu-section {
    display: grid;
    grid-template-rows: 20px 80px;
    gap: 0;
    height: 100%;
}

/* Top Menu */
.top-menu {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 5px;
    margin: 0;
    height: 20px;
}

.top-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 300;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.top-menu a:hover {
    opacity: 0.8;
}

.top-menu a::before {
    content: "•";
    margin-right: 0.2rem;
    font-size: 1rem;
    vertical-align: middle;
}

/* Bottom Menu */
.bottom-menu {
    background: white;
    border-radius: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    height: 80px;
}

.bottom-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    height: 40px;
}

.bottom-menu a:last-child {
    border-right: none;
}

.bottom-menu a:hover {
    color: var(--secondary-color);
}

.bottom-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.bottom-menu a:hover::after {
    width: 100%;
}

/* Column 3 - Social Media Icons */
.social-section {
    display: grid;
    grid-template-rows: repeat(4, 25px);
    gap: 0;
    height: 100%;
}

.social-icon {
    background-color: var(--social-bg);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 25px;
}

.social-icon:hover {
    background-color: rgba(128, 128, 128, 8);
}

.social-icon a {
    color: white;
    text-decoration: none;
    font-size: 1.0rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    background: var(--primary-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
}

.mobile-nav-header span {
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close i {
    font-size: 1.5rem;
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-nav-section {
    margin-bottom: 25px;
}

.mobile-nav-section h4 {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-section ul li {
    margin-bottom: 5px;
}

.mobile-nav-section ul li a {
    display: block;
    padding: 10px 0;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.mobile-nav-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.mobile-nav-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.mobile-nav-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile Accordion Styles */
.mobile-nav-accordion {
    margin-bottom: 20px;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-align: left;
    text-decoration: none;
}

.accordion-header span {
    flex: 1;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-link {
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
    margin: 0 -20px;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    padding-bottom: 10px;
}

.accordion-content a {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.accordion-content a:last-child {
    border-bottom: none;
}

.accordion-content a:hover {
    background: #e2e8f0;
    color: var(--primary-color);
    padding-left: 20px;
}

/* Secondary Section - Güncel */
.mobile-nav-secondary {
    background: #f8fafc;
    margin: 0 -20px;
    padding: 15px 20px;
}

.mobile-nav-secondary h4 {
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-links-grid a {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.quick-links-grid a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Accordion Subgroup Styles */
.accordion-subgroup {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.subgroup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 15px 5px;
    margin-bottom: 0;
}

.accordion-subgroup a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.accordion-subgroup a:last-child {
    border-bottom: none;
}

.accordion-subgroup a i {
    font-size: 1rem;
    margin-right: 5px;
    color: var(--secondary-color);
}

.accordion-subgroup a:hover {
    background: #e2e8f0;
    color: var(--primary-color);
    padding-left: 20px;
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* TABLET VIEW: 768px - 1024px */
@media (max-width: 1024px) {
    .header-container {
        height: 80px;
        padding: 0 15px;
    }

    .logo-section img {
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .ataturk-section {
        display: none;
    }

    .menu-section {
        grid-template-rows: 18px 62px;
    }

    .top-menu {
        height: 18px;
        padding: 0 3px;
    }

    .top-menu a {
        font-size: 0.5rem;
    }

    .bottom-menu {
        height: 62px;
    }

    .bottom-menu a {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .social-section {
        grid-template-rows: repeat(4, 20px);
    }

    .social-icon {
        height: 20px;
    }

    .social-icon a {
        font-size: 0.8rem;
    }

    /* Hide Mega Menu on Tablet */
    .mega-menu-overlay {
        display: none !important;
    }
}

/* MOBILE VIEW: below 768px */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .header-container {
        height: auto;
        min-height: 60px;
        padding: 10px 15px;
        align-items: center;
    }

    .logo-section img {
        height: 55px;
    }

    .logo-text {
        display: none;
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
        position: relative;
    }

    /* Hide entire right section */
    .header-right {
        display: none;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }

    .logo-section img {
        height: 50px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hamburger-line {
        width: 18px;
    }

    .mobile-nav {
        width: 280px;
        right: -280px;
    }
}


/* ===========================
   Mega Menu Styles
   =========================== */

/* Mega Menu Container */
.mega-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 350px;
    background-color: #ffffff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
}

/* Hover Trigger */
.menu-item-wrapper:hover .mega-menu-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Mega Menu Inner Content Grid */
.mega-menu-inner {
    width: 100%;
    max-width: var(--container-width);
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 0;
}

/* Left Column: Links */
.mega-col-links {
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
}

.mega-col-links h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.mega-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col-links ul li {
    margin-bottom: 0.0rem;
}

.mega-col-links ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.5s ease, padding-left 0.5s ease;
    display: flex;
    align-items: center;
}

.mega-col-links ul li a i {
    margin-right: 8px;
    font-size: 0.8rem;
    transition: margin-right 0.5s ease;
}

.mega-col-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Middle Column: Text */
.mega-col-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1rem;
    padding-bottom: 3rem;
    text-align: right;
}

.mega-quote {
    font-size: 1.0rem;
    line-height: 1.2;
    color: var(--text-light);
    font-weight: 200;
    margin-bottom: 0;
    position: relative;
}

.mega-signature {
    font-size: 1.0rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 0.1rem;
    font-family: var(--font-heading);
}

/* Middle Column: General */
.mega-col-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    height: 100%;
}

/* Middle Column: Box Style */
.mega-col-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.mega-col-box h4 {
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.mega-col-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col-box ul li {
    margin-bottom: 0.2rem;
}

.mega-col-box ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.mega-col-box ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Right Column: Image */
.mega-col-image {
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mega-col-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive Hide */
@media (max-width: 991px) {
    .mega-menu-overlay {
        display: none !important;
    }
}

/* Contact Mega Menu Layout Override */
.mega-menu-inner.contact-layout {
    grid-template-columns: 300px 1fr !important;
    gap: 3rem !important;
    padding-top: 2rem;
    align-items: center;
}

/* Left Column: Buttons */
.mega-col-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    background-color: #2e1d55;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

.contact-btn i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}

/* Right Column: Info Grid */
.mega-col-info-grid {
    display: flex;
    width: 100%;
    gap: 1.5rem;

}

.info-box {
    text-align: center;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    min-width: 0;
}

.info-box .icon-wrap {
    font-size: 2rem;
    color: #2e1d55;
}

.info-box h5 {
    color: #2e1d55;
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}
