@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@400;500&display=swap');

:root {
    --primary: #6B6D90;
    --primary-light: #8e90b3;
    --primary-dark: #4d4f6d;
    --accent: #2c3e50;
    --teal: #1abc9c;
    --text: #333333;
    --text-muted: #666666;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #e1e8ed;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container: 1140px;
    --font-heading: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Header */
.site-header {
    background: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 0.25rem 0;
}

.nav-item>a {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-item:hover>a {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: 8px;
    list-style: none;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.has-dropdown>a::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Hero */
.hero {
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 100%);
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-box {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 90, 120, 0.1);
}

.btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* New Hero Replica */
.hero-new {
    background: url('https://www.techniquesdemeditation.com/wp-content/uploads/2022/11/slide-tdm.jpg');
    background-size: cover;
    background-position: right center;
    padding: 6rem 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    color: var(--text);
}

.hero-new .container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.hero-new-content {
    max-width: 550px;
    text-align: left;
}

.hero-new h1 {
    font-size: 2.25rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-new p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-large {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .intro-grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.intro-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: none;
    text-align: center;
    border: none;
}

/* Blog Categories */
.blog-categories a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-categories a:hover {
    color: var(--primary);
}

.intro-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.btn-sm {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Founder Section */
.founder-section {
    background: var(--accent);
    color: white;
    padding: 5rem 0;
}

.founder-section h2,
.founder-section h3 {
    color: white;
}

.founder-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.founder-image {
    flex: 0 0 300px;
}

.founder-image img {
    width: 100%;
    border-radius: 50%;
}

.founder-text {
    flex: 1;
}

.founder-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--text);
    margin-top: 2rem;
}

.founder-form h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Specialized Sections */
.content-section {
    padding: 6rem 0;
}

.content-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.content-flex.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
}

.content-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    text-align: center;
}

.guide-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

/* Article Card */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.post-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.post-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* Post Content */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    padding: 4rem 0;
}

.post-article {
    max-width: 800px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 3rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.widget {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
}

.widget h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 2rem;
    height: 0.2rem;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 992px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: white;
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem !important;
    }

    .nav-item {
        font-size: 1.25rem;
    }

    .nav-item.has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 1rem 0 0 1.5rem;
        display: none;
        text-align: center;
    }

    .nav-item.has-dropdown.active .dropdown {
        display: block;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-new h1 {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image {
    flex: 1;
    background: #f1f4f6;
}

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

.modal-form {
    flex: 1.2;
    padding: 3rem 2.5rem;
    text-align: left;
}

.modal-form h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.modal-form p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.modal-form .btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.modal-form .btn:hover {
    background: var(--primary-dark);
}

.gdpr-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}

.gdpr-note p {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    color: #999;
}

.gdpr-note a {
    color: var(--primary);
    text-decoration: underline;
}

/* Category Page Enhancements */
.category-hero {
    position: relative;
    padding: 8rem 0;
    margin-bottom: 4rem;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.category-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Table of Contents */
.toc {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 4rem;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin: 0;
    padding: 0;
}

.toc-list li a {
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list li a::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}

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

/* Section Spacing */
.page-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.page-section:last-child {
    border-bottom: none;
}

.page-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Sidebar Widgets */
.sidebar .widget {
    background: white;
    box-shadow: var(--shadow-sm);
}

.sidebar .lead-magnet-widget {
    border: 1px solid var(--primary);
}

@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 2.5rem;
    }

    .toc-list {
        flex-direction: column;
        gap: 1rem;
    }
}