/*
Theme Name: Stack Theme
Theme URI: https://arabuli.info/stack-theme
Author: Your Name
Author URI: https://arabuli.info
Description: Custom WordPress theme built from scratch.
Version: 1.0.14
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stack-theme
*/

@font-face {
    font-family: 'MyFont';
    src: url('assets/fonts/alk-sanet.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MyFont', sans-serif;
}

.stack-header {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'MyFont', sans-serif;
}
.stack-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.stack-header .logo a {
  font-weight: bold;
  text-decoration: none;
  font-size: 1.5rem;
  color: #003366;
}
.stack-header .menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}
.stack-header .menu li {
  position: relative;
}
.stack-header .menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.stack-header .menu li:hover > ul {
  display: block;
}
.stack-header .menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 250px;
  z-index: 10;
}
.stack-header .menu ul li {
  padding: 0.5rem 0;
}
.stack-header .header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stack-header .search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.stack-header .get-started {
  background: #003366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
}

/* ჩამოსაშლელი მენიუს სტილი */
/* --- Base nav --- */
.main-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu li a {
    text-decoration: none;
    padding: 1rem 0.8rem;
    display: block;
    font-weight: 600;
    color: #003366;
    transition: color 0.2s;
}

.main-nav .menu li a:hover,
.main-nav .menu li.current-menu-item > a {
    color: #0055aa;
}

/* --- Dropdown --- */
.main-nav .menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    min-width: 320px;
    max-width: 700px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    gap: 1.5rem;
    z-index: 20;
    border-radius: 10px;
    flex-direction: column;
    /* 2 columns */
    display: none;
    column-count: 2;
    column-gap: 2rem;
}

.main-nav .menu li:hover > ul.sub-menu,
.main-nav .menu li:focus-within > ul.sub-menu {
    display: block;
}

.main-nav .menu li ul.sub-menu li {
    width: 100%;
    padding: 0.3rem 0;
    margin-bottom: 0.2rem;
    break-inside: avoid;
}

.main-nav .menu li ul.sub-menu li:last-child {
    margin-bottom: 0;
}

.main-nav .menu li ul.sub-menu li a {
    font-weight: 500;
    font-size: 1rem;
    color: #222;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.main-nav .menu li ul.sub-menu li a:hover,
.main-nav .menu li ul.sub-menu li.current-menu-item > a {
    background: #f0f6ff;
    color: #003366;
}

.main-nav .menu li ul.sub-menu li::marker {
    display: none;
    content: "";
}

@media (max-width: 900px) {
    .main-nav .menu {
        flex-direction: column;
        gap: 0;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        z-index: 100;
    }
    .main-nav.open .menu {
        display: flex;
    }
    .main-nav .menu li {
        width: 100%;
    }
    .main-nav .menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding: 0.5rem 1rem;
        min-width: 0;
        max-width: 100%;
        border-radius: 0;
        column-count: 1;
        column-gap: 0;
    }
}



/* სლაიდერის სტილისთვის */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper {
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px; /* ან იგივე რაც .hero-slider-ს */
    position: relative;
}

/* Overlay that covers the entire slide */
.hero-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* შავი ჩრდილი */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    color: white;
    padding: 2rem 3rem;
    text-align: center;
    max-width: 700px;
    border-radius: 12px;
    z-index: 2;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    background: none; /* წაშალეთ ან დააყენეთ none */
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* მეორე ბლოკის სტილი */

.support-grid {
  text-align: center;
}
.support-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.support-item {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
}
.support-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.support-item img {
  width: 64px;
  margin-bottom: 1rem;
}
.support-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.support-item p {
  font-size: 0.95rem;
  color: #555;
}
.support-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.support-btn:hover {
  background: #ddd;
}

.support-item img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* cta სტილი */

.cta-support {
  background: #003366;
  padding: 4rem 1rem;
  text-align: center;
  color: white;
}


.cta-inner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #003366;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.cta-button:hover {
  background: #f0f0ff;
}

/* ძირითადი სექციის დაშორება */
.section-spacing {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* footer style */

.site-footer {
  background: #f5f5f5;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  color: #444;
}

.footer-right {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

.footer-right a {
  color: #000;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right span {
  color: #888;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* საინფორმაციო ბლოკის სტილი */
.feature-block {
  background: #f9f9ff;
}

.feature-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-image {
  flex: 1 1 45%;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  height: auto;
}

.feature-content {
  flex: 1 1 50%;
}

.feature-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
  }

  .feature-content {
    text-align: center;
  }
}


/* futured page style */
.featured-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center; /* ცენტრში ვერტიკალურად */
}

.featured-image {
    flex: 1 1 45%;
    text-align: left; /* მარცხნივ სურათი */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    display: block;
}

.featured-content {
    flex: 1 1 55%;
    text-align: left; /* მარჯვნივ ტექსტი */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .featured-layout {
        flex-direction: column;
        gap: 1.2rem;
    }

    .featured-content, .featured-image {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .featured-image {
        justify-content: center;
    }
}

/* ბლოგ-პოსტის ბლოკი მთავარ გვერდზე */
.blog-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.blog-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-img {
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* მრუდიანი ფორმის იმიტაცია */
.blog-img::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    border-radius: 100% / 20%;
}

.blog-content {
    padding: 1.5rem;
    text-align: left;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #111;
}

.blog-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    font-weight: bold;
    color: #e60023;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #000;
}

/* Single Post Style */
.blog-single-hero {
    background: linear-gradient(135deg, #003366 0%, #0072ff 100%);
    padding: 6rem 1rem;
    color: #fff;
    text-align: center;
}

.blog-single-hero,
.blog-single-hero * {
    color: #fff !important;
}

.blog-single-hero h1 {
  font-size: 2rem;
  font-weight: 700;
}

.blog-single-content {
  padding: 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-featured-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.blog-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

/* საკონტაქტო გვერდის page-contact.php-ის სტილი */
.contact-section {
  max-width: 700px;
  margin: auto;
  padding: 3rem 1rem;
}
.contact-section form div {
  margin-bottom: 1.5rem;
}
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-section button {
  padding: 0.7rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.contact-success {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}
