:root {
    --mango: #ff6b35;
    --mango-light: #ff8c5a;
    --ocean: #1e3a5f;
    --ocean-light: #2d5a87;
    --coral: #ff4d6d;
    --coral-light: #ff758f;
    --palm: #4ade80;
    --sand: #fef3c7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ocean);
    background: linear-gradient(180deg, #fef9f3 0%, #f0f9ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--ocean) 0%, #0d2137 100%);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mango) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: linear-gradient(135deg, var(--mango) 0%, var(--coral) 100%);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    outline: none;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
}

.hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--mango) 0%, var(--coral) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero .container {
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

main {
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--ocean);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--mango) 0%, var(--coral) 100%);
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
    border-top: 4px solid transparent;
    background: linear-gradient(white 0%, white 100%), linear-gradient(135deg, var(--mango) 0%, var(--coral) 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-header {
    padding: 20px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ocean);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title:hover {
    color: var(--mango);
}

.article-summary {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-body {
    padding: 0 20px 20px;
}

.article-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.article-link:hover {
    transform: translateX(5px);
}

footer {
    background: var(--ocean);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    color: white;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--mango);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--mango);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.article-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    color: var(--ocean);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--mango);
}

.article-detail-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.article-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ocean);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-detail-meta {
    margin-bottom: 30px;
}

.article-detail-meta p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.article-detail-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.article-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

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

.related-articles-section {
    margin-top: 40px;
}

.related-articles-section .section-title {
    color: var(--ocean);
}

.search-results {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-header {
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2.2rem;
    color: var(--ocean);
    margin-bottom: 10px;
}

.search-header strong {
    color: var(--mango);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
}

.no-results h2 {
    font-size: 1.8rem;
    color: var(--ocean);
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 25px;
}

.no-results a {
    display: inline-block;
    background: linear-gradient(135deg, var(--mango) 0%, var(--coral) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-content h1 {
    font-size: 2.2rem;
    color: var(--ocean);
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 1.5rem;
    color: var(--ocean);
    margin: 30px 0 15px;
}

.page-content h3 {
    font-size: 1.2rem;
    color: var(--ocean);
    margin: 20px 0 10px;
}

.page-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-content li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .article-detail-title {
        font-size: 1.8rem;
    }

    .article-detail-image img {
        height: 280px;
    }

    nav {
        gap: 10px;
    }

    .search-box input {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}