/*!
 * 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;
}
/* NEWS GRID */
.news-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
}

/* CARD */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* რბილი გადაადგილება და ჩრდილი */
}

.news-card:hover {
    transform: translateY(-2px); /* ძალიან მსუბუქი “წევა” */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* რბილი ჩრდილი */
}


.news-thumb {
    position: relative;
    overflow: hidden;
}

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

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

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.news-overlay h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-category {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
    padding: 10px;
    margin-top: auto; /* აქ იყენებს flex-ის ძალას, რომ დაბლა ჩამოიყვანოს */
    background: #f9f9f9; /*optional*/
    border-top: 1px solid #eee; /*optional*/
}
/* 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-grid{
        grid-template-columns:1fr;
    }
    .news-thumb{
        height:200px;
    }
}


/* SIDEBAR */
.sidebar-box{
    background:#fff;
    padding:22px;
    border-radius:16px;
    margin-bottom:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.sidebar-title{
    font-size:17px;
    font-weight:700;
    margin-bottom:18px;
    border-left:4px solid #0d6efd;
    padding-left:10px;
}

/* SEARCH */
.sidebar-search{
    display:flex;
    border-radius:30px;
    overflow:hidden;
    border:1px solid #ddd;
}

.sidebar-search input{
    border:none;
    padding:10px 15px;
    width:100%;
    outline:none;
}

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

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

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

.sidebar-categories li{
    border-bottom:1px solid #eee;
}

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

.sidebar-categories a{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    color:#333;
    font-weight:500;
    transition:.3s;
}

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

/* LATEST NEWS */
.sidebar-latest{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-latest li{
    margin-bottom:12px;
}

.sidebar-latest a{
    color:#333;
    font-size:14px;
    line-height:1.4;
    display:block;
    transition:.3s;
}

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

/* LATEST NEWS WITH IMAGE */
.latest-item{
    display:flex;
    gap:12px;
    margin-bottom:15px;
}

.latest-item img{
    width:65px;
    height:65px;
    object-fit:cover;
    border-radius:10px;
    flex-shrink:0;
}

.latest-item a{
    font-size:14px;
    font-weight:600;
    color:#222;
    line-height:1.3;
    display:block;
    transition:.3s;
}

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

.latest-date{
    font-size:12px;
    color:#777;
    display:block;
    margin-top:4px;
}
.sticky-sidebar{
    position:sticky;
    top:90px;
}

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

/* Navbar base */
.modern-navbar{
    background:#0b0f19;
    box-shadow:0 6px 30px rgba(0,0,0,.35);
    padding:10px 0;
}

/* Logo */
.navbar-brand{
    font-weight:800;
    font-size:22px;
    letter-spacing:-0.5px;
}

.navbar-brand img{
    margin-right:10px;
}

.brand-text {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff; /* SUM. თეთრი */
    padding-left:15px;
}

.brand-gradient {
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9); /* ლურჯი gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text:hover {
    transform: scale(1.05);
    cursor: pointer;
    transition: all 0.3s ease;
}



/* Menu links */
.navbar-nav .nav-link{
    color:#d1d5db;
    font-size:14px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.4px;
    padding:8px 14px;
    transition:all .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
    color:#38bdf8;
}

/* Login button */
.login-btn{
    padding:6px 14px;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    border-radius:10px;
    background-color:#0b0f19;
}

/* Mobile */
.navbar-toggler{
    border:none;
}

.navbar-toggler:focus{
    outline:none;
    box-shadow:none;
}

/* Mobile menu */
@media (max-width: 991px){
    .navbar-nav{
        background:#0b0f19;
        padding:15px;
        border-radius:8px;
    }

    .navbar-nav .nav-link{
        padding:10px 0;
        border-bottom:1px solid rgba(255,255,255,.05);
    }

    .navbar-nav .nav-item:last-child .nav-link{
        border:none;
    }
}

/* MOBILE CATEGORY BAR */
.mobile-category-bar {
    background:#0b0f19;
    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 */
    }
}



/* HERO SECTION */
.hero-section {
  background: #f8f9fa;
  padding: 30px 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero-text .hero-category {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-text .hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text .hero-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 350px;
}

@media(max-width: 991px){
  .hero-section {
    text-align: center;
  }
  .hero-image {
    margin-top: 20px;
  }
}
