:root {
    --primary-color: #6db4e8;
    --primary-hover: #5ba3d6;
    --primary-dark: #1976d2;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --heading-color: #374151;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    max-width: 1508px;
    margin: 2rem auto;
    margin-top: 0rem;
    display: flex;
    align-items: center;
    background-image: url('/img/frontend/construction_1920_1080.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(21, 101, 192, 0.95) 0%, rgba(21, 101, 192, 0.8) 50%, rgba(21, 101, 192, 0.4) 100%);
        z-index: 1;
        border-radius: 1rem;
    }

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    width: 900px;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.highlight-word {
    font-weight: 800;
}


.hero-search-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-question {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.hero-search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.hero-search-input {
    width: 100%;
    padding: 0.75rem 80px 0.75rem 3.5rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
}

    .hero-search-input:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(109, 180, 232, 0.1);
    }

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

    .hero-search-btn:hover {
        background: var(--primary-hover);
    }

.hero-search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .search-footer-link:hover {
        color: var(--primary-hover);
        text-decoration: none;
    }

.recent-searches {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.recent-search-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .recent-search-link:hover {
        color: var(--primary-hover);
        text-decoration: none;
    }

/* Tablet optimizations */
@media (max-width: 900px) {
    .hero-content {
        width: 95%;
        max-width: 95%;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        margin: 0;
        max-width: 100%;
        border-radius: 0 !important;
    }

        .hero-section::before {
            border-radius: 0 !important;
        }

    .hero-container {
        padding: 0 0.5rem;
    }

    .hero-content {
        width: 100%;
        max-width: 95%;
    }

    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-search-card {
        padding: 1.5rem;
    }

    .search-question {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-search-card {
        padding: 1rem;
    }

    .search-question {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .recent-search-link {
        font-size: 0.8rem;
    }

    .search-footer-link {
        font-size: 0.8rem;
    }

    .hero-search-input {
        padding: 1rem 70px 1rem 3rem;
        font-size: 1rem;
    }

    .hero-search-footer {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .recent-searches {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tools-section .col-lg-6:first-child {
        margin-bottom: 1rem;
    }
}

.navbar {
    background-color: white !important;
    box-shadow: none !important;
    border-bottom: none;
    transition: all 0.3s ease;
    padding: 0 !important;
    height: 80px !important;
    min-height: 80px !important;
}

    .navbar .container {
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
    }

/* Override any Bootstrap navbar shadows */
.navbar-light {
    box-shadow: none !important;
}

/* Add shadow when scrolled */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Navbar links styling */
.navbar-nav .nav-link {
    color: var(--heading-color) !important;
    font-weight: 500;
    font-size: 17px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .navbar-nav .nav-link:hover {
        color: #6db4e8 !important;
        background-color: var(--bg-light);
    }

    .navbar-nav .nav-link.active {
        color: #6db4e8 !important;
    }

/* Dropdown styling */
.dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--heading-color);
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: var(--bg-light);
        color: #6db4e8;
    }

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

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

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

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

    .btn-primary:hover {
        background-color: #1565c0;
        border-color: #1565c0;
        transform: translateY(-1px);
    }

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

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

.card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

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

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(109, 180, 232, 0.25);
    }

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.display-5 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

footer {
    background-color: var(--text-dark) !important;
}

.section-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Auth Modal Styles */
.divider {
    position: relative;
    text-align: center;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #dee2e6;
    }

    .divider span {
        background: white;
        padding: 0 1rem;
        color: var(--text-muted);
        font-size: 0.875rem;
    }

.input-group-text {
    background: white;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

    .input-group .form-control:focus {
        border-left: none;
        box-shadow: none;
    }

.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.social-login-btn {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .social-login-btn:hover {
        background-color: var(--bg-light);
        transform: translateY(-1px);
    }

    .social-login-btn .fab.fa-google {
        color: #4285f4;
    }

.btn-dark {
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.auth-form .btn-dark {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
}

.auth-form .btn-dark {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.search-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

    .icon-circle.blue {
        background-color: rgba(109, 180, 232, 0.1);
    }

    .icon-circle.light-blue {
        background-color: rgba(109, 180, 232, 0.15);
    }

    .icon-circle.green {
        background-color: rgba(25, 135, 84, 0.1);
    }

    .icon-circle.purple {
        background-color: rgba(102, 16, 242, 0.1);
    }

/* Modern Icon Styling */
.modern-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

    .modern-icon.blue-bg {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    }

    .modern-icon.green-bg {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .modern-icon.purple-bg {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }

    .modern-icon.orange-bg {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

.simple-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

    .simple-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.content-block {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 110px;
    display: flex;
    align-items: center;
}

    .content-block h6 {
        line-height: 1.2;
    }

    .content-block small {
        line-height: 1.2;
    }

    .content-block:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

    .content-block.active {
        border-color: var(--primary-color) !important;
        border-width: 2px !important;
        background-color: rgba(109, 180, 232, 0.1) !important;
        box-shadow: 0 4px 12px rgba(109, 180, 232, 0.2) !important;
    }

.calculator-showcase .d-flex {
    height: 100%;
    min-height: 80px;
}

.tool-showcase-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

    .tool-showcase-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.tool-icon-wrapper {
    display: flex;
    justify-content: center;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

    .tool-icon.blue {
        background: linear-gradient(135deg, rgba(109, 180, 232, 0.15) 0%, rgba(109, 180, 232, 0.25) 100%);
        color: var(--primary-color);
    }

    .tool-icon.green {
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.25) 100%);
        color: #28a745;
    }

    .tool-icon.purple {
        background: linear-gradient(135deg, rgba(102, 16, 242, 0.15) 0%, rgba(102, 16, 242, 0.25) 100%);
        color: #6610f2;
    }

.tool-features {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--text-dark);
        border-radius: 1px;
        transition: all 0.3s ease;
    }

        .hamburger-menu span:nth-child(1) {
            top: 0;
        }

        .hamburger-menu span:nth-child(2) {
            top: 8px;
        }

        .hamburger-menu span:nth-child(3) {
            top: 16px;
        }

.mobile-user-btn {
    background-color: var(--bg-light) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-dark) !important;
    width: 40px;
    height: 40px;
}

.tool-tab {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tool-tab:hover {
        background-color: rgba(109, 180, 232, 0.05);
        border-color: var(--primary-color) !important;
    }

    .tool-tab.active {
        background-color: rgba(109, 180, 232, 0.1);
        border-color: var(--primary-color) !important;
        border-width: 2px !important;
    }

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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



.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 18px;
    height: 14px;
    justify-content: space-between;
    flex-shrink: 0;
    align-self: center;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--heading-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    color: var(--heading-color) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

    .mobile-menu-toggle:hover {
        background: #f9fafb !important;
        border-color: #d1d5db !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

.login-btn {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    color: var(--heading-color) !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.95rem !important;
}

    .login-btn:hover {
        background: #f9fafb !important;
        border-color: #d1d5db !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        color: var(--heading-color) !important;
    }

    .login-btn i {
        color: var(--heading-color) !important;
    }

    .login-btn:hover i {
        color: var(--heading-color) !important;
    }

@media (max-width: 768px) {
    .hero-section {
        padding: 0 0 40px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem !important;
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}

    .footer-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    }

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-description {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-section {
    margin-top: 1.5rem;
}

    .newsletter-section .input-group {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .newsletter-section .form-control {
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        padding: 12px 16px;
    }

        .newsletter-section .form-control::placeholder {
            color: #b8b8b8;
        }

        .newsletter-section .form-control:focus {
            background-color: rgba(255, 255, 255, 0.15);
            border-color: var(--primary-color);
            box-shadow: none;
            color: #ffffff;
        }

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background-color: var(--primary-color);
        border-radius: 1px;
    }

.footer-links ul {
    margin: 0;
    padding: 0;
}

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

.footer-link {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

    .footer-link:hover {
        color: var(--primary-color);
        transform: translateX(4px);
    }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .social-link:hover {
        background: var(--primary-color);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(109, 180, 232, 0.3);
    }

.legal-links {
    display: flex;
    gap: 0;
}

    .legal-links .footer-link {
        font-size: 0.85rem;
    }

/* Clean Modern Navigation */
.modern-navbar {
    padding: 0;
    background: white;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

    /* Add shadow when scrolled */
    .modern-navbar.scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    min-height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    margin-right: 2rem;
}

    .navbar-brand:hover {
        color: var(--primary-hover) !important;
        text-decoration: none;
    }

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 8px;
}

.brand-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 60px;
}

.nav-item {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color 0.2s ease;
}

    .nav-item:hover {
        color: var(--primary-color);
        text-decoration: none;
    }

    .nav-item.active {
        color: var(--primary-color);
        font-weight: 500;
    }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-ghost {
    background: none;
    border: 1px solid transparent;
    color: var(--heading-color);
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

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

.btn-primary-custom {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .btn-primary-custom:hover {
        background-color: #5ca3d9;
        border-color: #5ca3d9;
    }

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--heading-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Slide-in Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

    .mobile-menu-panel.active {
        transform: translateX(0);
    }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-item {
    display: block;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 400;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    font-size: 1rem;
}

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--primary-color);
        background-color: rgba(109, 180, 232, 0.05);
        text-decoration: none;
    }

.mobile-nav-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Modern Login Modal Styles */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .login-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 440px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 576px) {
    .login-modal {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
        border-radius: 12px;
        overflow-y: auto;
        margin: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        position: fixed;
        left: 50%;
    }

    .login-modal-body {
        padding: 0 20px 20px 20px !important;
    }

    .login-modal-header {
        padding: 12px 16px 0 16px !important;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-radius: 12px 12px 0 0;
    }

    .login-icon {
        width: 60px !important;
        height: 60px !important;
        border-radius: 16px !important;
    }

    .login-modal h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
    }

    .social-login-btn {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
    }

    .form-control {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.login-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 24px 0 24px;
}

.login-modal-close {
    background: #f5f5f5;
    border: none;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

    .login-modal-close:hover {
        background-color: #e8e8e8;
        color: #333;
    }

.login-modal-body {
    padding: 0 32px 32px 32px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3, #54a0ff);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gradient {
    width: 40px;
    height: 50px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.login-modal h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.social-login-section {
    margin-bottom: 1.5rem;
}

.social-login-btn {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

    .social-login-btn:hover {
        border-color: #d1d5db;
        background-color: #f9fafb;
        transform: translateY(-1px);
    }

.google-btn i {
    color: #4285f4;
    font-size: 1.1rem;
}

.apple-btn i {
    color: #000;
    font-size: 1.2rem;
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

    .login-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
        z-index: 1;
    }

    .login-divider span {
        background: white;
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }

.email-input-container {
    position: relative;
    margin-bottom: 16px;
}

.email-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.email-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

    .email-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(109, 180, 232, 0.1);
    }

    .email-input::placeholder {
        color: #9ca3af;
    }

.email-continue-btn {
    width: 100%;
    padding: 16px 20px;
    background: #333;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

    .email-continue-btn:hover {
        background: #222;
        transform: translateY(-1px);
    }

.privacy-notice {
    text-align: center;
}

    .privacy-notice p {
        color: #6b7280;
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0;
    }

.privacy-link {
    color: #333;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        text-align: center;
    }

        .footer-bottom .row {
            flex-direction: column;
            align-items: center;
        }

        .footer-bottom .col-md-6 {
            width: 100%;
            margin-bottom: 1rem;
        }

            .footer-bottom .col-md-6:last-child {
                margin-top: 0;
                margin-bottom: 0;
            }

    .social-links {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .legal-links .footer-link {
            margin: 0;
            font-size: 0.8rem;
        }

    .footer-copyright {
        text-align: center;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .navbar-content {
        padding: 12px 0;
        min-height: 60px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-text {
        font-size: 1.1rem;
    }
}

/* Filter and Reset Button Hover Effects */
.filter-btn:hover {
    background: #5ca3d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 180, 232, 0.3);
}

.reset-btn:hover {
    background: var(--bg-light) !important;
    color: #495057 !important;
    border-color: #dee2e6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile navbar button hover effects */
.navbar-toggler:hover,
.btn.login-btn.d-lg-none:hover {
    background: var(--bg-light) !important;
    border-color: var(--border-light) !important;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler:focus,
.btn.login-btn.d-lg-none:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Force hide mobile login button on desktop */
@media (min-width: 992px) {
    .btn.login-btn.d-lg-none {
        display: none !important;
    }
}

/* Tablet styling for navbar and buttons */
@media (min-width: 577px) and (max-width: 991px) {
    .navbar {
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 !important;
    }

        .navbar .container {
            padding-left: 16px !important;
            padding-right: 16px !important;
            max-width: 100% !important;
            height: 80px !important;
            display: flex !important;
            align-items: center !important;
        }

    /* Position hamburger button at far left */
    .navbar-toggler.d-lg-none {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Keep logo centered */
    .navbar-brand.mx-auto {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Position login button at far right */
    .btn.login-btn.d-lg-none {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .navbar-toggler {
        background: white !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 25px !important;
        padding: 14px 24px !important;
        color: #000000 !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

        .navbar-toggler:hover {
            background: var(--bg-light) !important;
            border-color: #dee2e6 !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
            color: #000000 !important;
        }

        .navbar-toggler:focus {
            box-shadow: none !important;
            outline: none !important;
        }

        .navbar-toggler span:last-child {
            display: inline !important;
        }

        .navbar-toggler .navbar-toggler-icon {
            margin-right: 8px !important;
            color: #000000 !important;
        }

        .navbar-toggler .hamburger-line {
            background-color: #000000 !important;
        }

    /* Tablet login button styling */
    .btn.login-btn.d-lg-none {
        background: white !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 25px !important;
        padding: 14px 24px !important;
        color: #000000 !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

        .btn.login-btn.d-lg-none:hover {
            background: var(--bg-light) !important;
            border-color: #dee2e6 !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
            color: #000000 !important;
        }

        .btn.login-btn.d-lg-none span {
            display: inline !important;
        }

        .btn.login-btn.d-lg-none i {
            margin-right: 8px !important;
            color: #000000 !important;
        }
}

/* Hide text on small mobile screens */
@media (max-width: 576px) {
    .navbar {
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 !important;
    }

        .navbar .container {
            height: 80px !important;
            display: flex !important;
            align-items: center !important;
        }

    .navbar-toggler span:last-child,
    .btn.login-btn.d-lg-none span {
        display: none !important;
    }

    /* Hide "Alle categorie�n" link on mobile */
    .search-card a[href*="woordenboek"] {
        display: none !important;
    }

    .navbar-toggler {
        padding: 14px !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 1px solid var(--border-light) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
    }

        .navbar-toggler:hover {
            background: #f0f0f0 !important;
            border-color: #d0d0d0 !important;
            box-shadow: none !important;
        }

    .btn.login-btn.d-lg-none {
        padding: 14px !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 1px solid var(--border-light) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
    }

        .btn.login-btn.d-lg-none:hover {
            background: #f0f0f0 !important;
            border-color: #d0d0d0 !important;
            box-shadow: none !important;
        }

    .navbar-toggler .navbar-toggler-icon {
        margin-right: 0 !important;
    }

    .btn.login-btn.d-lg-none i {
        margin-right: 0 !important;
        font-size: 1.1rem !important;
    }

    .navbar-toggler-icon {
        font-size: 1.1rem !important;
    }
}

/* Modern dropdown styling */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 10px !important;
    min-width: 280px !important;
    background: white !important;
}

.dropdown-item {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    transition: all 0.2s ease !important;
    margin-bottom: 8px !important;
}

    .dropdown-item:last-child {
        margin-bottom: 0 !important;
    }

    .dropdown-item:hover {
        background-color: var(--bg-light) !important;
        color: var(--primary-dark) !important;
        transform: translateX(4px) !important;
    }

    .dropdown-item:focus {
        background-color: var(--bg-light) !important;
        color: var(--primary-dark) !important;
    }

.dropdown-divider {
    margin: 16px 0 !important;
    border-color: var(--border-light) !important;
}

/* Dropdown arrow styling */
.dropdown-toggle::after {
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-left: 0.3em solid transparent !important;
    margin-left: 0.5em !important;
}

/* Navbar pill buttons */
.nav-pill-btn {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 8px 16px;
    background: #fff;
    color: #495057;
}

.nav-pill-btn-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-login-btn {
    border: 1.5px solid #adb5bd;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mobile-login-btn-icon {
    color: #495057;
    font-size: 0.75rem;
}

.main-with-fixed-nav {
    padding-top: 80px;
}

/* =========================================================
   VIEW-EXTRACTED STYLES
   Migrated from inline <style> blocks in Frontend Views
   ========================================================= */

/* ---- Home/Index.cshtml — Mission colors ---- */
.mission-bg-blue { background: #dbeafe; }
.mission-bg-green { background: #dcfce7; }
.mission-bg-yellow { background: #fef3c7; }
.mission-bg-indigo { background: #e0e7ff; }
.mission-icon-blue { color: #3b82f6; }
.mission-icon-green { color: #10b981; }
.mission-icon-yellow { color: #f59e0b; }
.mission-icon-indigo { color: #6366f1; }

/* Mission card */
.mission-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mission-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 200px;
    margin: 0 auto;
}

.mission-icon-item {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

    .mission-icon-item:hover { transform: scale(1.1); }

.mission-text { font-size: 1.0625rem; line-height: 1.8; color: #475569; margin: 0; }
.mission-highlight { font-weight: 600; color: #3b82f6; position: relative; }

.mission-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .mission-read-more:hover { color: #2563eb; transform: translateX(4px); }
    .mission-read-more i { font-size: 0.875rem; transition: transform 0.2s ease; }
    .mission-read-more:hover i { transform: translateX(4px); }

/* Project icon tiles */
.project-icon-tile {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6db4e8 0%, #4a90e2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon { font-size: 2.5rem; }

.mini-icon-tile {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-bg-blue { background: #e3f2fd; }
.mini-bg-green { background: #e8f5e8; }
.mini-bg-purple { background: #f3e5f5; }
.icon-purple { color: #9c27b0; }

/* Term of the day */
.term-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.term-title { font-size: 2.5rem; font-weight: 700; color: #1f2937; line-height: 1.2; }
.term-pronunciation { font-size: 1.125rem; font-style: italic; }
.term-definition .lead { font-size: 1.1875rem; line-height: 1.6; margin-bottom: 1rem; font-weight: 500; }
.term-definition p { line-height: 1.8; }

.term-category {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.related-terms-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .related-terms-card h4 { font-size: 1.25rem; font-weight: 600; color: #1f2937; }

.related-term-item { padding: 1.25rem 0; border-bottom: 1px solid #f3f4f6; margin-bottom: 1.25rem; }
    .related-term-item:last-child { border-bottom: none; margin-bottom: 0; }

.related-term-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.related-term-title { font-size: 1.0625rem; font-weight: 600; color: #1f2937; margin-bottom: 0.5rem; }
.related-term-description { font-size: 0.9375rem; color: #6b7280; line-height: 1.6; margin-bottom: 0.5rem; }

.related-term-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

    .related-term-link:hover { color: #2563eb; transform: translateX(2px); }
    .related-term-link i { transition: transform 0.2s ease; }
    .related-term-link:hover i { transform: translateX(4px); }

@media (max-width: 768px) {
    .term-title { font-size: 2rem; }
    .term-pronunciation { font-size: 1rem; }
    .term-definition .lead { font-size: 1.0625rem; }
    .related-terms-card { padding: 1.5rem; }
    .related-term-icon { width: 40px; height: 40px; font-size: 1.125rem; }
}

/* News section */
.news-more-link {
    font-size: 0.9375rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

    .news-more-link:hover { color: #2563eb; transform: translateX(3px); }
    .news-more-link i { transition: transform 0.2s ease; }
    .news-more-link:hover i { transform: translateX(4px); }

.news-featured-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

    .news-featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); color: inherit; }

.news-featured-image { position: relative; height: 300px; overflow: hidden; }
    .news-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.news-featured-card:hover .news-featured-image img { transform: scale(1.05); }

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    color: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-featured-content { padding: 1.75rem; }
.news-featured-title { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin-bottom: 0.75rem; line-height: 1.3; }
.news-featured-excerpt { font-size: 0.9375rem; color: #6b7280; line-height: 1.6; margin-bottom: 1rem; }
.news-featured-meta { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; color: #9ca3af; }
.news-date, .news-author { display: inline-flex; align-items: center; }

.news-secondary-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

    .news-secondary-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); color: inherit; }

.news-secondary-image { flex-shrink: 0; width: 140px; height: 140px; overflow: hidden; }
    .news-secondary-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.news-secondary-card:hover .news-secondary-image img { transform: scale(1.08); }

.news-secondary-content { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-mini-badge { display: inline-block; font-size: 0.75rem; color: #3b82f6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.news-secondary-title { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; line-height: 1.4; }
.news-secondary-excerpt { font-size: 0.875rem; color: #6b7280; line-height: 1.5; margin-bottom: 0.75rem; flex-grow: 1; }
.news-read-time { font-size: 0.8125rem; color: #9ca3af; display: inline-flex; align-items: center; }

@media (max-width: 991px) {
    .news-featured-image { height: 240px; }
    .news-featured-title { font-size: 1.25rem; }
}

@media (max-width: 576px) {
    .news-secondary-card { flex-direction: column; }
    .news-secondary-image { width: 100%; height: 180px; }
    .news-featured-image { height: 200px; }
}

/* Section headings & FAQ preview (Home/Index) */
.section-heading { font-size: 2rem; font-weight: 700; color: #1f2937; line-height: 1.2; }
.section-subtitle { font-size: 1.125rem; color: #6b7280; font-weight: 400; }

.faq-preview-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-preview-accordion .accordion-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.faq-preview-accordion .accordion-button {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

    .faq-preview-accordion .accordion-button:not(.collapsed) { background: #f9fafb; color: #3b82f6; box-shadow: none; }
    .faq-preview-accordion .accordion-button:focus { box-shadow: none; border-color: #e5e7eb; }
    .faq-preview-accordion .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        transition: transform 0.3s ease;
    }

.faq-preview-accordion .accordion-body { padding: 1.25rem 1.5rem; background: #ffffff; }
    .faq-preview-accordion .accordion-body p { font-size: 1rem; line-height: 1.8; color: #4b5563; margin-bottom: 0.75rem; }

.faq-view-all {
    display: inline-flex;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .faq-view-all:hover { background: #3b82f6; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    .faq-view-all i { transition: transform 0.3s ease; }
    .faq-view-all:hover i { transform: translateX(4px); }

.card-cta-btn { height: 48px; padding: 0.75rem 1rem; }

@media (max-width: 767px) {
    #mission-container { padding-left: 2rem; padding-right: 2rem; }
    .mission-card { padding: 1.5rem; }
    .mission-icon-grid { max-width: 160px; gap: 0.75rem; margin-bottom: 1rem; }
    .mission-icon-item { width: 60px; height: 60px; font-size: 1.25rem; }
    .mission-text { font-size: 1rem; text-align: center; }
}

/* ---- Blog/Index.cshtml ---- */
.hero-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

    .hero-bg::before,
    .hero-bg::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        opacity: 0.18;
        pointer-events: none;
    }

    .hero-bg::before {
        width: 220px;
        height: 220px;
        top: -60px;
        left: -60px;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
        box-shadow: 260px 120px 0 0 rgba(255, 107, 107, 0.4), 120px 320px 0 0 rgba(78, 205, 196, 0.35);
    }

    .hero-bg::after {
        width: 280px;
        height: 280px;
        bottom: -120px;
        right: -120px;
        background: linear-gradient(45deg, #4ecdc4, #45b7d1);
        box-shadow: -180px -40px 0 0 rgba(69, 183, 209, 0.35), -260px 160px 0 0 rgba(255, 195, 0, 0.35);
    }

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid #f1f3f4;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .search-wrapper:focus-within { border-color: #6db4e8; box-shadow: 0 8px 30px rgba(109, 180, 232, 0.2); transform: translateY(-2px); }

.search-wrapper .search-icon { position: absolute; left: 20px; color: #9ca3af; font-size: 18px; z-index: 2; }
.search-wrapper .search-input { border: none !important; outline: none !important; box-shadow: none !important; padding: 20px 20px 20px 55px !important; font-size: 16px; background: transparent; flex: 1; }

.search-wrapper .search-btn {
    background: linear-gradient(135deg, #6db4e8 0%, #5ba3d6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    margin: 4px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #2c5aa0);
    border-radius: 15px;
}

.newsletter-icon-text { font-size: 32px; color: white; font-weight: bold; }
.newsletter-input { min-width: 200px; border: 1px solid #ddd; }
.btn-newsletter { background: #4a90e2; color: white; border: none; border-radius: 8px; padding: 8px 16px; }
    .btn-newsletter:hover { background: #357abd; color: white; }

@media (max-width: 768px) {
    .search-wrapper .search-input { padding: 16px 16px 16px 50px !important; }
    .newsletter-input { min-width: 150px; }
}

/* ---- Blog/Detail.cshtml ---- */
.blog-hero-section {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: none !important;
}

    .blog-hero-section::before,
    .blog-hero-section::after { display: none !important; content: none !important; }

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: none !important;
    background: none !important;
    display: block;
    position: relative;
    z-index: 1;
}

.blog-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #6db4e8;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.blog-title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: #1a1a1a; margin-bottom: 1rem; }
.blog-excerpt { font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.5rem; }
.blog-meta { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.meta-item { color: #6c757d; font-size: 0.9rem; }
.blog-content { font-size: 1.1rem; line-height: 1.8; color: #333; margin-bottom: 3rem; }
    .blog-content p { margin-bottom: 1.5rem; }
    .blog-content h2 { font-size: 1.8rem; font-weight: 600; margin: 2.5rem 0 1.5rem 0; color: #1a1a1a; }
    .blog-content h3 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 1rem 0; color: #1a1a1a; }
    .blog-content ul { margin-bottom: 1.5rem; }
    .blog-content li { margin-bottom: 0.5rem; }

.blog-tags-section { padding: 2rem 0; border-top: 1px solid #e9ecef; margin-bottom: 2rem; }
.tags-title { font-weight: 600; margin-bottom: 1rem; color: #1a1a1a; }
.tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.blog-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

    .blog-tag:hover { background: #e9ecef; color: #495057; }

.blog-sidebar { position: sticky; top: 2rem; }

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.widget-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; color: #1a1a1a; }
.related-articles { display: flex; flex-direction: column; }
.related-article { border-bottom: 1px solid #f1f3f4; }
    .related-article:last-child { border-bottom: none; padding-bottom: 0; }
.related-title a { color: #1a1a1a; text-decoration: none; font-weight: 500; line-height: 1.4; display: block; margin-bottom: 0.5rem; }
    .related-title a:hover { color: #6db4e8; }
.related-meta { display: flex; gap: 1rem; font-size: 0.85rem; }
.related-category { color: #6db4e8; font-weight: 500; }
.related-date { color: #6c757d; }

.cta-widget { background: linear-gradient(135deg, #6db4e8 0%, #5a9fd8 100%); color: white; text-align: center; }
    .cta-widget .widget-title { color: white; }
.cta-text { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #6db4e8;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .cta-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); color: #5a9fd8; }

.ad-widget { background: #f8f9fa; border: 1px solid #e9ecef; position: relative; }

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(108, 117, 125, 0.8);
    color: white;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ad-content { position: relative; }
.ad-image { width: 100%; height: 150px; object-fit: cover; border-radius: 8px 8px 0 0; }
.ad-text { padding: 1rem; }
.ad-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: #1a1a1a; }
.ad-description { font-size: 0.9rem; color: #6c757d; margin-bottom: 1rem; }

.ad-button {
    display: inline-block;
    padding: 8px 16px;
    background: #6db4e8;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .ad-button:hover { background: #5a9fd8; color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(109, 180, 232, 0.3); }

@media (max-width: 992px) { .blog-sidebar { position: static; margin-top: 3rem; } }

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-hero-section { border-radius: 0; margin: 0; }
    .blog-hero-img { border-radius: 0; }
}

@media (max-width: 768px) {
    .blog-hero-section { height: 200px; }
    .blog-title { font-size: 2rem; }
    .blog-excerpt { font-size: 1.1rem; }
    .blog-meta { flex-direction: column; gap: 0.5rem; }
}

/* ---- Blog/_BlogListPartial.cshtml ---- */
.blog-card-img { height: 200px; object-fit: cover; }
.pagination-btn { text-decoration: none; transition: opacity 0.2s ease; }
.pagination-number { text-decoration: none; }
.disabled-link { pointer-events: none; opacity: 0.5; }

/* ---- Dictionary/Index.cshtml ---- */
.dictionary-hero {
    overflow: hidden;
    background-image: url(/img/frontend/construction_1200x600.jpg);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

    .dictionary-hero::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(90deg, rgba(21,101,192,0.98) 0%, rgba(21,101,192,0.85) 40%, rgba(21,101,192,0.6) 70%, rgba(21,101,192,0.3) 100%);
        z-index: 1;
    }

    .dictionary-hero > .container { position: relative; z-index: 2; }

.dictionary-hero .hero-content { max-width: 600px; position: relative; z-index: 2; }
.dictionary-hero .hero-title { color: #ffffff; font-weight: 700; }
.dictionary-hero .hero-subtitle { color: rgba(255, 255, 255, 0.85); font-weight: 400; line-height: 1.6; }

.dictionary-filter-btn {
    background: #6db4e8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dictionary-reset-btn {
    background: white;
    color: #6c757d;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alphabet-nav-top-border { border-top: 1px solid #f1f3f4; }
.filter-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); padding: 1.5rem; }
.min-vh-50 { min-height: 50vh; }

.hero-text-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: white;
}

.search-container { max-width: 600px; }

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .search-input-wrapper:hover { box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
    .search-input-wrapper:focus-within { box-shadow: 0 12px 48px rgba(109, 180, 232, 0.3); transform: translateY(-2px); }

.search-input-wrapper .search-icon { position: absolute; left: 20px; color: #6db4e8; font-size: 1.1rem; z-index: 2; }

.search-input-wrapper .search-input {
    border: none !important;
    background: transparent !important;
    padding: 16px 60px 16px 50px !important;
    font-size: 1.1rem;
    color: #2c3e50;
    border-radius: 12px !important;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}

.search-input-wrapper .search-btn {
    background: linear-gradient(135deg, #6db4e8 0%, #1976d2 100%);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .search-input-wrapper .search-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(109, 180, 232, 0.4); }

.source-info { border-top: 1px solid #f8f9fa; padding-top: 12px; margin-top: 12px; }
.alphabet-nav-proper { display: flex; align-items: center; flex-wrap: wrap; max-width: 100%; }
.alphabet-label { font-size: 0.75rem; font-weight: 500; color: #6c757d; white-space: nowrap; }
.alphabet-link-active { color: #6db4e8; background-color: rgba(109, 180, 232, 0.1); text-decoration: none; }

.alphabet-link-small {
    display: inline-block;
    padding: 2px 6px;
    margin: 0 1px;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s ease;
}

    .alphabet-link-small:hover { color: #6db4e8; background-color: rgba(109, 180, 232, 0.1); text-decoration: none; }

.form-select:focus,
.form-control:focus { border-color: #6db4e8; box-shadow: 0 0 0 0.2rem rgba(109, 180, 232, 0.25); }

.btn-outline-primary:hover { background-color: #6db4e8; border-color: #6db4e8; }
.card-title { font-weight: 600; }

.pagination .page-link { color: #6db4e8; border: 1px solid #dee2e6; border-radius: 8px; margin: 0 2px; padding: 8px 12px; transition: all 0.2s ease; }
    .pagination .page-link:hover { background-color: #6db4e8; border-color: #6db4e8; color: white; transform: translateY(-1px); }
.pagination .page-item.active .page-link { background-color: #6db4e8; border-color: #6db4e8; color: white; }
.pagination .page-item.disabled .page-link { color: #6c757d; background-color: #f8f9fa; border-color: #dee2e6; }

@media (max-width: 768px) {
    .alphabet-nav-proper { margin-top: 12px !important; padding-top: 8px !important; }
    .alphabet-label { font-size: 0.7rem; margin-bottom: 4px; width: 100%; }
    .alphabet-link-small { font-size: 0.7rem; padding: 1px 4px; margin: 1px; }
    .search-input-wrapper .search-input { padding: 14px 50px 14px 45px !important; font-size: 1rem; }
    .search-input-wrapper .search-icon { left: 16px; font-size: 1rem; }
    .search-input-wrapper .search-btn { width: 44px; height: 44px; }
}

@media (max-width: 767.98px) {
    .btn-outline-primary[data-bs-toggle="collapse"] { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 8px; transition: all 0.3s ease; }
    .btn-outline-primary[data-bs-toggle="collapse"]:hover { background-color: rgba(109, 180, 232, 0.1); transform: translateY(-1px); }
    .btn-outline-primary[data-bs-toggle="collapse"] .fa-chevron-down { transition: transform 0.3s ease; }
    .btn-outline-primary[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
}

@media (max-width: 480px) {
    .badge { max-width: 120px; font-size: 0.7rem; padding: 0.3em 0.4em; }
    .badge.bg-secondary { display: none; }
}

/* ---- Dictionary/_DictionaryResults.cshtml ---- */
.term-card-clickable { cursor: pointer; }
.badge-category { background-color: #6db4e8; color: #fff; }
.source-icon { font-size: 0.7rem; }
.source-badge { font-size: 0.65rem; }
.no-underline { text-decoration: none; }

.pager-row {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .pager-row::-webkit-scrollbar { display: none; }
    .pager-row > a, .pager-row > span { flex: 0 0 auto; }

@media (max-width: 576px) {
    .pager-row > a, .pager-row > span { padding: .35rem .6rem !important; font-size: .9rem; }
}

/* ---- Dictionary/Detail.cshtml ---- */
.block-content { font-size: 1.1rem; line-height: 1.8; color: #333; margin-bottom: 3rem; }
.side-bar { position: sticky; top: 2rem; }
@media (max-width: 992px) { .side-bar { position: static; margin-top: 3rem; } }

/* ---- Calculator/Index.cshtml ---- */
#calculatorLoader { display: none; }
.category-title { font-weight: 600; }
.modern-icon--discover { background: rgba(255, 255, 255, 0.2); }

.category-card {
    transition: all 0.2s ease;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    min-height: 120px;
}

    .category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: #dee2e6; }

.discover-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; }
    .discover-card h5, .discover-card h6, .discover-card p { color: white; }

.signup-btn { background: white; color: #667eea; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; }

.search-container .search-input {
    border-radius: 50px;
    border: 2px solid #e9ecef;
    padding: 15px 25px;
    font-size: 1.1rem;
    background: white;
}

    .search-container .search-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.search-container .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #0d6efd;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

    .search-container .search-btn:hover {
        background: #0a58ca;
        transform: translateY(-50%) scale(1.05);
    }

@media (min-width: 992px) {
    .col-lg-custom { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-custom-double { flex: 0 0 auto; width: 33.333333%; }
    .search-container { margin-left: auto; margin-right: 0; }
    .dictionary-hero .search-container { margin-left: 0; margin-right: auto; }
}

@media (max-width: 991.98px) {
    .col-lg-custom, .col-lg-custom-double { flex: 0 0 auto; width: 33.333333%; }
    .search-container { margin: 0 auto; margin-top: 2rem; }
}

@media (max-width: 575.98px) {
    .col-lg-custom, .col-lg-custom-double { flex: 0 0 auto; width: 50%; }
}

/* ---- Calculator/Category.cshtml ---- */
.breadcrumb { background: none; padding: 0; margin-bottom: 1.5rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #6c757d; }
.breadcrumb-item a { color: #3b82f6; text-decoration: none; }
.breadcrumb-item.active { color: #6c757d; }

.category-header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: left !important;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.calculator-card { transition: all 0.2s ease; cursor: pointer; }
    .calculator-card:hover { border-color: #3b82f6 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.calculator-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.related-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

    .related-icon:hover { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }

.calculator-link { color: #4f46e5 !important; text-decoration: none; font-weight: 400; }
    .calculator-link:hover { color: #3730a3 !important; text-decoration: underline; }

/* ---- Calculator/Detail.cshtml ---- */
.simple-card-transition { opacity: 1; transform: translateY(0px); transition: opacity 0.6s, transform 0.6s; }
.simple-card-shadow { box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px; }
#validationResults { display: none; }

.dataset-param {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

    .dataset-param .form-label { color: #495057; font-weight: 500; margin-bottom: 0.25rem; }

.dataset-row-select,
.dataset-column-select { transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }

    .dataset-row-select:focus,
    .dataset-column-select:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }

.dataset-preview {
    background-color: #d1ecf1;
    border-left: 3px solid #0c5460;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

    .dataset-preview .dataset-value-display { color: #0c5460; font-family: 'Courier New', monospace; font-size: 1.05em; font-weight: 600; }

.icon-circle.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }
.calculator-tool .simple-card { background: #f8fafc; border: 1px solid #e2e8f0; }
.result-display { background: white; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1.25rem; font-weight: 600; padding: 6px; }
.result-value { color: #1e40af; font-size: 1.75rem; }
.result-value.result-value--text { font-size: 1rem; font-weight: 500; line-height: 1.6; text-align: left; }
.formula-list { list-style: none; padding: 0; }
.formula-code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0.5rem 0.75rem; font-family: 'Courier New', monospace; font-size: 0.875rem; }
.result-item { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; }
    .result-item:last-child { border-bottom: none; padding-bottom: 0; }

.validation-alert { border-radius: 8px; border: 1px solid; padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
    .validation-alert.success { background-color: #f0f9ff; border-color: #0ea5e9; color: #0c4a6e; }
    .validation-alert.warning { background-color: #fffbeb; border-color: #f59e0b; color: #92400e; }

.tags-section { padding: 2rem 0; border-top: 1px solid #e9ecef; margin-bottom: 2rem; }
.content-tag { display: inline-block; padding: 6px 12px; background: #f8f9fa; color: #495057; border-radius: 15px; font-size: 0.85rem; text-decoration: none; border: 1px solid #e9ecef; transition: all 0.2s ease; }
    .content-tag:hover { background: #e9ecef; color: #495057; }
.content-tags-section { padding: 2rem 0; }

/* ---- Source/Sources.cshtml ---- */
#loader { display: none; }
#noResults { display: none; }
.no-results-icon { font-size: 3rem; }
.nordpass-reset { all: initial !important; }
.hover-lift { transition: all 0.3s ease; }
    .hover-lift:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important; }
.usage-badge { font-size: 0.875rem; color: #6c757d; }
    .usage-badge i { font-size: 0.875rem; }

/* ---- Source/_Detail.cshtml ---- */
.source-modal-card-animated { opacity: 1; transform: translateY(0px); transition: opacity 0.6s, transform 0.6s; box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px; }
.icon-circle.source { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }

.usage-stats-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

    .stat-box:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.stat-icon-new { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; flex-shrink: 0; }
    .stat-icon-new.blue { background: #3b82f6; }
    .stat-icon-new.green { background: #10b981; }
    .stat-icon-new.cyan { background: #06b6d4; }

.stat-content { flex: 1; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: #1f2937; margin-bottom: 0.25rem; line-height: 1; }
.stat-label { font-size: 0.875rem; color: #6b7280; margin: 0; }

.source-items-list { display: flex; flex-direction: column; gap: 0.75rem; }

.source-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .source-item-link:hover { background: white; border-color: #e5e7eb; transform: translateX(4px); }

.source-item-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; font-size: 1.125rem; }
    .source-item-icon.blue-icon { background: #3b82f6; }
    .source-item-icon.green-icon { background: #10b981; }
    .source-item-icon.cyan-icon { background: #06b6d4; }

.source-item-content { flex: 1; }
.source-item-title { font-size: 0.9375rem; font-weight: 500; color: #1f2937; margin-bottom: 0.25rem; transition: color 0.2s; }
    .source-item-link:hover .source-item-title { color: #3b82f6; }
.source-item-meta { font-size: 0.8125rem; color: #6b7280; margin: 0; }

#sourceUsageAccordion .accordion-button { color: #1f2937; font-size: 0.9375rem; font-weight: 500; }
    #sourceUsageAccordion .accordion-button i { font-size: 1.125rem; color: #60a5fa; width: 1.5rem; text-align: center; }
    #sourceUsageAccordion .accordion-button:not(.collapsed) { background-color: transparent; color: #1f2937; }
        #sourceUsageAccordion .accordion-button:not(.collapsed) i { color: #3b82f6; }
    #sourceUsageAccordion .accordion-button:hover { background-color: #f9fafb; border-radius: 8px; }
    #sourceUsageAccordion .accordion-button:focus { border-color: transparent; box-shadow: none; }
    #sourceUsageAccordion .accordion-button::after { width: 1.25rem; height: 1.25rem; background-size: 1.25rem; }
#sourceUsageAccordion .accordion-item { border-bottom: 1px solid #f3f4f6 !important; margin-bottom: 0.5rem; }
    #sourceUsageAccordion .accordion-item:last-child { border-bottom: none !important; margin-bottom: 0; }

/* ---- Shared/_ShareButtons.cshtml ---- */
.content-share-section { padding: 2rem 0; border-top: 1px solid #e9ecef; }
.share-title { font-weight: 600; margin-bottom: 1rem; color: #1a1a1a; }
.share-buttons { display: flex; gap: 1rem; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; font-size: 1.1rem; }
    .share-btn.whatsapp { background: #25D366; color: white; }
    .share-btn.twitter { background: #1DA1F2; color: white; }
    .share-btn.email { background: #6c757d; color: white; }
    .share-btn.link { background: #f8f9fa; color: #495057; border: 1px solid #e9ecef; }
    .share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.share-btn-link-reset { background: none; border: 0; cursor: pointer; }
.copy-toast { display: none; margin-top: 8px; }

/* ---- Shared/Partials/_Modal.cshtml ---- */
#page-loader { width: 100%; height: 6px; background: #dee2e6; overflow: hidden; z-index: 2000; }
.loader-shine { height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #0d6efd, transparent); animation: shine 1s linear infinite; }

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ---- Shared/Partials/LoginForm.cshtml ---- */
.login-icon-user { font-size: 2rem; }
.is-hidden { display: none; }

/* ---- Shared/Error.cshtml ---- */
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-not-found-a { fill: #1a2030; }
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-not-found-b { fill: black; opacity: 0.07; }
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-not-found-c { fill: #454c5e; }
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-not-found-d { fill: #232b41; }

@media (prefers-color-scheme: dark) {
    .tblr-illustrations-not-found-a { fill: #1a2030; }
    .tblr-illustrations-not-found-b { fill: black; opacity: 0.07; }
    .tblr-illustrations-not-found-c { fill: #454c5e; }
    .tblr-illustrations-not-found-d { fill: #232b41; }
}

/* ---- Shared/_MetaDataWidget.cshtml ---- */
.accordion-button { color: #1f2937; font-size: 0.9375rem; font-weight: 500; padding: 1rem 0; }
    .accordion-button i { font-size: 1.25rem; color: #60a5fa; width: 1.5rem; text-align: center; }
    .accordion-button:not(.collapsed) { background-color: transparent; color: #1f2937; }
        .accordion-button:not(.collapsed) i { color: #3b82f6; }
    .accordion-button:hover { background-color: #f9fafb; border-radius: 8px; }
    .accordion-button:focus { border-color: transparent; box-shadow: none; }
    .accordion-button::after { width: 1.25rem; height: 1.25rem; background-size: 1.25rem; }

.accordion-item { border-bottom: 1px solid #f3f4f6 !important; margin-bottom: 0.5rem; }
    .accordion-item:last-child { border-bottom: none !important; margin-bottom: 0; }

.accordion-body .list-group-item { transition: all 0.2s ease; }
    .accordion-body .list-group-item:hover { background-color: #f9fafb; border-radius: 6px; padding-left: 0.5rem !important; }
    .accordion-body .list-group-item h6 { color: #1f2937; transition: color 0.2s; }
    .accordion-body .list-group-item:hover h6 { color: #3b82f6; }

/* ---- Faq/Faq.cshtml ---- */
.hero-subtitle { font-size: 1.25rem; font-weight: 400; margin-top: 1.5rem; }
.faq-icon-info { color: #3b82f6; }
.faq-icon-content { color: #10b981; }
.faq-icon-tools { color: #f59e0b; }
.faq-icon-contact { color: #6366f1; }
.faq-category { margin-bottom: 3rem; }
.faq-category .category-title { font-size: 1.75rem; font-weight: 600; color: #1f2937; display: flex; align-items: center; }

.accordion-item { border: 1px solid #e5e7eb; border-radius: 8px !important; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-button { font-size: 1rem; font-weight: 500; color: #1f2937; background-color: #f9fafb; padding: 1rem 1.25rem; }
    .accordion-button:not(.collapsed) { background-color: #eff6ff; color: #1e40af; border-bottom: 1px solid #e5e7eb; }
    .accordion-button:focus { box-shadow: none; border-color: #e5e7eb; }
    .accordion-button::after { margin-left: auto; }

.accordion-body { padding: 1.25rem; font-size: 0.9375rem; line-height: 1.7; color: #4b5563; }
    .accordion-body p:last-child { margin-bottom: 0; }
    .accordion-body ul { padding-left: 1.25rem; }
    .accordion-body li { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .faq-category .category-title { font-size: 1.5rem; }
    .accordion-button { font-size: 0.9375rem; padding: 0.875rem 1rem; }
    .accordion-body { padding: 1rem; font-size: 0.875rem; }
}

/* ---- AboutUs/AboutUs.cshtml ---- */
.about-lead { font-size: 1.125rem; line-height: 1.8; }
.about-text { font-size: 1.0625rem; line-height: 1.8; }
.feature-icon-blue { background: #dbeafe; color: #3b82f6; }
.feature-icon-green { background: #dcfce7; color: #10b981; }
.feature-icon-indigo { background: #e0e7ff; color: #6366f1; }
.cta-description { font-size: 1.0625rem; }
.about-section { margin-bottom: 3rem; }
.feature-card { text-align: center; padding: 1.5rem; }

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-title { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; }
.feature-text { font-size: 0.9375rem; color: #6b7280; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .feature-card { padding: 1rem; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 1rem; }
    .feature-title { font-size: 1rem; }
    .feature-text { font-size: 0.875rem; }
}

/* ---- Legal pages (Privacy, Terms, Disclaimer, Cookie, Collaboration) ---- */
.hero-last-updated { font-size: 1.25rem; font-weight: 400; margin-top: 1.5rem; }
.hero-updated-text { font-size: 1.25rem; font-weight: 400; margin-top: 1.5rem; }

.legal-intro {
    padding: 2rem;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

    .legal-intro .lead { font-size: 1.0625rem; line-height: 1.7; color: #475569; margin: 0; }

.legal-section { margin-bottom: 2.5rem; }
    .legal-section h2 { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; }
    .legal-section h3 { font-size: 1.125rem; font-weight: 600; color: #374151; margin-bottom: 0.75rem; }
    .legal-section p { font-size: 1rem; line-height: 1.8; color: #4b5563; margin-bottom: 1rem; }
    .legal-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
    .legal-section li { font-size: 1rem; line-height: 1.8; color: #4b5563; margin-bottom: 0.5rem; }
    .legal-section a { color: #3b82f6; text-decoration: none; }
        .legal-section a:hover { color: #2563eb; text-decoration: underline; }

.legal-contact { margin-top: 3rem; padding: 2rem; background: #eff6ff; border-radius: 8px; text-align: center; }
    .legal-contact h3 { font-size: 1.25rem; font-weight: 600; color: #1e40af; margin-bottom: 0.5rem; }
    .legal-contact p { font-size: 1rem; color: #475569; margin: 0; }

.cookie-category { padding: 1.25rem; background: #f9fafb; border-radius: 8px; border-left: 3px solid #10b981; }
    .cookie-category h4 { font-size: 1rem; font-weight: 600; color: #1f2937; margin-bottom: 0.5rem; }
    .cookie-category p { font-size: 0.9375rem; color: #6b7280; margin: 0; }

.cookie-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
    .cookie-table thead { background: #f3f4f6; }
    .cookie-table th { padding: 0.75rem; text-align: left; font-size: 0.875rem; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; }
    .cookie-table td { padding: 0.75rem; font-size: 0.9375rem; color: #4b5563; border-bottom: 1px solid #e5e7eb; }
    .cookie-table code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.875rem; color: #1f2937; }

@media (max-width: 768px) {
    .legal-intro { padding: 1.5rem; }
    .legal-section h2 { font-size: 1.25rem; }
    .legal-section h3 { font-size: 1.0625rem; }
    .legal-section p, .legal-section li { font-size: 0.9375rem; }
    .cookie-table { font-size: 0.875rem; }
    .cookie-table th, .cookie-table td { padding: 0.5rem; }
}

/* ---- Home/Search.cshtml ---- */
.calc-category-badge { display: inline-block; background: #dbeafe; color: #5b7fc7; padding: 0.4rem 0.85rem; border-radius: 6px; font-size: 0.8125rem; font-weight: 500; margin-bottom: 1.25rem; }
.calc-title { color: #5b7fc7; font-size: 1.375rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.4; }
.calc-description { color: #6b7280; font-size: 0.9375rem; margin-bottom: 1.75rem; line-height: 1.6; }

.calc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #93c5fd;
    background: white;
    color: #5b7fc7;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

    .calc-button:hover { background: #eff6ff; border-color: #5b7fc7; color: #4c67a8; transform: translateX(2px); }

.term-card { background: white; border: 1px solid #e3e8ef; border-radius: 8px; transition: all 0.2s ease; }
    .term-card:hover { border-color: #6db4e8; box-shadow: 0 2px 8px rgba(109, 180, 232, 0.1); }
.result-section .term-card { padding: 2rem; }
.result-section .term-title { font-size: 1.125rem; font-weight: 600; }

.term-badges { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.term-number-badge { display: inline-flex; align-items: center; justify-content: center; background: #6c757d; color: white; width: 32px; height: 32px; border-radius: 50%; font-size: 0.875rem; font-weight: 600; }
.term-category-badge { display: inline-block; background: #6db4e8; color: white; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 500; }
.term-definition { color: #495057; font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.term-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid #e3e8ef; color: #6c757d; font-size: 0.9rem; }
.sources-label { font-weight: 600; margin-right: 0.5rem; }
.source-link { color: #495057; text-decoration: none; transition: color 0.2s ease; }
    .source-link:hover { color: #5b7fc7; text-decoration: underline; }
    .source-link:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 12px; background: #dee2e6; margin-left: 0.75rem; }

.filter-title { font-size: 1.25rem; font-weight: 600; color: #212529; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #dee2e6; }
.filter-section { margin-bottom: 1.5rem; }
.filter-label { font-weight: 600; color: #495057; margin-bottom: 0.5rem; display: block; font-size: 0.875rem; }
.filter-options { display: flex; flex-direction: column; gap: 0.5rem; }
.form-check-label { cursor: pointer; font-size: 0.9rem; color: #495057; }
.filter-actions { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dee2e6; }

.quick-links-card { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.quick-links-title { font-size: 1.1rem; font-weight: 600; color: #212529; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #dee2e6; }
.quick-link { display: flex; align-items: center; padding: 0.75rem; color: #495057; text-decoration: none; border-radius: 4px; transition: all 0.2s ease; margin-bottom: 0.25rem; }
    .quick-link:hover { background: #f8f9fa; color: #212529; padding-left: 1rem; }

.results-header { background: white; border-radius: 8px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.results-title { font-size: 1.5rem; font-weight: 600; color: #212529; margin-bottom: 0.5rem; }
.highlight-query { color: #0d6efd; }
.results-count { color: #6c757d; margin-bottom: 0; font-size: 0.95rem; }
.no-results-card { background: white; border-radius: 8px; padding: 3rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.result-section { margin-bottom: 3rem; }
.section-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #dee2e6; }

.section-icon-large { width: 60px; height: 60px; background: #e3f2fd; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
    .section-icon-large.bg-success-light { background: #e8f5e9; }
    .section-icon-large.bg-info-light { background: #e7f5ff; }

.section-icon-small { width: 30px; height: 30px; background: #e3f2fd; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
    .section-icon-small.bg-success-light { background: #e8f5e9; }
    .section-icon-small.bg-info-light { background: #e7f5ff; }

.section-title { font-size: 1.5rem; font-weight: 600; color: #212529; margin-bottom: 0.25rem; }
.bg-primary-subtle { background-color: #e3f2fd !important; }
.bg-success-subtle { background-color: #e8f5e9 !important; }
.bg-info-subtle { background-color: #e7f5ff !important; }

@media (max-width: 991px) { .filter-card { margin-bottom: 2rem; } }

/* ---- Home/_SearchResults.cshtml ---- */
.blog-thumb { width: 100%; height: 180px; object-fit: cover; }
.blog-title-link { color: #4f46e5; }
