/*
Theme Name: My Figma Theme
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: Theme converted from Figma design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-figma-theme
*/

/* ==== YOUR FIGMA CSS GOES BELOW ==== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
.homepage {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===================================bodycss */

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

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


/* Main Layout Grid */
.main-content {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Left Sidebar Navigation */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sidebar-left a{
    text-decoration: none;
}
.sidebar-item {
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item:hover {
    transform: translateX(5px);
}

.sidebar-item img {
    width: 120px;
    min-width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
        margin-bottom: 8px;

}

.sidebar-text,
.card-title,
.card-subtitle,
.earthline-title,
.earthline-description,
.bottom-card-info p,
.bottom-card-label,
.critical-card h3 {
    overflow-wrap: break-word;
    word-break: break-word;
}

.sidebar-text {
    font-size: 15px !important;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

/* Center Content */
/* Hero Carousel Container */
.hero-carousel-container {
    margin-bottom: 30px;
    background-color: white;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    color: #1a1a1a;
    min-height: 80px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hero-title.fade-out {
    opacity: 0;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 15px;
}

.carousel-slides {
    display: flex;
    transition: transform 1s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
}

.hero-image {
    width: 100%;
    height: 400px;
    max-height: 450px;
    border-radius: 2px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s linear;
    transform: scale(1);
}

.carousel-slide.active .hero-image img {
    transform: scale(1.06);
}

.image-overly {
    color: #333;
}

.image-overly p {
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.image-overly p.fade-out {
    opacity: 0;
}

.carousel-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 28px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.carousel-meta.fade-out {
    opacity: 0;
}

.carousel-meta-date {
    font-size: 13px;
    color: #555;
}

.carousel-meta-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e8f5ee;
    color: #1a6b3a;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Static Article Tags */
.cta-action-block {
    margin-top: 20px;
    border: 1px solid #d4e8db;
    border-radius: 10px;
    overflow: hidden;
    background: #f6fbf8;
}

.cta-action-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1f5a35, #2d7a4f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 16px;
}

.cta-action-icon {
    font-size: 13px;
}

.article-tags {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px !important;
    font-weight: 600;
    color: white;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tag-green {
    background: linear-gradient(135deg, #1f5a35 0%, #2d7a4f 100%);
}

.read-more {
    display: inline-block;
    color: #fff;
    background-color: #2563a8;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 4px;
    margin-top: 12px;
    transition: background-color 0.2s ease;
}

.read-more:hover {
    background-color: #1a4a8a;
    text-decoration: none;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    color: #333;
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: scale(1.1);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.5s ease;
}

.indicator.active {
    background: #1f5a35;
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background: #1f5a35;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
        min-height: 60px;
    }

    .hero-image {
        height: 300px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .tag {
        padding: 12px 24px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 20px;
        min-height: 50px;
    }

    .hero-image {
        height: 250px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .article-tags {
        padding: 20px 0;
    }

    .tag {
        padding: 10px 20px;
    }

    .image-overly p {
        min-height: 60px;
    }
}

/* Right Sidebar */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #ffc216;
    padding: 10px;
    border-radius: 6px;
}
.sidebar-card a{
    text-decoration: none;
}

/* Green Card */
.green-card {
    background: linear-gradient(135deg, #36A23E 0%, #00b34c 100%);
    border: none;
    padding: 10px;
    overflow: hidden;
    border-radius: 6px;
}

.green-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.green-card-content {
    padding: 10px 4px 4px;
    color: white;
    margin-top: 8px;
}

.green-card-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.green-card-content p {
    font-size: 14px !important;
    margin-bottom: 8px;
    opacity: 0.95;
}

/* Green Search Form */
.green-search-form {
    margin-bottom: 15px;
}

.green-search-input {
    width: 100%;
    padding: 12px 15px;
    padding-left: 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat 12px center;
    outline: none;
}

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

.green-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Green Categories */
.green-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #0281306b;
    border-radius: 4px;
    font-size: 14px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 3px;
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cd-tag {
    background: #ffffff;
    color: #023870;
    border: none;
}

.cd-tag:hover {
    background: #f0f4f9;
}

.green-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid white;
}

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

/* Guide Card */
.guide-card {
    background: linear-gradient(135deg, #5dd68d 0%, #3d9b5f 100%);
    padding: 25px;
    color: white;
    border: none;
}

.guide-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.guide-card p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.guide-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.guide-link:hover {
    text-decoration: underline;
}

/* Career Card */
.career-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.career-card h3 {
    padding: 15px 15px 8px 15px;
    font-size: 18px;
    color: black;
}

.career-card p {
    padding: 0 15px;
    font-size: 14px !important;
    color: #666;
    margin-bottom: 10px;
}

.career-link {
    display: inline-block;
    padding: 0 15px 15px 15px;
    color: black;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.career-link:hover {
    text-decoration: underline;
}

/* Action Card */
.action-card {
    background: #F2C71D;
    padding: 25px;
    color: white;
    border: none;
}

.action-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.action-card p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.action-btn {
    display: inline-block;
    background: white;
    color: #f9a825;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet screens (768px - 1024px) */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 250px 1fr 250px;
        gap: 15px;
        padding: 15px;
    }

    .sidebar-item img {
        max-width: 100px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-image {
        height: 350px;
    }
}

/* Mobile screens (below 768px) */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .center-content {
        order: 1;
        max-width: 100%;
    }

    .sidebar-left {
        order: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .sidebar-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 6px;
        background: #fff;
        border: 1px solid #eee;
    }

    .sidebar-item:nth-child(n+7) {
        display: none;
    }

    .sidebar-item img {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 80px;
        object-fit: contain;
        margin: 0;
    }

    .sidebar-text {
        font-size: 13px;
        text-align: left;
        line-height: 1.2;
    }

    .sidebar-right {
        order: 3;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-image {
        height: 240px;
    }

    .image-overlay {
        padding: 20px 15px;
    }

    .image-overlay p,
    .image-overly p {
        font-size: 14px;
    }

    .article-tags {
        padding: 20px 0;
        gap: 10px;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tag {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 14px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .tag-green {
        background: #1f5a35;
        border: 1px solid #0f3d20;
    }

    .read-more {
        display: none;
    }

    .three-column-cards,
    .earthline-wrapper,
    .bottom-cards,
    .critical-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 10px;
    }

    .three-column-cards {
        padding: 20px 10px 30px;
        gap: 15px;
    }

    .card, .earthline-card, .bottom-card, .critical-card {
        width: 100%;
        box-sizing: border-box;
    }

    .card img,
    .bottom-card img,
    .critical-card img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .bottom-cards {
        display: grid;
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .critical-grid {
        display: grid;
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .earthline-ads-column {
        display: none;
    }
}

/* Small mobile screens (below 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-image {
        height: 200px;
    }

    .sidebar-left {
        gap: 10px;
    }

    .sidebar-item img {
        width: 100px;
        height: 70px;
        min-width: unset;
    }

    .sidebar-text {
        font-size: 11px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 10px;
    }

    .green-card-content,
    .guide-card,
    .action-card {
        padding: 15px;
    }

    .green-card-content h3,
    .guide-card h3,
    .action-card h3,
    .career-card h3 {
        font-size: 16px;
    }

    .green-card-content p,
    .guide-card p,
    .action-card p,
    .career-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 20px;
        min-height: 50px;
    }
}

/* Small mobile screens (below 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-image {
        height: 200px;
    }

    .sidebar-left {
        gap: 10px;
    }

    .sidebar-item img {
        aspect-ratio: 3 / 2;
    }

    .sidebar-text {
        font-size: 10px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 10px;
    }

    .green-card-content,
    .guide-card,
    .action-card {
        padding: 15px;
    }

    .green-card-content h3,
    .guide-card h3,
    .action-card h3,
    .career-card h3 {
        font-size: 16px;
    }

    .green-card-content p,
    .guide-card p,
    .action-card p,
    .career-card p {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 20px;
        min-height: 50px;
    }
}
/* =============================================================== */
/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(90deg, #014994 0%, #45b876 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 95%;
    margin: auto;
}

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

.newsletter-title {
    /* FIX: consistent with body font sizing */
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

/* FIX: was 18px !important — now consistent with body text */
.newsletter-text {
    font-size: 14px !important;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.newsletter-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    align-items: center;
}

/* ── CF7 form styled to match original design ── */
.newsletter-section .wpcf7 {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.newsletter-section .wpcf7-form {
    display: flex !important;
    flex-direction: row !important;
    gap:9px !important;
    /* background: white !important; */
    padding: 4px !important;
    border-radius: 5px !important;
    width: 100% !important;
    align-items: center !important;
}

.newsletter-section .wpcf7-form p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.newsletter-section .wpcf7-form .wpcf7-email {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    background: white !important;
    color: #333 !important;
    min-width: 0 !important;
    width: auto !important;
}

.newsletter-section .wpcf7-form .wpcf7-submit {
    padding: 12px 24px !important;
    background: #2abf60 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

.newsletter-section .wpcf7-form .wpcf7-submit:hover {
    background: #0f4028 !important;
}

.newsletter-section .wpcf7-response-output {
    border: none !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
    width: 100% !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
}

.newsletter-section .wpcf7-mail-sent-ok {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
}

.newsletter-section .wpcf7-not-valid-tip {
    color: white !important;
    font-size: 12px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .newsletter-left,
    .newsletter-right {
        width: 100%;
        align-items: flex-start;
    }

    .newsletter-right {
        justify-content: flex-start;
        width: 100%;
    }

    .newsletter-section .wpcf7-form {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .newsletter-section .wpcf7-form .wpcf7-email,
    .newsletter-section .wpcf7-form .wpcf7-submit {
        width: 100% !important;
        min-width: 0 !important;
    }

    .newsletter-section .wpcf7-form .wpcf7-submit {
        padding: 12px 16px !important;
    }

    }

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

    .newsletter-title {
        font-size: 18px;
    }

    .newsletter-text {
        font-size: 14px !important;
    }
}

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

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

    .subscribe-btn {
        width: 100%;
    }

    .newsletter-title {
        font-size: 16px;
    }
}
/* =================================================================================== */
/* Three Column Cards */
.three-column-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: auto;
    margin-top: 4rem;
    /* FIX: added consistent padding around cards */
    padding: 20px 40px 40px 40px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: linear-gradient(91deg, #EFF6FF, #FAF5FF);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.card .earthline-card {
    height: auto;
    flex: 1;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* .card-label {
    padding: 12px 12px 4px 12px;
} */

.card-label h2 {
    color: black;
    font-size: 19px; /* FIX: slightly reduced, was too large due to global h2 */
    font-weight: bold;
    transition: color 0.5s ease;
    text-decoration: none;
}

.card-subtitle {
    font-size: 14px; /* FIX: consistent small subtitle */
    color: #666;
    transition: color 0.5s ease;
    text-decoration: none;
}

/* Hover effects for card 1 */
#card1:hover {
    background: linear-gradient(117deg, #0852a7, #014994);
}

#card1:hover .card-label h2,
#card1:hover .card-subtitle,
#card1:hover .card-date,
#card1:hover .card-title,
#card1:hover .card-text,
#card1:hover .card-author,
#card1:hover .card-author-org,
#card1:hover .card-link {
    color: white !important;
    text-decoration: none;
}

/* Hover effects for card 2 */
#card2:hover {
    background: linear-gradient(119deg, #029528, #159344);
}

#card2:hover .card-label h2,
#card2:hover .card-subtitle,
#card2:hover .card-date,
#card2:hover .card-title,
#card2:hover .card-text,
#card2:hover .card-author,
#card2:hover .card-author-org,
#card2:hover .card-link {
    color: white !important;
}

/* Hover effects for card 3 */
#card3:hover {
    background: linear-gradient(117deg, #0852a7, #014994);
}

#card3:hover .card-label h2,
#card3:hover .card-subtitle,
#card3:hover .card-date,
#card3:hover .card-title,
#card3:hover .card-text,
#card3:hover .card-author,
#card3:hover .card-author-org,
#card3:hover .card-link {
    color: white !important;
    text-decoration: none;
}

.card img {
    width: 96%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: auto;
    display: block;
    border-radius: 6px;
}

.card-content {
    padding: 7px;
}

.card-date {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 8px;
    transition: color 0.5s ease;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.5s ease;
}

.card-text {
    font-size: 14px !important;
    color: #32373c;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: color 0.5s ease;
    filter: blur(4px);
    user-select: none;
}

/* FIX: Author name — main author name */
.card-author {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    transition: color 0.5s ease;
}

/* FIX: Organisation/second line below author — styled differently, smaller & grey */
.card-author-org {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
    transition: color 0.5s ease;
}

.card-link {
    color: #014994;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.5s ease;
}

.card-link:hover {
    text-decoration: underline;
}

/* Section Titles */
.section-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 14px;
    color: #32373c;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .three-column-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        margin-top: 2rem;
        padding: 20px;
    }

    .card img {
        height: 160px;
    }

    .card-content {
        padding: 12px;
    }

    .card-label h2 {
        font-size: 15px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-text {
        font-size: 14px !important;
    }

    .section-title {
        font-size: 22px;
        text-align: center;
    }

    .section-subtitle {
        font-size: 14px;
        text-align: center;
    }
}

/* =========================================
   EARTHLINE SECTION - TWO COLUMN LAYOUT
   ========================================= */

.earthline-section {
    width: 100%;
    /* FIX: reduced top padding — was 60px, causing too much white space */
    padding: 20px 0 40px 0;
    background-color: #ffffff;
}

.earthline-container {
    margin: 0 auto;
    padding: 0px 40px;
}

.earthline-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    /* margin: 0 0 8px 0; */
    letter-spacing: -0.5px;
    padding: 0px 12px;
}

.earthline-subheading {
    font-size: 14px;
    color: #32373c;
    /* margin: 0 0 20px 0; */
    font-weight: 400;
    padding: 0px 12px;
}

.earthline-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: end;
}

.earthline-news-wrapper {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
}

.earthline-cards-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.earthline-ads-column {
    display: flex;
}

/* FIX: Earthline cards are now clickable via wrapping <a> in PHP.
   These styles make the card look and behave as a link. */
.earthline-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 10px;
}

.earthline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.earthline-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}

.earthline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
    display: block;
    transition: transform 0.3s ease;
}

.earthline-card:hover .earthline-card-image img {
    transform: scale(1.05);
}

.earthline-card-content {
    padding:9px 0px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.earthline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #32373c;
    margin-bottom: 10px;
    font-weight: 400;
}

.calendar-icon {
    width: 14px;
    height: 14px;
    color: #32373c;
}

.earthline-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.earthline-card:hover .earthline-title {
    color: #2563a8;
}

.earthline-description {
    font-size: 14px;
    color: #32373c;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.earthline-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6900;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.earthline-read-more .arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.earthline-read-more:hover {
    color: #ff5500;
}

.earthline-read-more:hover .arrow {
    transform: translateX(4px);
}

/* =========================================
   SEARCH RESULTS (LIST + LOAD MORE)
   ========================================= */
.search-results-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 28px;
}

.search-results-group {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8eaed;
}

.search-results-group[data-post-type="post"] {
    order: -1;
}

.search-results-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #014994;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #014994;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    line-height: 1;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.search-results-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.search-results-link:hover {
    background: #f6f8fb;
}

.search-results-item-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.15s ease;
}

.search-results-link:hover .search-results-item-title {
    color: #014994;
}

.search-results-item-date {
    display: inline-block;
    font-size: 12px;
    color: #8c939b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-results-item-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.search-load-more-wrap {
    margin-top: 24px;
    text-align: center;
}

.search-load-more-btn {
    border: none;
    background: #014994;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.search-load-more-btn:hover {
    background: #01356c;
    transform: translateY(-1px);
}

.search-load-more-btn:active {
    transform: translateY(0);
}

.search-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* FIX: Featured Ads — IAB standard 300x600 (half page) */
.featured-ads-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;   /* IAB standard width */
    min-height: 600px; /* IAB half-page standard */
    transition: all 0.3s ease;
}

.featured-ads-card:hover {
    background: linear-gradient(135deg, #ececec 0%, #e0e0e0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-ads-content {
    text-align: center;
    /* padding: 40px 20px; */
}

.featured-ads-label {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #a0a0a0;
    letter-spacing: 0.5px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media screen and (max-width: 1024px) {
    .earthline-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .earthline-cards-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .earthline-ads-column {
        display: none;
    }

    .earthline-heading {
        font-size: 26px;
    }
}

@media screen and (max-width: 768px) {
    .earthline-section {
        padding: 20px 0 30px 0;
    }

    .earthline-container {
        padding: 0 16px;
    }

    .earthline-news-wrapper {
        padding: 16px;
    }

    .earthline-cards-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .earthline-heading {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .earthline-subheading {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .earthline-card-image {
        height: auto;
    }

    .earthline-title {
        font-size: 15px;
    }

    .earthline-description {
        font-size: 14px;
    }

    .search-results-group {
        padding: 18px 16px;
    }

    .search-results-group-title {
        font-size: 16px;
    }

    .search-results-item-title {
        font-size: 15px;
    }

    .search-results-link {
        padding: 12px 8px;
    }
}

@media screen and (max-width: 480px) {
    .earthline-section {
        padding: 16px 0 24px 0;
    }

    .earthline-news-wrapper {
        padding: 14px;
    }

    .earthline-heading {
        font-size: 20px;
    }

    .earthline-card-content {
        padding: 14px 16px 18px;
    }

    .earthline-date {
        font-size: 11px;
    }

    .earthline-title {
        font-size: 14px;
    }

    .earthline-description {
        font-size: 14px;
    }

    .earthline-read-more {
        font-size: 14px;
    }
}

@media screen and (max-width: 360px) {
    .earthline-container {
        padding: 0 12px;
    }

    .earthline-news-wrapper {
        padding: 12px;
    }

    .earthline-heading {
        font-size: 18px;
    }

    .earthline-card-image {
        height: auto;
    }

    .earthline-title {
        font-size: 14px;
    }
}

/* =================================GREEN BANNER ======================================================== */
.green-banner {
    background: linear-gradient(90deg, #014994 0%, #2bc93f 100%);
    padding: 26px;
    border-radius: 8px;
    color: white;
    width: 95%;
    margin: 2rem auto;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.banner-left h2 {
    font-size: 28px;
    margin: 0;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
}

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

.search-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 9px 27px;
}

.search-box p {
    font-size: 16px !important; /* FIX: was 25px — too large */
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .green-banner {
        padding: 20px;
        margin-top: 1.5rem;
    }

    .banner-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .banner-left h2 {
        font-size: 22px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

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

    .search-box p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .green-banner {
        padding: 18px 15px;
    }

    .banner-left h2 {
        font-size: 20px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .search-box p {
        font-size: 14px !important;
    }
}

/* ======================================================================================== */
/* Bottom Cards Section Wrapper */
.bottom-cards-wrapper {
    width: 95%;
    margin: auto;
    padding-top: 3rem;
    margin-bottom: 40px;
}

.bottom-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bottom-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bottom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.bottom-card-prominent {
    border: 1.5px solid #d0dce8;
    box-shadow: 0 4px 14px rgba(2, 56, 112, 0.1);
}

.bottom-card-prominent:hover {
    box-shadow: 0 8px 24px rgba(2, 56, 112, 0.18);
}

.bottom-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.bottom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.bottom-card:hover img {
    transform: scale(1.05);
}

.bottom-card-label {
    padding: 9px 4px 4px;
    font-size: 16px !important;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.bottom-card:hover .bottom-card-label {
    color: #2563a8;
}

.bottom-card-label p {
    font-size: 13px !important;
    color: #666;
    line-height: 1.5;
    font-weight: 400;
}

.card-label {
    margin-bottom: 10px;
    /* padding: 7px; */
}

.card-label-green {
    background: linear-gradient(135deg, #2d7a4a 0%, #45b876 100%);
    color: white;
}

.card-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
}

.bottom-card h3 {
    /* padding: 15px; */
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    color: #1a1a1a;
}

.bottom-card ul {
    padding: 13px 10px;
    list-style-type: none;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.bottom-card li {
    margin-bottom: 8px;
}

.bottom-card-label h2 {
    color: black;
}

.bottom-card-info {
    padding: 10px;
}

.bottom-card-info h3 {
    padding: 0;
    margin-bottom: 8px;
}

.bottom-card-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-description {
    font-size: 14px ;
}

.info-link {
    color: #2563a8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Carbon Dating card — green-card styles inside bottom-card */
.bottom-card.green-card {
    background: #023870;
    padding: 10px;
}
.bottom-card.green-card > a {
    color: white;
}
.bottom-card.green-card .green-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.bottom-card.green-card .green-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}
.bottom-card.green-card .green-card-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 6px;
    line-height: 1.5;
}
.bottom-card.green-card .info-link {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.info-link:hover {
    text-decoration: underline;
}

.quiz-btn {
    display: inline-block;
    padding: 10px 0px;
    color: black;
    border-radius: 4px;
    margin: 0 15px 15px 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-btn:hover {
    transform: scale(1.05);
    /* box-shadow: 0 4px 8px rgba(37, 99, 168, 0.3); */
    text-decoration: none;
}

/* Featured Ad Box (Desktop Only) */
.featured-ad-box {
    display: block;
    background: #a9a9a936;
    border-radius: 8px;
    /* padding: 30px; */
    text-align: center;
    margin-top: 20px;
}

.featured-ad-content {
    /* max-width: 600px; */
    margin: 0 auto;
}

.ad-badge {
    display: inline-block;
    background: #666;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-ad-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.featured-ad-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ad-contact-btn {
    display: inline-block;
    background: #2563a8;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.ad-contact-btn:hover {
    background: #1e4d8b;
}

.featured-ad h2 {
    font-size: 32px;
    color: grey;
}

@media (max-width: 1024px) {
    .bottom-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .bottom-cards-wrapper {
        width: 100%;
        padding: 1.5rem 12px 0;
        margin-bottom: 24px;
    }

    .bottom-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .bottom-card {
        padding: 10px;
        border-radius: 10px;
    }

    .bottom-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .bottom-card img {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }

    .bottom-card-label {
        padding: 10px 2px 2px;
        margin-top: 6px;
    }

    .bottom-card.green-card .green-card-image img {
        height: 180px;
        border-radius: 8px;
    }

    .bottom-card.green-card .green-card-content {
        padding: 10px 2px 2px;
        margin-top: 6px;
    }

    .bottom-card.green-card .green-card-content h3 {
        margin-bottom: 6px;
    }

    .green-search-form {
        margin-bottom: 10px;
    }

    .green-categories {
        gap: 10px;
        margin-top: 10px;
    }

    .featured-ad-box {
        display: none;
    }
}

@media (max-width: 480px) {
    .bottom-cards-wrapper {
        width: 100%;
        padding: 1rem 8px 0;
    }

    .bottom-card {
        padding: 10px;
    }

    .bottom-card img {
        width: 100%;
        height: 160px;
    }

    .bottom-card h3 {
        font-size: 16px;
        padding: 0;
    }

    .bottom-card ul {
        font-size: 14px;
        padding: 0 10px 10px 30px;
    }

    .card-label h2 {
        font-size: 16px;
    }

    .card-subtitle {
        font-size: 14px;
    }

    .quiz-btn {
        margin: 0 2px 8px;
        width: auto;
        text-align: left;
    }

    .bottom-card.green-card .green-card-image img {
        height: 160px;
    }
}

/* ====================================================== */
/* Critical Mass Section */
.critical-mass {
    position: relative;
    margin-bottom: 40px;
    width: 95%;
    margin: 2rem auto 40px auto;
}

.view-all {
    position: absolute;
    top: 0;
    right: 0;
    color: #2563a8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.critical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.critical-card {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.critical-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.critical-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}

.critical-card:hover img {
    transform: scale(1.05);
}

.critical-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.critical-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 10px 0 6px;
    transition: color 0.2s ease;
}

.critical-card:hover h3 {
    color: #2563a8;
}

.critical-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.critical-link {
    color: #2563a8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.critical-link:hover {
    text-decoration: underline;
}

.tag-item {
    background-color: white;
    color: black;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .critical-mass {
        width: 100%;
    }

    .view-all {
        position: static;
        display: block;
        text-align: right;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .critical-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .critical-card {
        padding: 14px 12px;
    }

    .critical-card img {
        height: 160px;
    }

    .critical-card h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .critical-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .critical-link {
        font-size: 14px;
    }
}

/* ========================================================= */
/* Creative Commons & Video Wrapper */
.cc-video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    align-items: stretch;
}

.creative-commons-banner {
    background: linear-gradient(135deg, #f9d423 0%, #f9a825 100%);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.creative-commons-banner h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #333;
}

.creative-commons-banner > p {
    font-size: 14px;
    margin: 0 0 20px 0;
    color: #333;
}

.cc-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 6px;
}

.cc-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: rgb(255 255 255 / 50%);
    border-radius: 4px;
}

.cc-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cc-item > div {
    flex: 1;
}

.cc-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #1a1a1a;
}

.cc-item p {
    font-size: 14px ;
    color: #333;
    line-height: 1.5;
    margin: 0 0 5px 0;
}

.cc-time {
    font-size: 11px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

.cc-time::before {
    content: "🕐";
    margin-right: 4px;
}

.cc-button {
    display: inline-block;
    background: #2d7a4a;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
    width: fit-content;
    margin: auto;
}

.cc-button:hover {
    background: #1f5a35;
}

.podcast-embed-section {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.podcast-embed-section .youtube-channel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.video-section {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.youtube-channel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7a 100%);
}

.youtube-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.youtube-poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.youtube-link:hover .youtube-poster {
    background: rgba(0, 0, 0, 0.3);
}

.youtube-play-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.youtube-link:hover .youtube-play-icon {
    transform: scale(1.1);
}

.youtube-poster h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.youtube-poster p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.youtube-channel-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7a 100%);
    border-radius: 8px;
}

.youtube-channel-fallback a {
    text-align: center;
    text-decoration: none;
    color: white;
    display: none;
}

.youtube-channel-fallback h4 {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.youtube-channel-fallback p {
    font-size: 16px;
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7a 100%);
    cursor: pointer;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    padding-left: 4px;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-overlay-text {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    color: white;
}

.video-overlay-text h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 600;
}

.video-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
}

.video-meta span {
    opacity: 0.9;
    cursor: pointer;
}

.video-meta span:hover {
    opacity: 1;
    text-decoration: underline;
}

.video-watch-on {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 11px;
}

.youtube-logo {
    background: red;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10px;
}

@media (max-width: 1024px) {
    .cc-video-wrapper { gap: 15px; align-items: start; }
    .creative-commons-banner { padding: 25px; }
    .youtube-channel-container { max-height: 250px; }
    .video-container { max-height: 250px; }
}

@media (max-width: 768px) {
    .cc-video-wrapper {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        padding: 0 15px;
        padding-top: 1rem;
        align-items: start;
    }
    .podcast-embed-section,
    .video-section {
        width: 100%;
    }
    .creative-commons-banner { padding: 20px; }
    .youtube-channel-container {
        aspect-ratio: 16 / 11;
        min-height: 0;
        max-height: none;
        display: flex;
    }
    .video-container { max-height: 220px; }
    .video-play-button { width: 50px; height: 50px; font-size: 18px; }
    .youtube-link,
    .youtube-poster {
        min-height: 100%;
    }
    .youtube-poster {
        padding: 18px 14px;
        gap: 8px;
    }
    .youtube-poster h3 { font-size: 22px; }
    .youtube-poster p { font-size: 14px; }
    .youtube-play-icon { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
    .creative-commons-banner { padding: 15px; }
    .cc-button { font-size: 11px; padding: 10px 15px; }
    .cc-video-wrapper {
        padding: 0 12px;
        padding-top: 1.5rem;
        gap: 14px;
    }
    .youtube-channel-container {
        aspect-ratio: 16 / 11;
        min-height: 0;
        max-height: none;
    }
    .video-container { max-height: 180px; }
    .video-play-button { width: 45px; height: 45px; font-size: 16px; }
    .youtube-poster {
        padding: 16px 12px;
    }
    .youtube-poster h3 {
        font-size: 16px;
        line-height: 1.25;
        margin: 0;
    }
    .youtube-poster p {
        font-size: 11px;
        line-height: 1.35;
        margin: 0;
    }
    .youtube-play-icon { width: 50px; height: 50px; margin-bottom: 10px; }
}

/* ====================================================================== */
.instagram-feed {
    width: 95%;
    margin: auto;
    margin-bottom: 40px;
}

.instagram-handle {
    color: #2563a8;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
}

.instagram-wrapper {
    position: relative;
}

.instagram-grid {
    display: flex;
    gap: 14px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.instagram-grid::-webkit-scrollbar {
    display: none;
}

.instagram-grid img {
    flex: 0 0 auto;
    width: 230px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.instagram-grid img:hover {
    transform: scale(1.06);
}

.insta-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.insta-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.1);
}

.insta-btn.left { left: -10px; }
.insta-btn.right { right: -10px; }

@media (max-width: 768px) {
    .instagram-grid img { width: 140px; height: 110px; }
    .insta-btn { display: none; }
}

@media (max-width: 480px) {
    .instagram-grid img { width: 120px; height: 100px; }
}

/* ====================================== */
.article-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-tags .tag i {
    font-size: 0.85em;
    transition: transform 0.25s ease;
    margin-left: auto;
    opacity: 0.85;
}

.article-tags a:hover .tag i {
    transform: translateX(3px);
}

.tag i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .article-tags {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        padding: 16px 0 10px;
    }

    .article-tags a {
        display: block;
        width: 100%;
    }

    .article-tags .tag {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 10px;
        box-shadow: 0 6px 14px rgba(16, 44, 28, 0.18);
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .article-tags {
        gap: 10px;
        padding: 14px 0 8px;
    }

    .article-tags .tag {
        padding: 13px 14px;
        font-size: 13px;
        border-radius: 9px;
    }
}

/* ================================================================
   LEADERBOARD BANNER AD — 728 × 90
================================================================ */
.leaderboard-ad-bar {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.leaderboard-ad-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaderboard-ad-placeholder {
    width: 728px;
    height: 90px;
    max-width: 100%;
    background: #e8e8e8;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #888;
    /* font-family: inherit; */
}

.ad-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
}

.ad-size {
    font-size: 14px;
    font-weight: 600;
    color: #bbb;
}

@media (max-width: 768px) {
    .leaderboard-ad-placeholder {
        width: 100%;
        height: 60px;
    }
    .ad-size { font-size: 14px; }
}

@media (max-width: 480px) {
    .leaderboard-ad-bar { padding: 8px 0; }
    .leaderboard-ad-placeholder { height: 50px; }
    .ad-size { font-size: 14px; }
}

/* ================================================================
   GLOBAL FONT SIZES — scoped to prevent layout breakage
================================================================ */
h1 { font-size: 2rem; }       /* was 3rem */
h2 { font-size: 1.6rem; }     /* was 2rem */
h3 { font-size: 1.2rem; }     /* was 23px */
p  { font-size: 14px !important; } /* was 17-18px !important */
/* ============================================
   SIDEBAR SCROLL — add to style.css
   ============================================ */

/* Container — no fixed height, JS controls visibility */
.sidebar-scroll-container {
    overflow: hidden;
}

/* Expanded state — JS sets max-height and overflow */
.sidebar-scroll-container.expanded {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.sidebar-scroll-container.expanded::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll-container.expanded::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* Read More — keep original style, just pointer cursor */
#sidebarReadMoreBtn {
    cursor: pointer;
    display: block;
}
.hero .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}
.card-labels{
    padding: 7px;
}
