/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-container {
    display: flex;
    gap: 25px;
}

.nav-container a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-container a:hover {
    color: #ff6b95;
    background-color: #fff0f5;
}

.nav-container a.active {
    color: #ff6b95;
    font-weight: bold;
}

.nav-container a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: #ff6b95;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 5% 40px;
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
}

.underline {
    border-bottom: 3px solid #ff6b95;
    padding-bottom: 5px;
}

.tagline {
    font-size: 1.3rem;
    color: #ff6b95;
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

/* News Articles */
.news-article {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.article-header h2, .article-header h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-header h3 {
    font-size: 1.6rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}

.date {
    background-color: #fff0f5;
    padding: 3px 10px;
    border-radius: 15px;
    color: #ff6b95;
}

.category {
    background-color: #f0f8ff;
    padding: 3px 10px;
    border-radius: 15px;
    color: #4a90e2;
}

/* Article Content */
.article-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.article-content.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.text-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.benefits {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.benefits h4 {
    color: #ff6b95;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefits ul {
    list-style-type: none;
    padding-left: 0;
}

.benefits li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b95;
    font-weight: bold;
}

.image-content {
    flex: 1;
    text-align: center;
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.03);
}

.image-caption {
    margin-top: 10px;
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.newsletter-container h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.newsletter-container p {
    color: #666;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ff6b95;
}

.newsletter-form button {
    background-color: #ff6b95;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff4d7d;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ff6b95;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b95;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    .nav-container {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .news-article {
        padding: 25px;
    }
    
    .article-content, .article-content.reverse {
        flex-direction: column;
        gap: 25px;
    }
    
    .article-header h2, .article-header h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .page-header {
        padding: 40px 5% 30px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .container {
        padding: 30px 5%;
    }
    
    .news-article {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-header h2, .article-header h3 {
        font-size: 1.4rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* Animation for articles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-article {
    animation: fadeInUp 0.6s ease forwards;
}

.news-article:nth-child(2) {
    animation-delay: 0.2s;
}

.newsletter {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}