/* =========================================
   FRENEBI.NET - ძირითადი პარამეტრები
   ========================================= */
:root {
    --primary-color: #0077e6;
    --secondary-color: #ff5a2c;
    --bg-color: #f8faff;
    --text-color: #333;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'BPG Nino Mtavruli', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =========================================
   ჰედერი და ნავიგაცია
   ========================================= */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo a::before {
    content: '\2708';
    margin-right: 10px;
    font-size: 24px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.logo a:hover::before {
    transform: rotate(15deg);
}

.logo span {
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* =========================================
   მთავარი ბანერი (Hero Section)
   ========================================= */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: 46px;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-weight: 700;
}

.hero-section h1 span {
    color: var(--secondary-color);
}

/* =========================================
   საძიებო ტაბები და ფორმები
   ========================================= */
.search-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    transform: translateY(40px);
    z-index: 10;
    position: relative;
}

.search-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.tab-link {
    background: rgba(20, 25, 35, 0.7);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.tab-link:hover {
    background: rgba(20, 25, 35, 0.9);
}

.tab-link.active {
    background: #ffffff;
    color: var(--secondary-color);
}

.search-tab-content {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease;
}

.search-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
}

.input-group {
    flex: 1;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.input-group input, .input-group select {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    width: 100%;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
}

.input-group input[type="date"] {
    font-size: 14px;
}

.input-group input::placeholder {
    color: #1f2937;
    font-weight: bold;
}

.divider {
    width: 1px;
    height: 45px;
    background: #e5e7eb;
    margin: 0 10px;
}

.search-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-right: 5px;
}

.search-btn:hover {
    background: #e0481d;
    transform: scale(1.05);
}

/* =========================================
   საინფორმაციო შეტყობინებები (info.tpl)
   ========================================= */
.system-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    text-align: center;
    border-left: 5px solid var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.message-header b {
    font-size: 18px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.message-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   მთავარი კონტენტი და ბლოგის ბარათები
   ========================================= */
.main-content {
    padding: 120px 0 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.post-card-category a {
    color: #fff;
    text-decoration: none;
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.post-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--secondary-color);
}

.post-card-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #7b8290;
    margin-bottom: 18px;
}

.post-card-text {
    font-size: 14px;
    color: #5b6573;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: var(--secondary-color);
}

/* =========================================
   სრული სტატიის (Fullstory) სტილები
   ========================================= */
.full-post {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.full-post-header {
    margin-bottom: 25px;
    text-align: left;
}

.full-post-category a {
    background: rgba(255, 90, 44, 0.08); 
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.full-post-category a:hover {
    background: var(--secondary-color);
    color: #fff;
}

.full-post-title {
    font-size: 32px;
    color: #111827; 
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 800;
}

.full-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.author-avatar-box {
    width: 45px;
    height: 45px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid #e0f0ff;
}

.meta-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 14px;
    color: #6b7280;
}

.author-name b {
    color: #111827;
    font-weight: 700;
}

.post-date {
    font-size: 13px;
    color: #9ca3af;
}

.full-post-image {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.full-post-image ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.full-post-image li {
    padding: 0 !important;
    margin: 0 !important;
}

.full-post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* =========================================
   ჩაშენებული ავია-ვიჯეტი (Inline Flight Search)
   ========================================= */
.inline-flight-search {
    background-color: #e5e7eb; 
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0 40px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.ifs-top-bar {
    text-align: right;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 15px;
    font-weight: 600;
}

.ifs-separator {
    color: #0077e6;
    margin: 0 5px;
}

.ifs-currency {
    color: #0077e6;
}

.ifs-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ifs-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px 15px;
    flex: 1;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ifs-group input, .ifs-group select {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    background: transparent;
}

.ifs-group input::placeholder {
    color: #6b7280;
    font-weight: 500;
}

.ifs-swap {
    color: #111827;
    font-size: 18px;
    margin: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

.ifs-divider {
    width: 1px;
    height: 25px;
    background: #d1d5db;
    margin: 0 15px;
}

.ifs-btn {
    background-color: #eab308; 
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    height: 50px;
    font-weight: bold;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(234, 179, 8, 0.3);
}

.ifs-btn:hover {
    background-color: #ca8a04;
}

.ifs-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    font-weight: bold;
}

.ifs-link {
    color: #0056b3;
    text-decoration: none;
}

.ifs-link:hover {
    text-decoration: underline;
}

.ifs-checkbox {
    color: #0056b3;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.full-post-content {
    font-size: 17px; 
    line-height: 1.8;
    color: #374151;
}

.full-post-content > p:first-of-type {
    font-size: 19px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 25px;
}

.full-post-content h2, .full-post-content h3 {
    color: #1a202c;
    margin: 35px 0 15px;
    font-weight: 700;
}

.full-post-content p {
    margin-bottom: 18px;
}

.full-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.full-post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.full-post-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tags-container a {
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    margin-left: 5px;
    transition: background 0.3s;
}

.tags-container a:hover {
    background: var(--primary-color);
    color: #fff;
}

.back-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.back-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
}

.comments-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
}

.comments-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

/* =========================================
   სექციის სათაურები (ცენტრალური)
   ========================================= */
.section-header-centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-centered h2 {
    font-size: 28px;
    color: #111827;
    font-weight: 800;
    margin-bottom: 10px;
}

.heading-line-yellow {
    width: 40px;
    height: 3px;
    background-color: #eab308;
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================
   ავიაკომპანიების სექცია
   ========================================= */
.partners-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.airlines-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.airline-logo {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.airline-logo img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.airline-logo img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.slider-dots {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    background: transparent;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: #4b5563;
    border-color: #4b5563;
}

/* =========================================
   FAQ (ხშირად დასმული კითხვები)
   ========================================= */
.faq-section {
    padding: 40px 0 80px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-icon::after {
    content: '+';
}

.faq-item[open] {
    border-color: #fef08a;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.08);
}

.faq-item[open] .faq-question {
    color: #eab308;
    border-bottom: 1px solid #f9fafb;
}

.faq-item[open] .faq-icon::after {
    content: '✕';
    color: #eab308;
}

.faq-answer {
    padding: 20px 25px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   მთავარი ფუტერი (4-სვეტიანი)
   ========================================= */
.main-footer {
    background-color: #1a202c; 
    color: #a0aec0;
    padding: 70px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col h3 span {
    color: var(--secondary-color);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #2d3748;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    font-weight: bold;
    font-size: 13px;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
}

/* =========================================
   რესპონსივი (მობილურზე მორგება)
   ========================================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .ifs-form { flex-direction: column; }
    .ifs-group { width: 100%; }
    .ifs-btn { width: 100%; }
    .ifs-bottom-bar { flex-direction: column; gap: 15px; align-items: flex-start; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }
    
    .hero-section h1 { font-size: 32px; }
    
    .custom-search-form { flex-direction: column; }
    .divider { width: 100%; height: 1px; margin: 10px 0; }
    .search-btn { width: 100%; height: 55px; margin-top: 15px; margin-right: 0; }
    
    .search-tabs { flex-wrap: wrap; }
    .tab-link { flex: 1; justify-content: center; font-size: 13px; padding: 10px; }
    
    .full-post { padding: 20px; }
    .full-post-title { font-size: 24px; }
    .comments-section { padding: 20px; }
    
    .airlines-grid { justify-content: center; }
    .airline-logo { flex: 0 0 30%; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col h3, .footer-col h4 { margin-top: 20px; }
}