/* PDF Card Flex Row Layout */
.pdf-card-flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.pdf-content-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 16px 16px;
}

.pdf-preview-right {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #00a78e;
    border-radius: 15px;
}

.pdf-article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.pdf-article-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

.pdf-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d2d2d;
}

.pdf-description {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #555;
}

.pdf-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pdf-btn {
    padding: 6px 16px;
    border-radius: 6px;
    background: #f3f3f3;
    color: #333;
    text-decoration: none;
    font-size: 0.98rem;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s;
}

.pdf-btn:hover {
    background: #e0e7ff;
    color: #1a237e;
}

.pdf-view-btn {
    font-weight: 500;
}

.pdf-download-btn {
    font-weight: 500;
}

.pdf-preview-right iframe {
    border-radius: 8px;
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .pdf-card-flex-row {
        flex-direction: column;
        gap: 12px;
    }
    .pdf-preview-right {
        padding: 15px;
        justify-content: flex-center;

        iframe {
            width: 500px !important;
        }
    }
    .pdf-content-left {
        padding: 16px 0 0 0;
    }
    .pdf-article-card {
        height: auto !important;
    }
}
/* PDF Card Flex Layout for Media Stories */
.pdf-card-flex {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    max-width: 700px;
    margin: 2rem auto;
}

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

.pdf-content-left {
    flex: 1;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d2d2d;
}

.pdf-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.desc-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}
.desc-link:hover {
    color: #0056b3;
}

.pdf-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pdf-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.pdf-btn.pdf-view-btn {
    background: #9b59b6;
    color: #fff;
}
.pdf-btn.pdf-download-btn {
    background: rgb(112, 160, 115);
    color: #fff;
}
.pdf-btn:hover {
    background: #bdbdbd;
    color: #222;
}
.pdf-btn.pdf-view-btn:hover {
    background: #9b59b6;
}
.pdf-btn.pdf-download-btn:hover {
    background: #2e7031;
}

.pdf-preview-right iframe {
    width: 180px;
    height: 220px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .pdf-card-flex {
        flex-direction: column;
        max-width: 100%;
    }
    .pdf-preview-right {
        flex: none;
        max-height: 250px;
        padding: 16px;
    }
    .pdf-content-left {
        padding: 1rem;
    }
    .pdf-article-card {
        height: auto !important;
    }
}
/* Poetry post card layout: image top, title and content below */
.poetry-post-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
}

.poetry-post-title {
    text-align: left;
    width: 100%;
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
    color: #2d2d2d;
}

.poetry-post-full {
    text-align: left;
    width: 100%;
    font-size: 1.1rem;
    color: #444;
    white-space: pre-wrap;
}

.media-content-title {
    text-align: left;
    width: 100%;
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
    color: #2d2d2d;
}

.media-content-card {
    text-align: left;
    width: 100%;
    font-size: 1.1rem;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

.facebook-post-title {
    text-align: left;
    width: 100%;
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
    color: #2d2d2d;
}

.facebook-post-full {
    text-align: left;
    width: 100%;
    font-size: 1.1rem;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

/* Center poetry post image */
.poetry-post-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 350px;
    width: 100%;
}
/* Poetry Card Layout */
.poetry-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.poetry-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
    max-width: 700px;
    margin: 0 auto;
}

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

.poetry-image {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.poetry-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    max-height: 220px;
}

.poetry-content {
    flex: 1;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poetry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d2d2d;
}

.poetry-excerpt {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 600px) {
    .poetry-card {
        flex-direction: column;
        max-width: 100%;
    }
    .poetry-image {
        flex: none;
        max-height: 180px;
    }
    .poetry-content {
        padding: 1rem;
    }
}
/* About section background image for paragraph */
.about-content .about-bg {
        background: url('about.png') no-repeat center/cover;
        color: #000;
        padding: 2.5rem 2rem;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        position: relative;
        min-height: 320px;
        font-size: 1.08rem;
        line-height: 1.7;
        margin-bottom: 2rem;
}
@media (max-width: 600px) {
    .about-content .about-bg {
        padding: 1.2rem 0.7rem;
        font-size: 0.98rem;
        min-height: 180px;
    }
}
/* Hamburger styles for banner nav */
.banner-hamburger {
    display: none;
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#banner-hamburger {
      position: absolute;
      right: 10px;
      left: auto;
      /* other styles */
}

.banner-hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
.banner-hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.banner-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.banner-hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Banner nav base styles */
.banner-nav {
    position: absolute;
    top: 40px;
    left: 55%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
    align-items: center;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.banner-nav-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    z-index: 30;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    visibility: hidden;
}
@media (max-width: 900px) {
    .banner-hamburger {
        display: flex;
    }
    .banner-nav {
        flex-direction: column;
        align-items: flex-start;
        background: rgba(0,0,0,0.92);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        padding: 18px 0 18px 24px;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        display: none;
        gap: 0;
        transform: none;
    }
    .banner-nav.open {
        display: flex;
    }
    .banner-nav .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #fff2;
        color: #fff;
        background: none;
    }
    .banner-nav-close {
        display: none;
        visibility: hidden;
    }
    .banner-nav.open .banner-nav-close {
        display: none;
    }
}

@media (max-width: 600px) {
    .banner-hamburger {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
    }
    .banner-nav {
        top: 44px;
        padding: 10px 0 10px 12px;
    }
}

@media (max-width: 480px) {
    .banner-nav.open {
        display: flex;
        position: fixed;
    }
}


.banner-nav .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 18px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.2s;
    width: max-content;
}

.banner-nav .nav-link:hover,
.banner-nav .nav-link.active {
    color: #ffe082;
    background: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .banner-nav {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
    }
    .banner-nav .nav-link {
        font-size: 0.95rem;
        padding: 7px 10px;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Main Header Navigation */
.main-header {
    background: linear-gradient(135deg, #eaa866 0%, #e9386f 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: rgba(155, 89, 182, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* XS screens (iPhone 12, etc.) */
@media (max-width: 400px) {
    .hero-img {
        width: 100%;
        height: auto;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-left: 220px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    margin-right: 100px;

    .hero-content-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            height: 100%;
            padding: 40px 120px 40px 0;
            position: relative;
            z-index: 2;
            max-width: 40vw;
            margin-left: auto;
    }

    .hero-content-right .hero-title {
            color: #fff;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 18px;
            text-align: right;
            text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    @media (max-width: 900px) {
        .hero-content-right {
            padding: 30px 40px 30px 0;
            max-width: 60vw;
        }
        .hero-content-right .hero-title {
            font-size: 2rem;
        }
        .about-btn {
            font-size: 1rem;
            padding: 8px 18px;
        }
    }

    @media (max-width: 600px) {
        .hero-content-right {
            align-items: center;
            padding: 18px 0 18px 0;
            max-width: 100vw;
        }
        .hero-content-right .hero-title {
            font-size: 1.2rem;
            text-align: center;
        }
        .about-btn {
            font-size: 0.95rem;
            padding: 7px 12px;
            text-align: center;
        }
    }
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    line-height: 1.5;
}

/* Remove CTA button styles as it's no longer needed */

/* Articles Section */
.articles-section {
    padding: 80px 0;
}

/* Media Articles Section */
.media-section {
    padding: 50px 0;
    background: #f8f9fa;
}

/* Home Overview Section */
.home-overview {
    padding: 50px 0;
    background: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(155, 89, 182, 0.15);
}

.content-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.content-card h3 {
    color: #9b59b6;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.content-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: left;
}

.content-btn {
    display: inline-block;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.content-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}


.about-btn {
    display: inline-block;
    background: white;
    color: purple;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 100px;
    position: relative; /* Needed to create a stacking context */
    z-index: 10;
}


/* Media Controls */
.media-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.media-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #9b59b6;
    background: white;
    color: #9b59b6;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #9b59b6;
    color: white;
}

.media-search {
    display: flex;
    gap: 0;
    border: 2px solid #9b59b6;
    border-radius: 25px;
    overflow: hidden;
}

.media-search input {
    padding: 10px 15px;
    border: none;
    outline: none;
    width: 250px;
}

.media-search button {
    padding: 10px 15px;
    background: #9b59b6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-search button:hover {
    background: #8e44ad;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

/* PDF Article Cards */
.pdf-article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: auto;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.pdf-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.pdf-preview::after {
    content: 'PDF';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.9);
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.pdf-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pdf-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.pdf-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.pdf-meta span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.8rem;
}

.pdf-category {
    background: #e7f3ff !important;
    color: #0066cc !important;
    font-weight: 500;
}

.pdf-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pdf-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.pdf-view-btn {
    background: #9b59b6;
    color: white;
}

.pdf-view-btn:hover {
    background: #8e44ad;
    transform: translateY(-1px);
}

.pdf-download-btn {
    background: #17a2b8;
    color: white;
}

.pdf-download-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
    padding: 0 10px;
}

/* Embedded Content in Article Cards */
.embedded-content-preview {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
    flex-shrink: 0;
    order: 1; /* Ensure embedded content always comes first */
    position: relative;
}

.embedded-content-preview iframe,
.embedded-content-preview blockquote,
.embedded-content-preview .twitter-tweet,
.embedded-content-preview .instagram-media,
.embedded-content-preview .tiktok-embed {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    border-radius: 0;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.embedded-content-preview blockquote {
    border-left: 4px solid #007cba;
    padding: 15px;
    margin: 0;
    background: white;
    font-style: italic;
    height: 200px;
    display: flex;
    align-items: center;
    position: static !important;
}

/* Ensure embedded content doesn't break card layout */
.article-card .embedded-content-preview {
    pointer-events: auto; /* Allow interaction with embedded content */
}

.article-card:hover .embedded-content-preview {
    /* Disable hover effect on embedded content cards */
    transform: none;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 380px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

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

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
}

.article-header {
    flex-shrink: 0;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Systematic Iframe Rendering Styles */
.dedicated-embed-section {
    border-radius: 8px;
    background: #f8f9fa;
    overflow: hidden;
    margin-top: 10px;
}

.embed-header {
    padding: 10px 15px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.embed-header h4 {
    font-size: 14px;
    color: #495057;
    margin: 0;
    font-weight: 600;
}

.content-embeds-section {
    margin: 20px 0;
    border-radius: 8px;
    background: #f8f9fa;
}

.embed-item {
    margin: 15px 0;
    text-align: center;
}

.embed-item.facebook iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.embed-item.youtube iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.facebook-iframe-container {
    margin: 10px 0 10px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 220px;
}

.facebook-link {
    flex-shrink: 0;
    margin: 5px 0;
}

/* Facebook Button Styles */
.facebook-button-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    display: none;
}

.facebook-btn {
    display: block;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
    text-align: center;
    margin: 0 auto;
    max-width: fit-content;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
    color: white !important;
}

.article-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.article-tags .tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.facebook-link a {
    color: #1877f2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.facebook-link a:hover {
    text-decoration: underline;
}

.article-type {
    display: inline-block;
    background: #9b59b6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-type.facebook {
    background: #1877f2;
}

.article-type.regular {
    background: #28a745;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
}

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

/* When only date is shown */
.article-meta .article-date {
    margin-right: auto;
}

/* Facebook Embed Styles */
.facebook-embed {
    width: 100%;
    min-height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

/* Style Facebook images within iframes */
.facebook-embed iframe img._1p6f._1p6g.img,
.facebook-embed img._1p6f._1p6g.img,
iframe img._1p6f._1p6g.img {
    max-width: 232px !important;
    max-height: 250px !important;
    width: 232px !important;
    height: auto !important;
}

/* Ensure Facebook embeds don't break card layout */
.article-card .facebook-embed-preview {
    pointer-events: auto; /* Allow interaction with Facebook embed */
}

.article-card:hover .facebook-embed-preview {
    /* Disable hover effect on Facebook embed cards to avoid interfering with Facebook interactions */
    transform: none;
}

/* Facebook Actions */
.facebook-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.facebook-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1877f2;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.facebook-link-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.facebook-link-btn span {
    font-size: 1rem;
}

/* Embedded Content Styles */
.embedded-content {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
}

.embedded-content iframe {
    max-width: 100%;
    border: 0;
    border-radius: 8px;
}

.embedded-content blockquote {
    margin: 0;
    padding: 0;
}

/* Responsive embedded content */
.embedded-content > * {
    max-width: 100% !important;
}

/* Loading Styles */
/* No Articles Message */
.no-articles-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
    grid-column: 1 / -1; /* Full width across grid */
}

.no-articles-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-articles-message p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1; /* Full width across grid */
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 2rem;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #8e44ad;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    color: #bb7cdb;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #bb7cdb;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #9b59b6;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.social-link.facebook {
    background: #1877f2;
}

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

.social-link span {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .content-card {
        padding: 30px 20px;
    }
    
    .media-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .media-filters {
        justify-content: center;
    }
    
    .media-search {
        align-self: center;
    }
    
    .media-search input {
        width: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Main Navigation - Mobile */
    .main-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 10px;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 10px 20px;
        min-width: 120px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-link {
        display: inline-flex;
        width: auto;
    }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 100px;
        flex: 1 1 calc(50% - 5px);
        margin: 2px;
    }
    
    .hero-image-container {
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1rem;
        margin-bottom: inherit;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }

    .about-btn {
        padding: 5px 20px;
    }
}

/* About Section Paragraph Justify */
.about-content p {
    text-align: left;
}