/*
Theme Name: NStudia
Theme URI: https://iot.org.ge/
Author: Konstantin Stalinsky
Author URI: mailto:stalinsky.k@gmail.com
Description: CSS ფაილი მოიცავს მხოლოდ Bootstrap-ის სტილებს: CSS-ცვლადებს, ბრენდის სტილს, კატეგორიის ლეიბლებს, ტიპოგრაფია გათვლილია Noto Sans Georgian შრიფტზე.
Tags: georgian, bootstrap, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
Version: 4.2.1
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Nstudia
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --ns-blue:      #385bc2;
    --ns-nav:       #4a6fd4;
    --ns-text:      #1a1a2e;
    --ns-radius:    6px;
    --ns-trans:     .2s ease;
}


/* ==========================================================================
   Global / Typography
   ========================================================================== */

body {
    font-family: 'Noto Sans Georgian', 'Noto Sans', sans-serif;
    color: var(--ns-text);

    --bd-pink-rgb: 214, 51, 132;
    background-image: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), .01), rgba(var(--bs-body-bg-rgb), 1) 85%), radial-gradient(ellipse at top left, rgba(var(--bs-primary-rgb), .5), transparent 50%), radial-gradient(ellipse at top right, rgba(var(--bd-accent-rgb), .5), transparent 50%), radial-gradient(ellipse at center right, rgba(var 113, 44, 249 (--bd-violet-rgb), .5), transparent 50%), radial-gradient(ellipse at center left, rgba(var(--bd-pink-rgb), .5), transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Georgian', 'Noto Sans', sans-serif;
}


/* ==========================================================================
   Utility — img-cover
   ========================================================================== */

.img-cover {
    width:        100%;
    aspect-ratio: 16 / 9;
    object-fit:   cover;
    display:      block;
}


/* ==========================================================================
   Hero Carousel ( front-page.php )
   ========================================================================== */

.nstudia-hero__img {
    height:      65vh;
    object-fit:  cover;
    display:     block;
    width:       100%;
    aspect-ratio: unset; /* img-cover-ს გადახდება */
}

.nstudia-hero__grad {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .65) 0%,
        transparent 60%
    );
}

.nstudia-hero__title {
    font-size:   clamp(1.2rem, 3vw, 2rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

@media (max-width: 768px) {
    .nstudia-hero__img { height: 50vh; }
}


/* ==========================================================================
   Festival Card ( relevant-festivals.php, front-page.php, archive )
   ========================================================================== */

.nstudia-card__inner {
    display:         block;
    text-decoration: none;
    color:           inherit;
    border-radius:   var(--ns-radius);
    overflow:        hidden;
    transition:      transform var(--ns-trans), box-shadow var(--ns-trans);
}

.nstudia-card__inner:hover {
    transform:  translateY(-4px);
    box-shadow: 0 8px 24px rgba(56, 91, 194, .15);
    color:      inherit;
}

/* Bootstrap ratio > * sets all children to position:absolute 100×100
   — badge-ს ვუბრუნებთ ბუნებრივ ზომებს */
.nstudia-card__badge {
    position:   absolute !important;
    top:        10px !important;
    left:       10px !important;
    width:      auto !important;
    height:     auto !important;
    background: var(--ns-blue);
    color:      #fff;
    font-size:  .72rem;
    font-weight: 600;
    padding:    4px 10px;
    border-radius: 4px;
    letter-spacing: .04em;
    text-transform: uppercase;
    pointer-events: none;
}

.nstudia-card__body {
    padding: 14px 0 1rem 1em;
}

.nstudia-card__title {
    font-size:   1rem;
    font-weight: 700;
    color:       var(--ns-text);
    margin-bottom: 0;
}

.nstudia-card__location,
.nstudia-card__dates {
    font-size:    .82rem;
    color:        #6c757d;
    margin-bottom: 4px;
}


/* ==========================================================================
   Carousel Thumbnails ( single-festival.php )
   ========================================================================== */

.nstudia-thumb {
    height:     calc(56.25% - 6px);
    width:      calc(33.333% - 6px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor:     pointer;
    opacity:    .5;
    transition: opacity var(--ns-trans);
    flex:       1;
}

.nstudia-thumb.active,
.nstudia-thumb:hover {
    opacity: 1;
}


/* ==========================================================================
   Language Switcher ( polylang.php )
   ========================================================================== */

.nstudia-lang__list {
    list-style:  none;
    padding:     0;
    margin:      0;
    display:     flex;
    gap:         12px;
    align-items: center;
}

.nstudia-lang__link,
.nstudia-lang__current {
    font-size:       .85rem;
    text-decoration: none;
    color:           rgba(255, 255, 255, .75);
    font-weight:     500;
    transition:      color var(--ns-trans);
}

.nstudia-lang__current {
    color:       #fff;
    font-weight: 700;
}

.nstudia-lang__link:hover {
    color: #fff;
}

/* Footer variant */
.nstudia-lang--footer .nstudia-lang__link,
.nstudia-lang--footer .nstudia-lang__current {
    font-size: .8rem;
}


/* ==========================================================================
   Application Form ( festival-form.php )
   ========================================================================== */

/* Honeypot — ადამიანისთვის უხილავი */
.nstudia-apply__honeypot {
    display:    none;
    visibility: hidden;
}

.nstudia-apply__title {
    font-weight: 700;
    color:       var(--ns-blue);
    margin-bottom: 1.5rem;
}

.nstudia-apply__grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   16px;
    margin-bottom:         16px;
}

@media (max-width: 576px) {
    .nstudia-apply__grid { grid-template-columns: 1fr; }
}

.nstudia-apply__field label {
    display:       block;
    font-size:     .88rem;
    font-weight:   600;
    margin-bottom: 6px;
    color:         var(--ns-text);
}

.nstudia-apply__field input {
    width:         100%;
    padding:       10px 14px;
    border:        1px solid #ced4da;
    border-radius: var(--ns-radius);
    font-size:     .95rem;
    font-family:   inherit;
    transition:    border-color var(--ns-trans), box-shadow var(--ns-trans);
    outline:       none;
}

.nstudia-apply__field input:focus {
    border-color: var(--ns-blue);
    box-shadow:   0 0 0 3px rgba(56, 91, 194, .15);
}

.nstudia-apply__required { color: #dc3545; margin-left: 2px; }

.nstudia-apply__submit { margin-top: 8px; }

.nstudia-apply__btn {
    background:   var(--ns-blue);
    border-color: var(--ns-blue);
    padding:      10px 32px;
    font-weight:  600;
}

.nstudia-apply__btn:hover {
    background:   #2d4da8;
    border-color: #2d4da8;
}

/* Feedback notices */
.nstudia-apply__notice {
    padding:       12px 16px;
    border-radius: var(--ns-radius);
    margin-bottom: 20px;
    font-size:     .9rem;
    font-weight:   500;
}

.nstudia-apply__notice--success {
    background: #d1e7dd;
    color:      #0a3622;
    border:     1px solid #a3cfbb;
}

.nstudia-apply__notice--error {
    background: #f8d7da;
    color:      #58151c;
    border:     1px solid #f1aeb5;
}


/* ==========================================================================
   Festival Content Typography ( single-festival.php )
   ========================================================================== */

.nstudia-festival__content {
    font-size:   1rem;
    line-height: 1.75;
    color:       var(--ns-text);
}

.nstudia-festival__content h2,
.nstudia-festival__content h3 {
    color:      var(--ns-blue);
    margin-top: 2rem;
}

.nstudia-festival__content p { margin-bottom: 1.1rem; }

.nstudia-festival__content a {
    color:           var(--ns-blue);
    text-decoration: underline;
}

.nstudia-festival__content ul,
.nstudia-festival__content ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.nstudia-festival__content strong { font-weight: 700; }


/* ==========================================================================
   Relevant Festivals Section ( single-festival.php )
   ========================================================================== */

.nstudia-relevant {
    border-top:  1px solid #e9ecef;
    padding-top: 2.5rem;
}

.nstudia-relevant__title {
    font-weight:   700;
    color:         var(--ns-blue);
    margin-bottom: 1.5rem;
}
