@import 'variables.css';

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-light);
    color: var(--text-main-light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
    background-color: var(--background-dark);
    color: var(--text-main-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

html.dark .btn-primary {
    background-color: var(--primary);
    color: #0f172a;
    /* Dark text on bright teal in dark mode */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

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

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.align-center {
    align-items: center;
}

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
    text-transform: capitalize;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

html.dark .btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

html.dark .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    /* Maintain primary color brightness */
}

.btn-outline:hover {
    background-color: var(--background-light);
    /* Make sure text is readable on hover */
    color: var(--primary-hover);
}

html.dark .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    color: inherit;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

html.dark .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(250, 250, 249, 0.9);
    /* background-light with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

html.dark .navbar {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

html.dark .logo-img {
    filter: brightness(0) invert(1);
    /* Simple way to handle dark mode logo if it's black text */
}

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

.desktop-only {
    display: none;
}

@media(min-width: 768px) {
    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted-light);
    position: relative;
}

html.dark .nav-link {
    color: var(--text-muted-dark);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu {
    background-color: var(--background-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

html.dark .mobile-menu {
    background-color: var(--background-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
    position: relative;
    padding-top: 8rem;
    /* Navbar compensation */
    padding-bottom: 5rem;
    overflow: hidden;
    text-align: center;
}

@media(min-width: 1024px) {
    .hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.8) 0%, rgba(204, 251, 241, 0.8) 100%);
    opacity: 0.8;
}

html.dark .hero-gradient {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(19, 78, 74, 0.8) 100%);
}

html.dark .hero-bg img {
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media(min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-title .highlight {
    color: var(--secondary);
    font-family: var(--font-serif);
    font-style: italic;
}

html.dark .hero-title .highlight {
    color: #d97706;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-muted-light);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

html.dark .hero-subtitle {
    color: var(--text-muted-dark);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

@media(min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Wave graphic */
.hero-graphic {
    color: var(--primary);
    opacity: 0.4;
    display: flex;
    justify-content: center;
}

html.dark .hero-graphic {
    opacity: 0.2;
}

.wave-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.pulse-circle {
    transform-origin: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--surface-light);
}

html.dark .bg-alt {
    background-color: var(--surface-dark);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* About Section Specifics */
.blob-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background-color: rgba(4, 108, 122, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.image-wrapper {
    position: relative;
}

.rounded-img {
    width: 100%;
    border-radius: var(--radius-xl);
    display: block;
}

.quote-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    display: none;
}

@media(min-width: 768px) {
    .quote-card {
        display: block;
    }
}

html.dark .quote-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-card p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-muted-light);
}

html.dark .quote-card p {
    color: var(--text-muted-dark);
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    color: var(--primary);
    font-size: 2rem;
}

/* Cards (Episodes) */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--surface-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    /* Ensure full height for grid items */
    display: flex;
    flex-direction: column;
}

html.dark .card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-overlay span {
    color: white;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted-light);
    margin-bottom: 0.75rem;
}

html.dark .card-meta {
    color: var(--text-muted-dark);
}

.tiny {
    font-size: 1rem;
    vertical-align: text-bottom;
    margin-right: 0.25rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    /* Use sans for card titles in this design */
}

.card p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

html.dark .card p {
    color: var(--text-muted-dark);
}

.card-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    text-decoration: underline;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-direction: column;
}

@media(min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    font-size: 1rem;
    width: 100%;
}

@media(min-width: 640px) {
    .newsletter-form input {
        width: 300px;
    }
}

html.dark .newsletter-form input {
    background-color: #334155;
    border-color: #475569;
    color: white;
}

.icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.muted {
    color: var(--text-muted-light);
}

html.dark .muted {
    color: var(--text-muted-dark);
}

.text-sm {
    font-size: 0.875rem;
}

.text-primary {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: #111827;
    /* Dark footer always */
    color: #fff;
    padding: 4rem 0 2rem;
}

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

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 2.5rem;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    max-width: 20rem;
}

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

.social-links a {
    color: #9ca3af;
}

.social-links a:hover {
    color: #fff;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

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

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

.footer-col a {
    color: #9ca3af;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* Episodes Page Specifics */
.mb-lg {
    margin-bottom: 4rem;
}

.mb-sm {
    margin-bottom: 1.5rem;
}

.mb-section {
    margin-bottom: 8rem;
}

.header-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--secondary);
}

html.dark .header-eyebrow {
    color: #f59e0b;
}

.featured-card {
    background-color: var(--surface-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
}

@media(min-width: 768px) {
    .featured-card {
        grid-template-columns: 45% 55%;
        /* align-items: center; Removed to allow stretch for button alignment */
    }
}

html.dark .featured-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-media img {
    width: 100%;
    /* height: 100%; Removed to allow aspect-ratio to dictate height */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    /* Ensures image fills the 16:9 container without letterboxing */
    display: block;
    /* Removing inline-block spacing issues */
}

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill the grid height */
}

.featured-content h1 {
    font-size: 1.75rem;
    /* Reduced from 2rem */
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    line-height: 1.2;
}

@media(min-width: 1024px) {
    .featured-content {
        padding: 2rem 3rem;
    }

    .featured-content h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
    }
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge {
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.action-row {
    margin-top: auto;
    /* Pushes button to the bottom */
    padding-top: 1rem;
}

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

.btn-secondary:hover {
    background-color: #4e3629;
    transform: translateY(-2px);
}

/* Filters */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

@media(min-width: 1024px) {
    .filter-bar {
        flex-direction: row;
        align-items: center;
    }
}

.filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    border: 1px solid #e5e7eb;
    background-color: var(--surface-light);
    color: var(--text-muted-light);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
}

html.dark .filter-btn {
    background-color: var(--surface-dark);
    border-color: #374151;
    color: var(--text-muted-dark);
}

.filter-btn:hover {
    background-color: #f3f4f6;
}

html.dark .filter-btn:hover {
    background-color: #1f2937;
}

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

.search-wrapper {
    position: relative;
    width: 100%;
}

@media(min-width: 1024px) {
    .search-wrapper {
        width: 300px;
    }
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 99px;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    background-color: var(--surface-light);
}

html.dark .search-input {
    background-color: var(--surface-dark);
    border-color: #374151;
    color: white;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-light);
    pointer-events: none;
}

/* Category Badge on Card */
.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

html.dark .category-tag {
    background-color: rgba(0, 0, 0, 0.8);
    color: #f59e0b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.btn-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background-color: transparent;
    cursor: pointer;
    color: var(--text-muted-light);
    font-weight: 600;
    transition: all 0.2s;
}

html.dark .btn-circle {
    border-color: #374151;
    color: var(--text-muted-dark);
}

.btn-circle:hover {
    background-color: #f3f4f6;
}

html.dark .btn-circle:hover {
    background-color: #1f2937;
}

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

/* Icons */
.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media(min-width: 1024px) {
    .blog-grid {
        grid-template-columns: 2fr 1fr;
    }

    /* Main content + Sidebar */
}

.blog-post {
    margin-bottom: 4rem;
}

.post-meta {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

html.dark .post-meta {
    color: var(--text-muted-dark);
}

.post-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.post-excerpt {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

html.dark .post-excerpt {
    color: #cbd5e1;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--surface-light);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .sidebar-widget {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted-light);
}

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

/* About Page Specifics */
.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-light {
    background-color: rgba(0, 109, 119, 0.1);
}

.bg-secondary-light {
    background-color: rgba(93, 64, 55, 0.1);
}

.bg-accent-light {
    background-color: rgba(226, 149, 120, 0.1);
}

.border-b-4 {
    border-bottom-width: 4px;
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}

.border-accent {
    border-color: var(--accent);
}

.team-member img {
    border: 4px solid var(--surface-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html.dark .team-member img {
    border-color: var(--surface-dark);
}

/* =========================================
   Missing Utility Classes (Tailwind-compatible)
   ========================================= */

/* Layout & Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-48 {
    width: 12rem;
}

.h-48 {
    height: 12rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-60 {
    height: 15rem;
}

.min-h-400 {
    min-height: 400px;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-xs {
    max-width: 20rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-y-10 {
    row-gap: 2.5rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.top-6 {
    top: 1.5rem;
}

.left-6 {
    left: 1.5rem;
}

.bottom-6 {
    bottom: 1.5rem;
}

.z-10 {
    z-index: 10;
}

/* Typography */
.font-bold {
    font-weight: 700;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   About Page Specific Utilities
   ========================================= */

/* Filters */
.filter {
    filter: var(--tw-filter);
}

.blur-3xl {
    --tw-blur: blur(64px);
    filter: var(--tw-blur);
}

.drop-shadow-xl {
    filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.03)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
}

html.dark .dark\:brightness-90 {
    filter: brightness(.9);
}

/* Transformations */
.transform {
    transform: var(--tw-transform);
}



.translate-x-1\/4 {
    transform: translateX(25%);
}

.-translate-y-1\/4 {
    transform: translateY(-25%);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Text Colors */
.text-main {
    color: var(--text-main-light);
}

html.dark .text-main {
    color: var(--text-main-dark);
}

.text-muted {
    color: var(--text-muted-light);
}

html.dark .text-muted {
    color: var(--text-muted-dark);
}

/* Sizing & Positioning */
.w-1\/2 {
    width: 50%;
}

.right-0 {
    right: 0;
}

.pb-20 {
    padding-bottom: 5rem;
}

.pt-32 {
    padding-top: 8rem;
}

.lg\:pt-40 {
    padding-top: 10rem;
}

.lg\:pb-28 {
    padding-bottom: 7rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.opacity-40 {
    opacity: 0.4;
}

html.dark .dark\:opacity-10 {
    opacity: 0.1;
}

/* Pointer Events */
.pointer-events-none {
    pointer-events: none;
}


.font-display {
    font-family: var(--font-display);
}

/* Appearance */
.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.bg-white {
    background-color: white;
}

html.dark .bg-white {
    background-color: #1e293b;
    color: #f8fafc;
}

/* Dark mode adaptation */
.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

html.dark .bg-white\/90 {
    background-color: rgba(30, 41, 59, 0.9);
}

html.dark .bg-white\/95 {
    background-color: rgba(30, 41, 59, 0.95);
}

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

.text-white {
    color: white;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.object-cover {
    object-fit: cover;
}

.border {
    border-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

html.dark .border-gray-100 {
    border-color: #374151;
}

/* Dedicated Contact Section Styles */
.newsletter-section {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    color: white;
}

html.dark .newsletter-section {
    /* Much darker teal for dark mode to avoid "too bright" issue */
    background-color: #0d3b3e;
    /* Or a dark gradient */
    background: linear-gradient(135deg, #0f3d3e 0%, #062426 100%);
}

.contact-card {
    background-color: var(--surface-light);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .contact-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle glow for premium feel */
    box-shadow: 0 0 40px -10px rgba(45, 212, 191, 0.1);
}

.pretty-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: var(--text-main-light);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.pretty-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
    background-color: #fff;
}

html.dark .pretty-input {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

html.dark .pretty-input:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.pretty-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    letter-spacing: 0.025em;
}

html.dark .pretty-label {
    color: var(--text-muted-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Spacing Utilities */
.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-10 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-10 {
    padding-top: 2.5rem !important;
}

/* Dark Mode Title Fix */
html.dark .hero-title {
    color: #ffffff;
}

html.dark .legal-content h2,
html.dark .legal-content h3,
html.dark .legal-sidebar h3 {
    color: #ffffff !important;
}

/* Value Cards (About Page) */
.value-card {
    background-color: white;
    border-radius: 1.5rem;
    /* rounded-3xl approx */
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html.dark .value-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.value-card-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--secondary);
    /* Using the teal/dark color from image */
    font-size: 1.5rem;
}

html.dark .value-card-icon {
    color: var(--secondary);
}

.value-card h3 {
    font-family: var(--font-sans);
    /* Looks like sans-serif in image */
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a;
    /* Dark text */
    margin-bottom: 1rem;
    margin-right: 2rem;
    /* Space for icon */
}

html.dark .value-card h3 {
    color: white;
}

.value-card p {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

html.dark .value-card p {
    color: var(--text-muted-dark);
}

/* Legal Pages Layout */
.legal-container {
    max-width: 1100px !important;
    margin: 0 auto;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .legal-grid {
        grid-template-columns: 280px 1fr;
        gap: 4rem;
        align-items: start;
    }
}

.legal-sidebar {
    position: sticky;
    top: 100px;
    background: var(--surface-light);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .legal-sidebar {
    background: var(--surface-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

.toc-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-muted-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s;
}

html.dark .toc-link {
    color: var(--text-muted-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

.toc-link:hover {
    color: var(--primary);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-family: var(--font-display);
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.legal-content p,
.legal-content li {
    font-family: var(--font-serif);
    /* Serif for better long-form reading */
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted-light);
    margin-bottom: 1rem;
}

html.dark .legal-content p,
html.dark .legal-content li {
    color: var(--text-muted-dark);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}