/*!
 * Start Bootstrap - Modern Business (https://startbootstrap.com/template-overviews/modern-business)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logomodern-business-nav/blob/master/LICENSE)
 */

body {
  padding-top: 85px;
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

.carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.portfolio-item {
  margin-bottom: 30px;
}
/* სექციის სათაურები */
/* --- SECTION HEADERS --- */
.section-title {
    margin: 60px 0 35px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.section-title span {
    position: relative;
    padding-bottom: 12px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 5px;
    background: #3b82f6;
    border-radius: 10px;
}

/* --- NEWS GRID SYSTEM --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* --- MODERN MAIN CARD --- */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.news-thumb {
    position: relative;
    overflow: hidden;
    height: 260px; /* სტაბილური სიმაღლე */
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.12);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ტექსტს ჩამოიტანს სურათის ბოლოში */
    padding: 15px;
    transition: 0.3s;
}

.news-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    /* Line Clamping - ეს აგვარებს შენს პრობლემას */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* მაქსიმუმ 2 ხაზი */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-category {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    padding: 18px 25px;
    background: #fff;
    border-top: 1px solid #f8fafc;
    margin-top: auto;
}

/* --- MINI CARDS (Category Section) --- */
.mini-card {
    border: none !important;
    background: #f8fafc !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}

.mini-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    min-height: 48px; /* სათაური აღარ "შეიკუმშება" */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card:hover {
    background: #fff !important;
}

/* --- FEATURED LANDING BANNER --- */
.category-banner {
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 100px 60px;
    color: #fff;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.banner-inner { position: relative; z-index: 2; max-width: 700px; }

.banner-inner h2 { 
    font-size: 42px; 
    font-weight: 900; 
    margin-bottom: 25px; 
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.trending-badge {
    background: #ef4444;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse-red 2s infinite;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: #fff !important;
    padding: 14px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-read-more:hover { 
    background: #2563eb; 
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* --- ANIMATIONS & PAGINATION --- */
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pagination { 
    justify-content: center; 
    margin: 40px 0; 
    gap: 6px; /* ოდნავ შევამცირეთ დაშორება */
    flex-wrap: wrap; /* მობილურზე გადაიტანს ახალ ხაზზე თუ არ დაეტია */
}

.page-link {
    border-radius: 12px !important;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 18px; /* ოდნავ დავაპატარავეთ სტანდარტულად (იყო 12x22) */
    font-weight: 700;
    transition: 0.2s;
    background: #fff;
}

.page-link:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* --- მობილურისთვის ოპტიმიზაცია --- */
@media (max-width: 576px) {
    .pagination {
        gap: 4px; /* უფრო მჭიდროდ მობილურზე */
        margin: 30px 0;
    }
    
    .page-link {
        padding: 8px 14px; /* მობილურზე საგრძნობლად პატარავდება */
        font-size: 14px;
        border-radius: 10px !important;
    }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 991px) {
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-banner { padding: 60px 30px; min-height: 380px; border-radius: 20px; }
    .banner-inner h2 { font-size: 28px; }
    .section-title { margin-top: 40px; font-size: 20px; }
}
/* Category colors by ID */

.cat-1 { background-color: #2563eb; color: #fff; }
.cat-2 { background-color: #10b981; color: #fff; }
.cat-3 { background-color: #f59e0b; color: #fff; }
.cat-4 { background-color: #ef4444; color: #fff; }
.cat-5 { background-color: #6366f1; color: #fff; }
.cat-6 { background-color: #64748b; color: #fff; }



/* RESPONSIVE */
@media(max-width:768px){
    .news-thumb {
        height: 200px; /* მობილურზე ოდნავ პატარა სიმაღლე */
    }
    
    .news-overlay h3 {
        font-size: 15px; /* მობილურზე ოდნავ პატარა შრიფტი */
        -webkit-line-clamp: 3; /* მაინც 2 ხაზი */
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* SIDEBAR */
/* --- SIDEBAR GLOBAL --- */
.sidebar-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* უფრო რბილი ჩრდილი */
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

/* --- SEARCH --- */
.sidebar-search {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-search:focus-within {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.sidebar-search input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.sidebar-search button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-search button:hover {
    background: #0b5ed7;
}

/* --- CATEGORIES --- */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #444;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.3s;
}

.sidebar-categories li:last-child a {
    border: none;
}

.sidebar-categories a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.cat-count {
    background: #f1f3f5;
    color: #6c757d;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* --- TRENDING ITEMS (WITH IMAGE & BADGE) --- */
.sidebar-latest {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item-with-img {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.trend-img-wrapper {
    position: relative;
    width: 85px; /* სურათის ზომა */
    height: 65px;
    flex-shrink: 0;
}

.trend-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* პატარა ნომერი სურათზე */
.trend-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #0d6efd;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.latest-item-content {
    display: flex;
    flex-direction: column;
}

.latest-item-content a {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 4px;
}

.latest-item-content a:hover {
    color: #0d6efd;
}

.post-meta-sidebar {
    font-size: 11px;
    color: #888;
    display: flex;
    gap: 10px;
}

/* --- STICKY BEHAVIOR --- */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* დაშორება ზემოდან სქროლვისას */
}

/* ==========================
   MODERN HEADER STYLE
========================== */

/* Navbar-ის მთავარი სტილი - ღია და სუფთა */
.modern-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee; /* თხელი ნაცრისფერი ხაზი ქვემოთ */
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* ლოგოს სტილი ღია ფონზე */
.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a; /* მუქი ტექსტი თეთრზე */
}

.brand-dot {
    color: #0d6efd; /* კლასიკური ლურჯი */
}

.brand-ge {
    font-weight: 400;
    color: #666;
}

/* მენიუს ბმულები */
.navbar-nav .nav-link {
    color: #444 !important; /* უფრო მუქი ტექსტი */
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px !important;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* ბურგერის ახალი სტილი */
.navbar-toggler {
    border: none !important;
    padding-right: 15px !important;
}

.custom-toggler-icon {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: #333; /* მუქი ფერის ხაზი */
    position: relative;
    vertical-align: middle;
}

.custom-toggler-icon::before,
.custom-toggler-icon::after {
    content: "";
    width: 24px;
    height: 2px;
    background-color: #333; /* მუქი ფერის ხაზი */
    position: absolute;
    left: 0;
}

/* ზედა ხაზი */
.custom-toggler-icon::before {
    top: -8px;
}

/* ქვედა ხაზი */
.custom-toggler-icon::after {
    top: 8px;
}

/* თუ მენიუ გახსნილია, შეგვიძლია ფერი შევუცვალოთ (სურვილისამებრ) */
.navbar-toggler:not(.collapsed) .custom-toggler-icon {
    background-color: #0d6efd;
}

/* მობილურის პადინგები და კონტეინერი */
@media (max-width: 991px) {
    .modern-navbar .container {
        padding-left: 20px !important; /* ნაპირიდან დაშორება მარცხნივ */
        padding-right: 20px !important; /* ნაპირიდან დაშორება მარჯვნივ */
    }

    .navbar-collapse {
        background: #ffffff;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border-radius: 8px;
    }
}

/* MOBILE CATEGORY BAR */
.mobile-category-bar {
    background:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
    z-index: 999;
    width:100%;
    transition: top 0.3s ease;
}

.mobile-category-bar.stick {
    position: fixed;
    top:0;
}

.category-scroll {
    display:flex;
    overflow-x:auto;
    white-space:nowrap;
    padding:15px 0;
}

.category-scroll a {
    color:#e5e7eb;
    font-size:15px;
    font-weight:600;
    text-transform:uppercase;
    padding:6px 14px;
    margin-right:8px;
    background:#111827;
    border-radius:20px;
    flex-shrink:0;
}

.category-scroll::-webkit-scrollbar {
    display:none;
}

/* ==========================
   MOBILE FIXED CATEGORY BAR
========================== */

/* Desktop: leave header fixed, category bar scrolls normally */
@media (min-width: 992px){
    .mobile-category-bar {
        position: relative;
        top: auto;
        z-index: auto;
    }
}

/* Mobile: header scrolls, category bar fixed top */
@media (max-width: 991px){
    .navbar.fixed-top {
        position: relative; /* header scrolls with page */
    }

    .mobile-category-bar.stick {
        position: fixed;
        top: 0;
        z-index: 1050; /* above other content */
        width: 100%;
    }

    body {
        padding-top: 0; /* remove extra padding for mobile */
    }
}



/* ==========================
    COMPACT & REFINED HERO
========================== */
/* Hero ბლოკების ბაზა */
.hero-main-card, .hero-side-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-main-card { height: 450px; }
.hero-side-card { height: 217px; }

/* სურათები და ეფექტები */
.main-img, .side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
}

.hero-main-card:hover .main-img, 
.hero-side-card:hover .side-img {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Gradient Overlays */
.hero-overlay, .side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.6) 50%, 
        transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.side-overlay { padding: 15px; }

/* ტექსტის სტილები */
.hero-main-title a, .hero-side-title a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-main-title { font-size: 28px; font-weight: 800; margin-top: 10px; line-height: 1.2; }
.hero-side-title { font-size: 16px; font-weight: 700; margin-top: 5px; line-height: 1.3; }

.hero-main-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
}

/* კატეგორიის ბეიჯები */
.hero-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* --- დაშორებები და მობილური ვერსია --- */

/* დესკტოპზე დაშორება გვერდითა ორ ქარდს შორის */
@media (min-width: 992px) {
    .col-lg-4 .row.g-3 > div:first-child .hero-side-card {
        margin-bottom: 16px; /* ეს არის ის "ჰაერი" რაც ვებზე აკლდა */
    }
}

/* მობილური და პლანშეტი */
@media (max-width: 991px) {
    .hero-main-card { 
        height: 380px; 
        margin-bottom: 16px; 
    }
    
    .hero-side-card { 
        height: 200px; 
    }

    /* მობილურზე რომ ერთმანეთს არ მიეტყუპოს გვერდითა ნიუსები */
    .col-lg-4 .col-12 {
        margin-bottom: 16px;
    }

    .col-lg-4 .col-12:last-child {
        margin-bottom: 0;
    }

    .hero-main-title { font-size: 22px; }
    .hero-side-title { font-size: 15px; }

    .hero-overlay { padding: 20px 15px; }
    .side-overlay { padding: 15px; }
}

/* პლანშეტზე 2 სვეტად როცაა გვერდითა ნიუსები */
@media (min-width: 768px) and (max-width: 991px) {
    .col-lg-4 .col-md-6 {
        margin-bottom: 0; /* აქ Bootstrap-ის g-3 მიხედავს */
    }
}

/* ფუტერის მთავარი კონტეინერი */
.modern-footer {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    font-family: 'Inter', sans-serif;
}

/* ლოგოს სტილი */
.logo-sum { font-size: 26px; font-weight: 800; color: #0f172a; }
.logo-dot { font-size: 26px; font-weight: 800; color: #2563eb; }
.logo-ge { font-size: 26px; font-weight: 400; color: #64748b; }

/* SEO ტექსტი */
.footer-description {
    max-width: 600px;
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
}

.footer-description strong {
    color: #1e293b;
    font-weight: 600;
}

/* ნავიგაციის ბმულები */
.footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1e293b;
    margin-bottom: 20px;
}

.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}
.footer-nav a:hover { color: #2563eb; }

/* ელ-ფოსტის სტილი */
.email-link {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

/* სოციალური აიქონები */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    color: #64748b;
    border-radius: 12px;
    margin-right: 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #2563eb;
    color: #fff !important;
    transform: translateY(-3px);
}

.footer-line { border-top: 1px solid #f1f5f9; opacity: 1; }

/* მობილურისთვის გასწორება */
@media (max-width: 991px) {
    .text-lg-end { text-align: left !important; }
    .justify-content-lg-end { justify-content: flex-start !important; }
}