/* Roboto Font Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #6C756B;
    --secondary-color: #93ACB5;
    --accent-color: #96C5F7;
    --light-color: #F2F4FF;
    --dark-color: #6C756B;
    --highlight-color: #A9D3FF;
    --shadow: 0 2px 10px rgba(108, 117, 107, 0.1);
    --soft-shadow: 0 4px 15px rgba(108, 117, 107, 0.15);
    --main-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--main-font);
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles - Standardized */
.site-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 0;
    height: 120px; /* Fixed height for header */
    box-shadow: none;
    margin-bottom: 0;
    position: relative; /* Change back from fixed to relative */
    overflow: visible;
    border-bottom: none;
    z-index: 2; /* Change back to original z-index */
    /* Remove width, top and left properties */
    display: flex;
    align-items: center;
}

/* Header bubble effects */
.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes headerBubble {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.7; transform: translateY(-90%) translateX(var(--x-travel)); }
    100% { transform: translateY(-100%) translateX(var(--x-travel)); opacity: 0; }
}

@keyframes headerBubble2 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    15% { opacity: 0.7; }
    90% { opacity: 0.6; transform: translateY(-90%) translateX(calc(var(--x-travel) * -1)); }
    100% { transform: translateY(-100%) translateX(calc(var(--x-travel) * -1)); opacity: 0; }
}

@keyframes headerBubble3 {
    0% { transform: translateY(100%) translateX(0); opacity: 0; }
    20% { opacity: 0.9; }
    90% { opacity: 0.8; transform: translateY(-90%) translateX(calc(var(--x-travel) * 0.5)); }
    100% { transform: translateY(-100%) translateX(calc(var(--x-travel) * 0.5)); opacity: 0; }
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: headerBubble 8s infinite 1s;
    --x-travel: 30px;
    opacity: 0;
    pointer-events: none;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0;
    height: 100%;
}

/* Create multiple bubble elements with different animations */
.site-header .bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5); /* Default color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    bottom: 0;
}

.site-header .bubble:nth-child(1) {
    width: 25px;
    height: 25px;
    bottom: -25px;
    left: 15%;
    animation: headerBubble 9s infinite 0.5s ease-in-out;
    --x-travel: 50px;
    background-color: hsla(240, 70%, 70%, 0.6); /* Blue */
}

.site-header .bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    bottom: -20px;
    left: 45%;
    animation: headerBubble2 7s infinite 1.5s ease-in-out;
    --x-travel: 40px;
    background-color: rgba(255, 255, 255, 0.6); /* Keep white */
}

.site-header .bubble:nth-child(3) {
    width: 18px;
    height: 18px;
    bottom: -18px;
    left: 75%;
    animation: headerBubble3 10s infinite 0.8s ease-in-out;
    --x-travel: 60px;
    background-color: hsla(160, 70%, 65%, 0.6); /* Teal */
}

/* Add more bubbles for a more pronounced effect */
.site-header .bubble:nth-child(4) {
    width: 15px;
    height: 15px;
    bottom: -15px;
    left: 30%;
    animation: headerBubble2 8s infinite 0s ease-in-out;
    --x-travel: 35px;
    background-color: hsla(280, 70%, 65%, 0.6); /* Purple */
}

.site-header .bubble:nth-child(5) {
    width: 12px;
    height: 12px;
    bottom: -12px;
    left: 60%;
    animation: headerBubble 9.5s infinite 1.2s ease-in-out;
    --x-travel: 45px;
    background-color: rgba(255, 255, 255, 0.6); /* Keep white */
}

.site-header .bubble:nth-child(6) {
    width: 22px;
    height: 22px;
    bottom: -22px;
    left: 85%;
    animation: headerBubble3 7.5s infinite 2s ease-in-out;
    --x-travel: 25px;
    background-color: hsla(30, 70%, 70%, 0.6); /* Orange */
}

.site-header .bubble:nth-child(7) {
    width: 16px;
    height: 16px;
    bottom: -16px;
    left: 5%;
    animation: headerBubble 10.5s infinite 0.3s ease-in-out;
    --x-travel: 55px;
    background-color: hsla(190, 70%, 65%, 0.6); /* Light Blue */
}

.logo {
    display: flex;
    align-items: center;
}

.logo .site-logo {
    width: auto;
    height: 240px; /* Doubled in size to make it much larger */
    margin-right: 1rem;
}

.logo a {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-decoration: none;
    font-family: var(--main-font);
}

.site-header nav ul {
    display: flex;
    list-style: none;
}

.site-header nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

.site-header nav ul li a {
    font-size: 18px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    box-sizing: border-box;
    color: white;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    outline: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Bubble effect inside nav links */
.site-header nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.site-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15%;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.site-header nav ul li a:hover,
.site-header nav ul li a:focus {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
    outline: none;
}

.site-header nav ul li a:hover::before {
    opacity: 0.8;
    animation: navBubble 2s infinite;
}

.site-header nav ul li a:hover::after {
    opacity: 0.6;
    animation: navBubble2 3s infinite 0.5s;
}

@keyframes navBubble {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-10px); opacity: 0.4; }
    100% { transform: translateY(-20px); opacity: 0; }
}

@keyframes navBubble2 {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-8px) translateX(5px); opacity: 0.3; }
    100% { transform: translateY(-16px) translateX(8px); opacity: 0; }
}

.site-header nav ul li a.active {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.site-header nav ul li a.active::before,
.site-header nav ul li a.active::after {
    opacity: 0.8;
    animation: navBubble 3s infinite, navBubble2 4s infinite 1s;
}

.site-header nav ul li a:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer Styles - Standardized */
footer {
    background: linear-gradient(145deg, #3a1c71, #d76d77, #ffaf7b);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Footer bubble effects */
footer .bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5); /* Default color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

@keyframes footerBubble {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.7; transform: translateY(-100%) translateX(var(--x-travel)); }
    100% { transform: translateY(-120%) translateX(var(--x-travel)); opacity: 0; }
}

@keyframes footerBubble2 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    15% { opacity: 0.7; }
    90% { opacity: 0.6; transform: translateY(-100%) translateX(calc(var(--x-travel) * -1)); }
    100% { transform: translateY(-120%) translateX(calc(var(--x-travel) * -1)); opacity: 0; }
}

@keyframes footerBubble3 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.9; }
    90% { opacity: 0.8; transform: translateY(-100%) translateX(calc(var(--x-travel) * 0.5)); }
    100% { transform: translateY(-120%) translateX(calc(var(--x-travel) * 0.5)); opacity: 0; }
}

footer .bubble:nth-child(1) {
    width: 25px;
    height: 25px;
    bottom: 25px;
    left: 15%;
    animation: footerBubble 9s infinite 0.5s ease-in-out;
    --x-travel: 50px;
    background-color: hsla(320, 70%, 65%, 0.6); /* Pink */
}

footer .bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    bottom: 20px;
    left: 45%;
    animation: footerBubble2 7s infinite 1.5s ease-in-out;
    --x-travel: 40px;
    background-color: rgba(255, 255, 255, 0.6); /* Keep white */
}

footer .bubble:nth-child(3) {
    width: 18px;
    height: 18px;
    bottom: 18px;
    left: 75%;
    animation: footerBubble3 10s infinite 0.8s ease-in-out;
    --x-travel: 60px;
    background-color: hsla(60, 70%, 70%, 0.6); /* Yellow */
}

footer .bubble:nth-child(4) {
    width: 15px;
    height: 15px;
    bottom: 15px;
    left: 30%;
    animation: footerBubble2 8s infinite 0s ease-in-out;
    --x-travel: 35px;
    background-color: hsla(120, 60%, 70%, 0.6); /* Green */
}

footer .bubble:nth-child(5) {
    width: 12px;
    height: 12px;
    bottom: 12px;
    left: 60%;
    animation: footerBubble 9.5s infinite 1.2s ease-in-out;
    --x-travel: 45px;
    background-color: rgba(255, 255, 255, 0.6); /* Keep white */
}

footer .bubble:nth-child(6) {
    width: 22px;
    height: 22px;
    bottom: 22px;
    left: 85%;
    animation: footerBubble3 7.5s infinite 2s ease-in-out;
    --x-travel: 25px;
    background-color: hsla(200, 70%, 65%, 0.6); /* Blue */
}

footer .bubble:nth-child(7) {
    width: 16px;
    height: 16px;
    bottom: 16px;
    left: 5%;
    animation: footerBubble 10.5s infinite 0.3s ease-in-out;
    --x-travel: 55px;
    background-color: hsla(340, 70%, 70%, 0.6); /* Magenta */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-logo-img {
    position: absolute;
    width: 600px;
    height: auto;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(58, 28, 113, 0.6);
    z-index: 1;
}

.footer-logo div {
    position: relative;
    z-index: 3;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 3;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
}

.footer-links {
    position: relative;
    z-index: 3;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    z-index: 3;
}

.footer-links ul {
    list-style: none;
    position: relative;
    z-index: 3;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 3;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Recordings Section */
#recordings {
    margin-bottom: 3rem;
}

#recordings h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.episodes-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
    text-align: center;
}

.episodes-filters, .resources-filters {
    margin: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.episodes-filters .filter-group, .resources-filters .filter-group {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.episodes-filters .filter-group:first-child, .resources-filters .filter-group:first-child {
    min-width: 200px;
    order: 2;
    margin-left: auto;
}

.episodes-filters .filter-group:nth-child(2), .resources-filters .filter-group:nth-child(2) {
    flex: 1;
    min-width: 300px;
    order: 1;
}

.filter-group label, .filter-group span {
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.filter-group select {
    margin: 0;
    padding: 4px 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #444;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-group select:hover {
    border-color: #aaa;
}

.sort-control {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-left: auto;
    order: 3;
}

.sort-control span {
    margin-right: 6px;
    color: #555;
}

.sort-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.sort-toggle:hover {
    background-color: rgba(108, 117, 107, 0.1);
}

.sort-toggle[data-sort="oldest"] .sort-arrow {
    transform: rotate(180deg);
}

.recording-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recording-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.recording-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.recording-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.recording-card h3 {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Video container styling */
.video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Background overlay */
.video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Play button circle */
.video-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* The actual play triangle icon */
.video-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent var(--primary-color);
    z-index: 4;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.video-container:hover::before {
    opacity: 1;
}

.video-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.video-container:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    object-fit: contain;
    max-height: none;
}

.recording-card:hover .video-container img {
    transform: scale(1.05);
}

.recording-card-content {
    padding: 20px;
}

.recording-card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    background-color: transparent;
    color: var(--dark-color);
    padding: 0;
}

.recording-card-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.recording-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

.recording-date {
    font-size: 14px;
    color: #777;
}

.recording-card-content .btn {
    margin-top: 5px;
}

.btn {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Tools Section */
.tools {
    margin-bottom: 3rem;
}

.tools h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.category {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.category ul {
    list-style-type: none;
}

.category li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category li:hover {
    background-color: var(--light-color);
}

/* Feedback Form */
.feedback-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.feedback-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--main-font);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Resources Section */
.resources-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.resources-header {
    text-align: center;
    margin-bottom: 40px;
}

.resources-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.resources-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tag-filter {
    background-color: #f2f4ff;
    border: none;
    padding: 6px 14px;
    font-size: 14px;
    font-family: var(--main-font);
    color: #444;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-radius: 25px;
    min-width: 90px;
    margin: 2px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Test tube style */
.tag-filter::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 8px;
    background-color: var(--highlight-color);
    opacity: 0.3;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s;
}

/* Liquid bubble effect */
.tag-filter::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 15%;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.tag-filter:hover {
    background-color: #8a70b5; /* Purple hover color */
    color: white;
    transform: translateY(-2px);
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-filter:hover::before {
    height: 12px;
    bottom: -12px;
    opacity: 0.6;
}

.tag-filter:hover::after {
    opacity: 0.8;
    animation: bubble 1.5s infinite;
}

.tag-filter.active {
    background-color: var(--secondary-color); /* Header blue color */
    color: #fff;
    transform: translateY(-2px);
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-filter.active::before {
    background-color: var(--primary-color);
    height: 12px;
    bottom: -12px;
    opacity: 0.7;
}

.tag-filter.active::after {
    background-color: #fff;
    opacity: 0.8;
    animation: bubble 1.2s infinite;
}

@keyframes bubble {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 0.4; }
    100% { transform: translateY(-16px); opacity: 0; }
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

.resource-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.resource-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.resource-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: rgba(0, 122, 204, 0.15);
    transition: transform 0.3s ease;
}

.resource-card-image::before {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.resource-card-image::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 20%;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.resource-card:hover .resource-card-image::before {
    opacity: 0.8;
    animation: resourceBubble 3s infinite;
}

.resource-card:hover .resource-card-image::after {
    opacity: 0.6;
    animation: resourceBubble2 4s infinite 0.5s;
}

@keyframes resourceBubble {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-15px); opacity: 0.4; }
    100% { transform: translateY(-30px); opacity: 0; }
}

@keyframes resourceBubble2 {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-12px) translateX(5px); opacity: 0.3; }
    100% { transform: translateY(-25px) translateX(8px); opacity: 0; }
}

.resource-card-image .bubble {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Add multiple bubbles to each card */
.resource-card-image .bubble:nth-child(1) {
    bottom: 20px;
    left: 30%;
    width: 8px;
    height: 8px;
}

.resource-card-image .bubble:nth-child(2) {
    bottom: 15px;
    right: 35%;
    width: 5px;
    height: 5px;
    background-color: hsla(240, 70%, 70%, 0.6); /* Blue */
}

.resource-card-image .bubble:nth-child(3) {
    bottom: 25px;
    left: 75%;
    width: 7px;
    height: 7px;
    background-color: hsla(160, 70%, 65%, 0.6); /* Teal */
}

.resource-card-image .bubble:nth-child(4) {
    bottom: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: hsla(320, 70%, 65%, 0.6); /* Pink */
}

.resource-card:hover .resource-card-image .bubble:nth-child(1) {
    opacity: 0.8;
    animation: resourceBubble 3.5s infinite 0.2s;
}

.resource-card:hover .resource-card-image .bubble:nth-child(2) {
    opacity: 0.7;
    animation: resourceBubble2 2.8s infinite 0.7s;
}

.resource-card:hover .resource-card-image .bubble:nth-child(3) {
    opacity: 0.6;
    animation: resourceBubble 4s infinite 1.3s;
}

.resource-card:hover .resource-card-image .bubble:nth-child(4) {
    opacity: 0.8;
    animation: resourceBubble2 3.2s infinite 0.4s;
}

/* Change background on hover for bubbly effect */
.resource-card:hover .resource-card-image {
    background: linear-gradient(
        to bottom, 
        rgba(37, 99, 235, 0.1),
        rgba(59, 130, 246, 0.15),
        rgba(96, 165, 250, 0.15)
    );
}

.resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    position: relative;
    z-index: 0;
}

.resource-card:hover .resource-card-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

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

@media (max-width: 768px) {
    .resource-card-content {
        padding: 1.2rem;
    }
}

/* Resource card content styling */
.resource-card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Hide h2 visually but maintain space */
.resource-card-content h2.visually-hidden {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    position: absolute;
}

.resource-card-content p {
    margin-bottom: 15px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show up to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 4px; /* Add gap when wrapping */
    line-height: 1.4; /* Increase line height for better readability */
}

/* Better handling of text overflow on mobile */
@media (max-width: 768px) {
    .resource-card-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .resource-card-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .resource-card-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .resource-meta {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .resource-date, .resource-source {
        width: 100%;
        display: block;
    }
}

/* Suggest Resource Form */
.suggest-resource {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.suggest-resource h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.suggest-resource p {
    margin-bottom: 20px;
}

#resource-form {
    margin-top: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Individual Resource Post Styles */
.resource-container {
    max-width: 900px;
    margin: 40px auto;
}

.resource-post {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resource-post-header {
    margin-bottom: 30px;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.resource-category {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.resource-post-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.resource-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 15px;
    color: #555;
}

.resource-author a {
    color: var(--accent-color);
    text-decoration: underline;
}

.resource-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.resource-featured-image img {
    width: 100%;
    height: auto;
}

.resource-featured-image figcaption {
    padding: 10px;
    text-align: center;
    background-color: #f5f5f5;
    font-size: 14px;
    color: #666;
}

.resource-content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.resource-intro {
    font-size: 19px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
}

.resource-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.resource-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.resource-content p {
    margin-bottom: 20px;
}

.resource-content ul,
.resource-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.resource-content li {
    margin-bottom: 10px;
}

.resource-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.resource-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.resource-tags h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.resource-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.resource-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.resource-share h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-buttons a {
    background-color: #f5f5f5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s;
}

.share-buttons a:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.share-twitter:hover {
    color: #1DA1F2;
}

.share-linkedin:hover {
    color: #0077B5;
}

.share-facebook:hover {
    color: #3b5998;
}

.additional-resources {
    margin-top: 40px;
}

.additional-resources h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Code examples and syntax highlighting */
.code-example {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.example-bad,
.example-good {
    padding: 15px;
}

.example-bad {
    background-color: #fff5f5;
}

.example-good {
    background-color: #f0fff4;
}

.example-bad h4,
.example-good h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace, var(--main-font);
}

code {
    font-family: 'Courier New', Courier, monospace, var(--main-font);
    font-size: 0.9em;
}

.code-screenshot {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 20px 0;
}

/* Episode page styles */
.episode-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.episode-header {
    margin-bottom: 30px;
}

.episode-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.episode-header p {
    font-size: 18px;
    color: #555;
}

.episode-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 0;
    margin-bottom: 2rem;
    position: relative;
}

.episode-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.episode-content .video-container {
    margin: 0 0 1.5rem 0;
}

.episode-content h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.episode-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Key Takeaways checkmark styling */
.episode-content h2 + ul.takeaways li,
.episode-content ul.takeaways li {
    list-style-type: none;
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.episode-content h2 + ul.takeaways li::before,
.episode-content ul.takeaways li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50; /* Green checkmark */
    font-weight: bold;
    font-size: 1.2rem;
}

/* Episode Navigation Styles */
.episode-navigation {
    margin: 2rem 0 3rem;
    background-color: #f5f7fa;
    padding: 2rem 0;
    border-top: 1px solid #e0e4e8;
    border-bottom: 1px solid #e0e4e8;
}

.episode-navigation h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.episode-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.nav-item {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    margin: 0 auto;
}

.nav-direction {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

/* Smaller thumbnails for navigation */
.nav-item .recording-card {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.nav-item .recording-card h3 {
    padding: 1rem;
    font-size: 0.95rem;
}

.nav-item .video-container {
    max-height: 120px;
}

.nav-item .btn {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* For the latest episode card with no thumbnail */
.latest-episode {
    background-color: #f9f9f9;
    padding: 1.5rem;
    text-align: center;
}

.latest-episode h3 {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}

.latest-episode p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .episode-nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-item {
        max-width: 100%;
    }
}

/* Transcript Styling */
.transcript {
    max-height: 500px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 0;
}

.transcript pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--main-font);
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 1.5rem;
    margin: 0;
    overflow-x: hidden;
}

.transcript-line {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.transcript-line:nth-child(even) {
    background-color: #f0f2f5;
}

.transcript-timestamp {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.timestamp-link {
    text-decoration: none;
}

.timestamp-link:hover .transcript-timestamp {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
}

.transcript-speaker {
    font-weight: bold;
    color: var(--primary-color);
}

.transcript-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.transcript-control {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: white;
    border: 1px solid #ced4da;
    color: var(--dark-color);
}

.transcript-control:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Chapter Markers Styles */
.chapter-markers {
    list-style: none;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--soft-shadow);
}

.chapter-markers li {
    margin-bottom: 0.7rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chapter-markers li:hover {
    background-color: rgba(108, 117, 107, 0.08);
}

.chapter-markers a {
    font-weight: bold;
    margin-right: 0.5rem;
}

.chapter-markers a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .site-header {
        padding: 0;
        height: 90px; /* Fixed smaller height for mobile */
    }
    
    /* Override desktop navigation styles completely for mobile */
    .site-header nav {
        display: none; /* Hide the original nav */
    }
    
    .site-header nav.open {
        display: block; /* Show when toggled */
    }
    
    /* Add to ensure that the menu doesn't interfere with clicks */
    .site-header nav.open ul li a {
        pointer-events: auto !important;
        cursor: pointer !important;
        opacity: 1 !important;
        color: white !important;
        font-weight: bold !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Rest of mobile styles */
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        padding: 0 45px 0 10px; /* Increased right padding to make room for hamburger */
    }
    
    .logo {
        display: flex;
        align-items: center;
        width: auto; /* Change to auto width to prevent stretching */
        justify-content: flex-start;
        padding-right: 0; /* Remove padding completely */
        position: relative;
        max-width: 75%; /* Limit width to prevent overlap with hamburger */
    }
    
    .logo .site-logo {
        display: block;
        width: auto;
        height: 22px; /* Even smaller size */
        margin-right: 0.4rem;
        margin-left: 0; /* Remove negative margin */
    }
    
    .logo a {
        font-size: 1.4rem !important; /* Smaller font size to prevent wrapping */
        text-align: left;
        margin-left: 0;
        color: white;
        text-decoration: none;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .hamburger-menu {
        display: block !important;
        cursor: pointer;
        z-index: 2000;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
        overflow: hidden;
    }
    
    .hamburger-menu img {
        width: 90%;
        height: 90%;
    }
    
    .hamburger-menu.active {
        background-color: rgba(143, 70, 241, 0.3);
        transform: translateY(-50%) rotate(10deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .site-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #3E2D73;
        z-index: 2001;
        transition: right 0.3s ease;
        padding-top: 80px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .site-header nav.open {
        right: 0;
    }
    
    .site-header nav ul {
        flex-direction: column;
        padding: 20px;
        list-style: none;
    }
    
    .site-header nav ul li {
        margin: 0;
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-header nav ul li:last-child {
        border-bottom: none;
    }
    
    .site-header nav ul li a {
        font-size: 18px;
        display: block;
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        box-sizing: border-box;
        color: white;
        font-weight: 500;
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.2s ease;
        cursor: pointer;
        position: relative;
        z-index: 1;
    }
    
    /* Add visual arrow indicator for mobile menu links */
    @media (max-width: 768px) {
        .site-header nav ul li a::after {
            content: " →";
            display: inline-block;
            margin-left: 8px;
            transition: transform 0.2s ease;
        }
        
        .site-header nav ul li a:hover::after {
            transform: translateX(3px);
        }
    }
    
    .site-header nav ul li a:hover,
    .site-header nav ul li a:focus {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        text-decoration: none;
    }
    
    .site-header nav ul li a.active {
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }
    
    .site-header nav ul li a:active {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateY(1px);
    }
    
    /* Mobile-specific touch-friendly styles */
    @media (max-width: 768px) {
        .site-header nav ul li {
            margin-bottom: 8px;
        }
        
        .site-header nav ul li a {
            padding: 16px 20px;
            font-size: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .site-header nav ul li a:active {
            background-color: rgba(255, 255, 255, 0.3);
            box-shadow: none;
        }
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Allow clicks when visible */
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links {
        margin-bottom: 2rem;
    }
    
    .recording-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .episodes-filters, .resources-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .episodes-filters .filter-group, 
    .resources-filters .filter-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .episodes-filters .filter-group:first-child,
    .resources-filters .filter-group:first-child,
    .episodes-filters .filter-group:nth-child(2),
    .resources-filters .filter-group:nth-child(2) {
        flex: 1 1 100%;
        min-width: 100%;
        order: 0;
        margin-left: 0;
    }
    
    .filter-group label, 
    .filter-group span {
        margin-bottom: 8px;
        display: block;
    }
    
    .tag-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
        padding: 5px 0;
    }
    
    .tag-filter {
        padding: 6px 10px;
        font-size: 12px;
        min-width: auto;
        flex: 1 0 auto;
        text-align: center;
        margin: 3px;
        white-space: nowrap;
        border-radius: 25px;
    }
    
    .tag-filter::before,
    .tag-filter::after {
        display: none;
    }
    
    .sort-control {
        margin-left: 0;
        align-self: flex-end;
        margin-top: 10px;
        order: 3;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .resource-post-header h1 {
        font-size: 28px;
    }
    
    .resource-content h2 {
        font-size: 24px;
    }
    
    .resource-content h3 {
        font-size: 20px;
    }
    
    /* Filter container responsive styles */
    .filter-container {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .filter-container .container {
        padding: 0 15px;
    }
    
    .filter-container .episodes-filters {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .site-header {
        padding: 1rem 0 0 0;
    }
    
    .filter-container {
        padding: 0 15px 8px 15px;
        margin-top: -15px;
    }
    
    /* Adjust header on mobile */
    .site-header {
        padding: 1rem 0 0 0;
    }
    
    .site-header .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Default state - hide hamburger menu on desktop */
.hamburger-menu {
    display: none !important; /* Hidden by default on all devices */
}

/* Only display hamburger menu on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block !important; /* Force display on mobile only */
        cursor: pointer;
        font-size: 32px;
        z-index: 1001;
        position: absolute;
        right: 10px; /* Position from right edge */
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%; /* Make it circular */
        width: 35px;   /* Smaller size */
        height: 35px;  /* Smaller size */
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    
    .hamburger-menu.active {
        background-color: rgba(143, 70, 241, 0.3);
        transform: translateY(-50%) rotate(10deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Hide menu overlay by default */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

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

/* Mobile First - Small screens */
@media (max-width: 480px) {
    /* Smaller header elements for very small screens */
    .site-header {
        padding: 0;
        height: 70px; /* Even smaller fixed height for the smallest screens */
    }
    
    .logo .site-logo {
        height: 18px; /* Even smaller logo for small screens */
        margin-left: 0; /* No negative margin */
    }
    
    .logo a {
        font-size: 1.1rem !important; /* Smaller font for very small screens */
    }
    
    .hamburger-menu {
        width: 30px;
        height: 30px;
    }
    
    .recording-grid, .resource-grid, .tools-list {
        grid-template-columns: 1fr;
    }
    
    .resource-card-content h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .resource-card-content p {
        margin-bottom: 12px;
        max-height: none;
        overflow: visible;
        font-size: 0.9rem;
    }
    
    .resource-card-meta {
        display: block;
        text-align: left;
    }
    
    .resource-date {
        margin-bottom: 4px;
    }
    
    .site-footer .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .site-footer .footer-links {
        justify-content: center;
    }
    
    .filter-group .filter-label {
        display: none;
    }
    
    /* Increase container padding for small screens */
    .container {
        padding: 0 25px !important;
    }
    
    /* Fix alignment */
    .tag-buttons {
        margin-left: 0;
        justify-content: flex-start;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tag-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .tag-buttons::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }
    
    .tag-buttons::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
        opacity: 0.5;
    }
    
    .tag-filter {
        flex: 0 0 auto;
        min-width: 80px;
        margin: 3px 5px;
    }
    
    /* Make category dropdown full width */
    .filter-group select {
        width: 100%;
        min-width: 100%;
    }
    
    /* Additional spacing for filters */
    .episodes-filters, .resources-filters {
        gap: 10px;
        padding: 0 12px 8px 12px;
    }
    
    .filter-container {
        border-radius: 6px 6px 0 0;
    }
    
    /* Header adjustments for smaller screens */
    .logo a {
        font-size: 3.2rem !important;
        text-align: left;
        margin-left: 0;
    }
    
    .hamburger-menu {
        right: 10px; /* Position from the right edge */
        width: 35px;
        height: 35px;
        margin-right: 0; /* Remove margin */
    }
    
    .hamburger-menu img {
        width: 90%;
        height: 90%;
    }
    
    /* Left align filter groups on smaller screens */
    .index-filter-group,
    .resources-filter-group,
    .episodes-filters {
        justify-content: flex-start;
    }
    
    /* Adjust header padding for smaller screens */
    .site-header .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .logo {
        padding-right: 50%;
    }
}

/* Mobile-friendly Tag Styles */
@media (hover: hover) {
    /* Only apply hover effects on devices that support hover */
    .tag-filter:hover {
        background-color: #8a70b5; /* Purple hover color */
        color: white;
        transform: translateY(-2px);
        border-radius: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .tag-filter:hover::before {
        height: 12px;
        bottom: -12px;
        opacity: 0.6;
    }
    
    .tag-filter:hover::after {
        opacity: 0.8;
        animation: bubble 1.5s infinite;
    }
}

/* Add tap state for mobile */
.tag-filter:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s;
}

/* Fix container padding on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Adjust card styles for mobile */
    .recording-card, .resource-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .recording-card:hover, .resource-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Fix mobile filter container wrapping */
    .episodes-filters, .resources-filters {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        padding: 0 15px 8px 15px;
    }
    
    .filter-container {
        padding: 0 15px 8px 15px;
        margin-top: -15px;
    }
    
    /* Adjust header on mobile */
    .site-header {
        padding: 1rem 0;
    }
    
    .site-header .logo .site-logo {
        width: auto;
        height: 140px; /* Doubled in size for tablet/small devices */
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Filter Container Styles */
.filter-container {
    background-color: #f5f7fa;
    border-top: none;
    border-bottom: 1px solid #e0e4e8;
    padding: 0 15px 8px 15px;
    margin: 0 0 30px 0;
    margin-top: -15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

.filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background-color: var(--secondary-color);
    z-index: -1;
}

.filter-container .episodes-filters, 
.filter-container .resources-filters {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Default center alignment */
}

/* Specific styling for index and resources pages */
.index-filter-group,
.resources-filter-group {
    width: 100%;
    align-items: flex-start; /* Left alignment for these specific pages */
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    justify-content: center; /* Default centered alignment */
}

/* Left align tags on index and resources pages */
.index-filter-group .tag-buttons,
.resources-filter-group .tag-buttons {
    justify-content: flex-start;
}

/* About Page Styles */
.about-section {
    margin: 40px auto;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-section-block {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-section-block h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.about-section-block p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
}

.about-section-block:last-child p:last-child {
    margin-bottom: 0;
}

.about-image {
    display: block;
    max-width: 200px;
    margin: 30px auto;
}

.goals-list, .structure-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.goals-list li, .structure-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.goals-list li strong, .structure-list li strong {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .about-section-block {
        padding: 20px;
    }
    
    .about-header h1 {
        font-size: 28px;
    }
    
    .about-section-block h2 {
        font-size: 22px;
    }
}

/* Episode Page Back Link styling */
.back-link {
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 2px solid var(--light-color);
}

.back-link:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.back-link:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bubble effect inside back link */
.back-link::before {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15%;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-link:hover::before {
    opacity: 0.8;
    animation: navBubble 2s infinite;
}

.back-link:hover::after {
    opacity: 0.6;
    animation: navBubble2 3s infinite 0.5s;
}

.back-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Remove the following resource card bubble styling sections */
.resource-card:hover .resource-card-image::after {
    content: '';
    background-color: rgba(0, 0, 0, 0.15);
    filter: contrast(1.2);
    opacity: 1;
    z-index: 5;
    transition: opacity 0.3s;
}

/* Resource card styling without fluid bubble effect */
.resource-card {
    position: relative;
    overflow: hidden;
}

.resource-card .resource-card-image::before,
.resource-card .resource-card-image::after {
    transition: all 0.3s ease-out;
}

.resource-card:hover .resource-card-image::before,
.resource-card:hover .resource-card-image::after {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

main.container {
    /* Remove margin and position */
}

.episode-content {
    margin-top: 0;
    padding-top: 0;
}

/* Hide the back link */
.back-link {
    display: none !important;
}

/* Hide play buttons for index page */
.recording-grid .recording-card .video-container::after,
.recording-grid .recording-card .video-container .play-icon {
    display: none;
}

/* Custom hover effect for index page thumbnails */
.recording-grid .recording-card .video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.recording-grid .recording-card:hover .video-container::before {
    opacity: 1;
}

/* Keep scale effect on thumbnails */
.recording-grid .recording-card:hover .video-container img {
    transform: scale(1.05);
}

/* Ensure play buttons DO show on episode pages */
.episode-content .video-container::after,
.episode-content .video-container .play-icon,
.episode-navigation .video-container::after,
.episode-navigation .video-container .play-icon {
    display: block !important;
}

/* Easter Egg */
.easter-egg {
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.easter-egg:hover {
    opacity: 0.4;
}

/* Easter Egg Modal */
.easter-egg-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easter-egg-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.easter-egg-modal-content {
    background: linear-gradient(145deg, #3a1c71, #d76d77, #ffaf7b);
    border-radius: 10px;
    width: 300px;
    max-width: 80%;
    position: relative;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.easter-egg-modal.show .easter-egg-modal-content {
    transform: scale(1);
}

.easter-egg-modal-content p {
    color: white;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.easter-egg-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.easter-egg-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .easter-egg {
        font-size: 1.2rem;
        right: 5px;
        bottom: 5px;
    }
    
    .easter-egg-modal {
        width: 80%;
        max-width: 300px;
    }
    
    .easter-egg-modal-content {
        width: 90%;
        max-width: 90%;
    }
    
    .easter-egg-close {
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
}