/* Styling for profile */
.profile-header {
    position: relative;
    margin-top: 2rem;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .profile-header {
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.cover-photo {
    height: 400px;
    background: linear-gradient(135deg, rgba(200, 20, 0, 0.5) 0%, rgba(255, 120, 0, 0.5) 100%);
    background-size: cover;
    background-position: center;
}

.profile-info {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 220px;
    height: 220px;
    border-radius: 0;
    border: none;
    background: var(--bg-base);
    margin-top: 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
}

[data-theme="light"] .profile-avatar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    color: var(--primary);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.profile-actions {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.main-column,
.sidebar-column {
    min-width: 0;
}

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

    .profile-info {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
        padding: 2rem;
    }

    .profile-name {
        margin-left: 0;
        text-align: left;
    }

    .profile-actions {
        margin-top: 0;
        text-align: right;
        width: auto;
    }

    .profile-avatar {
        margin-top: 0;
        margin-right: 2rem;
        margin-bottom: 0;
    }

    .profile-badges {
        justify-content: flex-start;
    }
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 1.7rem;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.section-title svg {
    color: var(--primary);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.timeline-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.timeline-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-card-soft);
    transition: border-color 0.3s ease;
}

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

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cta-container {
    position: sticky;
    top: 100px;
}

.rating {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.badge-animated {
    background: var(--logo-gradient);
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    font-size: 1rem;
    text-transform: lowercase;
}

.badge-animated::before {
    content: '#';
    opacity: 0.5;
    margin-right: 1px;
}

.btn-agendar-animado {
    background: transparent;
    color: transparent !important;
    border: 1px solid var(--border-color);
    padding: 0.85rem 2.5rem;
    font-weight: 200 !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0 !important;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    box-shadow: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    /* Text Gradient Animation */
    background-image: linear-gradient(270deg, #ea580c, #f59e0b, #ea580c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}

[data-theme="light"] .btn-agendar-animado {
    background-image: linear-gradient(270deg, #dc2626, #f87171, #dc2626) !important;
}

.btn-agendar-animado .material-symbols-outlined {
    /* To make the icon also take the gradient, we might need a workaround, or just give it a solid color. */
    /* Wait, -webkit-background-clip: text applies to children text too, but material icons are fonts, so it works perfectly. */
}

.btn-agendar-animado:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.2);
    border-color: rgba(234, 88, 12, 0.5);
}

/* ========================================= */

.blog-header {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 1rem;
}

.blog-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--surface);
    color: var(--primary);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

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

.blog-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    height: 200px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
}

.blog-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========================================= */

.blog-detail-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-detail-meta {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.blog-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-detail-content iframe {
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 0.5rem;
    aspect-ratio: 16 / 9;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-left: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.back-nav {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

/* ========================================= */

/* Scoped CSS for the dark sleek card design */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0');

.psy-card {
    /* Dark Theme (Default) - Fondo degradado original preservado */
    --p-card-bg: radial-gradient(circle at 50% 360px, #512b18 0%, #202d35 60%, #0f161a 100%);
    --p-card-text: #f3f4f6;
    --p-card-border: rgba(255, 255, 255, 0.08);
    --p-card-border-hover: rgba(255, 255, 255, 0.2);
    --p-fade-color: rgba(10, 10, 12, 0.95);
    --p-name-color: #ffffff;
    --p-name-shadow: rgba(0, 0, 0, 0.5);
    --p-date-bg: rgba(255, 255, 255, 0.05);
    --p-label-color: #ffffff;
    --p-icon-color: #ffffff;
    --p-value-color: #e2e8f0;
    --p-hl-bg: rgba(255, 255, 255, 0.05);
    --p-hl-bg-hover: rgba(255, 255, 255, 0.09);
    --p-hl-border: rgba(255, 255, 255, 0.12);
    --p-hl-text: #ffffff;
    --p-star-color: #eab308;
    --p-btn-border: rgba(255, 255, 255, 0.15);
    --p-btn-text: #ffffff;
    --p-btn-bg-hover: rgba(255, 255, 255, 0.2);
    --p-noise-opacity: 0.05;
}

[data-theme="light"] .psy-card {
    /* Light Theme - Fondo degradado original preservado */
    --p-card-bg: linear-gradient(135deg, #7a003c 0%, #5a002b 40%, #350019 75%, #1a0010 100%);
    --p-card-text: #ffffff;
    --p-card-border: rgba(255, 255, 255, 0.15);
    --p-card-border-hover: rgba(255, 255, 255, 0.35);
    --p-fade-color: rgba(26, 0, 16, 0.95);
    --p-name-color: #ffffff;
    --p-name-shadow: rgba(0, 0, 0, 0.4);
    --p-date-bg: rgba(0, 0, 0, 0.4);
    --p-label-color: #ffffff;
    --p-icon-color: #ffffff;
    --p-value-color: #ffffff;
    --p-hl-bg: rgba(255, 255, 255, 0.1);
    --p-hl-bg-hover: rgba(255, 255, 255, 0.2);
    --p-hl-border: rgba(255, 255, 255, 0.3);
    --p-hl-text: #ffffff;
    --p-star-color: #ffffff;
    --p-btn-border: rgba(255, 255, 255, 0.2);
    --p-btn-text: #ffffff;
    --p-btn-bg-hover: rgba(255, 255, 255, 0.15);
    --p-noise-opacity: 0.04;
}

.psy-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    /* Move gradient to content */
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    width: 100%;
    height: 100%;
    color: var(--p-card-text);
    border: 1px solid var(--p-card-border);
    position: relative;
}

.psy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--p-card-border-hover);
}

.psy-card.psy-card-horizontal {
    flex-direction: row;
}

.psy-card.psy-card-horizontal .psy-card-media {
    width: 200px;
    height: auto;
    min-height: 100%;
}

.psy-card.psy-card-horizontal .psy-card-content {
    flex: 1;
    min-width: 0;
    padding: 1.2rem;
    gap: 0.8rem;
}

.psy-card.psy-card-horizontal .psy-card-name {
    font-size: 1.3rem;
}

.psy-card.psy-card-horizontal .psy-info-label,
.psy-card.psy-card-horizontal .psy-info-value {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .psy-card.psy-card-horizontal {
        flex-direction: column;
    }
    
    .psy-card.psy-card-horizontal .psy-card-media {
        width: 100%;
        height: 250px;
        min-height: auto;
    }
}

.psy-card-media {
    height: 320px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Removed .psy-card-media::after fade to keep photo clean */
.psy-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.psy-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background: var(--p-card-bg);
}



.psy-card-content>* {
    position: relative;
    z-index: 1;
}

.psy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.psy-card-name {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.55rem;
    font-weight: 300;
    margin: 0;
    color: var(--p-name-color);
    text-transform: lowercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px var(--p-name-shadow);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.psy-card-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--p-icon-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    background: var(--p-date-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.4s ease, color 0.4s ease;
}

.psy-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.psy-info-label-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 110px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.psy-info-label-container .material-symbols-outlined {
    font-size: 1.2rem;
    color: #ffffff !important;
    font-weight: 300;
    transition: color 0.4s ease;
}

.psy-info-label {
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    text-transform: lowercase !important;
    transition: color 0.4s ease;
}

.psy-info-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--p-value-color);
    line-height: 1.4;
    font-weight: 300;
    text-transform: lowercase !important;
    transition: color 0.4s ease;
}

/* Enfoque tags & clean row */
.psy-enfoque-row {
    margin: 0.15rem 0;
}

.psy-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.psy-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.22rem 0.6rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.25;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

[data-theme="light"] .psy-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.psy-tag-more {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.psy-highlight-box {
    background: var(--p-hl-bg);
    border: 1px solid var(--p-hl-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0.25rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.psy-card:hover .psy-highlight-box {
    background: var(--p-hl-bg-hover);
}

.psy-card-footer {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--p-card-border);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.4s ease;
}

.psy-footer-text {
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    text-transform: lowercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s ease;
}

[data-theme="light"] .psy-footer-text {
    color: #ffffff !important;
}

.psy-card:hover .psy-footer-text {
    color: #ffffff !important;
}

.psy-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .psy-arrow-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.psy-card:hover .psy-arrow-btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0c;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .psy-card:hover .psy-arrow-btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #4a0024;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

.psy-arrow-btn .material-symbols-outlined {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.psy-card:hover .psy-arrow-btn .material-symbols-outlined {
    transform: translateX(3px);
}

/* ========================================= */
/* Blog Detail Typography */
/* ========================================= */

.blog-gradient-title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 200;
    letter-spacing: -1.5px;
    font-size: 2.2rem;
}

/* ========================================= */
/* Profile Gallery & Latest Posts */
/* ========================================= */

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.gallery-slider::-webkit-scrollbar {
    height: 4px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

.gallery-slide {
    flex: 0 0 250px;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    background: var(--bg-card-soft);
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

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

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 90%;
    max-height: 95vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.lightbox-close-btn {
    border-radius: 20px;
    padding: 0.5rem 2.5rem;
    font-size: 1.25rem;
    font-family: "Neue Helvetica Pro 25 Ultra Light", "Raleway", sans-serif;
    font-weight: 200;
    letter-spacing: -1px;
    text-transform: lowercase;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.recent-post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.recent-post-cover {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.default-cover {
    background: var(--bg-card-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
}

.default-cover .material-symbols-outlined {
    font-size: 4rem;
    opacity: 0.5;
}

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

.recent-post-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-soft);
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--primary);
}

.recent-post-title {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.recent-post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.recent-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.recent-post-card:hover .recent-post-footer {
    color: var(--primary);
}

.recent-post-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.recent-post-card:hover .recent-post-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: rotate(-45deg);

/* --- GRADIENT TITLES FOR EDIT MODE FORMS --- */

/* Form titles in Edit Mode */
.edit-form-card h5 {
    background: var(--p-card-bg, radial-gradient(circle at 50% 360px, #512b18 0%, #202d35 60%, #0f161a 100%)) !important;
    color: var(--p-card-text, #f3f4f6) !important;
    padding: 1rem 1.75rem !important;
    margin: -1.75rem -1.75rem 1.5rem -1.75rem !important;
    border-bottom: 1px solid var(--p-card-border, #374151) !important;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-weight: 500;
}

/* Ensure the titles don't override the card background entirely, just the header area */
