/* Базалык орнотуулар жана Плавный скролл */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
    /* Дизайндагы шрифтке окшош */
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопкалар (Анимация жана көлөкө жакшыртылды) */
a {
    text-decoration: none;
    display: inline-block;
}

ul {
    list-style: none;
}

.btn-primary {
    background-color: #ff7e00;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Өтө плавно */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 126, 0, 0.25);
}

.btn-primary:hover {
    background-color: #e67100;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 126, 0, 0.4);
}

.btn-white {
    background-color: white;
    color: #333;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border: 1px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline-orange {
    border: 1px solid #ff7e00;
    color: #ff7e00;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline-orange:hover {
    background-color: #ff7e00;
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 126, 0, 0.3);
}

.btn-white-text {
    background-color: white;
    color: #ff7e00;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-white-text:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Header (Заманбап Glassmorphism кошулду) */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Аркасы бүдөмүк болуп көрүнөт */
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    transform: translateY(-2px);
}

nav a.active,
nav a:hover {
    color: #ff7e00;
    border-bottom: 2px solid #ff7e00;
}

/* Hero Section */
#hero {
    padding: 40px 20px;
}

.hero-banner {
    background: linear-gradient(135deg, #3a1c3e, #885d6e, #e8d5cc);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(58, 28, 62, 0.25);
    transition: transform 0.4s ease;
}

.hero-banner:hover {
    transform: translateY(-5px);
}

.hero-text h1 {
    font-size: 40px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: 15px;
    width: 300px;
    object-fit: cover;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-title .orange-text {
    color: #ff7e00;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

.feature-title h2 {
    font-size: 36px;
    margin: 10px 0;
    line-height: 1.1;
}

.feature-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.feature-cards {
    display: flex;
    gap: 15px;
}

/* 3 сүрөт үчүн өйдө-ылдый анимация (Float effect - плавно) */
@keyframes floatCards {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.f-card {
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.4s ease, filter 0.4s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: floatCards 5s ease-in-out infinite;
}

/* Ар бир карта ар кайсы убакта жылышы үчүн delay берилди */
.f-card:nth-child(1) {
    animation-delay: 0s;
}

.f-card:nth-child(2) {
    animation-delay: 1.2s;
}

.f-card:nth-child(3) {
    animation-delay: 2.4s;
}

.f-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
    /* Мышканы алып барганда анимация токтоп, карта фокусталат */
    z-index: 10;
    filter: brightness(1.1);
}

.orange-bg {
    background-color: #ff7e00;
}

.blue-bg {
    background-color: #1a1aff;
}

.green-bg {
    background-color: #1aa31a;
}

.f-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.f-card:hover img {
    transform: scale(1.1) translateY(-5px);
}

/* Grid Cards (Курсы, Новости, Галерея) - РАМКАЛАР АЛЫНДЫ */
.section-header {
    margin: 40px 0 20px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 5px;
    color: #222;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* Боштуктар бир аз кеңейтилди */
    margin-bottom: 30px;
}

/* Hover анимациясы - Эч кандай рамка жок, таптаза көлөкө гана */
.card {
    position: relative;
    border-radius: 12px;
    /* Бурчтары жумшартылды */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Өтө плавно чоңоюу */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background: white;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    /* Плавный чоңоюу гана калды */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Таптаза жумшак көлөкө */
    z-index: 10;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover img {
    transform: scale(1.12);
    /* Сүрөттүн ичинен чоңоюшу дагы даана болду */
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 25px 20px 15px;
    transition: all 0.4s ease;
}

.card:hover .card-info {
    padding-bottom: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    /* Дизайндагыдай эле табигый караңгы градиент калды */
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 14px;
    opacity: 0.8;
}

.center-btn {
    text-align: center;
    margin-bottom: 40px;
}

/* Staff Section */
.orange-section {
    background-color: #ff7e00;
    padding: 60px 0;
    /* Боштук чоңойтулду */
    margin: 40px 0;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.08);
}

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.staff-main-card {
    width: 40%;
    margin: 0 auto 30px;
    height: 420px;
    border-radius: 15px;
}

.badge,
.badge-small {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff7e00;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    letter-spacing: 1px;
}

.badge-small {
    background: white;
    color: #ff7e00;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.staff-grid .card {
    height: 280px;
}

/* Testimonials Slider */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-wrapper {
    display: flex;
    gap: 25px;
    overflow: hidden;
    width: 85%;
    scroll-behavior: smooth;
    padding: 10px 0;
    /* Көлөкө кесилип калбашы үчүн */
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    color: white;
    text-align: left;
    min-width: calc(50% - 12.5px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-header img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.stars {
    color: #ffd700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.slider-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    transform: scale(1.2) translateX(2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact-section {
    margin-bottom: 60px;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 50px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.info-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #222;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #ff7e00;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.input-group input:focus {
    border-bottom: 2px solid #ff7e00;
    padding-left: 5px;
}

/* Формага жазганда түсү өзгөрүп, текст бир аз жылат */

/* Footer */
footer {
    background: #ff7e00;
    color: white;
    padding: 50px 0 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: white;
    transition: all 0.3s ease;
    font-weight: bold;
}

.footer-nav a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-nav a.active {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials img {
    width: 26px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.socials a:hover img {
    transform: scale(1.3) translateY(-5px) rotate(5deg);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

.scroll-top-btn {
    background: white;
    color: #ff7e00;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn:hover {
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);
}

/* АДАПТАЦИЯ (Responsive Design) - Бул бөлүк кыскарган жок, так сакталды жана ыңгайлаштырылды */
@media (max-width: 1024px) {
    .hero-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-buttons {
        justify-content: center;
    }

    .feature-cards {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-main-card {
        width: 60%;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .staff-main-card {
        width: 90%;
        height: 350px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .slider-wrapper {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .review-card {
        min-width: 90%;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}