/* =========================
   ქართული მთავრული ფონტი
   BPG 2017 DejaVu Sans Caps
========================= */
@import url('https://cdn.web-fonts.ge/fonts/bpg-2017-dejavu-sans-caps/css/bpg-2017-dejavu-sans-caps.min.css');


@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&display=swap');


/* Reset + Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'BPG 2017 DejaVu Sans Caps', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.site-header,
.site-main,
.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */

.site-header {
    padding: 24px 16px 16px;
    text-align: center;
}

.logo-container {
    margin-bottom: 16px;
}

.logo-img {
    max-width: 180px;
    height: auto;
}

/* ===== NAVIGATION ===== */

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.main-nav .nav-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #374151;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e5e7eb;
}

.main-nav .nav-link:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.main-nav .nav-link.active {
    background: #F7B90F;
    color: #333333;
}

/* ===== MAIN ===== */

.site-main {
    padding: 24px 16px 40px;
}

/* სექცია: ბოლოს დამატებული ვიდეოები */
.videos-section {
    margin-top: 30px;  /* ოდნავ დაბლა ჩამოვწიეთ */
}

/* ზედა/ქვედა ხაზები + ცენტრში წარწერა */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    margin: 20px 0 25px;
    border: none;

    /* აქ ხდება მაგიის ნაწილი */
    
    background: #69ACFF;
    width: 100%;
    border-radius: 14px; /* უფრო რბილი, როგორც active ღილაკს */
}

/* სათაურის სტილი */
.section-title {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ღილაკი „ყველა ვიდეოს ნახვა“ */
.section-link {
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #374151;
    background: #e5e7eb;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.section-link:hover {
   background: #e5e7eb;
   border-color: #d1d5db;
   transform: translateY(-1px);
}

/* ღილაკი ვიდეოების ქვემოთ */
.videos-more {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* სურვილისთვის ოდნავ ფართო ღილაკი */
.videos-more-link {
    padding-left: 22px;
    padding-right: 22px;
}

/* Video Cards Grid – 3x3 */
.cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ყოველთვის 3 სვეტი */
    gap: 24px;
    justify-items: center;
}

/* ვიდეო ბლოკი */
.video-card {
    width: 100%;
    max-width: 360px;
}

/* Thumbnail box with 16:9 aspect ratio */
.thumbnail-placeholder {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    color: #4b5563;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

    aspect-ratio: 16/9;
    width: 100%;

    position: relative;
    overflow: hidden;
}

/* Hover animation */
.thumbnail-placeholder:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
    border-color: #c4c9d4;
}

/* Thumbnail image */
.thumbnail-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* Vimeo iframe */
.thumbnail-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
    display: block;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.active {
    opacity: 1;
}

@keyframes loadingPulse {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-2px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.6; }
}

.loading-overlay.active {
    animation: loadingPulse 1s infinite;
}

/* ===== HTML5 ბანერები ===== */

.banners-section {
    margin-top: 40px;
}

.no-banners-msg {
    text-align: center;
    color: #6b7280;
    margin-top: 16px;
    font-size: 0.95rem;
}

.banner-slider {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.banner-viewport {
    /* ფონის, ჩრდილის და ბორდერის მოშორება */
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 200px;
    transition: height 0.2s ease;
}

.banner-track {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide iframe {
    display: block;
}

/* Navigation arrows */
.banner-nav {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #e5e7eb;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
    color: #374151;
}

.banner-nav:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.banner-nav:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

/* Slide animations */
@keyframes slideFromRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-from-right {
    animation: slideFromRight 0.35s ease-out;
}

.slide-in-from-left {
    animation: slideFromLeft 0.35s ease-out;
}

.slide-in-initial {
    opacity: 1;
}

/* ===== CLIENT LOGOS SECTION ===== */

.clients-section {
    margin-top: 56px;  /* ოდნავ უფრო ქვემოთ ვიდეოებისგან */
}

/* ლოგოების კონტეინერი – flex, ცენტრში */
.logos-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0 10px;
    justify-content: center;   /* აქ შევცვალეთ flex-start -> center */
}

/* თითო ლოგოს ბარათი – ფიქსირებული სიგანე */
.logo-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);

    width: 240px;      /* ყველა ბარათი ერთნაირი სიგანის */
    min-height: 110px; /* სიმაღლე+ */
}

/* თვითონ ლოგო — მაქს 150x80, ცენტრში */
.logo-card img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

/* ===== FOOTER ===== */

.site-footer {
    padding: 16px;
    text-align: center;
    font-size: 0.95rem;
    color: #111827;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
    .section-header {
        padding: 6px 0;
    }

    .banner-slider {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding-bottom: 32px;
    }

    .video-card {
        max-width: 100%;
    }

    .logos-grid {
        justify-content: center;
    }

    .logo-card {
        width: 220px;
    }

    .banner-nav {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
}




.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-number,
.page-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    transition: 0.15s;
}

.page-number:hover,
.page-btn:hover {
    background: #d1d5db;
}

.page-number.active {
    background: #F7B90F;
    color: #333;
    font-weight: bold;
}



/* ========= BANNERS PAGE ========= */

.banners-page .banners-list {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}

.banner-item {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.banner-frame-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* iframe თვითონ ბანერია – კუთხეები ოდნავ მომრგვალებული */
.banner-frame {
    display: block;
    border: 0;
    border-radius: 12px;
}

/* ბანერის ქვეშ ზომა/სათაური */
.banner-meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.banner-size {
    font-weight: 500;
}

.banner-title {
    opacity: 0.8;
}

/* გამყოფი ხაზები ბანერებს შორის */
.banner-divider {
    border: 0;
    border-bottom: 3px dashed #d1d5db;
    margin: 0;
}

/* pagination იგივე სტილი, რაც ვიდეოებს აქვს */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-number,
.page-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    transition: 0.15s;
}

.page-number:hover,
.page-btn:hover {
    background: #d1d5db;
}

.page-number.active {
    background: #F7B90F;
    color: #333333;
    font-weight: bold;
}


/* ===== ABOUT PAGE – დამატებითი დაშორებები ===== */

.about-page {
    max-width: 900px;
    margin: 0 auto 40px;
     font-family: "Noto Sans Georgian", sans-serif;
}

/* intro ოდნავ უფრო ჰაეროვანი */
.about-intro {
    max-width: 720px;
    margin: 28px auto 40px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
}

/* ბარათებს შორის უფრო დიდი gap */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 36px; /* ადრე 24 იყო */
}

/* desktop-ზე ორი სვეტი, მაგრამ მაინც დიდი დაშორებით */
@media (min-width: 900px) {
    .about-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
}

/* ბარათის შიგნით მეტი ჰაერი */
.about-card {
    flex: 1;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 26px 26px 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    font-size: 0.98rem;
    line-height: 1.9;
    color: #374151;
}

/* პარაგრაფებს შორის დაშორება */
.about-card p {
    margin-bottom: 10px;
}

/* სია ცოტა ჰაეროვნად */
.about-list {
    list-style: disc;
    padding-left: 20px;
    margin: 4px 0 6px;
}

.about-list li {
    margin-bottom: 6px;
}

/* სათაურები ბარათში */
.about-card-title {
    font-size: 1rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111827;
}

/* ქვე-სათაურები */
.about-card-subtitle {
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

