/* ============================================
   RESET AND BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Droid Serif';
    /* background-color: #f5f5f5; */
    color: #333;
    line-height: 1.6;
}

.story-main {
    font-family: 'Droid Serif', sans-serif;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    padding-top: 10rem;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============================================
   MAIN CONTAINER & GRID
   ============================================ */
.main-container {
    max-width: 1480px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
    margin-top: 30px;
}

.events-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-content: start;
}

/* Shared Section Header */
.section-header {
    grid-column: 1 / -1;
    /* margin-bottom: 10px; */
    margin-top: 30px;
}

.section-header:first-child {
    margin-top: 0;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    /* margin-bottom: 5px; */
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* ============================================
   FUTURE MAKERS CARDS  (prefix: fm-)
   ============================================ */
.fm-card {
    background: linear-gradient(120deg, #9bd6e559, transparent);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.fm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.fm-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.fm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fm-location {
    position: absolute;
    bottom: 12px;
    right: 9px;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fm-location i { font-size: 0.75rem; }

.fm-content {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.fm-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: #1a202c;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid lightgray;
}

.fm-title {
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.fm-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.fm-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
    margin-top: auto;
}

.fm-link:hover { gap: 8px; }
.fm-link i { font-size: 0.85rem; }

/* ============================================
   BE THE CHANGE CARDS  (prefix: btc-)
   ============================================ */
.btc-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btc-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.btc-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.btc-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.btc-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.9);
    color: #1a202c;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid lightgray;
}

.btc-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.82) 100%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btc-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.btc-location i { font-size: 12px; }

.btc-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.btc-desc {
    font-size: 14px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.btc-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.btc-link:hover { opacity: 0.8; }

/* ============================================
   NET POSITIVE CARDS  (prefix: np-)
   ============================================ */
.np-card {
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 18px;
    color: white;
}

.np-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.np-card.np-blue  { background: linear-gradient(135deg, #0066cc 0%, #004999 100%); }
.np-card.np-green { background: linear-gradient(135deg, #3AAF2A 0%, #007904 100%); }
.np-card.np-olive { background: linear-gradient(135deg, #8F8400 0%, #797b00 100%); }

.np-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.np-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.np-tag {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

.np-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.np-card-image img {
    width: 100%;
    height: 258px;
    object-fit: cover;
    display: block;
}

.np-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.80) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.np-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.np-location i { font-size: 12px; }

.np-overlay-desc {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.np-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 14px;
}

.np-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.np-read-more:hover { gap: 12px; }
.np-read-more i { font-size: 14px; }

/* ============================================
   SOLUTIONS DEMYSTIFIED CARDS  (prefix: sd-)
   ============================================ */
.sd-card {
    background: linear-gradient(120deg, #9bd6e559, transparent);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.sd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.sd-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.sd-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-location {
    position: absolute;
    bottom: 12px;
    right: 9px;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sd-location i { font-size: 0.75rem; }

.sd-content {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sd-title {
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.sd-subtitle {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1;
}

.sd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sd-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: #1a202c;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid lightgray;
}

.sd-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
    margin-top: auto;
}

.sd-link:hover { gap: 8px; }
.sd-link i { font-size: 0.85rem; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    position: sticky;
    top: 20px;
}

.promo-card {
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: white;
}

.promo-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Yellow Card */
.yellow-card {
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #F2C71D;
    border-left: 4px solid #fbc02d;
    color: black;
    padding: 0;
    overflow: hidden;
}

.card-content-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.yellow-card h3 {
    color: #1a202c;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.yellow-card p {
    color: #1a202c;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.card-image-right {
    width: 130px;
    flex-shrink: 0;
    align-self: stretch;
}

.card-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 10px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a202c;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.view-all-link:hover { gap: 10px; }
.view-all-link i { font-size: 0.85rem; }

/* Blue / Carbon Dating Card */
.carbon-card {
    background: linear-gradient(45deg, #004FA1, #023870);
    color: white;
    border-radius: 5px;
}

.carbon-card h3 { color: white; margin-bottom: 6px; }
.carbon-card p  { color: white; }

/* Green Pages Card */
.green-pages-card {
    background: linear-gradient(135deg, #36A23E 0%, #12951C 100%);
    border-radius: 5px;
    color: white;
}

.green-pages-card h3 { color: white; margin-bottom: 8px; }
.green-pages-card p  { color: white; }

.card-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    height: 140px;
    object-fit: cover;
    display: block;
}

.search-input-white {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
}

.search-input-white::placeholder { color: #999; }

.latest-search-label {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #358d38a3;
    border-radius: 5px;
    font-size: 0.8rem;
    color: white;
    /* border: 1px solid rgba(255,255,255,0.3); */
}

/* Quiz Card */
.quiz-card {
    background: linear-gradient(135deg, #014994 0%, #41AD49 100%);
    border-radius: 5px;
}

.quiz-content {
    display: flex;
    flex-direction: column;
}

.quiz-illustration img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.quiz-text h3 { color: white; margin-bottom: 8px; }
.quiz-text p  { color: white; margin-bottom: 12px; }

.quiz-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.quiz-link:hover { gap: 8px; }
.quiz-link i { font-size: 0.85rem; }

/* ============================================
   CLIMATE SOLUTION CTA
   ============================================ */
.climate-solution-cta {
    margin-top: 60px;
    padding: 25px 40px;
    background: linear-gradient(135deg, #3AAF2A 0%, #007904 100%);
    border-radius: 12px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-button {
    padding: 14px 40px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Droid Serif';
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ============================================
   FEATURED ADS
   ============================================ */
.featured-ads-section {
    padding: 44px 9px;
    background: rgba(0,0,0,0.05);
    text-align: center;
    border-radius: 8px;
    width: 90%;
    margin: 3rem auto 0;
}

.featured-ads-section h2 {
    font-size: 2.5rem;
    color: #ccc;
    font-weight: 300;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(90deg, #0d5cb6 0%, #45b876 100%);
    padding: 29px 20px;
    margin-top: 60px;
    color: white;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.newsletter-text {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-right {
    display: flex;
    justify-content: flex-end;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 6px;
    border-radius: 8px;
}

.email-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.email-input::placeholder { color: #999; }

.submit-btn {
    padding: 14px 30px;
    background: #2abf60;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover { background: #0f4028; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        position: static;
    }

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

    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-right {
        justify-content: stretch;
    }

    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1  { font-size: 2rem; }
    .hero-subtitle    { font-size: 1rem; }

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

    .newsletter-title { font-size: 1.5rem; }
    .newsletter-text  { font-size: 0.9rem; }

    .climate-solution-cta { padding: 40px 25px; }
    .cta-content h2   { font-size: 1.6rem; }
    .cta-content p    { font-size: 1rem; }

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

@media (max-width: 640px) {
    .yellow-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-content-left { width: 100%; }

    .card-image-right {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-content h1      { font-size: 1.5rem; }
    .section-header h3    { font-size: 1.6rem; }

    .newsletter-section   { padding: 35px 20px; width: 95%; }
    .newsletter-title     { font-size: 1.3rem; }
    .newsletter-text      { font-size: 0.85rem; }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px;
    }

    .climate-solution-cta { margin-top: 30px; padding: 30px 20px; }
    .cta-content h2       { font-size: 1.4rem; }
    .cta-content p        { font-size: 0.95rem; }
    .cta-button           { padding: 12px 30px; font-size: 1rem; }

    .featured-ads-section { padding: 60px 20px; }
    .featured-ads-section h2 { font-size: 1.5rem; }
}

/* ============================================
   SECTION HEADER WITH BUTTON
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   VIEW ALL STORIES BUTTON
   ============================================ */
.view-all-stories-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #2e7d32;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.view-all-stories-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.view-all-stories-btn:hover {
    background-color: #1b5e20;
}

.view-all-stories-btn:hover i {
    transform: translateX(3px);
}

/* ============================================
   TRUNCATE CARD DESCRIPTIONS
   ============================================ */
.fm-desc,
.btc-desc,
.np-overlay-desc,
.sd-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   NO STORY FOUND
   ============================================ */
.no-story-found {
    text-align: center;
    padding: 32px 0 48px;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
}

/* ============================================
   COMING SOON PLACEHOLDER CARD
   ============================================ */
.cal-story-placeholder {
    width: 100%;
}

.cal-story-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 24px;
    border: 2px dashed #b5d4c1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4faf6 0%, #edf5f0 100%);
    text-align: center;
    min-height: 140px;
}

.cal-story-placeholder__icon {
    font-size: 2rem;
    line-height: 1;
    opacity: 0.75;
}

.cal-story-placeholder__heading {
    font-size: 1rem;
    font-weight: 700;
    color: #3a7a58;
    margin: 0;
    letter-spacing: 0.01em;
}

.cal-story-placeholder__sub {
    font-size: 0.82rem;
    color: #7aaa8f;
    margin: 0;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}