/* Base Styles */
:root {
    --blog-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --blog-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    --primary-color: #4285f4;
    --secondary-color: #1a73e8;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --light-background: #f8f9fa;
    --border-radius: 16px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
}

/* Navigation Styles */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

nav {
    position: relative;
    padding: 3rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    animation: coloredGlow 10s infinite;
}

@keyframes coloredGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(93, 155, 255, 1)) 
               drop-shadow(0 0 30px rgba(71, 137, 245, 0.8));
    }
    25% {
        filter: drop-shadow(0 0 20px rgba(219, 68, 55, 1))
               drop-shadow(0 0 30px rgba(219, 68, 55, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(244, 180, 0, 1))
               drop-shadow(0 0 30px rgba(244, 180, 0, 0.8));
    }
    75% {
        filter: drop-shadow(0 0 20px rgba(15, 157, 88, 1))
               drop-shadow(0 0 30px rgba(15, 157, 88, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(93, 155, 255, 1))
               drop-shadow(0 0 30px rgba(71, 137, 245, 0.8));
    }
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a.button {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a.button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-primary);
        padding: 1rem;
        text-align: center;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(66, 133, 244, 0.1);
        color: var(--primary-color);
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

/* Featured Article Hero Section */
.featured-article {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 2rem 6rem;
    text-align: left;
    position: relative;
}

.featured-article .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.article-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-article h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.featured-article .hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    color: white;
    line-height: 1.6;
}

.article-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.article-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-article {
        padding: 3rem 1rem 4rem;
    }

    .featured-article h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .preview-image {
        height: 300px;
    }
}

/* Blog Posts Section */
.blog-section {
    padding: 6rem 2rem;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-post {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-hover-shadow);
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--light-background);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Wave Dividers */
.custom-shape-divider-bottom-1,
.custom-shape-divider-bottom-2,
.custom-shape-divider-bottom-3 {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1 svg,
.custom-shape-divider-bottom-2 svg,
.custom-shape-divider-bottom-3 svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 80px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: white;
}

.custom-shape-divider-bottom-2 .shape-fill {
    fill: var(--light-background);
}

.custom-shape-divider-bottom-3 .shape-fill {
    fill: #10B981;
}

/* Footer */
footer {
    background-color: #10B981;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: -1px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo .logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        margin-top: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-article {
        padding: 6rem 1rem 4rem;
    }

    .featured-article h1 {
        font-size: 2.5rem;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .custom-shape-divider-bottom-1 svg,
    .custom-shape-divider-bottom-2 svg,
    .custom-shape-divider-bottom-3 svg {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .featured-article h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}