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

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #1f2937;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

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

/* Header */
.site-header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nedt-logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
    text-decoration: none;
}

.nedt-logo-icon {
    position: relative;
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    background-color: #335b8e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nedt-logo-icon::after {
    content: "";
    position: absolute;
    width: 39px; /* Reduced from 52px */
    height: 39px; /* Reduced from 52px */
    border-radius: 50%;
    border: 6px solid white; /* Reduced from 8px */
    box-sizing: border-box;
}

.nedt-logo-text {
    display: block;
    white-space: nowrap;
}

.nedt-company-name {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    color: var(--text-primary);
    display: inline;
}

.nedt-tagline {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    color: var(--text-primary);
    display: inline;
}

/* Logo icon for inline text usage */
.nedt-inline-icon {
    display: inline-block;
    position: relative;
    width: 1em;
    height: 1em;
    margin-right: 0.3em;
    vertical-align: middle;
}

.nedt-inline-icon:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #335b8e;
    border-radius: 50%;
}

.nedt-inline-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65%;
    height: 65%;
    transform: translate(-50%, -50%);
    border: 0.1em solid white;
    border-radius: 50%;
    box-sizing: border-box;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #335b8e 0%, #4a6fa5 50%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Episode Mosaic */
.episode-mosaic {
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.episode-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-mosaic img:hover {
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

.latest-episode-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.latest-episode-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.latest-episode-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.latest-episode-card .episode-meta {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.episode-meta {
    opacity: 0.9;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-hover);
}

/* Episodes Section */
.episodes-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.season-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 1rem;
    cursor: pointer;
}

/* Episode Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.episode-card {
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
}

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

.episode-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--background-alt);
}

.episode-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.episode-card:hover .play-overlay {
    opacity: 1;
}

.episode-card-content {
    padding: 1.5rem;
}

.episode-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.episode-season {
    color: var(--primary-color);
    font-weight: 500;
}

.episode-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.episode-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.episode-title a:hover {
    color: var(--primary-color);
}

.episode-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.episode-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Audio Player Bar */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
    transition: transform 0.3s;
}

.audio-player-bar.hidden {
    transform: translateY(100%);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.player-artwork {
    width: 60px;
    height: 60px;
    border-radius: 0.25rem;
    object-fit: cover;
}

.player-info {
    min-width: 200px;
}

.player-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    gap: 0.5rem;
    margin: 0 2rem;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.player-btn:hover {
    background: var(--background-alt);
}

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

.player-btn-primary:hover {
    background: var(--primary-hover);
}

.player-btn svg {
    fill: currentColor;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-progress span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    position: relative;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.1s;
}

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.player-speed select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background: var(--background);
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--background-alt);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Page Content */
.page-content {
    padding: 2rem 0 4rem;
}

.page-article {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.page-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.page-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-primary);
}

.page-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul, .page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-body a:hover {
    text-decoration: underline;
}

.page-body strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nedt-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .nedt-logo-icon::after {
        width: 26px;
        height: 26px;
        border: 4px solid white;
    }
    
    .nedt-company-name {
        font-size: 18px;
    }
    
    .nedt-tagline {
        font-size: 18px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .episode-mosaic {
        width: 200px;
        height: 200px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .player-content {
        flex-wrap: wrap;
    }
    
    .player-info {
        min-width: auto;
        flex: 1;
    }
    
    .player-controls {
        margin: 0 1rem;
    }
    
    .player-progress {
        width: 100%;
        order: 3;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}