:root {
    --color-primary: #22223B;
    --color-secondary: #4A4E69;
    --color-accent: #9A8C98;
    --color-light-accent: #C9ADA7;
    --color-light: #F2E9E4;
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-light);
    color: var(--color-primary);
    padding-top: 71px;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #4a4a4a;
}

a {
    color: var(--color-secondary);
}

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

/* Card styles */
.card {
    border-radius: 15px;
    background-color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(34, 34, 59, 0.1);
}

.card-body {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.card-footer {
    margin-top: auto;
    background: transparent;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-text {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-title {
    color: var(--color-secondary);
    font-weight: 600;
}

.navbar {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-light-accent) 100%);
}

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.7rem 0;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--color-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--color-secondary) !important;
    background-color: rgba(74, 78, 105, 0.1);
    border-radius: 8px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    color: var(--color-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-light-accent) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-light .navbar-toggler {
    color: var(--color-primary);
    border-color: transparent;
}

.navbar-light .navbar-toggler i {
    color: var(--color-primary);
}

.nav-contact-btn {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
    border-radius: 25px;
    padding: 8px 16px !important;
    margin-left: 0.5rem;
    border: none !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-contact-btn:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-light) !important;
    transform: translateY(-1px);
}

.nav-contact-btn i {
    color: inherit;
}

/* Mobile styles */
@media (max-width: 991px) {
    .navbar {
        background: linear-gradient(135deg, var(--color-light) 0%, var(--color-light-accent) 100%);
    }

    .navbar-light .navbar-nav .nav-link {
        color: var(--color-primary) !important;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--color-secondary) !important;
        background-color: rgba(74, 78, 105, 0.1);
        border-radius: 8px;
    }

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

    .navbar .navbar-toggler i {
        color: var(--color-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 1rem;
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(34, 34, 59, 0.1);
    }

    .nav-contact-btn {
        background-color: var(--color-primary) !important;
        color: var(--color-light) !important;
        border: none !important;
        margin-top: 0.25rem;
    }

    .nav-contact-btn:hover {
        background-color: var(--color-secondary) !important;
        color: var(--color-light) !important;
    }

    .nav-contact-btn i {
        color: inherit;
    }
}

/* Footer styles */
footer {
    background-color: var(--color-primary) !important;
}

.footer {
    background-color: #ffd1dc;
    padding: 30px 0;
    margin-top: 50px;
    color: #fff;
    min-height: 150px;
}

.footer a {
    color: #fff;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
}

/* Button styles */
.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-light);
}

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

#scrollToTop {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

#scrollToTop:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Article styles */
.article-card {
    position: relative;
    overflow: visible;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(34, 34, 59, 0.1);
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.7;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(34, 34, 59, 0.15);
}

.article-card * {
    pointer-events: none;
}

.article-card a {
    pointer-events: auto;
}

.article-meta {
    color: var(--color-accent);
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

/* Category styles */
.article-card[data-category="anxiety"]::before { background: var(--color-primary); }
.article-card[data-category="depression"]::before { background: var(--color-secondary); }
.article-card[data-category="therapy"]::before { background: var(--color-accent); }
.article-card[data-category="wellness"]::before { background: var(--color-light-accent); }
.article-card[data-category="other"]::before { background: var(--color-primary); }

.article-card[data-category="anxiety"] .category-badge {
    background-color: rgba(34, 34, 59, 0.1);
    color: var(--color-primary);
}

.article-card[data-category="depression"] .category-badge {
    background-color: rgba(74, 78, 105, 0.1);
    color: var(--color-secondary);
}

.article-card[data-category="therapy"] .category-badge {
    background-color: rgba(154, 140, 152, 0.1);
    color: var(--color-accent);
}

.article-card[data-category="wellness"] .category-badge {
    background-color: rgba(201, 173, 167, 0.1);
    color: var(--color-light-accent);
}

.article-card[data-category="other"] .category-badge {
    background-color: rgba(34, 34, 59, 0.1);
    color: var(--color-primary);
}

/* Icon styles */
.article-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    opacity: 0.9;
}

.article-icon-wrapper {
    text-align: left;
    margin-bottom: 0.5rem;
}

.article-card[data-category="anxiety"] .article-icon { color: #FFB74D; }
.article-card[data-category="depression"] .article-icon { color: #7986CB; }
.article-card[data-category="therapy"] .article-icon { color: #81C784; }
.article-card[data-category="wellness"] .article-icon { color: #F48FB1; }
.article-card[data-category="other"] .article-icon { color: #B0BEC5; }

/* Badge styles */
.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-badge .fa-clock {
    font-size: 0.9em;
}

.category-badge .ms-2 {
    font-size: 0.9em;
    opacity: 0.9;
}

.test-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    z-index: 1;
    transition: all 0.3s ease;
}

.article-card:hover .test-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Button variations */
.btn-article-subtle {
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-article-subtle:hover {
    background: #f8fafc;
    color: #475569;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.btn-test {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-light);
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    margin-top: auto;
}

.btn-test:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 34, 59, 0.2);
    color: var(--color-light);
}

.btn-article {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    margin-top: auto;
}

.btn-article:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    color: white;
}

/* Transitions */
.navbar-collapse {
    transition: all 0.3s ease;
}

.grecaptcha-badge {
    bottom: 86px !important;
}
