:root {
    --primary-color: #0066CC;
    --secondary-color: #00A3CC;
    --accent-color: #FF6B35;
    --success-color: #00C851;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A3CC 100%);
    --gradient-card: linear-gradient(135deg, #00A3CC 0%, #0066CC 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8A50 100%);
    --shadow-soft: 0 10px 25px rgba(0,102,204,0.1);
    --shadow-hover: 0 20px 40px rgba(0,102,204,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Hero Section */
/*.hero-section {*/
/*    background: var(--gradient-primary);*/
/*    min-height: 100vh;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

.hero-section {
  background-color: hsla(210,100%,40%,1);
  background-image:
    radial-gradient(at 51% 0%, hsla(139,87%,73%,1) 0px, transparent 50%),
    radial-gradient(at 52% 98%, hsla(189,100%,56%,1) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(242,100%,70%,1) 0px, transparent 50%);
  background-size: 200% 200%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  animation: moveGradient 12s ease-in-out infinite alternate;
}

@keyframes moveGradient {
  0% {
    background-position: 0% 0%, 50% 100%, 100% 100%;
  }
  50% {
    background-position: 30% 20%, 70% 80%, 90% 50%;
  }
  100% {
    background-position: 50% 0%, 100% 100%, 80% 70%;
  }
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Calculator Cards */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-card);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.calculator-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.card-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
    color: white;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Special styling for financial calculators */
.financial-card .card-icon {
    background: linear-gradient(135deg, #00C851 0%, #00A876 100%);
}

.business-card .card-icon {
    background: var(--gradient-accent);
}

/* Loading Animation */
/*.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}*/

 /* Header Styles */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 102, 204, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0, 102, 204, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.navbar-brand:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 1rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Footer Styles */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

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

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 991px) {
    .search-box {
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Breadcrumb */
.breadcrumb-custom {
    background: rgba(0, 102, 204, 0.05);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-color);
}

/* Category Cards Styling */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-card);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.category-tools {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
}

.category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tool-tag {
        font-size: 0.75rem;
    }
}
 .view-btn {
    background: rgb(0 154 204);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all ease 0.3s ;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

/* ==== REPETITIVE CALCULATOR STYLES ==== */

/* Tool Header Styles - Reusable for all calculators */
.tool-header {
    padding: 2rem 0;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Widget Styles - Common for all tools */
.calculator-widget {
    position: relative;
    margin: -3rem 0 4rem;
    z-index: 10;
}

.widget-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.widget-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.widget-title i {
    margin-right: 0.5rem;
}

.widget-body {
    padding: 2rem;
}

/* Form Elements - Standardized across all calculators */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}


/* Calculate Button - Universal style */
.btn-calculate {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Result Card Styles - Common result display */
.result-card {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.result-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Content Section - Standardized content area */
.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.tool-page .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-content {
    color: var(--dark-color);
    line-height: 1.7;
}

.section-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-content h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.section-content ul, .section-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-title {
        font-size: 2rem;
    }
    
    .widget-body {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    .navbar-custom {
        padding: 5px 0;
    }
}

@media (max-width: 576px) {
    .tool-title {
        font-size: 1.8rem;
    }
    
    .widget-header {
        padding: 1rem 1.5rem;
    }
    
    .widget-body {
        padding: 1rem;
    }
}


.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0F2FE, #EFF6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto; */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-wrapper img,
.icon-wrapper i {
    font-size: 36px;
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
    color: #0284c7; /* Tailwind sky-600 */
}

.category-card:hover .icon-wrapper {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.icon-wrapper img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}


    /* FAQ Section */
#faqAccordion .accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

#faqAccordion .accordion-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

#faqAccordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    background: #f9f9f9;
    padding: 1rem 1.25rem;
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    box-shadow: none;
}

#faqAccordion .accordion-button.collapsed {
    background: #fff;
    color: #444;
}

#faqAccordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);; /* Bootstrap primary */
    color: #fff;
}

#faqAccordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

#faqAccordion .accordion-body {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    background: #fff;
}

/* Smooth transition for collapse */
#faqAccordion .accordion-collapse {
    transition: all 0.3s ease-in-out;
}

.suggested-tool {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 14px;
}
.suggested-tool:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.suggested-tool .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}