/* Main content styling */
/* Note: Root variables and basic body setup are in header.css */

.hero {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 30px;
    color: #666;
}

.featured-posts {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.post-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.post-date {
    margin-right: 15px;
}

/* CTA Section Styles */
.cta-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #666;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Newsletter Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.form-group {
    display: flex;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 70%;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.btn-submit {
    border-radius: 0 50px 50px 0;
    padding: 14px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
}

.btn-submit:hover {
    background-color: var(--hover-color);
}

/* Response Messages */
#mce-success-response,
#mce-error-response,
.subscribe-message,
.form-message {
    margin: 20px auto 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    max-width: 500px;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#mce-success-response,
.form-message {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.12);
    border-left: 4px solid #4CAF50;
}

#mce-error-response {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.12);
    border-left: 4px solid #f44336;
}

.form-message p {
    margin: 0;
}

/* Loading state */
.btn-submit.loading {
    background-color: #2980b9;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.read-more {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles for Main Content */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

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

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

    .post-card {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 90%;
    }

    .form-group {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        margin-bottom: 0;
        border-radius: 5px 5px 0 0;
        border-right: 2px solid var(--border-color);
        border-bottom: none;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 30px;
        margin-top: 15px;
    }

    #mce-success-response,
    #mce-error-response,
    .subscribe-message,
    .form-message {
        position: static;
        padding: 12px;
        margin-top: 15px;
        width: 100%;
    }
}

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

    .section-title {
        font-size: 1.5rem;
    }

    .newsletter-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 0.95rem;
        margin-top: 10px;
    }
}

/* Holographic Stats Section */
.stats-holographic {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: white;
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    margin: 60px auto;
    max-width: 1200px;
    animation: fadeIn 1s ease-in-out;
}

.stats-container-holographic {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item-holographic {
    flex: 1 1 200px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item-holographic:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.stat-number-holographic {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-label-holographic {
    font-size: 1rem;
    color: #e0e0e0;
    letter-spacing: 0.5px;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container-holographic {
        flex-direction: column;
        align-items: center;
    }

    .stat-item-holographic {
        width: 100%;
        max-width: 400px;
    }

    .stat-number-holographic {
        font-size: 2rem;
    }

    .stat-label-holographic {
        font-size: 0.95rem;
    }
}

/* Enhanced Hero Section Styles */
.hero-enhanced {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
}

.hero-tagline {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Creative CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
    transition: all 0.6s ease;
    z-index: 0;
    border-radius: 50px;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: scale(1.05);
    background-position: right center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Optional glow effect when focused */
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}


/* Recent Articles Section */
.recent-articles {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2rem;
    }

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

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}