/* =========================================
   1. THEME VARIABLES (Updated for Glassmorphism)
   ========================================= */
:root {
  /* LIGHT THEME */
  --bg-body: #f8f9fa; 
  --bg-card: rgba(255, 255, 255, 0.65); /* 65% opacity white */
  --bg-nav: rgba(255, 255, 255, 0.75);
  --text-main: #334155;        
  --text-muted: #64748b;      
  --text-heading: #1e293b;     
  --border-color: rgba(255, 255, 255, 0.4); /* Subtle white border */
  --primary: #2563eb;        
  --secondary: #10b981;     
  --radius: 20px; /* Slightly rounder for glass effect */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  /* DARK THEME */
  --bg-body: #0f172a;        
  --bg-card: rgba(30, 41, 59, 0.4); /* 40% opacity dark blue */
  --bg-nav: rgba(15, 23, 42, 0.7);
  --text-main: #cbd5e1;        
  --text-muted: #94a3b8;       
  --text-heading: #e2e8f0;     
  --border-color: rgba(255, 255, 255, 0.1); /* Faint white border */
  --primary: #00f2fe;        
  --secondary: #39ff14;     
  --shadow-lg: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Deeper shadow for depth */
}


/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Force High Contrast in Light Mode */
body:not([data-theme="dark"]) { color: #1e293b; }

h1, h2, h3, h4, h5, h6 { color: var(--text-heading) !important; letter-spacing: -0.5px; }
.text-muted { color: var(--text-muted) !important; }
a:not(.btn):not(.nav-link):not(.dropdown-item) { color: var(--primary); text-decoration: none; }

/* Background Animation */
.bg-animation-wrapper {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -10; overflow: hidden; background-color: var(--bg-body); pointer-events: none;
}
.bg-shape {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: floatAnimation 20s infinite alternate ease-in-out;
}
.shape-1 { top: -10%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--primary), transparent 70%); opacity: 0.1; }
.shape-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--secondary), transparent 70%); animation-delay: -5s; opacity: 0.1; }
.shape-3 { top: 40%; left: 30%; width: 40vw; height: 40vw; background: radial-gradient(circle, #a855f7, transparent 70%); animation-delay: -10s; opacity: 0.08; }
[data-theme="dark"] .bg-shape { filter: blur(120px); opacity: 0.25; }
@keyframes floatAnimation { 0% { transform: translate(0, 0); } 100% { transform: translate(20px, -30px); } }

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Navbar */
.navbar-modern { background-color: var(--bg-nav); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-color); z-index: 1000; }
[data-theme="dark"] .navbar-modern {
  background: linear-gradient(117deg, #fbf7f7 0%, #00000057 100%) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-link { color: var(--text-main) !important; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* Cards & Containers (Glassmorphism Update) */
.tech-card, .card-theme, .calculator-card {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  
  /* The Frost Effect */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%); /* For Safari */
  
  /* Glass Borders */
  border: 1px solid var(--border-color);
  border-top: 1px solid rgba(255, 255, 255, 0.3); /* Top highlight */
  
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Hover Effect for Cards */
.tech-card:hover, .card-theme:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: var(--primary); /* Glow border on hover */
}

/* Ensure text remains readable in Light Mode */
body:not([data-theme="dark"]) .tech-card, 
body:not([data-theme="dark"]) .card-theme { 
    color: #1e293b !important; 
}

/* Buttons */
.btn-modern-primary { background-color: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 10px 30px; font-weight: 600; }
[data-theme="dark"] .btn-modern-primary { color: #000; }

/* Icons */
.icon-box {
  width: 60px; height: 60px; background: rgba(37, 99, 235, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem;
}
[data-theme="dark"] .icon-box { background: rgba(0, 242, 254, 0.1); box-shadow: 0 0 15px rgba(0, 242, 254, 0.15); }

/* =========================================
   4. HERO CARDS (THE STACKED LOOK)
   ========================================= */
.hero-card-1 { transform: rotate(-3deg); z-index: 3; }
.hero-card-2 { transform: rotate(2deg); margin-left: 40px; margin-top: -10px; z-index: 2; }
.hero-card-3 { transform: rotate(9deg); margin-left: 40px; margin-top: -10px; z-index: 1; }

/* =========================================
   5. FLOATING VIDEO PLAYER
   ========================================= */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0;
  border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* The Class JS adds when scrolling */
.video-floating iframe {
  position: fixed !important; bottom: 20px; right: 20px;
  width: 320px !important; height: 180px !important; z-index: 9999;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 2px solid var(--primary); animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =========================================
   6. MAPS & NEWS
   ========================================= */
/* Tabs */
.nav-pills .nav-link {
  color: var(--text-main); border: 1px solid var(--border-color);
  margin-right: 10px; border-radius: 50px; padding: 8px 25px; font-weight: 600;
}
.nav-pills .nav-link.active {
  background-color: var(--primary) !important; color: #fff !important; border-color: var(--primary);
}

/* Address */
.address-box {
  background: rgba(var(--primary), 0.05); border-left: 4px solid var(--primary);
  padding: 15px; margin-top: 15px; border-radius: 8px;
}
.address-text { color: var(--text-heading) !important; font-weight: 600; font-size: 1.05rem; }

/* Map Frame */
.map-frame { width: 100%; height: 400px; border: 0; border-radius: 16px; }

/* Floating Buttons */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; z-index: 1000; }
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================
   7. FINANCIAL CALCULATOR TOOLS
   ========================================= */

/* Main Container matching the theme */
.calculator-card {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Form Inputs & Selects */
.calculator-card input, 
.calculator-card select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px; /* Slightly smaller radius than card */
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calculator-card input:focus, 
.calculator-card select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Subtle glow */
}

/* Labels */
.calculator-card label {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

/* Action Buttons */
.btn-calc {
    background-color: var(--primary);
    color: #fff !important; /* Force white text */
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-calc {
    background-color: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-calc:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* Results Section Styling */
.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

/* Withdrawal Schedule Table Styling */
.schedule-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.schedule-table th {
    background-color: var(--bg-body);
    color: var(--text-heading);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border-color);
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.schedule-table tr:hover td {
    background-color: rgba(var(--primary), 0.02); /* Very subtle hover effect */
}

/* Scrollbar styling for the table */
.schedule-table-container::-webkit-scrollbar {
    width: 8px;
}
.schedule-table-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

/* =========================================
   8. TOGGLE SWITCH (iPhone Style)
   ========================================= */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.theme-switch {
  display: inline-block;
  height: 26px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 20px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Checked State (Dark Mode) */
input:checked + .slider {
  background-color: var(--primary); /* Uses your theme's blue color */
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Optional: Add icons inside the slider */
.slider-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
    pointer-events: none;
    transition: opacity 0.3s;
}
.icon-sun { left: 6px; opacity: 0; } /* Hidden by default */
.icon-moon { right: 6px; opacity: 1; }

input:checked + .slider .icon-sun { opacity: 1; }
input:checked + .slider .icon-moon { opacity: 0; }

/* =========================================
   9. DARK MODE DROPDOWNS
   ========================================= */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-main) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary) !important;
}

/* Fix for the triangular tip if present, or general borders */
[data-theme="dark"] .dropdown-divider {
    border-top-color: var(--border-color);
}
/* =========================================
   10. BUTTON VISIBILITY FIX
   ========================================= */
.btn-outline-secondary {
    color: var(--text-heading) !important; 
    border: 2px solid var(--border-color) !important; /* Made border thicker */
    background-color: transparent !important; /* Fixed 'frosted' typo */
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Specific rule for Dark Mode to make the button pop */
[data-theme="dark"] .btn-outline-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important; /* Brighter border */
}

.btn-outline-secondary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
/* =========================================
   11. DROPDOWN MENU FIX (Solid Backgrounds)
   ========================================= */
.dropdown-menu {
    /* Force solid white in light mode */
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .dropdown-menu {
    /* Force solid dark blue/gray in dark mode */
    background-color: #1e293b !important; 
    color: #cbd5e1 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Ensure links inside the dropdown are visible */
.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.1); /* Light blue hover */
    color: var(--primary) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(0, 242, 254, 0.1); /* Neon cyan hover */
}

/* =========================================
   12. MOBILE RESPONSIVENESS
   ========================================= */

/* Tablets and Mobile Phones (Below 992px) */
@media (max-width: 991px) {
    
    /* 1. Adjust Typography for smaller screens */
    h1.display-3, h1.display-4 {
        font-size: 2.5rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }

    /* 2. Fix Navbar alignment */
    .navbar-collapse {
        background-color: var(--bg-card);
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
        backdrop-filter: blur(20px); /* Ensure menu is readable over content */
    }
    
    .theme-switch-wrapper {
        margin: 20px 0; /* Add space around the toggle on mobile */
    }

    /* 3. Hide floating Hero elements that break layout on mobile */
    .bg-shape {
        opacity: 0.3; /* Dim background blobs on mobile for readability */
    }

    /* 4. Calculator Adjustments */
    .calculator-card {
        padding: 1.5rem; /* Reduce padding to save space */
    }
    
    .calculator-card input, .calculator-card select {
        font-size: 16px; /* Prevents iPhone zooming in when clicking input */
    }

    /* 5. Services Sidebar (Make it scroll horizontally on mobile) */
    .service-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .service-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    .service-nav .list-group-item {
        margin-right: 10px;
        display: inline-block;
        width: auto;
    }
}

/* Small Mobiles (Below 576px) */
@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Stack calculator buttons */
    .calculator-card .text-center {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn-calc, .btn-outline-calc {
        width: 100%;
        margin: 0 !important;
    }
}

/* =========================================
   13. DUAL CHART LAYOUT
   ========================================= */
.charts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.chart-box {
    flex: 1;
    min-width: 300px; /* Stacks on mobile */
    height: 320px;
    position: relative;
    padding: 10px;
    background: rgba(255,255,255,0.02); /* Very subtle backing */
    border-radius: 12px;
}

/* Social Icon Hover Effect */
.hover-primary:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.transition {
    transition: all 0.3s ease;
}

/* 4. Logo Coin Spin Animation */
    @keyframes spin-coin {
        0% { transform: rotateY(0deg); }
        100% { transform: rotateY(360deg); }
    }

    .rotating-logo {
        /* 3s is the speed. Lower number = faster spin */
        animation: spin-coin 5s linear infinite; 
        
        /* Ensures the 3D effect works smoothly */
        transform-style: preserve-3d;
    }

    .rotating-logo:hover {
        /* Stops the coin mid-spin on hover */
        animation-play-state: paused; 
        cursor: pointer;
    }
    
/* =========================================
   14. FOOTER STYLES (Unified Dark Design)
   ========================================= */

/* --- Base Footer Container --- */
.footer-section {
    padding-top: 70px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 10;
    
    /* FORCE DARK BACKGROUND FOR BOTH THEMES */
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); /* Deep Navy Gradient */
    color: #e2e8f0; /* Light Gray Text */
    
    /* Border to separate from content */
    border-top: 4px solid var(--primary); 
    
    transition: background-color 0.3s ease;
}

/* =========================================
   TEXT COLORS (Force Visible Light Text)
   ========================================= */

/* Make sure all text is light, regardless of theme */
.footer-section p, 
.footer-section a, 
.footer-section li,
.footer-section .text-white-50,
.footer-date {
    color: #cbd5e1 !important; /* Soft White/Gray */
}

/* Headings should be Pure White */
.footer-heading, 
.footer-post-title {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Links Hover Effect */
.footer-links a {
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ffffff !important; /* Bright White on Hover */
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--primary); /* Keep the primary color for icons */
}

/* =========================================
   DECORATIVE ELEMENTS
   ========================================= */

/* The Line Under Headings */
.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1); /* Subtle white line */
    margin-bottom: 25px;
    position: relative;
}

.footer-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 40px;
    background: var(--primary); /* Green/Blue Accent */
}

/* Social Boxes */
.social-box {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%; /* Circular */
    font-size: 0.9rem;
}

.social-box:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Recent Post Thumbs */
.post-thumb {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   COPYRIGHT AREA
   ========================================= */
.copyright-area {
    padding: 25px 0;
    margin-top: 60px;
    background-color: rgba(0, 0, 0, 0.2); /* Darker shade */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-area p {
    color: #94a3b8 !important; /* Slightly darker text for copyright */
    font-size: 0.85rem;
}
/* =========================================
   UPDATED DARK MODE STYLES
   (Fixes Unreadable Text & Bright Inputs)
   ========================================= */

/* 1. Frosted Glass Cards */
html[data-theme="dark"] .calculator-card,
html[data-theme="dark"] .inner-card,
html[data-theme="dark"] .card {
    background-color: rgba(30, 30, 30, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* 2. Fix Table Visibility & Backgrounds (The White Text Fix) */
html[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f0f0f0;
    --bs-table-border-color: rgba(255, 255, 255, 0.2);
    color: #f0f0f0 !important; /* Bright text */
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th {
    background-color: transparent !important; /* Remove white background */
    color: #f0f0f0 !important; /* Force bright text */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Fix "bg-light" & "bg-white" containers in Dark Mode */
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .table-light,
html[data-theme="dark"] .table-light th, 
html[data-theme="dark"] .table-light td {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Dark glass */
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix for Table Headers specifically */
html[data-theme="dark"] .table thead th {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 3. Dark Inputs (Dark Grey instead of Stark White) */
html[data-theme="dark"] .form-control, 
html[data-theme="dark"] .input-group-text, 
html[data-theme="dark"] select.form-select {
    background-color: #2b2b2b !important; /* Dark Grey Background */
    color: #ffffff !important;             /* White Text */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Style the "Income (₹)" label part slightly lighter */
html[data-theme="dark"] .input-group-text {
    background-color: #3a3a3a !important; 
    color: #e0e0e0 !important;
}

/* Placeholder text color */
html[data-theme="dark"] .form-control::placeholder {
    color: #adb5bd;
}

/* 4. Text Contrast Fixes */
html[data-theme="dark"] h1, html[data-theme="dark"] h2, 
html[data-theme="dark"] h3, html[data-theme="dark"] h4, 
html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] label, html[data-theme="dark"] .fw-bold {
    color: #ffffff !important;
}

/* Make muted text lighter */
html[data-theme="dark"] .text-muted {
    color: #cccccc !important;
}

/* 5. Recommendation Boxes in Dark Mode */
html[data-theme="dark"] .alert-success,
html[data-theme="dark"] .winner-box {
    background-color: rgba(25, 135, 84, 0.25) !important;
    color: #75b798 !important;
    border: 1px solid rgba(25, 135, 84, 0.5);
}

/* 6. Fix "Tax in New Regime" Box */
html[data-theme="dark"] .inner-card {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* =========================================
   CUSTOM: COMPACT SERVICE BOXES
   ========================================= */
   .tech-card.service-mini {
    padding: 1.25rem !important; /* Reduced from 2rem */
}

/* Make the icon smaller and reduce space below it */
.tech-card.service-mini .icon-box {
    width: 45px;   /* Reduced from 60px */
    height: 45px;  /* Reduced from 60px */
    font-size: 1.1rem;
    margin-bottom: 0.75rem; /* Reduced from 1.5rem */
}

/* Adjust Heading Size */
.tech-card.service-mini h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Adjust Text Size */
.tech-card.service-mini p.small {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
}