/*
Theme Name: O'zbekiston Turizm qo'mitasi
Theme URI: https://gov.uz/oz/uzbektourism
Author: Gov.uz
Description: O'zbekiston Respublikasi Turizm qo'mitasining rasmiy WordPress temasi
Version: 1.0
License: GPL v2 or later
Text Domain: turizm
*/

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f0f0;
    min-height: 100vh;
}

a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-left .emblem {
    height: 32px;
}

.top-bar-left .flag-line {
    height: 20px;
}

.top-bar-left .gov-title {
    font-size: 0.7rem;
    line-height: 1.2;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right .time {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.top-bar-right .lang-switch a {
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.top-bar-right .lang-switch a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* ===== HEADER ===== */
.main-header {
    background: #fff;
    border-bottom: 3px solid #1a5276;
    padding: 10px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 60px;
}

.header-site-title {
    flex: 1;
}

.header-site-title h1 {
    font-size: 1.1rem;
    color: #1a5276;
    font-weight: 700;
}

.header-site-title span {
    font-size: 0.85rem;
    color: #666;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input[type="search"] {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 0.85rem;
    width: 200px;
}

.header-search button {
    padding: 6px 12px;
    background: #1a5276;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.85rem;
}

.header-search button:hover {
    background: #2980b9;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-navigation .container {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.main-navigation ul li a:hover {
    background: #1a5276;
    color: #fff;
    text-decoration: none;
}

.main-navigation ul li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7rem;
}

.main-navigation ul .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 240px;
    z-index: 200;
}

.main-navigation ul li:hover > .sub-menu {
    display: block;
}

.main-navigation ul .sub-menu li {
    width: 100%;
}

.main-navigation ul .sub-menu li a {
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

.main-navigation ul .sub-menu li:last-child a {
    border-bottom: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MAIN CONTENT ===== */
.site-content {
    padding: 30px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

/* ===== HERO / BANNER ===== */
.hero-section {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 50%, #3498db 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.3rem;
    color: #1a5276;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5276;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .view-all {
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== CARDS GRID ===== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-image {
    height: 180px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.card-body h3 a {
    color: #1a5276;
}

.card-body h3 a:hover {
    color: #2980b9;
}

.card-body .date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ===== ACTIVITIES / SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    border-top: 3px solid #1a5276;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1a5276;
}

.service-card h3 {
    font-size: 0.95rem;
    color: #1a5276;
}

/* ===== INFO SECTIONS (6-column layout) ===== */
.info-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-block h3 {
    font-size: 1rem;
    color: #1a5276;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a5276;
}

.info-block ul li {
    margin-bottom: 6px;
}

.info-block ul li a {
    font-size: 0.85rem;
    color: #555;
    display: block;
    padding: 4px 0;
}

.info-block ul li a:hover {
    color: #1a5276;
}

/* ===== SIDEBAR ===== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1rem;
    color: #1a5276;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a5276;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    font-size: 0.85rem;
    color: #555;
}

.widget ul li a:hover {
    color: #1a5276;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a5276;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-contact {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.footer-contact .phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.footer-contact .all-phones {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-bottom .footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* ===== HERO SECTION WITH COMMITTEE LOGO ===== */
.committee-hero {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.committee-hero .logo {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.committee-hero .logo img {
    max-width: 80px;
}

.committee-hero .info h2 {
    font-size: 1.3rem;
    color: #1a5276;
    margin-bottom: 4px;
}

.committee-hero .info p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.2s;
}

.pagination a:hover {
    background: #1a5276;
    color: #fff;
    text-decoration: none;
}

.pagination .current {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1a5276;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs a {
    color: #1a5276;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-content h1 {
    font-size: 1.5rem;
    color: #1a5276;
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 1.2rem;
    color: #1a5276;
    margin: 20px 0 10px;
}

.page-content h3 {
    font-size: 1.05rem;
    color: #1a5276;
    margin: 16px 0 8px;
}

.page-content p {
    margin-bottom: 12px;
    color: #444;
}

.page-content ul,
.page-content ol {
    margin: 10px 0 10px 20px;
}

.page-content ul li {
    list-style: disc;
    margin-bottom: 4px;
}

.page-content ol li {
    list-style: decimal;
    margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .info-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    .info-sections {
        grid-template-columns: 1fr;
    }
    .site-footer .container {
        grid-template-columns: 1fr;
    }
    .grid-cards {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    .header-search input[type="search"] {
        width: 120px;
    }
    .main-navigation ul {
        flex-direction: column;
    }
    .main-navigation ul .sub-menu {
        position: static;
        box-shadow: none;
    }
    .committee-hero {
        flex-direction: column;
        text-align: center;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .top-bar-left .gov-title {
        font-size: 0.6rem;
    }
}
