/* Tiykarǵı sazlawlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-row {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* 1. Top Bar Stilleri */
.top-bar {
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #1e40af;
}

.contact-info span {
    margin-right: 20px;
}

.lang-selector span {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.7;
}

.lang-selector span.active {
    opacity: 1;
    font-weight: bold;
}

/* 2. Main Header Stilleri */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 30px;
    background-color: #1e3a8a;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logo-text .subtitle {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-text .title {
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
}

.emaktab-btn {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.emaktab-btn:hover {
    background-color: #1d4ed8;
}

/* 3. Navbar Menyusı */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 15px 0;
    margin-right: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links li:hover a, .nav-links li.active a {
    color: #2563eb;
}

.nav-links li.active {
    border-bottom: 3px solid #2563eb;
    margin-bottom: -1px;
}

/* 4. Hero Slider Section */
.hero-section {
    position: relative;
    height: 420px;
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    background-color: rgba(234, 179, 8, 0.2);
    color: #fde047;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-actions .btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    background-color: white;
    color: #0f172a;
}

/* 5. Stats Section */
.stats-section {
    padding: 40px 0;
    background-color: #f3f4f6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-top: 4px solid #eab308;
}

.stat-card h3 {
    font-size: 32px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* 6. About & Gallery Section Stilleri */
.about-gallery-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-title {
    font-size: 24px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2563eb;
}

.about-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 15px;
    text-align: justify;
}

/* Galereya Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.08);
}

/* Ekrandı kishireytkende (Mobil versiya ushın) */
@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 7. News Section Stilleri */
.news-section {
    padding: 60px 0;
    background-color: #f3f4f6; /* Stats sıyaqlı ashıq qarańǵı fond */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    /* Tekst 2 qatardan asıp ketse úsh nokta qoyuń */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto; /* Tómende tegis turıwı ushın */
    transition: color 0.1s;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Mobil versiya ulanıwı */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}



/* 8. Footer Section Stilleri */
.main-footer {
    background-color: #0f172a; /* Júdá qarańǵı kók-qara fond */
    color: #94a3b8;
    padding: 60px 0 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-about {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials a {
    text-decoration: none;
    font-size: 20px;
    margin-right: 15px;
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 0.7;
}

/* Linkler */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Baylanıs */
.footer-contact {
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-contact strong {
    color: #ffffff;
}

/* Footer Bottom qatarı */
.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    border-top: 1px solid #1e293b;
    margin-top: 20px;
    font-size: 13px;
}

.text-center {
    text-align: center;
}

/* Mobil úylestiriw */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}



/* Til Dropdown Konteneri */
.lang-dropdown {
    position: relative;
    display: inline-block;
    z-index: 200;
}

/* Til túymesi */
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn .arrow {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.2s;
}

/* Tómendegi dizim (Dropdown List) */
.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #ffffff;
    color: #1f2937;
    list-style: none;
    min-width: 140px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 5px 0;
    /* Ámelle jasırıp qoyıw */
    display: none; 
}

/* Dropdown ashılǵandaǵı klass */
.lang-list.show {
    display: block;
}

/* Til qatarları */
.lang-list li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.lang-list li a:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}