/*
Theme Name: Zartib Gov
Theme URI: https://zartib.uz
Author: Antigravity & User
Description: Zarafshon Shahar Tibbiyot Birlashmasi uchun maxsus mavzu.
Version: 1.0
Text Domain: zartib-gov
*/

/* Reset & Base Styles */
:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #28a745;
    /* Medical Green */
    --accent-color: #f8f9fa;
    /* Light Gray */
    --text-color: #333;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--accent-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9em;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
}

.main-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.brand img {
    height: 60px;
    margin-right: 15px;
}

.brand-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

.brand-text small {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    margin-left: 20px;
    position: relative;
}

.main-navigation ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s;
}

.main-navigation ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #218838;
}

/* Services Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* Articles/News Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-image {
    height: 200px;
    background: #e9ecef;
}

.post-content {
    padding: 20px;
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


/* Section Blocks */
.section-block {
    padding: 60px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* Post Cards */
.post-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Doctor Specific styles */
.article-card {
    border-top: 3px solid var(--secondary-color);
}

.doctor-badge {
    background: var(--primary-color);
    color: #fff;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.doctor-spec {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

/* Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #002244;
}

/* Navigation Hover Effects (Desktop & Mobile) */
.main-navigation .nav-menu li a {
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.main-navigation .nav-menu li a:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
    /* Force white text on hover */
    text-decoration: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .emergency-contact {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    /* Main Header */
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand {
        flex-direction: column;
        margin-bottom: 15px;
        align-items: center;
        display: flex;
    }

    .brand img {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .brand-text {
        text-align: center;
    }

    .brand-text h1 {
        font-size: 1.2rem !important;
    }

    /* Navigation */
    .menu-toggle {
        display: block !important;
        /* Override inline style */
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        cursor: pointer;
        margin-top: 10px;
        margin-bottom: 0;
        border-radius: 4px 4px 0 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .main-navigation .nav-menu {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
        border: 1px solid #ddd;
        border-top: none;
    }

    /* Show menu when toggled */
    .main-navigation.toggled .nav-menu {
        display: flex;
    }

    .main-navigation .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        display: block;
        margin: 0;
    }

    .main-navigation .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-menu li a {
        padding: 15px;
        display: block;
        width: 100%;
        color: #333;
    }

    .header-search {
        width: 100%;
        margin-top: 10px;
    }

    .header-search form input {
        width: 70%;
    }

    .header-search form button {
        width: 28%;
    }

    /* Front Page adjustments */
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Modal Styles */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: #fff;
        padding: 30px;
        border-radius: 8px;
        width: 90%;
        max-width: 400px;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        color: #999;
    }

    .modal-content h3 {
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .modal-input {
        width: 100%;
        padding: 12px;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .btn-telegram {
        background: #229ED9;
        color: #fff;
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
    }

    .btn-telegram:hover {
        background: #1c88bb;
        color: #fff;
    }
}