/* ==========================================================================
   Bosh sahifa (landing) uchun tartib va dizayn qatlami.
   style.css / normalize.css dan KEYIN ulanadi.
   Maqsad: bloklar simmetrik joylashsin, kartochkalar bir xil balandlikda
   bo'lsin va matnlar kesilib qolmasin.
   ========================================================================== */

:root {
    --tp-green: #017A5B;
    --tp-green-dark: #01614a;
    --tp-ink: #0d2b22;
    --tp-body: #5a6b64;
    --tp-muted: #7b8a84;
    --tp-soft: #f6f9f8;
    --tp-radius: 12px;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 96px 0 170px;      /* pastdagi joy — kartochkalar ustma-ust tushishi uchun */
    overflow: hidden;
    background: #eef3f1;
}

/* --- Surilib almashadigan fon rasmlari --- */
.hero-bg-slider,
.hero-bg-slider .owl-stage-outer,
.hero-bg-slider .owl-stage,
.hero-bg-slider .owl-item,
.hero-bg {
    height: 100%;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Matn o'qilishi uchun oq gradient parda */
.hero-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.86) 0%,
            rgba(255, 255, 255, 0.74) 38%,
            rgba(255, 255, 255, 0.28) 62%,
            rgba(255, 255, 255, 0) 86%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Slayder o'q tugmalari — o'ng tomonda, kartochkalar ustidan yuqorida */
.hero .owl-nav {
    position: absolute;
    right: 42px;
    bottom: 150px;
    display: flex;
    gap: 10px;
    z-index: 3;
    margin: 0;
}

.hero .owl-nav .owl-prev,
.hero .owl-nav .owl-next {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tp-green);
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    margin: 0;
    padding: 0;
    transition: all 0.25s ease;
}

.hero .owl-nav .owl-prev:hover,
.hero .owl-nav .owl-next:hover {
    background: var(--tp-green);
    color: #ffffff;
}

.hero-content {
    max-width: 560px;
}

/* --- Hero matni animatsiyasi ---
   Har safar fon slaydi almashganda matn qayta "chiqadi".
   `both` tufayli JS ishlamasa ham element ko'rinib qoladi. */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-anim {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Ketma-ket (kaskad) chiqishi uchun kechikishlar */
.hero-content .hero-badge.hero-anim        { animation-delay: 0.05s; }
.hero-content h1.hero-anim                 { animation-delay: 0.18s; }
.hero-content .hero-lead.hero-anim         { animation-delay: 0.30s; }
.hero-content .hero-btn-primary.hero-anim  { animation-delay: 0.42s; }
.hero-content .hero-btn-app.hero-anim      { animation-delay: 0.52s; }
.hero-content .hero-note.hero-anim         { animation-delay: 0.64s; }

/* Foydalanuvchi harakatni kamaytirishni tanlagan bo'lsa - animatsiya yo'q */
@media (prefers-reduced-motion: reduce) {
    .hero-anim {
        animation: none;
    }
}

.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 22px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--tp-green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: 46px;
    line-height: 58px;
    font-weight: 700;
    color: var(--tp-ink);
}

.hero-content h1 span {
    color: var(--tp-green);
}

.hero-lead {
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 28px;
    color: #3d4d47;
}

/* Tugmalar ustma-ust, bir xil kenglikda — simmetriya uchun */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    padding: 15px 26px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background: var(--tp-green);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(1, 122, 91, 0.25);
}

.hero-btn-primary:hover {
    background: var(--tp-green-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(1, 122, 91, 0.32);
}

.hero-btn-app {
    background: var(--tp-ink);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(13, 43, 34, 0.22);
}

.hero-btn-app:hover {
    background: #16382d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(13, 43, 34, 0.3);
}

/* iOS va Android ikonkalari */
.hero-btn-icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    line-height: 1;
}

.hero-btn-icons i {
    display: inline-block;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 300px;
    max-width: 100%;
    margin: 0;
    font-size: 13.5px;
    line-height: 21px;
    color: #46554f;
}

.hero-note i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--tp-green);
    font-size: 15px;
}

/* Katta ekranda ikkala tugma yonma-yon turadi, izoh ularning tagida */
@media (min-width: 992px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
    }

    .hero-btn {
        width: 250px;
    }

    .hero-note {
        width: 100%;
        max-width: 560px;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 660px;
    }

    .hero-actions {
        gap: 16px;
    }

    .hero-btn {
        width: 290px;
    }

    .hero-note {
        max-width: 620px;
    }
}

/* ==========================================================================
   2. SARLAVHALAR
   ========================================================================== */

.section-title {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 52px;
    padding: 0 15px;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 0;
    font-size: 32px;
    line-height: 44px;
    font-weight: 700;
    color: var(--tp-ink);
}

.section-title h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 2px;
    background: var(--tp-green);
}

.section-title p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 26px;
    color: var(--tp-muted);
}

/* ==========================================================================
   3. HERO OSTIDAGI 3 TA KARTOCHKA
   ========================================================================== */

.schedule {
    height: auto !important;
    position: relative;
    z-index: 5;
    margin-top: -110px;
    padding: 0 0 90px;
    background: transparent;
}

.schedule .schedule-inner {
    transform: none;
    position: relative;
}

.schedule .schedule-inner > .row {
    align-items: stretch;
}

.schedule .schedule-inner > .row > [class*="col-"] {
    display: flex;
    margin-bottom: 26px;
}

.schedule .single-schedule {
    display: flex;
    width: 100%;
    border-radius: var(--tp-radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.schedule .single-schedule .inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 32px 28px;
    border-radius: var(--tp-radius);
}

.schedule .single-schedule .single-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.schedule .single-schedule span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.72;
}

.schedule .single-schedule h4 {
    margin-top: 10px;
    font-size: 20px;
    line-height: 28px;
}

.schedule .single-schedule p {
    flex: 1;
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.88);
}

.schedule .single-schedule a {
    align-self: flex-start;
    margin-top: 22px;
    font-size: 13px;
    letter-spacing: 0.6px;
}

.schedule .single-schedule .icon i {
    font-size: 96px;
    right: -18px;
    bottom: -24px;
    opacity: 0.16;
}

/* ==========================================================================
   4. YANGILIKLAR
   ========================================================================== */

.news-section {
    padding: 90px 0;
    background: #f8f9fa;
}

.news-section .row {
    align-items: stretch;
}

.news-section .row > .col-lg-4 {
    display: flex;
}

.news-section .single-news {
    width: 100%;
}

.news-section .news-all {
    margin-top: 18px;
    text-align: center;
}

/* ==========================================================================
   5. HAMKOR TASHKILOTLAR
   ========================================================================== */

.clients {
    padding: 90px 0;
}

.clients .section-title h2,
.clients .section-title p {
    color: #ffffff;
}

.clients .section-title h2::after {
    background: #ffffff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    min-height: 250px;
    margin: 0;
    padding: 28px 22px;
    border: none;
    border-radius: var(--tp-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.client-card .client-logo {
    height: 120px;
    max-height: 120px;
    max-width: 210px;
    width: auto;
    margin: 0 0 18px;
    object-fit: contain;
}

.client-card .card-title {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 22px;
    font-weight: 600;
    color: #2b3a34;
    text-align: center;
}

/* ==========================================================================
   7. MUROJAAT FORMASI
   ========================================================================== */

.appointment {
    padding: 90px 0;
    background: var(--tp-soft);
}

.appointment .form {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}

.appointment .form .form-group {
    margin-bottom: 20px;
}

.appointment .form input,
.appointment .form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e3e9e7;
    border-radius: 8px;
    background: #fbfcfc;
    font-size: 14px;
    color: var(--tp-ink);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.appointment .form input:focus,
.appointment .form textarea:focus {
    border-color: var(--tp-green);
    background: #ffffff;
    outline: none;
}

.appointment .form textarea {
    min-height: 150px;
    resize: vertical;
}

.appointment .form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.appointment .form-footer .btn {
    padding: 14px 38px;
    border-radius: 8px;
}

.appointment .form-footer p {
    margin: 0;
    font-size: 13.5px;
    color: var(--tp-muted);
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    .hero-content h1 { font-size: 40px; line-height: 52px; }
}

@media (max-width: 991px) {
    .hero {
        min-height: 520px;
        padding: 70px 0 150px;
        background-position: center;
    }

    /* Kichik ekranda matn rasm ustida turadi - parda quyuqroq */
    .hero-shade {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.90) 0%,
                rgba(255, 255, 255, 0.86) 55%,
                rgba(255, 255, 255, 0.83) 100%);
    }

    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 34px; line-height: 46px; }

    .schedule { margin-top: -100px; padding-bottom: 60px; }
    .section-title h2 { font-size: 26px; line-height: 36px; }
    .news-section, .clients, .appointment { padding: 60px 0; }
    .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero .owl-nav { right: 20px; bottom: 140px; }
}

@media (max-width: 575px) {
    .clients-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 56px 0 130px;
        text-align: center;
    }

    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: 28px; line-height: 40px; }
    .hero-lead { font-size: 15px; margin-bottom: 26px; }
    .hero-actions { align-items: center; width: 100%; }
    .hero-btn { width: 100%; max-width: 320px; }
    .hero-note { width: 100%; max-width: 320px; text-align: left; }

    .schedule { margin-top: -90px; }
    .schedule .single-schedule .inner { padding: 26px 22px; }

    .appointment .form { padding: 26px 20px; }
    .appointment .form-footer { justify-content: center; text-align: center; }

    .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .client-card { padding: 22px 16px; }
    .hero .owl-nav { display: none; }
}


/* ==========================================================================
   10. YANGILIKLAR KARTOCHKALARI (avval index.html ichida edi)
   ========================================================================== */

.single-news {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-news:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-head {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-news:hover .news-head img {
    transform: scale(1.1);
}

.news-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.date {
    display: inline-block;
    background: #017A5B;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 15px;
}

.date i {
    margin-right: 5px;
}

.news-body h2 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-body h2 a {
    color: #333;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body h2 a:hover {
    color: #017A5B;
}

.news-body .text {
    color: #666;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 15px;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: center;   /* 👈 asosiy yechim */
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}


.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: #017A5B;
}

/* Responsive */
@media (max-width: 768px) {
    .news-head {
        height: 200px;
    }
    
    .news-body h2 {
        font-size: 18px;
        line-height: 26px;
    }
}

.news-actions{
    margin-top: 10px;
    display: flex;
    justify-content: flex-end; /* tugma o'ngda */
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #017A5B;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;

    border: none;
    outline: none;
    cursor: pointer;
}


.news-btn:hover{
    background: #01614a;
    transform: translateY(-2px);
    color: #fff;
}

.news-section .btn {
    background: #017A5B;
}

.news-btn i{
    font-size: 12px;
}


.news-icon {
    color: #ffffff !important;
}
