﻿/* ===== Material Design Blog Website ===== */

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

:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    --accent: #FF4081;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #BDBDBD;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --error: #F44336;
    --success: #4CAF50;
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

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

/* Top Bar */
.top-bar {
    background: var(--text-primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right a {
    color: white;
    margin-left: 15px;
    transition: color 0.3s;
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--accent);
}

/* Header */
.main-header {
    background: var(--surface);
    padding: 20px 0;
    box-shadow: var(--shadow-1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    /* Reduced padding */
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    /* Fixed height for logo */
    width: auto;
    border-radius: 8px;
    /* Optional: adds rounded corners */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 28px;
    /* Slightly smaller font */
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

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

.tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    margin-top: 2px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

/* Search Box */
.header-search {
    flex-shrink: 0;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--background);
    border: 2px solid var(--divider);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s;
}

.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.header-search input {
    border: none;
    outline: none;
    padding: 8px 15px;
    /* Reduced padding */
    font-size: 14px;
    width: 180px;
    /* Reduced width */
    background: transparent;
    color: var(--text-primary);
}

.header-search input::placeholder {
    color: var(--text-secondary);
}

.header-search button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 15px;
    /* Reduced padding */
    cursor: pointer;
    transition: all 0.3s;
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* Advertisement Section */
.header-ad {
    flex-shrink: 0;
}

.ad-placeholder {
    width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.ad-placeholder span {
    font-weight: 600;
    margin-bottom: 5px;
}

.ad-placeholder p {
    margin: 0;
    font-size: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 24px;
    cursor: pointer;
}

/* Navigation */
/* Navigation */
.main-nav {
    background: var(--primary);
    box-shadow: var(--shadow-2);
    /* Removed position: sticky from here as we use JS now */
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    position: relative;
    /* For mobile menu positioning */
}

.main-nav.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Search Menu Item */
.search-menu-item {
    margin-left: auto;
    /* Push search icon to the right if needed, or keep centered */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.search-trigger {
    cursor: pointer;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.search-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-search {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-search:hover {
    color: var(--accent);
}

.search-body form {
    position: relative;
}

.search-body input {
    width: 100%;
    background: transparent;
    border: 2px solid #333;
    padding: 20px;
    padding-right: 60px;
    font-size: 24px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.search-body input:focus {
    border-color: var(--accent);
}

.search-body button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.search-body button:hover {
    color: var(--accent);
}

.nav-menu li a i {
    margin-right: 8px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-dark);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

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

/* Featured Section */
.featured-section {
    margin-bottom: 50px;
}

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

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Section Title */
.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Blog Grid */
.latest-news-grid {
    display: grid;
    gap: 30px;
}

.news-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 64, 129, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.news-card:hover .video-badge {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: var(--primary);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border: none;
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--shadow-1);
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-2);
}

.page-btn.active {
    background: var(--primary);
    color: white;
}

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

.widget {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--text-primary);
}

/* New Categories Widget */
.categories-widget-new {
    background: var(--surface);
    border-radius: 0;
    padding: 0;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.widget-title-new {
    background: #000;
    color: #FFD700;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 20px;
    margin: 0;
    letter-spacing: 1px;
}

.category-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-new li {
    border-bottom: 1px solid #E0E0E0;
}

.category-list-new li:last-child {
    border-bottom: none;
}

.category-list-new li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #757575;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.category-list-new li a i {
    margin-right: 10px;
    font-size: 12px;
    color: #757575;
}

.category-list-new li a:hover {
    background: #F5F5F5;
    color: var(--primary);
    padding-left: 25px;
}

.category-list-new li a:hover i {
    color: var(--primary);
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--divider);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-info h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.popular-info h4 a:hover {
    color: var(--primary);
}

.popular-info .date {
    font-size: 12px;
    color: var(--text-secondary);
}

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

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

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

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

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

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

.footer-col ul li a {
    color: #BDBDBD;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-col ul li i {
    margin-right: 8px;
    color: var(--primary);
}

/* Footer Posts */
.footer-posts {
    list-style: none;
}

.footer-posts li {
    margin-bottom: 12px;
}

.footer-posts li a {
    color: #BDBDBD;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: color 0.3s;
}

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

.footer-posts li i {
    margin-top: 4px;
    color: var(--accent);
}

/* Footer Newsletter */
.footer-newsletter {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background: #E91E63;
}

/* YouTube Widget */
.youtube-section p {
    color: #BDBDBD;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF0000;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.youtube-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.youtube-btn i {
    font-size: 20px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #BDBDBD;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #BDBDBD;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

/* Page Description */
.page-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-1);
}

.page-description p {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Search Highlight */
mark {
    background-color: #ffeb3b;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.scroll-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-blogs-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li a {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        box-shadow: var(--shadow-3);
        padding: 20px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid var(--divider);
        color: var(--text-primary);
        /* Fix invisible text on mobile */
    }

    .nav-menu {
        display: none;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .card-image {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Header Responsiveness Fixes */
    .header-content {
        flex-direction: column;
        align-items: center;
        /* Center align on mobile */
        gap: 15px;
        padding: 15px 0;
    }

    .logo a {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-img {
        height: 40px;
        width: auto;
    }

    .logo-text {
        text-align: left;
    }

    .tagline {
        display: none;
        /* Hide tagline to save space */
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

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

    .sidebar {
        margin-top: 30px;
    }
}

/* Header Ad Responsiveness */
.header-ad {
    max-width: 100%;
    overflow: hidden;
}

.ad-placeholder {
    width: 728px;
    max-width: 100%;
    /* Ensure it shrinks on mobile */
    height: 90px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #999;
}

@media (max-width: 768px) {
    .header-right {
        display: none;
        /* Hide large ad on mobile if needed, or scale it */
    }

    /* Or better, just scale it */
    .ad-placeholder {
        width: 100%;
        height: 60px;
        /* Smaller height for mobile */
    }
}

/* YouTube Follow Us Widget */
.youtube-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    /* Match the screenshot */
    box-shadow: var(--shadow-1);
}

.youtube-widget h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid var(--divider);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.youtube-widget p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

.youtube-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff0000;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.youtube-btn:hover {
    background: #cc0000;
    color: white;
}

.youtube-btn i {
    font-size: 20px;
}

/* Category Page - Material Design Styles */
.categories-widget-new {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.3s;
}

.categories-widget-new:hover {
    box-shadow: var(--shadow-3);
}

.widget-title-new {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--divider);
    letter-spacing: 0.5px;
    background: transparent;
    /* Fix black background issue */
}

.category-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-new li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--divider);
}

.category-list-new li:last-child {
    border-bottom: none;
}

.category-list-new li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-list-new li a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-list-new li a:hover {
    color: var(--primary);
    padding-left: 10px;
    transform: translateX(5px);
}

.category-list-new li a:hover::before {
    height: 100%;
}

.category-list-new li a i {
    color: var(--primary);
    font-size: 12px;
    transition: transform 0.3s;
}

.category-list-new li a:hover i {
    transform: translateX(5px);
}

/* Active/Current Category Highlighting */
.category-list-new li a.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(33, 150, 243, 0.1);
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

/* Article Cards - Material Design with Hover Animation */
.post-card.horizontal {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-card.horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card.horizontal:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-4px);
}

.post-card.horizontal:hover::before {
    height: 100%;
}

.post-thumb {
    flex: 0 0 280px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card.horizontal:hover .post-thumb img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-details h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.post-details h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.post-details h3 a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--primary);
}

.excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

/* Responsive adjustments for article cards */
@media (max-width: 768px) {
    .post-card.horizontal {
        flex-direction: column;
    }

    .post-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast.success {
    background: var(--success);
}

.notification-toast.error {
    background: var(--error);
}

.notification-toast i {
    font-size: 18px;
}

/* Hero Playlist Section */
.hero-playlist-section {
    background: #000;
    padding: 30px 0;
    margin-bottom: 40px;
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
    /* Fixed height for desktop */
}

/* Left: Main Display */
.hero-main-display {
    position: relative;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    min-width: 0;
    /* Fix for grid overflow */
}

.hero-main-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero-main-display:hover img {
    opacity: 1;
}

.hero-main-display .video-container {
    width: 100%;
    height: 100%;
}

.hero-main-display .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* New Hero Structure - Media Section (Top) */
.hero-media-section {
    position: relative;
    width: 100%;
    height: 70%;
    /* 70% for media - reduced to give more space for text */
    background: #000;
    overflow: hidden;
}

.hero-image-container,
.hero-video-embed {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Force clipping */
}

.hero-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Embedded Video Styles */
.hero-video-embed {
    width: 100%;
    height: 100%;
}

.hero-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-content-section {
    padding: 20px 25px;
    background: #1a1a1a;
    height: 30%;
    /* 30% for content - increased to prevent text cutoff */
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.hero-content-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.hero-content-section h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-content-section h2 a:hover {
    color: #FFD700;
}

.hero-content-section .meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
    align-items: center;
}

.hero-content-section .meta i {
    margin-right: 5px;
    color: #FFD700;
}

/* YouTube Watch Button */
.youtube-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #ff0000;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.youtube-watch-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.youtube-watch-btn i {
    font-size: 14px;
    margin-right: 0;
}



/* Right: Playlist Sidebar */
.hero-playlist-sidebar {
    background: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid #333;
    min-width: 0;
    /* Fix for grid overflow */
    overflow: hidden;
    /* Ensure it doesn't expand beyond parent grid height */
}

.playlist-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
}

.playlist-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
}

.playlist-count {
    font-size: 12px;
    color: #888;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
    background: #000;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: #333;
}

.playlist-item {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.playlist-item:hover {
    background: #111;
}

.playlist-item.active {
    background: #111;
    border-left: 3px solid #FFD700;
    /* Active highlight */
}

.playlist-item .count {
    font-size: 24px;
    font-weight: 700;
    color: #444;
    min-width: 20px;
    display: flex;
    align-items: center;
}

.playlist-item.active .count {
    color: #FFD700;
}

.playlist-thumb {
    width: 100px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.playlist-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item.active .playlist-info h4 {
    color: #FFD700;
}

.playlist-info .meta {
    font-size: 11px;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 0;
        /* Remove gap for stacked layout */
    }

    .hero-main-display {
        height: 400px;
        /* Fixed height for main display on mobile */
        border-radius: 4px 4px 0 0;
    }

    .hero-media-section {
        height: 70%;
        /* Adjust ratio for mobile */
    }

    .hero-content-section {
        height: 30%;
        padding: 15px 20px;
    }

    .hero-content-section h2 {
        font-size: 18px;
    }

    .youtube-watch-btn {
        font-size: 11px;
        padding: 3px 10px;
    }

    .hero-playlist-sidebar {
        height: 400px;
        border-left: none;
        border-top: 1px solid #333;
    }
}/ *   H e r o   L o a d e r   * /  
 . h e r o - l o a d e r   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         a l i g n - i t e m s :   c e n t e r ;  
         h e i g h t :   1 0 0 % ;  
         w i d t h :   1 0 0 % ;  
         b a c k g r o u n d :   # 0 0 0 ;  
         c o l o r :   # F F D 7 0 0 ;  
         f o n t - s i z e :   1 6 p x ;  
         l e t t e r - s p a c i n g :   1 p x ;  
         t e x t - t r a n s f o r m :   u p p e r c a s e ;  
 }  
  
 . h e r o - l o a d e r   i   {  
         f o n t - s i z e :   4 0 p x ;  
         m a r g i n - b o t t o m :   1 5 p x ;  
         c o l o r :   v a r ( - - a c c e n t ) ;  
 }  
  
 . p l a y l i s t - l o a d e r   {  
         d i s p l a y :   f l e x ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         a l i g n - i t e m s :   c e n t e r ;  
         p a d d i n g :   4 0 p x ;  
         c o l o r :   # 8 8 8 ;  
         f o n t - s i z e :   1 4 p x ;  
 }  
  
 . p l a y l i s t - l o a d e r   i   {  
         m a r g i n - r i g h t :   1 0 p x ;  
         c o l o r :   v a r ( - - a c c e n t ) ;  
 }  
 