:root {
    --primary-color: #ff9a9e;
    --primary-dark: #ff758c;
    --secondary-color: #a18cd1;
    --accent-color: #fad0c4;
    --text-dark: #4a4a4a;
    --text-light: #777777;
    --white: #ffffff;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #fff9f9;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 117, 140, 0.3);
}

.blog-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #f3f0ff 100%);
}

.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
}

.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #fdf0f0;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #fdf0f0;
    border-radius: 15px;
    outline: none;
    font-family: var(--font-body);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--primary-color);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #fdf0f0;
}

.cat-item span i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.cat-item .arrow {
    font-size: 0.8rem;
    opacity: 0.3;
    transition: 0.3s;
}

.cat-item:hover {
    background: #fff5f6;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.cat-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cat-item.active span i,
.cat-item.active .arrow {
    color: white;
    opacity: 1;
}

.blog-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: 0.4s;
    border: 1px solid #fdf0f0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 117, 140, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--accent-color);
    padding: 4px 12px;
    border-radius: 10px;
}

.card-content h3 {
    font-family: var(--font-heading);
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(74, 74, 74, 0.4);
    backdrop-filter: blur(8px);
}

.modal-window {
    position: relative;
    background: white;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 35px;
    overflow-y: auto;
    z-index: 10;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: sticky;
    top: 20px;
    left: 90%;
    z-index: 100;
    border: none;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 0 40px 40px;
}

.modal-img-container {
    width: 100%;
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 30px;
    margin-top: -10px;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.article-content p {
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 40px 0;
    background: var(--secondary-color);
    color: white;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .nav-links {
        display: none;
    }
}