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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #00853e;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-light);
}

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

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-color);
}

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

.logo h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2px;
}

.tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Breaking News Banner */
.breaking-news {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 12px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: white;
    color: #c41e3a;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 3px;
}

.breaking-text {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Main Content Grid */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start; /* Align items to top */
    max-width: 100%; /* Prevent overflow */
    overflow: visible; /* Allow sticky positioning */
}

/* Article Styles */
.article {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.author {
    font-weight: 600;
    color: var(--text-color);
}

.featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 25px;
}

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

.article-body h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.quote {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
}

.quote p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote cite {
    display: block;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
}

/* Success Stories */
.success-stories {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

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

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

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

.story-content {
    padding: 20px;
}

.story-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.story-role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

/* Platform Screenshot */
.platform-screenshot {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.platform-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 8px;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe4b5 100%);
    padding: 35px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    margin: 40px 0;
}

.cta-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.urgency-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    border: 2px solid #ffc107;
}

.urgency-icon {
    font-size: 1.5rem;
}

.urgency-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.testimonial {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-light);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #006b2e 100%);
    border-radius: 8px;
    margin: 40px 0;
    color: white;
}

.final-cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.scroll-to-form {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.scroll-to-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Disclaimer */
.disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 350px; /* Prevent sidebar from expanding */
    width: 100%;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%; /* Stay within sidebar */
    position: relative;
    z-index: 5; /* Below sticky form but above normal content */
}

/* Registration Form Widget */
.registration-form-widget {
    /* Sticky only on desktop, with proper constraints */
    align-self: start;
    width: 100%; /* Stay within sidebar width */
    max-width: 100%; /* Don't overflow */
}

@media (min-width: 1024px) {
    .registration-form-widget {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px); /* Prevent overflow */
        overflow-y: auto; /* Allow scroll if content is too tall */
        z-index: 10; /* Stay above content but below modals */
    }
}

.widget-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #005a2b 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.widget-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.widget-header p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Registration Form */
.registration-form {
    padding: 25px;
    width: 100%; /* Stay within parent */
    max-width: 100%;
    box-sizing: border-box; /* Include padding in width */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #b8941f 100%);
    color: var(--primary-color);
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.form-privacy {
    margin-top: 15px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.form-privacy a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Trending News Widget */
.widget-title {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

.news-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    position: relative;
}

.news-item:hover {
    background: var(--bg-light);
}

.news-item:last-child {
    border-bottom: none;
}

.news-badge {
    display: inline-block;
    background: var(--text-light);
    color: white;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.news-badge.hot {
    background: #c41e3a;
}

.news-item h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-item h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.news-item h4 a:hover {
    color: var(--secondary-color);
}

.news-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Ad Widget */
.ad-widget {
    padding: 25px;
    text-align: center;
    background: var(--bg-light);
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

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

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Stagger animations */
.story-card:nth-child(1) { animation-delay: 0.2s; }
.story-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }
.testimonial:nth-child(3) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .article-title {
        font-size: 2rem;
    }
}

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

    .sidebar {
        order: -1;
    }

    .registration-form-widget {
        position: static;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

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

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

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .article {
        padding: 25px 20px;
    }

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

    .lead {
        font-size: 1.1rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

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