/* 
 * Salary After Tax Calculator - Modern Styles 
 * Color Palette: Emerald Green, Deep Blue, Clean White
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #2c3e50;
    --accent-color: #f1c40f;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Navigation Updated */
header {
    background: linear-gradient(135deg, var(--secondary-color), #34495e);
    color: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a,
.dropbtn {
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 10px 0;
}

.nav-links a:hover,
.dropbtn:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Contact Button */
.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 25px !important;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.5);
    background-color: var(--primary-dark) !important;
}

/* Hero Banner Split Design */
.hero-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%), url('https://www.transparenttextures.com/patterns/cubes.png');
    padding: 80px 0 120px;
    /* Extra bottom padding to blend */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content-left {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content-left h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content-left h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero-content-left p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 450px;
}

.btn-primary-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Animations */
.animated-title {
    animation: fadeInUp 1s ease-out;
}

/* Text Highlight Effect */
.typing-text {
    display: inline-block;
    border-bottom: 5px solid var(--accent-color);
}

/* Hero Right Side - Floating Shapes */
.hero-content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 400px;
    align-items: center;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.shape i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 30%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Calculator Section - Separate */
.calculator-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    margin-top: -60px;
    /* Slight overlap for modern look, or 0 if separate */
    position: relative;
    z-index: 10;
}

.section-badge {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    /* Center Badge */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Calculator Card Styling */
.calculator-card {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    overflow: hidden;
    color: var(--text-dark);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease-out;
}

.calc-header {
    background-color: var(--white);
    /* White header for cleaner look */
    color: var(--secondary-color);
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.calc-header h2 {
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.calc-inputs {
    padding: 40px;
    border-right: 1px solid #eee;
}

.calc-results {
    padding: 40px;
    background-color: #f8fcf9;
    /* Very light green tint */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: bold;
}

input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    padding-left: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: #fff;
}

select {
    padding-left: 15px;
}

input[type="number"]:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.btn-calc {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
}

.btn-calc:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(46, 204, 113, 0.3);
}

/* Results Styling */
.result-box {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px dashed #e0e0e0;
}

.result-box span {
    font-size: 1.1rem;
    color: #7f8c8d;
    display: block;
    margin-bottom: 5px;
}

.result-box h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
}

.tax-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.text-danger {
    color: #e74c3c;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    padding: 60px 0;
    background-color: var(--white);
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    margin-top: 40px;
    position: relative;
    padding-bottom: 10px;
}

.article-body h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.article-body ul {
    list-style: none;
    margin-bottom: 25px;
}

.article-body ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.article-body ul li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Categories Section Preview */
.categories-preview {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.category-card ul {
    text-align: left;
    margin-top: 15px;
}

.category-card li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* FAQ Section */
.faq-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Footer Enhanced */
footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-top {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-box p {
    color: #95a5a6;
    margin-bottom: 20px;
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: rotate(360deg);
}

.newsletter-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.newsletter-box::after {
    content: '\f199';
    /* FontAwesome Envelope */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.05;
    color: var(--white);
    font-weight: 900;
}

.newsletter-box h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 
========================================
BLOG PAGE STYLES 
========================================
*/

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-icon-wrapper {
    height: 180px;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Blog listing (blog.html tabs & post cards) - base */
.blog-tabs-wrapper {
    padding: 40px 0 0;
}

.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-tab-btn {
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-tab-btn i {
    margin-right: 8px;
}

.blog-tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.blog-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.blog-tab-content {
    display: none;
}

.blog-tab-content.active {
    display: block;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.blog-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-post-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-post-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card .card-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-post-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-post-card .card-excerpt {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.blog-post-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-post-card .card-link:hover {
    gap: 12px;
}

.tab-category-header {
    text-align: center;
    margin-bottom: 35px;
}

.tab-category-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.tab-category-header p {
    color: #666;
    font-size: 1rem;
}

/* Active Nav State */
.nav-links a.active-nav {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-links a.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        margin-top: 10px;
    }

    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* ========================================
   MOBILE MENU & OVERLAY
   ======================================== */

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    display: none;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }

    .calc-inputs {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-content-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content-right {
        height: 300px;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .newsletter-box {
        padding: 20px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .hero-content-left h1 {
        font-size: 2.2rem;
    }

    .hero-banner {
        padding: 50px 0 80px;
    }

    /* ---- Mobile Navigation Drawer ---- */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #1a252f;
        padding: 0;
        gap: 0;
        z-index: 1060;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: stretch;
    }

    .nav-links.mobile-active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Close button */
    .nav-links .mobile-nav-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        color: #fff;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .nav-links .mobile-nav-close:hover,
    .nav-links .mobile-nav-close:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* Drawer header area with branding */
    .nav-links::before {
        content: 'Menu';
        display: flex;
        align-items: center;
        width: 100%;
        height: 70px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 24px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
        background: rgba(0, 0, 0, 0.15);
    }

    /* All nav links styling inside drawer */
    .nav-links > a,
    .nav-links > .dropdown > .dropbtn {
        display: flex !important;
        align-items: center;
        width: 100%;
        text-align: left;
        padding: 16px 24px;
        font-size: 1.05rem;
        font-weight: 500;
        color: #ecf0f1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.2s ease, color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        background: none;
    }

    .nav-links > a:hover,
    .nav-links > a:active {
        background: rgba(46, 204, 113, 0.12) !important;
        color: var(--primary-color) !important;
    }

    /* Contact button inside drawer */
    .nav-links > .btn-contact {
        margin: 24px !important;
        text-align: center;
        display: block !important;
        padding: 14px 25px !important;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        width: auto;
        border-bottom: none !important;
        background: var(--primary-color) !important;
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    }

    .nav-links > .btn-contact:hover {
        background: var(--primary-dark) !important;
    }

    /* ---- Mobile Dropdown (Categories) ---- */
    .dropdown {
        width: 100%;
        display: block !important;
    }

    .nav-links > .dropdown > .dropbtn {
        justify-content: space-between;
        cursor: pointer;
        padding: 16px 24px !important;
    }

    .nav-links > .dropdown > .dropbtn:hover {
        background: rgba(46, 204, 113, 0.12) !important;
        color: var(--primary-color) !important;
    }

    .nav-links > .dropdown > .dropbtn i {
        transition: transform 0.3s ease;
        font-size: 0.7rem;
        opacity: 0.5;
        margin-left: auto;
    }

    .dropdown.mobile-open > .dropbtn {
        background: rgba(46, 204, 113, 0.08) !important;
        color: var(--primary-color) !important;
    }

    .dropdown.mobile-open > .dropbtn i {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Kill ALL desktop hover behavior on mobile */
    .dropdown:hover .dropdown-content {
        display: none !important;
    }

    /* Mobile dropdown panel */
    .dropdown-content {
        position: static !important;
        background: rgba(0, 0, 0, 0.25) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: 100% !important;
        width: 100% !important;
        animation: none !important;
        display: none !important;
        overflow: hidden;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .dropdown.mobile-open .dropdown-content {
        display: block !important;
    }

    /* Dropdown items */
    .dropdown-content a {
        color: #bdc3c7 !important;
        padding: 14px 24px 14px 44px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        display: flex !important;
        align-items: center;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
        position: relative;
    }

    .dropdown-content a::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        position: absolute;
        left: 26px;
        transition: background 0.2s ease;
    }

    .dropdown-content a:last-child {
        border-bottom: none !important;
    }

    .dropdown-content a:hover,
    .dropdown-content a:active {
        background: rgba(46, 204, 113, 0.1) !important;
        color: var(--primary-color) !important;
        padding-left: 48px !important;
    }

    .dropdown-content a:hover::before,
    .dropdown-content a:active::before {
        background: var(--primary-color) !important;
    }

    /* Show hamburger */
    .mobile-menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo scaling for mobile */
    .logo img {
        height: 38px !important;
    }

    /* ---- Footer responsive ---- */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: 20px;
        font-size: 0.8rem;
    }

    .social-icons {
        margin-bottom: 10px;
    }

    /* Calculator responsive */
    .calculator-section {
        padding: 40px 0;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .calculator-card {
        padding: 0;
    }

    .calc-inputs,
    .calc-results {
        padding: 25px;
    }

    /* Blog grid & cards (category listing pages) */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 0;
    }

    .blog-card .blog-content {
        padding: 18px;
    }

    .blog-card .blog-icon-wrapper {
        height: 150px;
        font-size: 3rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-content p {
        font-size: 0.9rem;
    }

    /* Blog detail (all blogs/* folder pages) */
    .blog-detail-hero {
        padding: 100px 0 50px;
    }

    .blog-detail-hero h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .blog-content-section {
        padding: 40px 0;
    }

    .blog-main-content {
        padding: 24px;
        border-radius: 16px;
    }

    .blog-main-content h2 {
        font-size: 1.5rem;
        margin: 30px 0 16px;
    }

    .blog-main-content h3 {
        font-size: 1.25rem;
        margin: 24px 0 12px;
    }

    .breadcrumb {
        font-size: 0.88rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .blog-meta {
        gap: 16px;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .featured-image {
        margin-bottom: 24px;
        border-radius: 14px;
    }

    .info-box {
        padding: 18px;
        margin: 24px 0;
    }

    .sidebar-card {
        padding: 22px;
    }

    .sidebar-card h3 {
        font-size: 1.1rem;
    }

    /* Blog listing (blog.html tabs) */
    .blog-tabs-wrapper {
        padding: 24px 0 0;
    }

    .blog-tabs {
        gap: 6px;
        margin-bottom: 24px;
    }

    .blog-tab-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 40px;
    }

    .blog-post-card .card-body {
        padding: 18px;
    }

    .blog-post-card .card-img {
        height: 180px;
    }

    .blog-post-card .card-title {
        font-size: 1.05rem;
    }

    .tab-category-header h2 {
        font-size: 1.5rem;
    }

    .tab-category-header p {
        font-size: 0.9rem;
    }

    /* Categories section */
    .category-grid {
        grid-template-columns: 1fr;
    }

    .categories-preview {
        padding: 40px 0;
    }

    /* FAQ section */
    .faq-section {
        padding: 40px 0;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Main content */
    .main-content {
        padding: 40px 0;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content-left h1 {
        font-size: 1.8rem;
    }

    .hero-banner {
        padding: 35px 0 60px;
    }

    .hero-buttons .btn-primary-outline {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .logo img {
        height: 32px !important;
    }

    /* Footer: keep 3 columns in one row, just tighter */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .footer-column h4 {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .footer-column h4::after {
        width: 25px;
        height: 2px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        font-size: 0.78rem;
    }

    .footer-top {
        padding: 30px 0 25px;
        gap: 20px;
    }

    .footer-logo-box p {
        font-size: 0.85rem;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 0.75rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        border-radius: 50px;
    }

    .newsletter-form button {
        border-radius: 50px;
        padding: 12px 25px;
    }

    /* Blog detail (all blogs/* folders) - smallest screens */
    .blog-detail-hero {
        padding: 80px 0 32px;
    }

    .blog-detail-hero h1 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .blog-content-section {
        padding: 28px 0;
    }

    .blog-main-content {
        padding: 16px;
        border-radius: 12px;
    }

    .blog-main-content h2 {
        font-size: 1.2rem;
        margin: 24px 0 12px;
        padding-bottom: 8px;
    }

    .blog-main-content h3 {
        font-size: 1.05rem;
        margin: 20px 0 10px;
    }

    .blog-main-content p,
    .blog-main-content li {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .blog-main-content ul,
    .blog-main-content ol {
        margin: 14px 0;
        padding-left: 20px;
    }

    .featured-image {
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .info-box {
        padding: 14px;
        margin: 18px 0;
        border-radius: 0 8px 8px 0;
    }

    .info-box h4 {
        font-size: 1rem;
    }

    .key-takeaways {
        padding: 16px;
        margin: 20px 0;
        border-radius: 10px;
    }

    .key-takeaways h3 {
        font-size: 1rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .blog-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .blog-sidebar {
        margin-top: 28px;
    }

    .sidebar-card {
        padding: 16px;
        margin-bottom: 18px;
    }

    .sidebar-card h3 {
        font-size: 1rem;
    }

    .sidebar-list a {
        font-size: 0.88rem;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Blog grid & cards - smallest screens */
    .blog-grid {
        gap: 16px;
    }

    .blog-card .blog-content {
        padding: 14px;
    }

    .blog-card .blog-icon-wrapper {
        height: 120px;
        font-size: 2.5rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-content p {
        font-size: 0.85rem;
    }

    .read-more {
        font-size: 0.88rem;
    }

    /* Blog listing (blog.html) - smallest screens */
    .blog-tabs {
        gap: 4px;
        margin-bottom: 20px;
    }

    .blog-tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .blog-tab-btn i {
        margin-right: 4px;
    }

    .blog-posts-grid {
        gap: 16px;
        padding-bottom: 32px;
    }

    .blog-post-card .card-img {
        height: 160px;
    }

    .blog-post-card .card-body {
        padding: 14px;
    }

    .blog-post-card .card-category {
        font-size: 0.72rem;
    }

    .blog-post-card .card-title {
        font-size: 1rem;
    }

    .blog-post-card .card-excerpt {
        font-size: 0.85rem;
    }

    .blog-post-card .card-link {
        font-size: 0.85rem;
    }

    .tab-category-header h2 {
        font-size: 1.3rem;
    }

    .tab-category-header p {
        font-size: 0.85rem;
    }

    /* Calculator on smallest screens */
    .calc-inputs,
    .calc-results {
        padding: 18px;
    }

    .result-box.main-result h3 {
        font-size: 1.8rem;
    }

    /* Page hero */
    .page-hero {
        padding: 70px 0 100px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Stats section */
    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stats-section {
        padding: 50px 0;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    /* Vision cards */
    .vision-card {
        padding: 25px;
    }

    .vision-section {
        padding: 60px 0;
    }

    /* Story section */
    .story-content {
        padding-left: 25px;
    }

    .story-content h2 {
        font-size: 1.8rem;
    }

    .story-lead {
        font-size: 1.15rem;
    }

    /* Category calculator card */
    .category-calculator-card {
        padding: 25px;
        margin-top: -50px;
    }

    .category-calculator-card h3 {
        font-size: 1.5rem;
    }

    /* Contact page */
    .contact-wrapper {
        padding: 20px;
    }

    .contact-info-panel {
        padding: 25px;
    }

    /* Feature grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: 25px 20px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Content section blocks */
    .content-section-block {
        padding: 60px 0;
    }

    .text-col h2 {
        font-size: 1.8rem;
    }
}

/* 
    ========================================
    ABOUT & CONTACT PAGE ENHANCEMENTS 
    ========================================
*/

/* Enhanced Hero Section for Inner Pages */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e3c72 100%);
    padding: 100px 0 140px;
    /* Extra bottom padding for overlap */
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.page-hero h1 {
    font-size: 3.5rem;
    /* Larger font */
    margin-bottom: 15px;
    font-weight: 800;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Overlap Container Effect */
.overlap-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

/* Feature Grid (for "Why Trust Us") */
.feature-section {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.mission-text {
    flex: 1;
    min-width: 300px;
}

.mission-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.mission-text h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 5px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
    border-radius: 5px;
}

.mission-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.visual-card i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Contact Page Specifics */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-form-refined h3 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-floating input,
.form-floating textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-floating input:focus,
.form-floating textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    outline: none;
}

/* Responsive adjustments for about/contact */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mission-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .mission-text {
        min-width: auto;
    }

    .mission-visual {
        min-width: auto;
    }

    .mission-text h2 {
        font-size: 1.8rem;
    }

    .overlap-container {
        margin-top: -40px;
        margin-bottom: 30px;
    }

    .feature-section {
        padding: 50px 0;
    }

    .mission-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .contact-wrapper {
        padding: 15px;
    }

    .contact-form-refined h3 {
        font-size: 1.4rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .page-hero {
        padding: 70px 0 100px;
    }
}

/* 
    ========================================
    CATEGORIES & CALCULATOR STYLING 
    ========================================
*/

/* Refined Category Calculator Styling */
.category-calculator-card {
    background: var(--white);
    border-radius: 20px;
    /* Softer corners */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Deeper shadow */
    padding: 40px;
    margin-top: -80px;
    position: relative;
    z-index: 20;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-top: 6px solid var(--primary-color);
    border-bottom: 6px solid var(--white);
    /* Visual balance */
    transition: transform 0.3s ease;
}

.category-calculator-card:hover {
    transform: translateY(-5px);
}

.category-calculator-card h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.category-calculator-card p {
    font-size: 1.05rem;
}

/* Enhancing inputs within category cards */
.category-calculator-card input,
.category-calculator-card select {
    background: #f4f6f8;
    border: 2px solid #e1e4e8;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.category-calculator-card input:focus,
.category-calculator-card select:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    /* Glow effect */
}

.category-calculator-card label {
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* 
   ========================================
   TESTIMONIALS & STATS SECTIONS
   ========================================
*/

/* Stats Section Refined */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: -webkit-linear-gradient(#fff, #bdc3c7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    opacity: 0.9;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ecf0f1;
}

/* Content Section Blocks Refined */
.content-section-block {
    padding: 100px 0;
    background-color: var(--white);
}

.content-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.text-col {
    flex: 1;
}

.text-col h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.text-col h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.text-col p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.text-col ul {
    margin-top: 25px;
}

.text-col ul li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    color: #444;
}

.text-col ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card-small {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visual-card-small:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.visual-card-small h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #f9fbfd;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.user-avatar i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
}

.user-info h4 {
    color: var(--secondary-color);
    margin-bottom: 2px;
    font-size: 1.05rem;
    font-weight: 600;
}

.user-info span {
    font-size: 0.9rem;
    color: #888;
}

/* 
   ========================================
   ABOUT PAGE: STORY & VISION REDESIGN
   ========================================
*/

/* Story Section - Dark & Editorial */
.story-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-left: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.story-marker {
    position: absolute;
    left: -26px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.2);
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.story-lead {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.story-lead .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Vision Section - Card Grid */
.vision-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.section-header.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vision-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vision-card:hover::after {
    transform: scaleX(1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.vision-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(5deg);
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.vision-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Responsive Content Layout */
@media (max-width: 900px) {

    .content-row,
    .content-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .text-col h2::after {
        margin: 15px auto 0;
    }

    .text-col ul li {
        text-align: left;
        display: inline-block;
    }

    .visual-card-small {
        padding: 30px;
    }

    .stat-item h3 {
        font-size: 2.8rem;
    }

    .story-section {
        padding: 60px 0;
    }

    .testimonials-section {
        padding: 70px 0;
    }

    .vision-section {
        padding: 70px 0;
    }

    .content-section-block {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .content-row,
    .content-row.reverse {
        gap: 25px;
    }

    .text-col h2 {
        font-size: 1.8rem;
    }

    .visual-card-small {
        padding: 25px;
        max-width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 
   ========================================
   BLOG DETAIL PAGE STYLES 
   ========================================
*/

.blog-detail-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    position: relative;
    color: var(--white);
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.blog-detail-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-detail-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.blog-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.blog-main-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-main-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.blog-main-content h2:first-child {
    margin-top: 0;
}

.blog-main-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.blog-main-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.blog-main-content ul,
.blog-main-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-main-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.info-box {
    background: #eaffee;
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: var(--secondary-color);
    color: var(--white);
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    background: var(--white);
    color: #555;
}

.data-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f1f2f6;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/*
   ========================================
   BLOG INNER PAGES RESPONSIVE
   (blogs/tax-deduction, salary-insights,
    financial-planing, employement-guide)
   ========================================
*/

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .blog-sidebar {
        position: static !important;
        margin-top: 40px;
    }

    .blog-detail-hero {
        padding: 100px 0 50px;
    }

    .blog-detail-hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .blog-content-section {
        padding: 40px 0;
    }

    .blog-main-content {
        padding: 28px !important;
        border-radius: 16px;
    }

    .blog-main-content h2 {
        font-size: 1.5rem;
        margin: 28px 0 14px;
    }

    .blog-main-content h3 {
        font-size: 1.25rem;
        margin: 22px 0 12px;
    }

    .blog-main-content .lead {
        font-size: 1.05rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        padding: 90px 0 44px;
    }

    .blog-detail-hero h1 {
        font-size: 1.65rem;
    }

    .blog-detail-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .category-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .blog-meta {
        gap: 14px;
        font-size: 0.88rem;
        flex-wrap: wrap;
    }

    .blog-content-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-main-content {
        padding: 22px !important;
    }

    .blog-main-content h2 {
        font-size: 1.35rem;
    }

    .blog-main-content h3 {
        font-size: 1.15rem;
    }

    .blog-main-content p,
    .blog-main-content li {
        font-size: 0.95rem;
    }

    .featured-image {
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .featured-image img {
        max-width: 100%;
        height: auto;
    }

    .info-box {
        padding: 18px;
        margin: 22px 0;
    }

    .key-takeaways {
        padding: 22px;
        margin: 28px 0;
    }

    .sidebar-card {
        padding: 20px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-detail-hero {
        padding: 80px 0 32px;
    }

    .blog-detail-hero h1 {
        font-size: 1.38rem;
        line-height: 1.3;
    }

    .blog-detail-hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .blog-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .blog-content-section {
        padding: 28px 0;
    }

    .blog-content-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .blog-layout {
        gap: 24px;
    }

    .blog-main-content {
        padding: 16px !important;
        border-radius: 12px;
    }

    .blog-main-content h2 {
        font-size: 1.2rem;
        margin: 22px 0 10px;
        padding-bottom: 8px;
    }

    .blog-main-content h3 {
        font-size: 1.05rem;
        margin: 18px 0 8px;
    }

    .blog-main-content p,
    .blog-main-content li {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .blog-main-content .lead {
        font-size: 0.95rem;
    }

    .blog-main-content ul,
    .blog-main-content ol {
        margin: 12px 0;
        padding-left: 20px;
    }

    .featured-image {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .info-box {
        padding: 14px;
        margin: 16px 0;
        border-radius: 0 8px 8px 0;
    }

    .info-box h4 {
        font-size: 1rem;
    }

    .key-takeaways {
        padding: 16px;
        margin: 20px 0;
        border-radius: 10px;
    }

    .key-takeaways h3 {
        font-size: 1rem;
    }

    .data-table {
        font-size: 0.82rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .sidebar-card {
        padding: 16px;
        margin-bottom: 18px;
    }

    .sidebar-card h3 {
        font-size: 1rem;
    }

    .sidebar-list a {
        font-size: 0.88rem;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* Ensure no horizontal overflow on blog pages */
@media (max-width: 768px) {
    .blog-content-section {
        overflow-x: hidden;
    }

    .blog-main-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .blog-main-content table {
        display: block;
        overflow-x: auto;
    }
}

/* 
   ========================================
   CONTENT EXPANSION & SIDEBAR STYLES
   ========================================
*/

/* Key Takeaways Box */
.key-takeaways {
    background: #eefbf3;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.key-takeaways h3 {
    color: var(--primary-dark);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-takeaways ul {
    margin: 15px 0 0 !important;
    list-style: none !important;
    padding: 0 !important;
}

.key-takeaways li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.key-takeaways li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Sidebar Trending List */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-list a {
    display: block;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    line-height: 1.5;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-list span {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* Sidebar Highlight Card (Tax Tip) */
.highlight-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.highlight-card h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.btn-light {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}