/* =====================================================
   HORIQO
   DARK EDITORIAL DESIGN
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 50% -15%,
            #24242a 0%,
            #111116 38%,
            #08080a 80%
        );

    color: #f5f5f5;

    font-family: "DM Sans", sans-serif;

    min-height: 100vh;
}


/* =====================================================
   HEADER
===================================================== */

header {
    background: rgba(8, 8, 10, 0.96);

    border-bottom: 1px solid #29292e;

    padding: 14px 55px 0;

    position: relative;
    z-index: 20;
}


/* =====================================================
   TOP HEADER
===================================================== */

.top-header {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 74px;

    /*
       LOGO CHAPDA,
       KATEGORIYALAR ALOHIDA QATORDA
    */
    justify-content: flex-start;
}


/* =====================================================
   LOGO
===================================================== */

.logo-link {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    text-decoration: none;

    width: 250px;

    flex-shrink: 0;
}

.site-logo {
    display: block;

    /*
       HEADER LOGOSI ENDI KATTA
    */
    width: 150px;
    height: 65px;

    object-fit: contain;
    object-position: left center;

    transform: scale(1.55);

    transform-origin: left center;
}


/* =====================================================
   ICONS
===================================================== */

.icons {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;

    gap: 12px;

    z-index: 10;
}

.icons span {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #34343a;

    border-radius: 50%;

    background: #151519;

    color: #d0d0d4;

    font-size: 21px;

    cursor: pointer;

    transition: 0.25s ease;
}

.icons span:hover {
    background: #ffffff;

    color: #09090b;

    border-color: #ffffff;
}


/* =====================================================
   NAVIGATION
===================================================== */

.categories {
    display: flex;

    align-items: center;

    /*
       KATEGORIYALAR CHAPROQ
    */
    justify-content: flex-start;

    /*
       LOGODAN KEYIN BOSHLANADI
    */
    margin-left: 205px;

    margin-top: -74px;

    /*
       QIDIRUV UCHUN O'NGDA JOY QOLDIRAMIZ
    */
    margin-right: 150px;

    padding-left: 0;

    padding-right: 20px;

    border-top: none;

    min-height: 74px;

    overflow-x: auto;

    scrollbar-width: none;

    white-space: nowrap;
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories a {
    position: relative;

    padding: 25px 22px;

    color: #a8a8ae;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.02em;

    transition: 0.25s ease;

    white-space: nowrap;
}

.categories a:hover,
.categories a.active {
    color: #ffffff;
}

.categories a::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;

    bottom: 0;

    height: 2px;

    background: #ffffff;

    transform: scaleX(0);

    transition: 0.25s ease;
}

.categories a:hover::after,
.categories a.active::after {
    transform: scaleX(1);
}


/* =====================================================
   MAIN
===================================================== */

main {
    width: min(1380px, calc(100% - 90px));

    margin: 0 auto;

    padding: 55px 0 80px;
}


/* =====================================================
   HERO
===================================================== */

.hero-section {
    width: 100%;
}

.featured-card {
    position: relative;

    display: block;

    width: 100%;

    height: 560px;

    overflow: hidden;

    border: 1px solid #303036;

    background: #111115;

    text-decoration: none;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.4);
}

.featured-image {
    width: 100%;
    height: 100%;

    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter: brightness(0.65);

    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.05) 70%
        );
}

.featured-content {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    padding: 50px;
}

.featured-label {
    display: block;

    margin-bottom: 15px;

    color: #b4b4ba;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.15em;
}

.featured-content h1 {
    max-width: 950px;

    font-family: "Playfair Display", serif;

    font-size: clamp(38px, 4vw, 62px);

    line-height: 1.08;

    font-weight: 600;

    color: #ffffff;
}


/* =====================================================
   LATEST SECTION
===================================================== */

.latest-section {
    margin-top: 75px;
}


/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {
    position: relative;

    margin-bottom: 28px;

    padding-bottom: 14px;

    border-bottom: 1px solid #2b2b30;
}

.section-heading::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 55px;
    height: 2px;

    background: #ffffff;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    font-size: 30px;

    font-weight: 500;

    text-transform: none;
}


/* =====================================================
   NEWS GRID
===================================================== */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* =====================================================
   NEWS CARD
===================================================== */

.news-card {
    background: #111115;

    border: 1px solid #29292e;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    border-color: #44444b;
}


/* =====================================================
   NEWS LINK
===================================================== */

.news-link {
    display: block;

    color: inherit;

    text-decoration: none;
}


/* =====================================================
   NEWS IMAGE
===================================================== */

.news-image {
    width: 100%;
    height: 225px;

    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}


/* =====================================================
   NEWS CONTENT
===================================================== */

.news-content {
    padding: 21px 22px 25px;
}

.news-category {
    display: block;

    margin-bottom: 10px;

    color: #77777e;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.13em;
}

.news-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 23px;

    line-height: 1.25;

    font-weight: 600;

    color: #f2f2f4;
}


/* =====================================================
   EMPTY / ERROR
===================================================== */

.empty-news,
.error-news {
    padding: 50px;

    border: 1px solid #29292e;

    background: #111115;

    color: #99999f;

    text-align: center;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    margin-top: 70px;

    padding: 60px 25px;

    background: #08080a;

    border-top: 1px solid #242429;

    text-align: center;
}

.footer-logo {
    width: 330px;
    height: 90px;

    object-fit: contain;

    display: block;

    margin: 0 auto 20px;
}

footer p {
    color: #6f6f76;

    font-size: 13px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    header {
        padding: 12px 25px 0;
    }

    .top-header {
        min-height: 70px;
    }

    .logo-link {
        width: 145px;
    }

    .site-logo {
        width: 130px;
        height: 60px;

        transform: scale(1.35);
    }

    .categories {
        margin-left: 165px;

        margin-right: 125px;

        margin-top: -70px;

        min-height: 70px;
    }

    .categories a {
        padding: 23px 16px;

        font-size: 15px;
    }

    .icons {
        gap: 8px;
    }

    .icons span {
        width: 46px;
        height: 46px;
    }

    main {
        width: calc(100% - 40px);
    }

    .featured-card {
        height: 480px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    header {
        padding: 8px 14px 0;
    }

    .top-header {
        min-height: 70px;
    }

    .logo-link {
        width: 110px;
    }

    .site-logo {
        width: 105px;
        height: 55px;

        transform: scale(1.25);
    }

    .icons {
        right: 0;

        gap: 5px;
    }

    .icons span {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }

    .categories {
        margin-left: 115px;

        margin-right: 85px;

        margin-top: -70px;

        min-height: 70px;

        overflow-x: auto;
    }

    .categories a {
        padding: 22px 12px;

        font-size: 13px;
    }

    main {
        width: calc(100% - 26px);

        padding-top: 30px;
    }

    .featured-card {
        height: 390px;
    }

    .featured-content {
        padding: 28px;
    }

    .featured-content h1 {
        font-size: 32px;
    }

    .latest-section {
        margin-top: 55px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .news-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .news-image {
        height: 230px;
    }

    .news-content h3 {
        font-size: 23px;
    }

    footer {
        margin-top: 50px;

        padding: 45px 20px;
    }

    .footer-logo {
        width: 280px;
        height: 80px;
    }
}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 400px) {

    .site-logo {
        width: 90px;
        height: 50px;

        transform: scale(1.2);
    }

    .categories {
        margin-left: 100px;

        margin-right: 75px;
    }

    .categories a {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 12px;
    }

    .featured-card {
        height: 340px;
    }

    .featured-content {
        padding: 22px;
    }

    .featured-content h1 {
        font-size: 28px;
    }

    .news-image {
        height: 210px;
    }
}