* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: geo;
}

input, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 1. თანამედროვე სტანდარტი (Firefox და ახალი Chrome) */
html {
    scrollbar-width: auto; /* სქროლის სისქე (auto ან thin) */
    scrollbar-color: rgb(168, 133, 89) #f0f0f0; /* ფერი: [თვითონ სქროლი] [ფონი] */
}

/* 2. Webkit ბრაუზერებისთვის (Chrome, Edge, Safari) */

/* მთლიანი სქროლის ზოლი */
::-webkit-scrollbar {
    width: 10px; /* სქროლის სისქე */
}

/* სქროლის ფონი (გზა, რომელზეც სრიალებს) */
::-webkit-scrollbar-track {
    background: #f0f0f0; 
}

/* თვითონ სქროლი (მოძრავი ნაწილი) */
::-webkit-scrollbar-thumb {
    background: rgb(168, 133, 89); /* შენი ყავისფერი */
    border-radius: 10px; /* მომრგვალებული კუთხეები */
    border: 2px solid #f0f0f0; /* მცირე დაშორება კიდეებიდან */
}

/* მაუსის მიტანისას რომ ფერი იცვალოს */
::-webkit-scrollbar-thumb:hover {
    background: rgb(224, 178, 41); /* შენი ყვითელი/ოქროსფერი ჰოვერზე */
}

@font-face {
  font-family: geo;
  src: url(../font/bpg_glaho.ttf);
}

body {
  background-color: rgb(245, 229, 198);
}

.logo {
  margin: 5px auto auto;
  max-width: 980px;
  height: 150px;
  background-image: url("../img/header.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(168, 133, 89);
}

@media (max-width: 768px) {
  .logo {
    margin: 0 auto;
    border: none;
  }
}

#mini-search {
  width: 280px;
  margin: 5px;
  padding: 0;
}

#mini-search .search-form {
  display: flex;
  border: 1px solid rgb(168, 133, 89);
  border-radius: 4px;
  background: #fff;
  height: 35px;
  overflow: hidden;
}

#mini-search .search-input {
  flex: 1;
  border: none;
  padding: 0 10px;
  outline: none;
  color: #333;
  width: 100%;
}

#mini-search .search-btn {
  background-color: rgb(168, 133, 89);
  color: white;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

#mini-search .search-btn:hover {
  background-color: rgb(224, 178, 41);
  color: black;
}

@media (max-width: 650px) {
  #mini-search {
    max-width: 240px;
    margin: 5px;
  }
}

.main-header {
  background-color: rgb(168, 133, 89);
  max-width: 980px;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
  margin: auto;
}

.header-container {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-menu a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.nav-menu a:hover {
  background-color: rgb(224, 178, 41);
  color: black;
}

.clock-box {
  color: white;
  font-family: monospace;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.15);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.burger-menu {
  display: none;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 650px) {
  .burger-menu {
    display: block;
    padding: 0 15px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: rgb(168, 133, 89);
    height: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a {
    padding: 15px 20px;
    justify-content: flex-start;
  }
}

main {
  max-width: 980px;
  margin: auto;
  display: flex;
  min-height: calc(100vh - 280px);
  background-color: white;
  border-left: 1px solid rgb(168, 133, 89);
  border-right: 1px solid rgb(168, 133, 89);
}

section {
  width: 680px;
}

.title {
  padding: 8px 10px;
  font-weight: bold;
}

.title a {
  color: black;
  text-decoration: none;
}

.title a:hover {
  color: rgb(123, 93, 2);
  text-decoration: underline;
}

.data {
  padding: 0 0 5px 10px;
  font-size: 13px;
}

.cardimg {
  display: flex;
  justify-content: center;
}

.cardimg img {
  max-width: 500px;
  padding: 0 8px 0 8px;
}

.text {
  padding: 5px 5px 0 8px;
  font-size: 15px;
}

.srulad {
  display: flex;
  justify-content: flex-end;
  padding: 10px 15px 5px 0;
}

.srulad a {
  color: black;
  text-decoration: none;
  background-color: #ffbb56;
  padding: 5px;
}

.srulad a:hover {
  color: rgb(114, 105, 77);
}

aside {
  width: 300px;
  padding: 0 0 15px 0;
}

.block {
  background-color: rgb(247, 217, 158);
  margin: 10px 2px 0 0;
  padding: 5px;
  border-radius: 5px;
  font-size: 18px;
}

.categories-list {
  padding: 5px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.categories-list a {
  text-decoration: none;
  color: black;
    display: block;
}

.categories-list a:hover {
  text-decoration: none;
  color: rgb(123, 93, 2);
}

.linkcat a:hover {
  text-decoration: none;
  color: black;
}


.linkcat a {
  text-decoration: none;
  color: rgb(123, 93, 2);
}

.calendar {
  min-width: 100%;
  color: black;
  text-decoration: none;
  padding: 5px;
}

.calendar a {
  color: rgb(123, 93, 2);
  text-decoration: none;
}

.archive {
  padding: 8px;
}

.archive a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.archive a:hover {
  color: rgb(123, 93, 2);
  text-decoration: underline;
}

@media (max-width: 745px) {
  main {
    flex-direction: column;
  }
}

@media (max-width: 745px) {
  section {
    width: 100%;
  }
}

@media (max-width: 745px) {
  .cardimg img {
    width: 100%;
    padding: 0 5px;
  }
}

@media (max-width: 745px) {
  aside {
    width: 100%;
  }
}

@media (max-width: 745px) {
  .calendar {
    padding: 2px 35px;
  }
}

#dle-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background: transparent;
    align-items: self-end;
}

#dle-pagination .nav-load {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

#dle-pagination a, 
#dle-pagination span {
    color: rgb(168, 133, 89);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
}

#dle-pagination span:not([class]) {
    background-color: rgb(224, 178, 41);
    color: #000;
    font-weight: bold;
    border-color: rgb(224, 178, 41);
}

@media (max-width: 650px) {
    #dle-pagination .nav-load {
        gap: 5px;
    }
    #dle-pagination a, #dle-pagination span {
        padding: 8px 10px;
        font-size: 13px;
    }
}

.top-news-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 4px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}

.top-news-card:last-child {
    border-bottom: none;
}

.top-news-card .tn-img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.top-news-card .tn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.top-news-card .tn-info {
    flex: 1;
}

.top-news-card .tn-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    font-weight: bold;
    transition: 0.2s;
}

.top-news-card .tn-date {
    margin: 0;
    font-size: 11px;
    color: #999;
}


.top-news-card:hover .tn-title {
    color: rgb(168, 133, 89);
}

.top-news-card:hover .tn-img img {
    transform: scale(1.1);
}

footer {
  margin: auto;
  max-width: 980px;
  height: 80px;
  background-color: rgb(168, 133, 89);
  display: flex;
  flex-direction: column;
  color: white;
  padding: 5px 0 0 5px;
  gap: 15px;
}

#related-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 2px solid #f0f0f0;
    padding: 0 10px;
}

.related-card {
    flex: 1;
    min-width: 200px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    margin: 0 0 5px 0;
}

.related-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: rgb(168, 133, 89);
}

.related-card .rel-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;

}

.related-card .rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.related-card:hover .rel-thumb img {
    transform: scale(1.1);
}

.related-card .rel-content {
    padding: 10px;
}

.related-card .rel-title {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    transition: 0.2s;
}

.related-card:hover .rel-title {
    color: rgb(168, 133, 89);
}

@media (max-width: 600px) {
    .related-card {
        flex: 0 0 100%;
    }
}