/*
====================================
Theme Name: My Aviation Theme
Author: Zu Tu
Version: 1.1 (Responsive Fixed)
Tested up to: 6.8
Requires at least: 5.3
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
====================================
*/

/* ==========================
   Custom Fonts
========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://cdn.web-fonts.ge/fonts/bpg-nino-mtavruli/css/bpg-nino-mtavruli.min.css');

@font-face {
    font-family: 'MyCustomFont';
    src: url('https://xn----w2gafaradwfdev.xn--node/wp-content/uploads/fonts/bpg-nino-mtavruli-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('https://xn----w2gafaradwfdev.xn--node/wp-content/uploads/fonts/bpg-nino-mtavruli-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BPG Nino Mtavruli';
    src: local('BPG Nino Mtavruli');
    font-weight: 400 700;
}

@font-face {
    font-family: 'BPG Nino Mtavruli';
    src: url('https://cdn.jsdelivr.net/gh/SandroSuknidze/bpg-fonts@main/fonts/bpg-nino-mtavruli/bpg-nino-mtavruli.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/SandroSuknidze/bpg-fonts@main/fonts/bpg-nino-mtavruli/bpg-nino-mtavruli.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'MyCustomFont', 'BPG Nino Mtavruli', Inter, sans-serif;
}

/* ==========================
   Color Palette
========================== */
:root {
    --primary-color: #4a90e2;
    --text-color: #1a3a52;
    --bg-color: #ffffff;
    --light-bg: #f8fbff;
    --border-color: #e8f0f7;
    --accent-hover: #357abd;
    --border-radius: 16px;
    --gap: 60px;
}

/* ==========================
   Global Reset & Layout
========================== */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: visible !important;
    overflow-y: auto;
    background: var(--bg-color);
    line-height: 1.6;
    color: var(--text-color);
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-color);
    line-height: 1.6;
    color: var(--text-color);
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible !important;
}

/* ==========================
   Header Styles
========================== */
.custom-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'BPG Nino Mtavruli', sans-serif;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.header-logo a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 22px;
    font-weight: bold;
}

.header-logo p,
.header-logo h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation Menu */
.header-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav .nav-menu li {
    position: relative;
    margin: 0;
}

.header-nav .nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
}

/* Call Button */
.call-btn {
    background: #ffffff;
    color: var(--text-color) !important;
    padding: 14px 44px 11px;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
    text-decoration: none;
    display: inline-block;
}

.call-btn:hover {
    background: var(--text-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Button */
.nav-call-btn {
    display: none;
    margin-top: 20px;
}

/* ==========================
   Footer Styles
========================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 50%, #2a69b1 100%);
    color: white;
    padding: 6px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(248, 251, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1px 20px;
    position: relative;
    z-index: 1;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    padding: 0 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
    color: white;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--bg-color);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(255,255,255,0.4);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    opacity: 0.95;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--bg-color);
    transition: width 0.4s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.contact-information {
    display: flex;
    flex-direction: column !important;
}

.contact-information p {
    margin-bottom: 8px;
    display: flex;
    color: #fff;
    align-items: center;
    padding: 1px 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding-left: 1px;
}

.contact-information p:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.contact-information i {
    margin-right: 12px;
    color: var(--bg-color);
    width: 20px;
    font-size: 18px;
    text-shadow: 0 2px 5px rgba(255,255,255,0.3);
    margin-top: 2px;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--bg-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    color: var(--primary-color);
}

.partners-section {
    width: 100%;
    text-align: center;
    margin: 10px 0;
    padding: 20px 0;
    position: relative;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

.partners-section h3 {
    font-size: 24px;
    margin-bottom: 35px;
    color: white;
    font-weight: 600;
    position: relative;
}

.partners-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--bg-color);
    border-radius: 2px;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    background: var(--bg-color);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.15),
        0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #5aa0f2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.partner-logo:hover::before {
    transform: scaleX(1);
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(74, 144, 226, 0.25),
        0 0 0 1px rgba(74, 144, 226, 0.2);
}

.copyright {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    padding: 0 15px;
}

.copyright p {
    position: relative;
    color: #fff;
}

.copyright p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.5);
}

/* ==========================
   Footer Ultimate Protection
========================== */

/* ==========================
   Animations
========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ==========================
   Reading Progress Bar
========================== */
#reading-progress,
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd84d 0%, #ff6b6b 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 216, 77, 0.5);
}

.reading-progress-bar {
    background: #2c5f7e;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(44,95,126,0.4);
}

/* ==========================
   SINGLE POST - 70/30 Layout
========================== */
.container.single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: visible !important;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
    overflow: visible !important;
}

/* ===================================
   ARTICLE (70%) - MAIN CONTENT
   =================================== */
.article {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.article:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-hero {
    position: relative;
    margin-bottom: 3px;
}

.post-hero .featured {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.post-meta-row {
    padding: 30px 40px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #ffffff 100%);
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
    font-family: 'BPG Nino Mtavruli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content {
    padding: 0 40px 40px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-family: 'BPG Nino Mtavruli', Georgia, 'Times New Roman', serif;
}

.post-content p { margin-bottom: 1.5rem; }

.post-content h2, .post-content h3, .post-content h4 {
    font-family: 'BPG Nino Mtavruli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-content h2 { font-size: 1.5rem; border-bottom: 3px solid #ffd84d; padding-bottom: 10px; }
.post-content h3 { font-size: 1.3rem; }
.post-content h4 { font-size: 1.2rem; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-content ul, .post-content ol { margin: 1.5rem 0; padding-left: 2rem; }
.post-content li { margin-bottom: 0.8rem; }

.post-content blockquote {
    border-left: 5px solid #ffd84d;
    margin: 2rem 0;
    padding: 20px 30px;
    background: #fff9e6;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.cta-card {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.cta-card a { display: block; }
.cta-card img { margin: 0 !important; box-shadow: none !important; }

/* ===================================
   RESPONSIVE FIXES (MOBILE)
   =================================== */
@media (max-width: 1024px) {
    .layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .article {
        order: 1; /* სტატია ზემოთ */
        width: 100%;
        display: block;
        overflow: visible !important;
    }

    .sidebar {
        order: 2; /* საიდბარი ქვემოთ */
        width: 100%;
        overflow: visible !important;
    }

    .container.single {
        padding: 20px 15px;
        max-width: 100%;
        overflow: visible;
    }

    .post-content {
        padding: 0 20px 30px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .post-meta-row {
        padding: 20px;
    }

    .post-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .post-hero .featured {
        max-height: 250px;
        border-radius: 12px 12px 0 0;
    }
}

/* ========================================
   MOBILE RESPONSIVE – HEADER & FOOTER
======================================== */

@media (max-width: 992px) {
    .header-container {
        padding: 15px 20px;
        gap: 20px;
    }

    .header-nav,
    .call-btn {
        display: none !important;
    }

    .burger {
        display: flex !important;
    }

    .header-nav.mobile-active {
        display: flex !important;
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        animation: fadeIn 0.4s ease;
    }

    .header-nav.mobile-active .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-nav.mobile-active .nav-menu a {
        font-size: 22px;
        font-weight: 600;
        color: var(--text-color);
    }

    .nav-call-btn {
        display: block !important;
        margin-top: 40px;
    }

    .nav-call-btn .call-btn {
        display: inline-block !important;
        padding: 16px 50px;
        font-size: 18px;
    }

    /* Footer */
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-information {
        align-items: baseline;
    }

    .contact-information p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .partner-logo {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .partners-logos {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .copyright {
        font-size: 14px;
    }

    .header-logo img {
        max-height: 40px;
    }

    .header-container {
        padding: 12px 15px;
    }
}