
/* =========================================
   TURA.AZ — GLOBAL DESIGN SYSTEM
   ========================================= */

:root {
    --primary: #102b4e;
    --primary-dark: #091a30;
    --accent: #e52336;
    --accent-hover: #c9192b;

    --text: #172235;
    --muted: #788496;
    --white: #ffffff;
    --surface: #f6f8fb;
    --surface-dark: #edf1f6;
    --border: #e8edf3;

    --font-main: 'Poppins', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    --container: 1320px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 3px 14px rgba(16, 43, 78, .05);
    --shadow-md: 0 12px 36px rgba(16, 43, 78, .09);
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol {
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--accent);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
input,
textarea {
    outline-offset: 3px;
}

/* LAYOUT */

.container {
    width: calc(100% - 40px);
    max-width: var(--container);
    margin-inline: auto;
}

.site-main {
    min-height: 65vh;
}

.section {
    padding-block: 34px;
}

.section + .section {
    padding-top: 12px;
}

/* TYPOGRAPHY */

.display-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.18;
}

.news-title {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: -.35px;
    line-height: 1.4;
}

.news-title a:hover {
    color: var(--accent);
}

.text-muted {
    color: var(--muted);
}

.text-accent {
    color: var(--accent);
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
}

.section-title::before {
    content: "";
    width: 5px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--accent);
}

.section-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.section-more:hover {
    color: var(--accent);
}

/* NEWS CARDS */

.news-card {
    min-width: 0;
}

.news-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.045);
}

.news-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* NEWS GRID */

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.news-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* BADGES */

.news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: vex-pulse 1.5s infinite;
}

@keyframes vex-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* ADVERTISING */

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
    background: var(--surface);
    border: 1px dashed #d4dce7;
    border-radius: var(--radius-sm);
    color: #98a3b3;
    font-size: 11px;
    text-align: center;
}

.ad-banner-wide {
    width: 100%;
    min-height: 120px;
}

.ad-banner-sidebar {
    width: 100%;
    min-height: 250px;
}

/* BUTTONS */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: .2s ease;
}

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

/* RESPONSIVE */

@media (max-width: 1199px) {
    :root {
        --container: 1100px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .news-grid,
    .news-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding-block: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .news-grid,
    .news-grid-3,
    .news-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .display-title {
        letter-spacing: -.6px;
    }

    .ad-banner-wide {
        min-height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
