
[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --secondary-blue: #1e40af;
    --accent-gold: #fbbf24;
    --light-gold: #78350f;
    --dark-text: #f3f4f6;
    --light-text: #9ca3af;
    --light-bg: #111827;
    --cream: #1f2937;
    --border-color: #374151;
}

body {
    color: var(--dark-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.75;
    overflow-x: hidden !important;
    width: 100%; 
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Prevent all horizontal scroll issues */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}


/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(45, 55, 72, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue);
}

.navbar-brand span {
    color: var(--accent-gold);
}

.whyus {
    background: linear-gradient(rgba(60, 100, 150, 0.6), rgba(60, 100, 150, 0.6));
}

.nav-link {
    margin: 0 10px;
    transition: color 0.3s;
    color: var(--dark-text);
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

.navbar-nav .nav-item .nav-link{
    border: 2px solid transparent;
}

.navbar-nav .nav-item .nav-link:hover{
    color: var(--accent-gold); 
    border-bottom: 2px solid var(--accent-gold);
}

.navbar-nav .nav-item .active{
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}
/* Blog Hero Header */
.blog-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 58, 95, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    margin-bottom: 1.5rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin-top: 2.5rem;
}

/* Blog Filter Section */
.blog-filter {
    padding: 3rem 0;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-color);
}

.filter-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    display: block;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background-color: white;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

[data-theme="dark"] .search-box input {
    background-color: #2d3748;
    border-color: #4a5568;
}

.search-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .blog-card {
    background: #2d3748;
    border-color: #4a5568;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.blog-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--light-gold);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--dark-text);
}

.blog-card-excerpt {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--accent-gold);
}

.read-more-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-blue);
    gap: 0.75rem;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.featured-post .blog-card {
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

/* Pagination */
.pagination-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-text);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

[data-theme="dark"] .page-link {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.page-link:hover, .page-link.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 50px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: white;
}

.newsletter-btn {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 50px;
}

.newsletter-btn:hover {
    background-color: #b8941f;
    border-color: #b8941f;
    color: white;
    transform: translateY(-2px);
}

/* Footer - Consistent with other pages */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 70px 0 20px;
}

.footer h5 {
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-gold);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .blog-card,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .page-link {
    background-color: #2d3748;
}

[data-theme="dark"] .filter-btn {
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--light-text);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Additional styles for consistent card heights */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

[data-theme="dark"] .blog-card {
    background-color: #2d3748;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.blog-card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}



.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
    flex: 0 0 auto;
}

.blog-card-excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-link {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    margin-top: auto;
    flex-shrink: 0;
}

.read-more-link:hover {
    color: var(--accent-gold);
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--light-text);
}

.featured-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}
