@import url(../fonts/font.css);


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'gillroy_reg',Verdana !important;
}

body {
    background-color: #f9f9f9;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Баннер */
.banner {
    width: 100%;
    height: 800px;
    background: url('/style/images/800.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 2em;
    font-weight: bold;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Тень для баннера */
}

/* Меню */
nav {
    background-color: #294069;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Мягкая тень для меню */
}

.menu ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
}

.menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.1em;
    transition: 0.3s;
}

.menu li a:hover {
    background-color: #1f3054;
    border-radius: 5px;
}

/* Выбор направления */
.directions {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Тень для секции выбора направления */
    margin-top: 30px;
}

.directions h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #294069;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #294069;
    font-weight: normal;
}

.directions .options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.directions .options button {
    padding: 15px 30px;
    border: 2px solid #294069;
    background-color: white;
    cursor: pointer;
    border-radius: 12px;
    font-size: 1em;
    color: #294069;
    transition: all 0.3s ease;
}

.directions .options button.active,
.directions .options button:hover {
    background-color: #294069;
    color: white;
}

/* Блок с информацией */
.info-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Тень для блока информации */
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}

.info-box h2 {
    color: #294069;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: left;
}

.info-box ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.info-box ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-box ul li strong {
    color: #294069;
}

.info-box .details-btn {
    display: inline-block;
    background-color: #294069;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: background 0.3s ease;
}

.info-box .details-btn:hover {
    background-color: #1f3054;
}

/* Разделительные линии */
hr {
    border: 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    margin: 50px 0;
}

/* Дорожная карта */
/* Дорожная карта */
.timeline {
    position: relative;
    padding: 50px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 130px;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, #294069 0%, #6fa0d3 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin: 0px 0;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-10px); /* Анимация при наведении */
}

.timeline-item .content {
    width: 45%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.timeline-item:hover .content {
    background-color: #f0f4f8;
}

/* Оформление круглых точек */
.timeline-item .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #294069;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .dot {
    transform: scale(1.2); /* Анимация увеличения точки при наведении */
    background-color: #6fa0d3;
}

/* Левый и правый контент для четных и нечетных элементов */
.timeline-item:nth-child(odd) .content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .dot {
    left: calc(50% + 60px);
}

.timeline-item:nth-child(even) .dot {
    left: calc(50% - 60px);
}

.timeline-item .date {
    font-size: 1.2em;
    font-weight: bold;
    color: #294069;
    margin-bottom: 10px;
}

.timeline-item .position {
    margin-bottom: 10px;
    color: #888;
    font-style: italic;
}

.timeline-item p {
    font-size: 0.95em;
    color: #666;
}


/* Кнопка для открытия модального окна */
 .open-modal-btn {
     padding: 10px 20px;
     background-color: #FF5733;
     color: white;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     font-size: 16px;
 }

.open-modal-btn:hover {
    background-color: #FF784E;
}

/* Стили модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    overflow: auto; /* В случае длинного содержимого */
}

/* Содержимое модального окна */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Кнопка закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для формы внутри модального окна */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-content button {
    padding: 12px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #FF784E;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-content input,
    .modal-content textarea {
        font-size: 16px;
    }

    .modal-content button {
        font-size: 18px;
    }
}

     /* Стили для контейнера меню */
 .menu {
     background-color: #003366;
     padding: 10px;
 }

/* Иконка гамбургер-меню для мобильных устройств */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* Стили для меню на больших экранах */
.menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul#menuItems {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

ul#menuItems li a {
    text-decoration: none;
    color: white;
}

/* Стили для кнопки на больших экранах */
.submit-btn {
    background-color: #ff5733;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Показать гамбургер-меню на мобильных */
    }

    ul#menuItems {
        display: none; /* Скрыть пункты меню по умолчанию */
        flex-direction: column;
        gap: 10px;
    }

    /* Когда меню активно */
    ul#menuItems.active {
        display: flex; /* Показать меню, когда иконка гамбургер активна */
    }

    .submit-btn {
        display: none; /* Скрыть кнопку "Murojaat yo'llash" по умолчанию */
    }

    /* Кнопка "Murojaat yo'llash" внутри гамбургера */
    ul#menuItems.active + .submit-btn {
        display: block; /* Показать кнопку в меню на мобильных устройствах */
        text-align: center;
        margin-top: 10px;
        background-color: #ff5733;
        padding: 10px;
        border-radius: 5px;
        color: white;
    }
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }

    .menu .container{
        display: flex;
        justify-content: space-evenly;
        align-items: stretch;
        flex-direction: column-reverse;

    }

    .timeline-item .dot {
        left: 50%;
        margin-bottom: 20px;
    }

    .timeline-item .content {
        width: 90%;
        margin: 0;
    }

    .timeline:before {
        left: 50%;
        width: 2px;
    }
}

@media (max-width: 480px) {
    .timeline-item .dot {
        width: 12px;
        height: 12px;
    }

    .timeline-item .content {
        padding: 15px;
    }

    .timeline-item p {
        font-size: 0.85em;
    }
    .timeline-item {
        margin: 20px 0;
    }
}


/* Слайдер новостей */
.news-section {
    padding: 50px 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Тень для секции новостей */
    margin-top: 30px;
}

.news-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #294069;
}

.timeline h2 {
    margin-bottom: 50px; /* Отступ снизу, чтобы заголовок не пересекался с линией */
    text-align: center;
    font-size: 2.5em;
    color: #294069;
}

.news-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 30px 0;
    scroll-behavior: smooth;
    position: relative;
}

.news-item {
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Тень для элемента новостей */
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #294069;
}

.news-item p {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #6c757d;
}

.news-item .date {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 15px;
}

.news-item a {
    text-decoration: none;
    background-color: #294069;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}

.news-item a:hover {
    background-color: #1f3054;
}

/* Футер */
.footer {
    background-color: #294069;
    color: white;
    padding: 20px;
    margin-top: 140px;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); /* Тень для футера */
}

/* Адаптивность для элементов сайта */
@media (max-width: 600px) {
    .banner {
        height: 250px;
        font-size: 1.5em;
        background: url('/style/images/500.jpg') no-repeat center center/cover;
    }

    .info-box {
        padding: 15px;
    }

    .timeline-item .content {
        width: 90%;
    }

    .news-item {
        min-width: 100%;
    }

    /*nav .menu ul {*/
    /*    display: none;*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*}*/

    /*nav .menu.active ul {*/
    /*    display: flex;*/
    /*}*/

    /*nav .menu-toggle {*/
    /*    display: block;*/
    /*    background-color: #294069;*/
    /*    padding: 10px;*/
    /*    color: white;*/
    /*    cursor: pointer;*/
    /*    text-align: center;*/
    /*}*/
}

@media (max-width: 480px) {
    .banner {
        font-size: 1.2em;
        background: url('/style/images/500.jpg') no-repeat center center/cover;
    }
    .timeline-item .content {
        width: 100%;
        padding: 10px;
    }
    .news-item {
        min-width: 100%;
        padding: 10px;
    }
}

.slider-container {
    position: relative;
    width: 100%; /* Kenglikni 100% qilamiz */
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Tugmalar va sanalar har doim pastda */
    min-width: calc(33.33% - 20px);
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 420px; /* Har bir yangilik bloki bir xil balandlikda */
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 152px; /* Rasmlar bir xil maksimal balandlikda bo'lishi uchun */
    object-fit: cover; /* Proporsiyalarni saqlaydi va konteynerga moslashtiradi */
    border-radius: 10px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin: 10px 0;
    flex-grow: 1; /* Matn o'sadi, lekin tugmalar joyidan qimirlamaydi */
}

span {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.details-btn {
    padding: 10px 20px;
    background-color: #294069;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.details-btn:hover {
    background-color: #0056b3;
}

.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.prev, .next {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 24px;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Mobil qurilmalar uchun */
@media (max-width: 768px) {
    .slider-container {
        width: 100%;
    }

    .slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .slide {
        /*min-width: 100%;*/
        max-width: 350px;
        flex: none;
        margin: 0;
        scroll-snap-align: start;
        box-shadow: none;
        height: auto; /* Balandlikni moslashtirish uchun */
    }

    .slide img {
        height: auto;
        max-height: 140px;
        object-fit: cover;
        border-radius: 10px;
    }

    .slider::-webkit-scrollbar {
        display: none;
    }

    .navigation {
        display: none;
    }
}

@media (min-width: 1921px) {

    .banner {
        height: 1000px;
    }
}
