:root {
    --budget-primary: #553c9a;
    --budget-secondary: #805ad5;
    --budget-accent: #38b2ac;
    --budget-success: #48bb78;
    --budget-text-light: #ffffff;
    --navbar-gradient: linear-gradient(135deg, var(--budget-primary), var(--budget-secondary));
    --budget-text-dark: #1a202c;
    --navbar-bg: var(--budget-primary);
    --navbar-text: #ffffff;
    --budget-warning: #ecc94b;
    --budget-danger: #f56565;
    --budget-light: #f7fafc;
    --budget-dark: #2d3748;
    --budget-text: #4a5568;
    --budget-card-shadow: 0 4px 6px rgba(85, 60, 154, 0.1);
    --budget-gradient: linear-gradient(135deg, var(--budget-primary) 0%, var(--budget-secondary) 100%);
}

body {
    background: linear-gradient(135deg, #2d3748, #553c9a);
}

.navbar {
    background: var(--navbar-gradient) !important;
    box-shadow: 0 4px 20px rgba(85, 60, 154, 0.25);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--budget-text-light) !important;
    font-weight: 600;
}

.navbar .nav-link {
    color: var(--budget-text-light) !important;
    opacity: 0.9;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .search-container {
    position: relative;
    max-width: 300px;
}

@media (max-width: 768px) {
    .navbar .search-container {
        max-width: 100%;
        margin: 0.5rem 0;
    }
}

.navbar .search-container input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--budget-text-light);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 20px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 16px; /* Prevents iOS zoom on focus */
}

@media (max-width: 768px) {
    .navbar .search-container input {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        border-radius: 8px;
    }
}

.navbar .search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .navbar .search-container input::placeholder {
        color: rgba(255, 255, 255, 0.9);
    }
}

.navbar .search-container input:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .navbar .search-container input:focus {
        background: rgba(255, 255, 255, 0.3);
    }
}

.navbar .search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--budget-text-light);
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navbar .search-container button:hover {
    opacity: 1;
}

.budget-hero {
    background: url('https://imagedelivery.net/qP-vMxs4vvTYjIRlzT0GOQ/9e3b8e6f-8f7d-4f5c-7900-4b12a7492200/public') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 4rem;
}

.budget-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 60, 154, 0.9), rgba(56, 178, 172, 0.8));
    backdrop-filter: blur(3px);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--budget-text-light);
    text-align: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

.hero-content .hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.nav-link .icon-hidden {
    display: inline-block !important;
}
.hero-content .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.budget-card {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--budget-card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    color: var(--budget-text-dark);
    position: relative;
}

.budget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(85, 60, 154, 0.15);
}

.budget-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--budget-accent);
}

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

.budget-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.budget-card .card-title a {
    color: var(--budget-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.budget-card .card-title a:hover {
    color: var(--budget-accent);
}

.budget-card .badge {
    background: var(--budget-gradient);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.budget-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 95%, var(--budget-accent) 95%);
    opacity: 0.1;
    pointer-events: none;
}
.category-title {
    color: var(--budget-text-light);
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.category-title::after {
    background: var(--budget-accent);
    height: 3px;
    width: 80px;
}

.trust-indicators {
    background: var(--budget-light);
    padding: 3rem 0;
}

.trust-indicators {
    text-align: center;
    padding: 1.5rem;
    color: var(--budget-text-light);
}

.trust-indicators i {
    color: var(--budget-text-light);
    background: rgba(56, 178, 172, 0.2);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--navbar-gradient) !important;
    color: var(--budget-text-light);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--budget-text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--budget-accent);
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--budget-accent);
    text-decoration: none;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.budget-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(56, 178, 172, 0.1), transparent 70%);
    border-radius: 16px;
}

.hero-content .search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    max-width: 100%;
    margin: 1rem auto;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

@media (min-width: 768px) {
    .hero-content .search-container {
        max-width: 600px;
        padding: 1.5rem;
        margin: 2rem auto;
    }
}

.hero-content .search-container form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero-content .search-container form {
        flex-direction: row;
    }
}

.hero-content .search-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 16px;
    color: var(--budget-text-dark);
    transition: all 0.3s ease;
    width: 100%;
}

.hero-content .search-container input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(85, 60, 154, 0.1);
}

.hero-content .search-container button {
    background: var(--budget-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content .search-container button {
        width: auto;
        padding: 1rem 2rem;
        border-radius: 12px;
    }
}

.hero-content .search-container button:hover {
    background: var(--budget-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 60, 154, 0.2);
}

@media (max-width: 767px) {
    .hero-content .search-container button:hover {
        transform: none;
    }
}

.category-section {
    position: relative;
}

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

/* Category Single Page */
.category-single {
    padding: 2rem 0;
}

.category-single h1 {
    color: var(--budget-text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.category-single .category-description {
    color: var(--budget-text-light);
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.category-single .subcategories h2 {
    color: var(--budget-text-light);
    font-weight: 600;
}

.category-single .card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
    transition: all 0.3s ease;
}

.category-single .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(85, 60, 154, 0.15);
}

/* Author Profile Page */
.author-profile {
    color: var(--budget-text-light);
}

.author-profile .card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
    overflow: hidden;
}

.author-profile .card-body {
    padding: 2rem;
}

.author-profile .rounded-circle {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--budget-accent);
    box-shadow: var(--budget-card-shadow);
}

/* Search Results Page */
.search-results h1 {
    color: var(--budget-text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.search-results .search-query {
    color: var(--budget-text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-results .search-query strong {
    color: var(--budget-accent);
}

.search-results-article {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--budget-card-shadow);
    transition: all 0.3s ease;
}

/* Article Single Page */
.article-single {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
    margin-bottom: 2rem;
}

.article-single h1 {
    color: var(--budget-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 1.5rem;
}

.article-single .article-excerpt {
    color: var(--budget-secondary);
    font-size: 1.2rem;
    border-left: 4px solid var(--budget-accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* Breadcrumbs Styles */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    color: var(--budget-text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--budget-text-light);
    opacity: 0.6;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.75rem;
    transition: all 0.3s ease;
}

.breadcrumb-item a {
    color: var(--budget-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--budget-accent);
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--budget-accent);
    opacity: 1;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-item.active {
    color: var(--budget-accent);
    opacity: 1;
}

/* Article page specific breadcrumb styles */
.article-single .breadcrumb-item {
    color: var(--budget-text-dark);
}

.article-single .breadcrumb-item + .breadcrumb-item::before {
    color: var(--budget-text-dark);
}

.article-single .breadcrumb-item a {
    color: var(--budget-primary);
}

.article-single .breadcrumb-item a:hover {
    color: var(--budget-accent);
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* Calculator Widgets */
.calculator-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--budget-card-shadow);
    margin-bottom: 2rem;
}

.calculator-widget h3 {
    color: var(--budget-text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.calculator-result {
    background: var(--budget-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Static Pages Styles */
.page-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
    margin: 2rem 0;
}

.page-content h1 {
    color: var(--budget-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--budget-accent);
    padding-bottom: 1rem;
}

.page-content .content {
    color: var(--budget-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-content h2 {
    color: var(--budget-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.page-content h3 {
    color: var(--budget-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

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

.page-content ul, 
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--budget-text);
}

.page-content a {
    color: var(--budget-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-content a:hover {
    color: var(--budget-primary);
    text-decoration: underline;
}

.page-content blockquote {
    border-left: 4px solid var(--budget-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--budget-secondary);
}

/* About Page Specific Styles */
.about-page .team-section {
    margin-top: 3rem;
}

.about-page .team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.about-page .team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--budget-accent);
    box-shadow: var(--budget-card-shadow);
}

.about-page .team-member h3 {
    color: var(--budget-text-light);
    margin-bottom: 0.5rem;
}

.about-page .team-member p {
    color: var(--budget-text-light);
    opacity: 0.9;
}

/* Privacy & Terms Pages */
.privacy-page .section,
.terms-page .section {
    margin-bottom: 3rem;
}

.privacy-page .section h2,
.terms-page .section h2 {
    color: var(--budget-text-light);
    border-bottom: 2px solid var(--budget-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.privacy-page .section p,
.terms-page .section p {
    color: var(--budget-text-light);
    opacity: 0.9;
    line-height: 1.8;
}

/* Contact Page */
.contact-page .contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
    margin-bottom: 2rem;
}

.contact-page .contact-info i {
    color: var(--budget-accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-page .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--budget-card-shadow);
}

.contact-page .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
}

.contact-page .form-control:focus {
    border-color: var(--budget-accent);
    box-shadow: 0 0 0 0.2rem rgba(56, 178, 172, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content h3 {
        font-size: 1.2rem;
    }
    
    .page-content .content {
        font-size: 1rem;
    }
    
    .about-page .team-member img {
        width: 120px;
        height: 120px;
    }
}

.category-card {
    text-decoration: none;
}

.category-card .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .category-card .card {
        margin-bottom: 0.5rem;
    }
}

.category-card .card-body {
    padding: 1.25rem;
    text-align: center;
}

@media (max-width: 768px) {
    .category-card .card-body {
        padding: 1rem;
    }
}

.category-card i {
    font-size: 1.75rem;
    color: var(--budget-accent);
    margin-bottom: 0.75rem;
    background: rgba(56, 178, 172, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .category-card i {
        font-size: 2.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.category-card:hover .card {
    transform: translateY(-3px);
    border-color: var(--budget-accent);
}

@media (max-width: 768px) {
    .category-card:hover .card {
        transform: translateY(-2px);
    }
}

.category-card:hover i {
    transform: scale(1.05);
    background: rgba(56, 178, 172, 0.2);
}

.category-card h3 {
    color: var(--budget-text-light);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .category-card h3 {
        font-size: 1.25rem;
    }
}