/* Theme Name: Seriously Scientific - Enhanced with SEO Category Pages */
/* GENERAL SITE STYLES */
body, html {
    background-color: #0f172a !important;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* HEADER STYLES */
.site-header {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    padding: 5px 0;
    border-bottom: 1px solid #404040;
    position: -webkit-sticky; /* For Safari compatibility */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.4s ease, border-bottom-color 0.4s ease; /* Smooth transition for transparency */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px 20px; /* Reduced from 15px to 2px vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Reduced gap from 15px to 2px */
}

.logo-section {
    flex: 0 0 auto;
    min-width: auto;
}

.site-logo {
    max-width: 100%;
    height: auto;
    max-height: 140px; /* Bigger logo - was 110px */
    min-height: 100px; /* Bigger minimum too */
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 15px rgba(255,87,34,0.3));
}

.search-section {
    width: 95% !important; /* Increase from 90% to 95% */
    max-width: none !important; /* Remove the 800px constraint completely */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%; /* Force full width of search section */
    display: flex;
    align-items: center;
}
.search-field {
    width: 100% !important;
    padding: 15px 60px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box !important;
}

.search-field:focus {
    border-color: #ff5722;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ff5722, #ff7043);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.5);
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
    background: #1a1a1a;
    padding: 8px 20px !important; /* Reduced from 15px */
    color: #ccc;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
    margin-bottom: 0 !important; /* Remove any bottom margin */
}

.breadcrumb a {
    color: #ff5722;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff7043;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #666;
}

/* ===== CATEGORY HERO SECTION ===== */
.category-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 5px 20px !important; /* Minimal padding */
    text-align: center;
    margin: 0 !important; /* Remove all margins */
    border-bottom: 1px solid #333;
}

.category-hero h1 {
    font-size: 2.2em;
    margin: 0 !important; /* Force zero margins */
    padding: 0 !important; /* Force zero padding */
    line-height: 1.1 !important; /* Tighter line height */
    background: linear-gradient(45deg, #ff5722, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    color: #ccc;
    font-size: 1.1em;
    max-width: 600px;
    margin: 5px auto 8px !important; /* Minimal margins */
    line-height: 1.3;
    padding: 0 !important;
}

.category-stats {
    background: rgba(255,87,34,0.2);
    border: 1px solid #ff5722;
    border-radius: 20px;
    padding: 6px 16px !important; /* Smaller padding */
    display: inline-block;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 !important; /* Remove margins */
}

/* ===== EPISODE GRID SYSTEM ===== */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto 0 !important; /* Proper spacing from hero */
    padding: 0 20px;
}

.episode-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #404040;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255,87,34,0.4);
    border-color: #ff5722;
}

.episode-thumbnail {
    width: 100%;
    aspect-ratio: 16/9; /* Maintains YouTube's 1280x720 ratio */
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserves aspect ratio without cropping */
    transition: transform 0.3s ease;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .episode-thumbnail {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio = 9/16 = 0.5625 */
    }
    
    .episode-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

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

/* Thumbnail type styles for different content sources */
.youtube-thumb {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
}

.local-thumb {
    background: linear-gradient(135deg, #00a32a, #007a1f);
    display: flex;
    align-items: center; 
    justify-content: center;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
}

.icon-thumb {
    background: linear-gradient(135deg, #ff5722, #ff7043);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.thumbnail-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #ff5722;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.episode-content {
    padding: 20px;
}

.episode-info .episode-meta {
    font-size: 18px;
    color: #fff;
    margin-top: -10px;
    margin-bottom: 25px;
    text-align: center;
    display: block;
}

.show-badge {
    background: linear-gradient(45deg, #ff5722, #ff7043);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.episode-number {
    background: #404040;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.episode-title {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    display: block;
}

.episode-title:hover {
    color: #ff5722;
    text-decoration: none;
}

.episode-description {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
}

.episode-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.watch-btn {
    background: linear-gradient(45deg, #ff5722, #ff7043);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255,87,34,0.3);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,87,34,0.5);
    text-decoration: none;
    color: white;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8em;
}

.topic-tag {
    background: #333;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: #ff5722;
    color: white;
    text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    min-height: calc(100vh - 200px);
}

.homepage-container {
    max-width: 1400px; /* Prevents expansion beyond reasonable width */
    margin: 0 auto;    /* Centers the content */
    padding: 40px 20px;   /* Adds breathing room on sides */
    box-sizing: border-box;
}

/* STATUS BANNER */
.status-banner {
    background: linear-gradient(135deg, rgba(255,87,34,0.9), rgba(255,171,64,0.9));
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.status-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.5; 
    }
    50% { 
        opacity: 0.8; 
    }
}

.status-content {
    position: relative;
    z-index: 2;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* EDUCATORS SECTION */
.educators-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff5722, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.educators-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px)) !important;
    gap: 30px !important;
    max-width: 1400px !important;
    margin: 0 auto 40px auto !important;
    padding: 0 20px !important;
    justify-content: center !important;
}

/* Educator card constraints to prevent conflicts */
.educator-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    position: relative !important; /* Ensure proper positioning */
}

.educator-card-link:hover,
.educator-card-link:visited,
.educator-card-link:active,
.educator-card-link:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.educator-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #404040;
    cursor: pointer;
    position: relative !important; /* Force relative positioning */
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100% !important; /* Force full width within grid cell */
    box-sizing: border-box !important; /* Include padding in width calculation */
}

.educator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,87,34,0.15), transparent);
    transition: left 0.7s;
}

.educator-card:hover::before {
    left: 100%;
}

.educator-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255,87,34,0.4);
    border-color: #ff5722;
}

.educator-containar {
    width: 300px;
    height: 200px;
    border-radius: 15px;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #ff5722, #ff7043);
    padding: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.educator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    object-position: center 20%;
    display: block;
}

.educator-card:hover .educator-avatar {
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5);
}

.educator-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.educator-name {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff !important;
    text-decoration: none !important;
}

.educator-description {
    color: #ccc !important;
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    text-decoration: none !important;
}

.educator-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    background: linear-gradient(45deg, #ff5722, #ff7043);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.stat-label {
    color: #999;
    font-size: 0.8em;
}

.educator-specialty {
    background: rgba(255, 87, 34, 0.2);
    color: #ffab40 !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    border: 1px solid rgba(255, 87, 34, 0.3);
    text-decoration: none !important;
}

/* Force all text inside educator cards to have no underlines */
.educator-card * {
    text-decoration: none !important;
}

/* QUICK ACTIONS */
.quick-actions {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 18px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1em;
}

.youtube-btn {
    background: linear-gradient(45deg, #a64a37, #8b3a2a);
    color: white;
}

.youtube-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,51,51,0.4);
    background: linear-gradient(45deg, #ff3333, #ff0000);
}

.browse-btn {
    background: linear-gradient(45deg, #6b8a5a, #5a7349);
    color: white;
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(92,191,96,0.4);
    background: linear-gradient(45deg, #5cbf60, #4CAF50);
}

.news-btn {
    background: linear-gradient(45deg, #4a5d7a, #3d4d65);
    color: white;
}

.news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(66,165,245,0.4);
    background: linear-gradient(45deg, #42a5f5, #2196F3);
}

/* UPDATE DIARY SECTION */
.update-diary-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 87, 34, 0.2);
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 35px 20px;
}

.update-title {
    color: #ff5722;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.update-diary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ff5722;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(255, 87, 34, 0.15);
    transform: translateX(5px);
}

.update-date {
    font-weight: bold;
    color: #ff5722;
    min-width: 100px;
    flex-shrink: 0;
}

.update-text {
    color: #ccc;
    flex: 1;
    line-height: 1.5;
}

/* QUOTES SECTION */
.quotes-section {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.science-quote {
    font-size: 1.3em;
    font-style: italic;
    color: #f5f5f5;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.science-quote:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* EXISTING EPISODE STYLES */
.episode-info {
    color: #fff;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.episode-info h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #fff;
}

.episode-meta {
    font-size: 18px;
    color: #fff;
    margin-top: -10px;
    margin-bottom: 25px;
}

.tv-wrapper {
    position: relative;
    background: #333;
    border: 15px solid #fff;
    border-radius: 30px;
    padding: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    align-items: center;
    gap: 15px;
}

.nav-btn, .btn {
    background-color: #fff;
    color: #333;
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    min-width: 120px;
    max-width: 200px;
    height: auto;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.nav-btn:hover, .btn:hover {
    background-color: #333;
    color: #fff;
}

/* ===== CATEGORY PAGE SPECIFIC LAYOUTS ===== */
.category-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 !important; /* Remove container padding */
}

.category-filters {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.filter-label {
    color: #ff5722;
    font-weight: bold;
    margin-right: 10px;
}

.filter-btn {
    background: #333;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff5722;
    color: white;
    border-color: #ff5722;
    text-decoration: none;
}

/* SEO Benefits Section */
.seo-benefits {
    background: #1a1a1a;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #333;
}

.seo-benefits h3 {
    color: #ff5722;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.benefit-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.benefit-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.benefit-desc {
    font-size: 0.9em;
    color: #ccc;
}

footer {
    background: #0f172a;
    border-top: 1px solid #333;
    margin-top: 50px;
}

footer p {
    color: #fff !important;
    text-align: center;
    padding: 20px 0;
}

/* ===== GENERAL BLOG POST CONTENT STYLING ===== */
/* Apply this to all blog post content areas for consistency */

/* Main content container */
.wp-block-post-content,
.entry-content,
.post-content,
.content-area article {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 20px auto;
    max-width: 900px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle background animation */
.wp-block-post-content::before,
.entry-content::before,
.post-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,87,34,0.03) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}


/* All content should be above the animation */
.wp-block-post-content > *,
.entry-content > *,
.post-content > * {
    position: relative;
    z-index: 2;
}

/* ===== TYPOGRAPHY ===== */

/* All Headings - Seriously Scientific Orange */
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ff5722 !important;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-top: 35px;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* H1 - Post Title */
.wp-block-post-content h1,
.entry-content h1,
.post-content h1 {
    font-size: 2.4em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #ff5722;
    padding-bottom: 15px;
}

/* H2 - Major Sections with Divider Bars */
.wp-block-post-content h2,
.entry-content h2,
.post-content h2 {
    font-size: 1.9em;
    border-bottom: 3px solid #ff5722;
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 45px;
    position: relative;
}

/* Horizontal divider line above H2 headings (except first one) */
.wp-block-post-content h2:not(:first-of-type):before,
.entry-content h2:not(:first-of-type):before,
.post-content h2:not(:first-of-type):before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff5722, transparent);
    margin: -25px auto 35px auto;
    position: relative;
    top: -20px;
}

/* H3 - Subsections */
.wp-block-post-content h3,
.entry-content h3,
.post-content h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* H4-H6 - Supporting headings */
.wp-block-post-content h4,
.entry-content h4,
.post-content h4 {
    font-size: 1.3em;
}

.wp-block-post-content h5,
.entry-content h5,
.post-content h5 {
    font-size: 1.2em;
}

.wp-block-post-content h6,
.entry-content h6,
.post-content h6 {
    font-size: 1.1em;
}

/* ===== BODY TEXT ===== */

/* Paragraphs - Pure White Text */
.wp-block-post-content p,
.entry-content p,
.post-content p {
    color: #ffffff !important;
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* First paragraph - Introduction styling */
.wp-block-post-content > p:first-of-type,
.entry-content > p:first-of-type,
.post-content > p:first-of-type {
    font-size: 1.2em;
    line-height: 1.9;
    padding: 25px;
    background: rgba(255,87,34,0.1);
    border-radius: 12px;
    border-left: 5px solid #ff5722;
    margin-bottom: 35px;
    font-weight: 500;
}

/* ===== LINKS ===== */
.wp-block-post-content a,
.entry-content a,
.post-content a {
    color: #ff5722 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.wp-block-post-content a:hover,
.entry-content a:hover,
.post-content a:hover {
    color: #ff7043 !important;
    border-bottom: 1px solid #ff7043;
    text-decoration: none;
}

/* ===== LISTS ===== */
.wp-block-post-content ul,
.wp-block-post-content ol,
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    margin-left: 30px;
    margin-bottom: 25px;
    color: #ffffff !important;
}

.wp-block-post-content li,
.entry-content li,
.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #ffffff !important;
    font-size: 1.1em;
}

/* Custom orange bullet points for unordered lists */
.wp-block-post-content ul li,
.entry-content ul li,
.post-content ul li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.wp-block-post-content ul li:before,
.entry-content ul li:before,
.post-content ul li:before {
    content: '•';
    color: #ff5722;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Ordered list styling */
.wp-block-post-content ol li,
.entry-content ol li,
.post-content ol li {
    padding-left: 10px;
}

/* ===== TEXT STYLING ===== */

/* Strong/Bold text */
.wp-block-post-content strong,
.entry-content strong,
.post-content strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* Emphasized/Italic text */
.wp-block-post-content em,
.entry-content em,
.post-content em {
    color: #ff7043 !important;
    font-style: italic;
}

/* ===== BLOCKQUOTES ===== */
.wp-block-post-content blockquote,
.entry-content blockquote,
.post-content blockquote {
    border-left: 5px solid #ff5722;
    padding: 25px;
    margin: 35px 0;
    background: rgba(255,87,34,0.1);
    border-radius: 10px;
    font-style: italic;
    color: #ffffff !important;
    font-size: 1.15em;
    line-height: 1.7;
    position: relative;
}

.wp-block-post-content blockquote:before,
.entry-content blockquote:before,
.post-content blockquote:before {
    content: '"';
    font-size: 4em;
    color: #ff5722;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

/* ===== CODE BLOCKS ===== */
.wp-block-post-content code,
.entry-content code,
.post-content code {
    background: #1a1a1a;
    color: #4eff4e;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    border: 1px solid #333;
}

.wp-block-post-content pre,
.entry-content pre,
.post-content pre {
    background: #0a0a0a;
    color: #4eff4e;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #333;
    border-left: 5px solid #ff5722;
    line-height: 1.5;
}

/* ===== IMAGES ===== */
.wp-block-post-content img,
.entry-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 2px solid #333;
    transition: transform 0.3s ease;
}

.wp-block-post-content img:hover,
.entry-content img:hover,
.post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(255,87,34,0.3);
}

/* ===== TABLES ===== */
.wp-block-post-content table,
.entry-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.wp-block-post-content th,
.entry-content th,
.post-content th {
    background: #ff5722;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.wp-block-post-content td,
.entry-content td,
.post-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

.wp-block-post-content tr:nth-child(even),
.entry-content tr:nth-child(even),
.post-content tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* ===== HORIZONTAL RULES ===== */
.wp-block-post-content hr,
.entry-content hr,
.post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff5722, transparent);
    margin: 50px 0;
    border-radius: 2px;
}

/* ===== SPECIAL SECTIONS ===== */

/* Experiment/Try This sections */
.wp-block-post-content h2:contains("Experiment"),
.wp-block-post-content h2:contains("Try This"),
.entry-content h2:contains("Experiment"),
.entry-content h2:contains("Try This"),
.post-content h2:contains("Experiment"),
.post-content h2:contains("Try This") {
    background: rgba(255,87,34,0.15);
    padding: 20px 25px;
    border-radius: 10px;
    border-bottom: 3px solid #ff5722;
    margin: 40px 0 25px 0;
}

/* Safety note styling */
.wp-block-post-content .safety-note,
.entry-content .safety-note,
.post-content .safety-note,
.wp-block-post-content p:contains("Safety"),
.entry-content p:contains("Safety"),
.post-content p:contains("Safety") {
    background: rgba(255,87,34,0.2);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #ff5722;
    font-weight: 600;
    margin: 25px 0;
    color: #ffffff !important;
}

/* FORCE PARENT CONTAINERS TO BE WIDER */
@media (min-width: 769px) {
    .header-container {
        max-width: 1200px !important;
        width: 100% !important;
        padding: 5px 20px !important;
    }
    
    .search-section {
        width: 60% !important;
        max-width: 600px !important;
        min-width: 400px !important;
        flex: 1 !important;
    }
    
    .search-container {
        width: 100% !important;
        max-width: none !important;
        min-width: 400px !important;
    }
    
    .search-form {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Responsive breakpoints to control card sizes */
@media (max-width: 1200px) {
    .educators-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 380px)) !important;
        max-width: 1200px !important;
        gap: 25px !important;
    }
}

@media (max-width: 900px) {
    .educators-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 350px)) !important;
        max-width: 800px !important;
        gap: 20px !important;
    }
    
    .homepage-container {
        padding: 40px 15px !important;
    }
}

@media (max-width: 600px) {
    .educators-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        max-width: 400px !important;
        gap: 20px !important;
    }
}