/*
Theme Name: SKT Clean Pro Child
Description: Child theme for SKT Clean Pro. You can now safely customize it and not risk losing your customizations.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: skt-clean-pro
Version: 1.0
*/
/* годинник в шапці */
.head-info-area .emltp {
    font-size: 14px !important;
    color: white !important;
    float: none !important;
    padding-left: 10px !important;
}
.slider-main {
max-height: 70vh;
}
.slider-main .nivo-caption {
    top: 20%;
}
#topmenu ul li ul {
    width: 320px;
    z-index: 999 !important;
}
.slider-main .nivo-caption {
    z-index: 995;
}
@media (min-width: 1024px) {
    .home.has_trans_header .slider-header-layout1 .nivo-caption {
        top: 20%;
    }
}
.post-featured-image img {
	display: block;
    max-width: 100%;
    height: auto;
	margin: 0 auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

#breadcrumbs {
    font-size: 16px;
    color: #666;
}
#breadcrumbs a {
    text-decoration: none;
    color: #0073aa;
}
.custom-blog-title {
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: 700;
  color: #333;
}

.main-title-overview {
  display: none !important;
}

.forum-topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin: 20px auto;
    max-width: 1200px;
    padding: 10px;
}

.forum-topic-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #eef2ff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.forum-topic-card:hover {
    background: #dbeafe;
    transform: translateY(-4px);
}

.forum-topic-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1e40af;
}

.forum-topic-card a {
    text-decoration: none;
    color: inherit;
}

.forum-meta {
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}
/* Прибираємо кружки тільки в блоці завантажених файлів */
.post-message .uploaded-files-title + ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-message .uploaded-files-title + ul .uploaded-file {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-message .uploaded-files-title + ul img {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
}
/* Стилі для модалки */
#forum-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
#forum-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
#forum-lightbox.active {
    display: flex;
    cursor: zoom-out;
}


.weather-block {
  display: flex;
  gap: 10px;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}
/* інформери каталогів в футері під погодою */
.informers {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.informers div {
  width: 88px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.informers img, .informers a img {
  display: block !important;
}

@media (max-width: 768px) {
    .forum-topic-card {
        flex: 1 1 100%;
    }
}
.pad_menutitle {
    background-color: #1e73be;
    font-size: 20px;
}
.sidr-class-menu ul li a {
    font-size: 20px;
    line-height: 34px;
}
#sidebar #sidebar .widget, #sidebar .widget .widget_wrap {
    color: #999;
    min-height: 25vh;
	overflow: hidden;
}
#sidebar .widget .widgettitle, #sidebar .widget .widgettitle a:link, #sidebar .widget .widgettitle a:visited {
    font-size: 20px;
}
.asgarosforum-widget {
    font-size: 16px;
}
#sidebar .widget li {
    list-style-type: none;
    margin: 10px 0;
}

/* пошук */
#custom-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-search-form {
    background: #f9f9f9;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    max-width: 600px;
    width: 90%;
}

.custom-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.custom-search-form input[type="search"]:focus {
    border-color: #0073aa;
    outline: none;
}

.custom-search-form button {
    background-color: white;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.custom-search-form button:hover {
    background-color: #005f8d;
}

#close-search {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 22px;
    color: #fff;
    background: #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

/* обговорити на форумі */
.forum-link {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
    text-align: right;
}

.forum-link a {
    font-style: italic;
    text-decoration: none;
    color: inherit;
}

.forum-link a:hover {
    text-decoration: underline;
}

.responsive-table {
  overflow-x: auto;
  margin-top: 1em;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.responsive-table th,
.responsive-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
}

.responsive-table th {
  background-color: #f5f5f5;
}

.responsive-table td:first-child,
.responsive-table th:first-child {
  text-align: left;
}

.responsive-table td:not(:first-child),
.responsive-table th:not(:first-child) {
  text-align: center;
}
/* social icons in footer */
/* Контейнер */
.social-links {
  display: flex;
  justify-content: left; /* центр по горизонталі */
  gap: 15px;
  padding: 10px 0;
}

/* Посилання */
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent; /* фон прозорий */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Іконки */
.social-links svg {
  width: 40px;
  height: 40px;
  fill: currentColor; /* щоб брало колір із <a> */
}

/* Telegram */
.social-links a[aria-label="Telegram"] {
  color: #0088cc;
}

/* Facebook */
.social-links a[aria-label="Facebook"] {
  color: #1877f2;
}

/* Ефект наведення */
.social-links a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
/* === Стилізація таблиці мінімальних запасів === */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th,
table td {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
}

table th {
  background: #f4f6f8;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

table td:first-child {
  font-weight: 500;
}

table tr:nth-child(even) td {
  background: #fafafa;
}

table tr:hover td {
  background: #f1f7ff;
}

/* --- Мобільна адаптація --- */
@media (max-width: 768px) {
  table {
    font-size: 14px;
  }

  table thead {
    display: none;
  }

  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  table td:last-child {
    border-bottom: none;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 45%;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
  }
}

/* === Кінець стилізації таблиці мінімальних запасів === */
/* Asgaros Forum: read-only for guests */
body:not(.logged-in) .asgarosforum-post-form,
body:not(.logged-in) .asgarosforum-reply,
body:not(.logged-in) .asgarosforum-quote,
body:not(.logged-in) .asgarosforum-login,
body:not(.logged-in) form.asgarosforum-form {
    display: none !important;
}

/* popupbutton */
.sale-btn{
  display:inline-block;
  background:#0070C0;
  color:#ffffff !important;
  padding:14px 26px;
  font-size:16px;
  font-weight:600;
  text-decoration:none !important;
  border-radius:8px;
  box-shadow:0 4px 14px rgba(0,0,0,0.15);
  transition:all .25s ease;
}

.sale-btn:hover{
  background:#005fa3;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

.sale-btn:active{
  transform:translateY(0);
  box-shadow:0 3px 10px rgba(0,0,0,0.15);
}