/* ===== GLOBAL STYLES ===== */
/* CSS Custom Properties (Variables) - Global */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --accent: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #2a3036;
  --black: #000;
  --success: #4cc9f0;
  --border-radius: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7ff;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Global Button Styles */
.btn {
  display: inline-block;
  /* background: var(--primary); */
  /* color: white; */
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: #e11574;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== HEADER & NAVIGATION STYLES ===== */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
a.logo {
  text-decoration: none;
  color: var(--light);
}
.logo i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--success);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--success);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Dropdown Styles */

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
  padding: 1rem 0;
  background-color: var(--light);
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
}

.breadcrumb-item {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--gray);
}

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

.breadcrumb-item a:hover {
  text-decoration: underline;
}

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

/* ===== MAIN CONTENT STYLES ===== */
main {
  padding: 2rem 0;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--dark);
  max-width: 600px;
  font-size: 1.1rem;
  margin: 0 auto;
}

/* ===== CALCULATOR SECTION STYLES ===== */
.calculator-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ===== RELATED TOOLS SECTION STYLES ===== */
.related-tools-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: var(--transition);
}

.related-tools-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tools-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tools-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f3f9;
}

.tools-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tools-list a {
  display: flex;
  align-items: center;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.tools-list a:hover {
  background: #f8f9ff;
  color: var(--primary);
  transform: translateX(5px);
}

.tool-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-weight: bold;
}

.tool-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.tool-info p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== FAQ SECTION STYLES ===== */
.faq-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  position: relative;
}

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

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

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.copyright p {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #495057;
  color: #ffffff;
  font-size: 0.9rem;
}

/* ===== ADS SECTION STYLES ===== */
.ads-container {
  display: flex;
  justify-content: center;
}

.ad-unit {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--gray);
  width: 100%;
  max-width: 728px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li {
    margin: 0.75rem 0;
  }

  .page-title h1 {
    font-size: 2rem;
  }
}
/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: #f8f9ff;
  color: var(--primary);
}

/* Mobile responsiveness for dropdown */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 20px;
    background: #f8f9fa;
    border-left: 3px solid var(--primary);
    margin: 5px 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .dropdown > a {
    position: relative;
    padding-right: 30px;
  }

  .dropdown > a::after {
    /* content: "▾"; */
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
    transform: rotate(180deg);
  }

  /* Mobile menu styles */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
  }

  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}
.content-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.content-section:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.8rem;

  padding-bottom: 8px;
}

.content-section h3 {
  color: var(--secondary);
  margin: 15px 0 10px;
  font-size: 1.3rem;
}

.content-section p {
  margin-bottom: 15px;
  color: var(--dark);
}

.content-section strong {
  color: var(--primary-dark);
}

.content-section em {
  color: var(--dark);
  font-style: italic;
}
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-section li {
  margin-bottom: 0.75rem;
  color: var(--gray);
  padding-left: 0.5rem;
}
.content-section code {
  background-color: #f1f3ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--secondary);
  font-size: 2rem;
}
.content-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  /* border-bottom: 3px solid var(--primary); */
  position: relative;
}

.content-section h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--secondary);
}

.content-section p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.05rem;
}

.content-section strong {
  color: var(--dark);
  font-weight: 600;
}

.content-section code {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 1.95rem;
  border: 1px solid rgba(67, 97, 238, 0.2);
  display: inline-block;
  margin: 0.5rem 0;
}

.example-box {
  background-color: rgba(248, 249, 250, 0.8);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 5px solid var(--success);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.example-box p {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.1rem;
}

.example-box ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.example-box li {
  margin-bottom: 0.75rem;
  color: var(--gray);
  padding-left: 0.5rem;
}

.example-box strong {
  color: var(--primary-dark);
  background-color: rgba(76, 201, 240, 0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .content-section {
    padding: 1.5rem;
  }

  .content-section h2 {
    font-size: 1.75rem;
  }

  .content-section h3 {
    font-size: 1.3rem;
  }
}
/* FAQ Section Styles */
.faq-section {
}

.faq-title {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 25px;
}

.faq-container {
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
  /* border: 1px solid #e0e7ff; */
  /* background: white; */
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background-color: #f8f9ff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #f8f9ff;
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--gray);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    padding: 15px;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.2rem;
  }

  .faq-question {
    padding: 15px;
    font-size: 1rem;
  }
}

/* ===== CALCULATOR CARD SPECIFIC STYLES ===== */
