@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --blue: #1677ff;
    --blue-dark: #0755c9;
    --blue-light: #eaf3ff;

    --dark: #101828;
    --dark-blue: #071a33;

    --gray: #667085;
    --light-gray: #f5f7fa;

    --white: #ffffff;
    --border: #e4e7ec;
}

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--dark);
    background: var(--light-gray);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}


.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo-section {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    font-weight: 800;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo-section span,
.footer-logo span {
    color: var(--blue);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}


.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}


.nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}


.nav a:hover {
    color: var(--blue);
}


.create-button {
    background: var(--blue) !important;
    color: white !important;
    padding: 11px 18px;
    border-radius: 7px;
    transition: 0.2s;
}


.create-button:hover {
    background: var(--blue-dark) !important;
    transform: translateY(-1px);
}

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at top right,
            #123d77,
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #071a33,
            #0a2850
        );
    color: white;
}


.hero-content {
    width: min(100% - 40px, 1100px);
    margin: auto;
}


.breaking {
    color: #65a9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}


.hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.05;
}


.hero h1 span {
    color: #61a4ff;
}


.hero p {
    max-width: 620px;
    margin-top: 25px;
    color: #c7d7eb;
    font-size: 18px;
    line-height: 1.7;
}


.hero-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 22px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 7px;
    transition: 0.2s;
}


.hero-button:hover {
    background: #398cff;
    transform: translateY(-2px);
}

.categories-section {
    background: white;
    border-bottom: 1px solid var(--border);
}


.categories {
    max-width: 1100px;
    margin: auto;
    padding: 25px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-button {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.delete-button:hover {
    background: #b91c1c;
}

.category {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}


.category:hover {
    border-color: var(--blue);
    color: var(--blue);
}


.category.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.main-content {
    width: min(100% - 40px, 1100px);
    margin: 60px auto 90px;
}


.section-label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}


.section-header h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 42px;
}


.news-grid {
    margin-top: 35px;
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
}


.news-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}


.news-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px
        rgba(10, 40, 80, 0.12);
}


.card-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #e6f1ff,
            #b9d8ff
        );
    font-size: 55px;
}


.card-content {
    padding: 24px;
}


.card-category {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.news-card h3 {
    margin: 12px 0;
    font-family:
        "Playfair Display",
        serif;
    font-size: 25px;
    line-height: 1.25;
}


.news-card p {
    color: var(--gray);
    line-height: 1.65;
    font-size: 14px;
}


.card-footer {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}


.read-more {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}


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


.article-page {
    width: min(100% - 40px, 850px);
    margin: 70px auto 100px;
}


.back-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}


.back-link:hover {
    text-decoration: underline;
}


.full-category {
    margin-top: 45px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.full-title {
    margin: 15px 0;
    font-family:
        "Playfair Display",
        serif;
    font-size:
        clamp(42px, 6vw, 68px);
    line-height: 1.1;
}


.full-date {
    color: var(--gray);
    font-size: 14px;
}


.full-description {
    margin: 35px 0;
    padding-left: 22px;
    border-left:
        4px solid var(--blue);
    color: #475467;
    font-size: 21px;
    line-height: 1.65;
}


.full-body {
    background: white;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-line;
}


.post-page {
    width: min(100% - 40px, 800px);
    margin: 70px auto 100px;
}


.post-intro h1 {
    margin: 8px 0;
    font-family:
        "Playfair Display",
        serif;
    font-size: 48px;
}


.post-intro p {
    color: var(--gray);
}


.post-form {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border:
        1px solid var(--border);
    border-radius: 14px;
}


.post-form label {
    display: block;
    margin:
        25px 0 9px;
    font-weight: 700;
    font-size: 14px;
}


.post-form input,
.post-form textarea,
.post-form select {
    width: 100%;
    padding: 14px 15px;
    font-family: inherit;
    font-size: 15px;
    border:
        1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}


.post-form input:focus,
.post-form textarea:focus,
.post-form select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(22, 119, 255, 0.12);
}


.post-form textarea {
    resize: vertical;
}


.publish-button {
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.publish-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.no-articles {
    color: var(--gray);
    font-size: 17px;
}

.footer {
    padding: 55px 20px 30px;
    background: var(--dark-blue);
    color: white;
    text-align: center;
}

.footer-logo {
    margin: 0;
    font-family:
        "Playfair Display",
        serif;
}

.footer p {
    color: #a8bfd9;
    font-size: 14px;
}

.copyright {
    margin-top: 35px;
    font-size: 12px !important;
    color: #7089a5 !important;
}

@media (max-width: 650px) {

    .header-container {
        padding: 15px 18px;
    }

    .nav {
        gap: 14px;
    }

    .nav a:not(.create-button) {
        display: none;
    }

    .hero {
        min-height: 460px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .main-content {
        margin-top: 45px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .post-form {
        padding: 25px;
    }

    .full-body {
        padding: 25px;
    }
}