:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --accent: #9b59b6;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --success: #27ae60;
  --danger: #e74c3c;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 50%, #f0fff8 100%) fixed;
  overflow-x: hidden;
  padding-top: 80px;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  font-family: var(--font-heading);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

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

.btn-soft {
  background: #eef4fa;
  color: var(--dark);
}

.btn-soft:hover {
  background: #e2ebf4;
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
}

header.scrolled {
  background-color: var(--dark);
  box-shadow: var(--shadow);
}

header.scrolled .nav-links a {
  color: var(--light);
}

header.scrolled .logo {
  color: var(--light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px 20px 30px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.logo i {
  margin-right: 10px;
  color: var(--primary);
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  font-size: 1rem;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: #e74c3c;
  transition: var(--transition);
  border-radius: 50%;
}
.mobile-menu-btn:hover {
  background: rgba(231, 76, 60, 0.1);
}

/* Hero */
.tool-hero {
  background: linear-gradient(135deg, #1a2a4a 0%, #2c3e50 50%, #2f5c8b 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(46, 204, 113, 0.16), transparent 30%),
    radial-gradient(circle at 75% 30%, rgba(155, 89, 182, 0.16), transparent 32%),
    radial-gradient(circle at 45% 80%, rgba(52, 152, 219, 0.16), transparent 34%);
}

.tool-hero .container {
  position: relative;
  z-index: 1;
}

.tool-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.tool-hero h1 span {
  color: #7fd3ff;
}

.tool-hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-badge i {
  margin-right: 6px;
  color: #7fd3ff;
}

/* Calculator Layout */
.calculator-section {
  padding: 50px 0;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.control-card,
.result-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.control-card h2,
.result-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-card h2 i {
  color: var(--primary);
}

.result-card h2 i {
  color: var(--success);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius);
  font-size: 1.1rem;
  background: #fafbfc;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.currency-input {
  padding-left: 40px;
}

.input-wrap .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-weight: 700;
  font-size: 1.1rem;
}

.input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.tip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  font-family: var(--font-heading);
  color: var(--dark);
}

.tip-btn:hover {
  background: #eef4fa;
  transform: translateY(-1px);
  border-color: var(--primary);
}

.tip-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.custom-tip-group {
  margin-top: 12px;
}

.custom-tip-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius);
  background: #fafbfc;
  overflow: hidden;
  transition: var(--transition);
}

.custom-tip-wrap span {
  padding-left: 14px;
  color: var(--gray);
  font-weight: 700;
}

.custom-tip-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 14px;
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  font-family: var(--font-body);
}

.custom-tip-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.people-stepper {
  display: flex;
  align-items: center;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafbfc;
}

.people-stepper button {
  width: 54px;
  height: 54px;
  border: none;
  background: #eef4fa;
  color: var(--primary-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.people-stepper button:hover {
  background: #e2ebf4;
}

.people-stepper input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  outline: none;
  color: var(--dark);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.preset-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.preset-btn {
  border: none;
  background: #eff4f9;
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  font-size: 0.85rem;
}

.preset-btn:hover {
  background: #dfeaf5;
  transform: scale(1.05);
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #dce8f4;
}

.summary-card {
  min-height: 220px;
  border: 2px dashed #d7e4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  padding: 24px;
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-hero {
  background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 100%);
  border: 1px solid #d8e8f8;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.summary-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.summary-value {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.1;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 12px;
}

.result-row span {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 600;
}

.result-row strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
}

.result-row.total {
  background: #f4f8ff;
  border-color: #cfe2f6;
}

.result-row.total span {
  color: var(--primary-dark);
}

.result-row.total strong {
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.split-panel {
  background: #f8fbfd;
  border: 1px solid #e6edf3;
  border-radius: 14px;
  padding: 18px;
  margin-top: 10px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.split-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.copy-area {
  margin-top: 20px;
  background: #f8fbfd;
  border: 1px solid #e6edf3;
  border-radius: 14px;
  padding: 18px;
}

.copy-output {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #35546b;
  line-height: 1.6;
}

/* Content Styling */
.about-tool {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 60px 0;
  box-shadow: var(--shadow);
}

.about-tool h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--dark);
  font-family: var(--font-heading);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  padding-bottom: 8px;
}

.about-tool h3 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--dark);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-tool h3 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-tool p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
}

.about-tool ul,
.about-tool ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.about-tool li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #4a5568;
}

.about-tool strong {
  color: var(--dark);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.info-card {
  background: #f7fbff;
  border-radius: 14px;
  padding: 24px;
  border-left: 5px solid var(--primary);
  transition: var(--transition);
}

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

.info-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.table-container {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th {
  background: var(--dark);
  color: #fff;
  padding: 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f8fafc;
}

/* How to Use Steps */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}

.howto-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.howto-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.howto-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.howto-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.howto-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.howto-step p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.benefit-card:nth-child(3) {
  border-top-color: var(--accent);
}

.benefit-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}

.benefit-card:nth-child(2) .benefit-icon {
  color: var(--secondary);
}

.benefit-card:nth-child(3) .benefit-icon {
  color: var(--accent);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 16px;
}

.faq-item.active,
.faq-item:hover {
  box-shadow: var(--shadow-lg);
}

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

.faq-question:hover {
  background: rgba(52, 152, 219, 0.06);
  color: var(--primary-dark);
}

.faq-question i {
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--gray);
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fff;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--success);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
  color: white;
  text-decoration: none;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
}

.newsletter-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 15px;
}

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

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Related Tools Section (Calculator / Converter sub-pages) */
.related-tools-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 50%, #f0fff8 100%);
  position: relative;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

.related-tool-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.related-tool-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.related-tool-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(52, 152, 219, 0.14);
  border-color: rgba(52, 152, 219, 0.3);
}

.related-tool-card:hover::before {
  opacity: 1;
}

.related-tool-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.28);
  transition: var(--transition);
}

.related-tool-card:nth-child(2) .related-tool-icon { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 4px 14px rgba(46, 204, 113, 0.28); }
.related-tool-card:nth-child(3) .related-tool-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); box-shadow: 0 4px 14px rgba(155, 89, 182, 0.28); }
.related-tool-card:nth-child(4) .related-tool-icon { background: linear-gradient(135deg, #f39c12, #e67e22); box-shadow: 0 4px 14px rgba(243, 156, 18, 0.28); }
.related-tool-card:nth-child(5) .related-tool-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 4px 14px rgba(231, 76, 60, 0.28); }
.related-tool-card:nth-child(6) .related-tool-icon { background: linear-gradient(135deg, #1abc9c, #16a085); box-shadow: 0 4px 14px rgba(26, 188, 156, 0.28); }

.related-tool-card:hover .related-tool-icon {
  transform: scale(1.08) rotate(-4deg);
}

.related-tool-body {
  flex: 1;
  min-width: 0;
}

.related-tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(52, 152, 219, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.related-tool-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  transition: var(--transition);
}

.related-tool-card:hover .related-tool-title {
  color: var(--primary);
}

.related-tool-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.related-tool-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.related-tool-card:hover .related-tool-arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
}

.tools-cta {
  text-align: center;
  margin-top: 44px;
}



/* =====================
   RESPONSIVE / MOBILE
===================== */

@media (max-width: 992px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Nav - exact match index.html */
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    color: white;
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .tool-hero {
    padding: 60px 0 40px;
  }

  .tool-hero h1 {
    font-size: 2rem;
  }

  .tool-hero p {
    font-size: 1rem;
  }

  .hero-badges {
    gap: 8px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Calculator */
  .calculator-section {
    padding: 30px 0;
  }

  .control-card,
  .result-card {
    padding: 24px 20px;
  }

  /* How To */
  .howto-steps {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
  }

  /* About */
  .about-tool {
    padding: 28px 18px;
  }

  .about-tool h2 {
    font-size: 1.6rem;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Tools grid */
  .other-tools-section {
    padding: 50px 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card {
    padding: 16px 18px;
    gap: 14px;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.95rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer {
    padding: 50px 0 20px;
  }
}

@media (max-width: 480px) {
  .tool-hero h1 {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .tip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .result-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .tool-arrow {
    width: 26px;
    height: 26px;
  }

  .footer-container {
    gap: 24px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

/* Review Generator Custom Styles */
.stars {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.stars i {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}
.stars i.active {
  color: #fbbc05;
}
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.required-field::after {
  content: '*';
  color: var(--danger);
  margin-left: 4px;
}
.error-message {
  color: var(--danger);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* ==========================================================================
   Calculator Unique Styles (Preserved)
   ========================================================================== */
.table-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-card table { width: 100%; border-collapse: collapse; }
.table-card thead tr { background: linear-gradient(90deg, var(--dark) 0%, #36506b 100%); }
.table-card th {
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.table-card td {
  padding: 13px 18px;
  font-size: 0.93rem;
  border-bottom: 1px solid #f0f3f7;
}
.table-card tbody tr:hover { background: #f8fafd; }
.table-card td:first-child { font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.feature-card {
  border-radius: 10px;
  padding: 18px 20px;
  background: #f7fbff;
  border-left: 4px solid var(--primary);
}
.feature-card .f-title {
}

/* ==========================================================================
   Page-Specific Consolidated Styles
   ========================================================================== */

/* --- Homepage (index.html) Specific --- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.8)), 
              url('https://images.unsplash.com/photo-1566438480900-0609be27a4be?ixlib=rb-1.2.1&auto=format&fit=crop&w=1498&q=80') no-repeat center center/cover;
  color: white;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}
.hero-btn {
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
  position: relative;
  overflow: hidden;
}
.hero-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}
.hero-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}
.index-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.index-tool-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding: 40px 25px;
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
}
.index-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}
.index-tool-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.index-tool-card:hover::before {
  opacity: 1;
}
.index-tool-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
  display: inline-block;
}
.index-tool-card:hover .index-tool-icon {
  transform: scale(1.1);
  color: var(--secondary);
}
.index-tool-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--dark);
}
.index-tool-desc {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.index-tool-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.index-tool-link i {
  margin-left: 5px;
  transition: var(--transition);
}
.index-tool-link:hover {
  color: var(--primary-dark);
}
.index-tool-link:hover i {
  transform: translateX(5px);
}
.steps-container {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
}
.step {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 30%;
  padding: 0 15px;
}
.step-number {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  border: 5px solid #f9f9f9;
  transition: var(--transition);
}
.step:hover .step-number {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary);
}
.step-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.step-desc {
  color: var(--gray);
}
.testimonials {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
}
.testimonials-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.testimonial-slide {
  display: none;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}
.testimonial-content {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info h4 {
  margin: 0;
  color: #2c3e50;
}
.author-info p {
  margin: 5px 0;
  color: #7f8c8d;
  font-size: 14px;
}
.rating {
  color: #fbbc05;
  font-size: 14px;
}
.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: background 0.3s;
}
.testimonial-dot.active {
  background: #3498db;
}
.category-grid,
.trust-grid,
.blog-grid,
.content-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}
.category-grid {
  grid-template-columns: repeat(3, 1fr);
}
.content-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}
.trust-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}
.category-card,
.content-card,
.mini-panel,
.trust-card,
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.category-card,
.trust-card,
.blog-card {
  padding: 28px;
}
.content-card {
  padding: 32px;
}
.mini-panel {
  padding: 22px;
  margin-bottom: 20px;
}
.category-card:hover,
.trust-card:hover,
.blog-card:hover,
.content-card:hover,
.mini-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-header {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.14), rgba(46, 204, 113, 0.14));
  color: var(--primary);
  margin-bottom: 18px;
}
.category-card h3,
.content-card h3,
.mini-panel h4,
.trust-card h3,
.blog-card h3 {
  font-family: var(--font-heading);
  color: var(--dark);
}
.category-card h3,
.trust-card h3,
.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.content-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.mini-panel h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.category-card p,
.content-card p,
.mini-panel p,
.trust-card p,
.blog-card p {
  color: var(--gray);
}
.category-list,
.content-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.category-list li,
.content-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.category-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: var(--transition);
}
.category-list li a:hover {
  background: rgba(46, 204, 113, 0.12);
  color: var(--success);
  transform: translateX(4px);
}
.category-list li a i {
  color: var(--primary);
  margin-top: 4px;
  transition: var(--transition);
}
.category-list li a:hover i {
  color: var(--success);
}
.category-list i,
.content-list i,
.mini-panel i {
  color: var(--primary);
  margin-top: 4px;
}
.seo-note {
  border-left: 4px solid var(--primary);
  background: rgba(52, 152, 219, 0.08);
  padding: 16px 18px;
  border-radius: 10px;
  margin-top: 18px;
  color: var(--dark);
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.blog-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  transition: var(--transition);
}
.blog-link:hover {
  color: var(--primary-dark);
}
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active,
.faq-item:hover {
  box-shadow: var(--shadow-lg);
}
.faq-question {
  width: 100%;
  border: none;
  background: white;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.faq-question:hover {
  background: rgba(52, 152, 219, 0.06);
  color: var(--primary-dark);
}
.faq-question i {
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--gray);
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 24px 20px;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--success);
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  transition: all 0.3s ease;
}
.hero-badge i {
  color: #ffd166;
}
.hero-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 45%, #eefbf4 100%);
  border: 1px solid rgba(52, 152, 219, 0.14);
  border-radius: 22px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(44, 62, 80, 0.08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  isolation: isolate;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.18), rgba(46, 204, 113, 0.14), rgba(243, 156, 18, 0.12));
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -2;
}
.stat-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  top: -55px;
  right: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.18) 0%, rgba(52, 152, 219, 0.03) 55%, transparent 72%);
  transition: transform .45s ease;
  z-index: -1;
}
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 44px rgba(44, 62, 80, 0.14);
  border-color: rgba(46, 204, 113, 0.28);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card:hover::after {
  transform: scale(1.15);
}
.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(52, 152, 219, 0.22);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.stat-desc {
  display: block;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.55;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Homepage Specific Responsive */
@media (max-width: 992px) {
  .tools-grid,
  .category-grid,
  .trust-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  .steps-container::before {
    display: none;
  }
  .step {
    width: 100%;
    margin-bottom: 40px;
  }
  .step:last-child {
    margin-bottom: 0;
  }
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}
@media (max-width: 576px) {
  .tools-grid,
  .category-grid,
  .trust-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 24px 20px 22px;
  }
}

/* --- Blog Hub (blog.html) Specific --- */
.blog-section {
  padding: 60px 0;
}
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}
.blog-description {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}
.blog-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: white;
  color: var(--dark);
  border: 1px solid #ddd;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 25px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 0.8rem;
}
.blog-card-meta span {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.blog-card-meta i {
  margin-right: 5px;
  color: var(--primary);
}
.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}
.blog-card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.blog-card-title a:hover {
  color: var(--primary);
}
.blog-card-excerpt {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.blog-card-category {
  background: var(--light);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.blog-card-category:hover {
  background: var(--primary);
  color: white;
}
.blog-card-readmore {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.blog-card-readmore:hover {
  text-decoration: underline;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.pagination-list {
  display: flex;
  list-style: none;
  gap: 10px;
}
.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
}
.pagination-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}
.pagination-item:hover, .pagination-item.active {
  background: var(--primary);
}
.pagination-item:hover .pagination-link, .pagination-item.active .pagination-link {
  color: white;
}
.newsletter-section {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  margin-top: 60px;
}
.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.newsletter-description {
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Blog Specific Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-title {
    font-size: 2rem;
  }
}
@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-title {
    font-size: 1.8rem;
  }
  .pagination-list {
    flex-wrap: wrap;
  }
}

/* --- Gemini Watermark Remover Specific --- */
.tool-hero {
  background: linear-gradient(135deg, #1a2a4a 0%, #2c3e50 50%, #2f5c8b 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(46, 204, 113, 0.16), transparent 30%),
    radial-gradient(circle at 75% 30%, rgba(155, 89, 182, 0.16), transparent 32%),
    radial-gradient(circle at 45% 80%, rgba(52, 152, 219, 0.16), transparent 34%);
}
.tool-hero .container {
  position: relative;
  z-index: 1;
}
.tool-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}
.tool-hero h1 span {
  color: #7fd3ff;
}
.tool-hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 28px;
}
.upload-zone {
  border: 3px dashed #cbd5e1;
  border-radius: 24px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: #eff6ff;
  transform: translateY(-4px);
  box-shadow: inset 0 2px 8px rgba(59, 130, 246, 0.05), 0 12px 30px rgba(59, 130, 246, 0.15);
}
.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 1;
}
.upload-icon {
  width: 76px;
  height: 76px;
  background: #e0f2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(52,152,219,0.2);
}
.upload-zone:hover .upload-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(52,152,219,0.3);
}
.upload-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark);
}
.upload-sub {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.upload-formats {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.format-pill {
  background: #eef4fa;
  border: 1px solid #dce8f4;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--dark);
  font-weight: 600;
}
.btn-demo {
  background: #fff;
  border: 1px solid #dce8f4;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.btn-demo:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-demo svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.range-val {
  font-weight: 700;
  color: var(--primary-dark);
}
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
  height: 380px;
}
.placeholder-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.1);
  animation: pulse 2s infinite ease-in-out;
}
.result-placeholder h4 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.result-placeholder p {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
}
.file-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.file-info-card i {
  font-size: 2rem;
  color: var(--primary);
  background: #f0f9ff;
  padding: 12px;
  border-radius: 10px;
}
.file-info-details {
  min-width: 0;
  flex-grow: 1;
}
.file-info-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-info-size {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  user-select: none;
  border: 1px solid #e2e8f0;
}
.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-img img,
.slider-img canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}
.img-before {
  z-index: 1;
}
.img-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s ease-out;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: left 0.05s ease-out;
}
.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: ew-resize;
  transition: transform 0.2s;
}
.slider-container:hover .slider-handle-button {
  transform: translate(-50%, -50%) scale(1.06);
}
.slider-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}
.slider-badge {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.before-badge {
  left: 14px;
  background: rgba(231, 76, 60, 0.95);
  color: #fff;
  backdrop-filter: blur(4px);
}
.after-badge {
  right: 14px;
  background: rgba(46, 204, 113, 0.95);
  color: #fff;
  backdrop-filter: blur(4px);
}
.progress-label {
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.progress-bar-bg {
  height: 6px;
  background: #eef4fa;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  width: 0%;
  transition: width 0.1s ease;
}
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}
.howto-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.howto-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.howto-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}
.howto-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.howto-step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.howto-step p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.benefit-card:nth-child(2) {
  border-top-color: var(--secondary);
}
.benefit-card:nth-child(3) {
  border-top-color: var(--accent);
}
.benefit-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}
.benefit-card:nth-child(2) .benefit-icon {
  color: var(--secondary);
}
.benefit-card:nth-child(3) .benefit-icon {
  color: var(--accent);
}

/* --- Cover Letter Generator Specific --- */
.cover-letter-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 30px;
}
.form-container {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.letter-preview {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 800px;
  position: relative;
}
.letter-content {
  font-family: var(--font-body);
  line-height: 1.8;
}
.letter-content p {
  margin-bottom: 15px;
}
.letter-footer {
  margin-top: 40px;
}
.letter-footer p {
  margin-bottom: 5px;
}
.signature-line {
  margin-top: 10px;
  padding-top: 10px;
}
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.btn-secondary {
  background: white;
  color: var(--dark);
  border: 1px solid #ddd;
}
.btn-secondary:hover {
  background: #f5f5f5;
}
.letter-date {
  text-align: right;
  margin-bottom: 30px;
}
.features-list {
  margin: 20px 0;
  padding-left: 20px;
  list-style: none;
}
.features-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}
.features-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
}

/* Cover Letter print layout style */
@media print {
  body * {
    visibility: hidden;
    margin: 0;
    padding: 0;
  }
  .letter-preview, .letter-preview * {
    visibility: visible;
  }
  .letter-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  .letter-content {
    padding: 50px;
    padding-top: 150px; /* Space for letterhead */
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4;
    margin: 0;
  }
  body {
    padding: 0;
  }
}

/* Cover Letter Specific Responsive */
@media (max-width: 992px) {
  .cover-letter-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .about-tool, .faq-section {
    padding: 25px;
  }
}
@media (max-width: 576px) {
  .action-buttons {
    flex-direction: column;
  }
  .action-buttons .btn {
    width: 100%;
  }
}

/* --- Blog Detail / Single Post Specific --- */
.blog-layout-page {
  background-color: #f9f9f9;
}
.blog-layout-page main {
  padding-top: 20px;
}
.blog-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 30px;
}
.blog-post {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.blog-content {
  padding: 40px;
}
.blog-header {
  margin-bottom: 30px;
}
.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
  line-height: 1.3;
  font-family: var(--font-heading);
}
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}
.blog-meta span {
  display: flex;
  align-items: center;
}
.blog-meta i {
  margin-right: 5px;
  color: var(--primary);
}
.blog-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.blog-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
}
.blog-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark);
  font-family: var(--font-heading);
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 8px;
}
.blog-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--dark);
  font-family: var(--font-heading);
}
.blog-content h4 {
  font-size: 1.15rem;
  margin: 25px 0 10px;
  color: var(--dark);
  font-family: var(--font-heading);
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-content ul, .blog-content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.blog-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #4a5568;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #edf2f7;
}
.blog-content th {
  background: var(--dark);
  color: white;
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
}
.blog-content td {
  padding: 12px 18px;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568;
}
.blog-content tr:last-child td {
  border-bottom: none;
}
.blog-content tr:hover td {
  background: #f8fafc;
}
.blog-content .sources {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #edf2f7;
}
.blog-content .sources h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}
.blog-content .sources ol {
  padding-left: 20px;
}
.blog-content .sources li {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 8px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}
.blog-tag {
  background: var(--light);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.blog-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}
.blog-author {
  display: flex;
  align-items: center;
  padding: 30px;
  background: #f8fafc;
  border-radius: var(--radius);
  margin-top: 40px;
  border: 1px solid #edf2f7;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 24px;
  box-shadow: var(--shadow);
}
.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--dark);
  font-family: var(--font-heading);
}
.author-info p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.author-social {
  display: flex;
  gap: 12px;
}
.author-social a {
  color: var(--gray);
  transition: var(--transition);
  font-size: 1.1rem;
}
.author-social a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
  position: relative;
  font-family: var(--font-heading);
}
.widget-title:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.search-form {
  display: flex;
  margin-bottom: 20px;
}
.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
}
.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover {
  background: var(--primary-dark);
}
.category-list {
  list-style: none;
}
.category-item {
  margin-bottom: 8px;
}
.category-item:last-child {
  margin-bottom: 0;
}
.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
  text-decoration: none;
  padding: 8px 0;
  transition: var(--transition);
  border-bottom: 1px dashed #edf2f7;
  font-weight: 600;
}
.category-link:hover {
  color: var(--primary);
  padding-left: 5px;
}
.category-count {
  background: var(--light);
  color: var(--gray);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.recent-post {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #edf2f7;
}
.recent-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.recent-post-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-right: 15px;
  box-shadow: var(--shadow);
}
.recent-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.recent-post-title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.recent-post-title a:hover {
  color: var(--primary);
}
.recent-post-date {
  font-size: 0.8rem;
  color: var(--gray);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  background: var(--light);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.tag-cloud a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
}
.related-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
  font-family: var(--font-heading);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.related-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.related-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.related-content {
  padding: 20px;
}
.related-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: var(--font-heading);
}
.related-card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.related-card-title a:hover {
  color: var(--primary);
}
.related-card-date {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Comments Section */
.comments-section {
  margin-top: 60px;
}
.comments-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
  font-family: var(--font-heading);
}
.comment {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #edf2f7;
}
.comment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  box-shadow: var(--shadow);
}
.comment-content {
  flex: 1;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.comment-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}
.comment-date {
  font-size: 0.85rem;
  color: var(--gray);
}
.comment-text {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #4a5568;
}
.comment-reply {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.comment-reply:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.comment-form {
  margin-top: 40px;
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--dark);
  font-family: var(--font-heading);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: var(--transition);
  background-color: #fff;
  color: var(--dark);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-heading);
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Responsive Styles for Blog Detail */
@media (max-width: 992px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-title {
    font-size: 2rem;
  }
  .sidebar {
    position: static;
    margin-top: 40px;
  }
  .blog-content {
    padding: 30px 24px;
  }
}
@media (max-width: 576px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .blog-image {
    height: 250px;
  }
  .blog-content {
    padding: 24px 16px;
  }
  .comment {
    flex-direction: column;
  }
  .comment-avatar {
    margin-bottom: 15px;
  }
}

/* --- Tools Directory Page Specific --- */
body.tools-page,
body.nepali-fonts-page,
body.about-page,
body.contact-page,
body.error-page {
    background-color: #f9f9f9 !important;
    background-image: none !important;
    padding-top: 0 !important;
}

.tools-page .tools-grid,
.nepali-fonts-page .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tools-page .tool-card,
.nepali-fonts-page .tool-card {
    display: block !important;
    border: none !important;
    background: white !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow) !important;
    transition: var(--transition) !important;
    text-align: center !important;
    padding: 40px 25px !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 0;
    transform: translateY(20px);
    gap: 0 !important;
}

.tools-page .tool-card::before,
.tools-page .tool-card:before,
.nepali-fonts-page .tool-card::before,
.nepali-fonts-page .tool-card:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1)) !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: var(--transition) !important;
}

.tools-page .tool-card.visible,
.nepali-fonts-page .tool-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tools-page .tool-card:hover,
.nepali-fonts-page .tool-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.tools-page .tool-card:hover::before,
.tools-page .tool-card:hover:before,
.nepali-fonts-page .tool-card:hover::before,
.nepali-fonts-page .tool-card:hover:before {
    opacity: 1 !important;
}

.tools-page .tool-icon,
.nepali-fonts-page .tool-icon {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    font-size: 3rem !important;
    margin-bottom: 20px !important;
    color: var(--primary) !important;
    transition: var(--transition) !important;
    transform: none !important;
}

.tools-page .tool-card:hover .tool-icon,
.nepali-fonts-page .tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(0deg) !important;
    color: var(--secondary) !important;
}

.tools-page .tool-title,
.nepali-fonts-page .tool-title {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
}

.tools-page .tool-card:hover .tool-title,
.nepali-fonts-page .tool-card:hover .tool-title {
    color: var(--dark) !important;
}

.tools-page .tool-desc,
.nepali-fonts-page .tool-desc {
    font-size: 0.95rem !important;
    color: var(--gray) !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
}

.tools-page .tool-link,
.nepali-fonts-page .tool-link {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: var(--transition) !important;
}

.tools-page .tool-link i,
.nepali-fonts-page .tool-link i {
    margin-left: 5px !important;
    transition: var(--transition) !important;
}

.tools-page .tool-link:hover,
.nepali-fonts-page .tool-link:hover {
    color: var(--primary-dark) !important;
}

.tools-page .tool-link:hover i,
.nepali-fonts-page .tool-link:hover i {
    transform: translateX(5px) !important;
}

.tools-page .popular-badge,
.nepali-fonts-page .popular-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: var(--accent) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    z-index: 2 !important;
}

/* Categories */
.tools-page .categories,
.nepali-fonts-page .categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tools-page .category-btn,
.nepali-fonts-page .category-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tools-page .category-btn.active,
.tools-page .category-btn:hover,
.nepali-fonts-page .category-btn.active,
.nepali-fonts-page .category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Search */
.tools-page .search-container,
.nepali-fonts-page .search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.tools-page .search-input,
.nepali-fonts-page .search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    padding-right: 50px;
    box-shadow: var(--shadow);
}

.tools-page .search-btn,
.nepali-fonts-page .search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.tools-page .search-btn:hover,
.nepali-fonts-page .search-btn:hover {
    background: var(--primary-dark);
}

/* Responsive Styles for Tools Directory */
@media (max-width: 576px) {
    .tools-page .search-container,
    .nepali-fonts-page .search-container {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */
.about-page .hero-banner {
    height: 65vh; min-height: 440px;
    background: linear-gradient(135deg, rgba(52,152,219,0.93), rgba(46,204,113,0.83)),
                url('https://images.unsplash.com/photo-1542223616-2c90c1f0e71e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: white; text-align: center; position: relative; overflow: hidden;
}
.about-page .hero-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.25) 100%); }
.about-page .hero-banner-content { position: relative; z-index: 2; max-width: 700px; padding: 0 20px; }
.about-page .hero-badge {
    display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4);
    color: white; font-size: 0.8rem; font-weight: 700; padding: 6px 18px; border-radius: 50px;
    margin-bottom: 20px; letter-spacing: 1.5px; text-transform: uppercase;
    animation: fadeInDown 0.7s ease;
}
.about-page .hero-banner h1 { font-size: 3.5rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 15px; animation: fadeInDown 1s ease; line-height: 1.2; }
.about-page .hero-banner p { font-size: 1.2rem; opacity: 0; margin-bottom: 30px; animation: fadeInUp 1s ease 0.25s forwards; }
.about-page .hero-banner-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeInUp 1s ease 0.45s forwards; }
.about-page .hero-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); animation: float 6s ease-in-out infinite; }
.about-page .hero-shape-1 { width: 220px; height: 220px; top: -70px; left: -70px; }
.about-page .hero-shape-2 { width: 130px; height: 130px; bottom: -30px; right: 8%; animation-delay: 2s; }
.about-page .hero-shape-3 { width: 80px; height: 80px; top: 30%; right: 4%; animation-delay: 4s; }

/* Stats Bar */
.about-page .stats-bar { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.08); position: relative; z-index: 10; }
.about-page .stats-bar-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.about-page .stat-item { text-align: center; padding: 30px 20px; border-right: 1px solid #f0f0f0; transition: var(--transition); }
.about-page .stat-item:last-child { border-right: none; }
.about-page .stat-item:hover { background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(46,204,113,0.05)); }
.about-page .stat-number {
    font-size: 2.4rem; font-weight: 700; font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1; margin-bottom: 5px;
}
.about-page .stat-label { font-size: 0.88rem; color: var(--gray); font-weight: 600; }
.about-page .stat-icon { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }

/* Who We Are */
.about-page .who-we-are { background: #f9f9f9; }
.about-page .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-page .about-image-wrap { position: relative; }
.about-page .about-image-main { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.about-page .about-image-badge {
    position: absolute; bottom: -25px; right: -25px; background: white;
    border-radius: var(--radius-lg); padding: 20px 25px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-page .about-image-badge .badge-num { font-size: 2.2rem; line-height: 1; }
.about-page .about-image-badge .badge-label { font-size: 0.78rem; color: var(--gray); font-weight: 600; }
.about-page .about-text { padding-right: 10px; }
.about-page .about-tag { display: inline-block; background: rgba(52,152,219,0.1); color: var(--primary); font-size: 0.78rem; font-weight: 700; padding: 5px 15px; border-radius: 50px; margin-bottom: 15px; letter-spacing: 1.5px; text-transform: uppercase; }
.about-page .about-text h2 { font-size: 2.1rem; font-weight: 700; font-family: var(--font-heading); color: var(--dark); margin-bottom: 18px; line-height: 1.3; }
.about-page .about-text p { color: var(--gray); font-size: 1rem; margin-bottom: 14px; }
.about-page .about-checklist { list-style: none; margin: 18px 0 28px; }
.about-page .about-checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; color: var(--dark); }
.about-page .about-checklist li i { color: var(--secondary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* MVV */
.about-page .mvv-section { background: white; }
.about-page .mvv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.about-page .mvv-card {
    background: #f9f9f9; border-radius: var(--radius-lg); padding: 40px 30px; text-align: center;
    position: relative; overflow: hidden; transition: var(--transition); border: 1px solid transparent;
}
.about-page .mvv-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg,var(--primary),var(--secondary)); transform: scaleX(0); transition: var(--transition); }
.about-page .mvv-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(52,152,219,0.15); background: white; }
.about-page .mvv-card:hover::before { transform: scaleX(1); }
.about-page .mvv-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,rgba(52,152,219,0.1),rgba(46,204,113,0.1)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); transition: var(--transition); }
.about-page .mvv-card:hover .mvv-icon { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; transform: scale(1.1); }
.about-page .mvv-card h3 { font-size: 1.4rem; font-weight: 700; font-family: var(--font-heading); color: var(--dark); margin-bottom: 15px; }
.about-page .mvv-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* Timeline */
.about-page .timeline-section { background: #f9f9f9; }
.about-page .timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 20px 0; }
.about-page .timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,var(--primary),var(--secondary)); transform: translateX(-50%); }
.about-page .timeline-item { display: flex; justify-content: flex-end; padding-right: calc(50% + 40px); margin-bottom: 50px; position: relative; opacity: 0; transform: translateX(-30px); transition: opacity 0.5s ease, transform 0.5s ease; }
.about-page .timeline-item.right { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 40px); transform: translateX(30px); }
.about-page .timeline-item.visible { opacity: 1; transform: translateX(0); }
.about-page .timeline-dot { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 4px solid #f9f9f9; box-shadow: 0 0 0 3px var(--primary); z-index: 2; }
.about-page .timeline-card { background: white; border-radius: var(--radius-lg); padding: 25px 30px; box-shadow: var(--shadow); max-width: 360px; transition: var(--transition); }
.about-page .timeline-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.about-page .timeline-year { font-size: 0.78rem; font-weight: 700; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.about-page .timeline-card h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-heading); color: var(--dark); margin-bottom: 8px; }
.about-page .timeline-card p { color: var(--gray); font-size: 0.88rem; }

/* Team */
.about-page .team-section { background: white; }
.about-page .team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.about-page .team-card { background: #f9f9f9; border-radius: var(--radius-lg); overflow: hidden; text-align: center; transition: var(--transition); }
.about-page .team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.about-page .team-avatar { width: 100%; height: 200px; background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: white; position: relative; overflow: hidden; }
.about-page .team-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: var(--transition); }
.about-page .team-card:hover .team-avatar-overlay { opacity: 1; }
.about-page .team-social-link { width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.about-page .team-social-link:hover { background: var(--primary); color: white; transform: scale(1.1); }
.about-page .team-info { padding: 20px; }
.about-page .team-info h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-heading); color: var(--dark); margin-bottom: 5px; }
.about-page .team-role { font-size: 0.83rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.about-page .team-bio { font-size: 0.83rem; color: var(--gray); }

/* Values */
.about-page .values-section { background: linear-gradient(135deg,rgba(52,152,219,0.05),rgba(46,204,113,0.05)); }
.about-page .values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.about-page .value-card { background: white; border-radius: var(--radius-lg); padding: 30px; display: flex; align-items: flex-start; gap: 20px; box-shadow: var(--shadow); transition: var(--transition); }
.about-page .value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.about-page .value-icon { width: 55px; height: 55px; border-radius: var(--radius); background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; flex-shrink: 0; }
.about-page .value-text h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-heading); color: var(--dark); margin-bottom: 8px; }
.about-page .value-text p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* Testimonials */
.about-page .testimonials-section { background: white; }
.about-page .testimonials-slider { position: relative; max-width: 800px; margin: 0 auto; }
.about-page .testimonial-slide { display: none; text-align: center; padding: 40px; background: #f9f9f9; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-page .testimonial-slide.active { display: block; animation: fadeIn 0.5s ease; }
.about-page .testimonial-quote { font-size: 3rem; color: var(--primary); opacity: 0.25; line-height: 1; margin-bottom: 5px; }
.about-page .testimonial-content { font-size: 1.05rem; line-height: 1.8; color: var(--dark); margin-bottom: 25px; font-style: italic; }
.about-page .testimonial-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.about-page .author-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.about-page .author-info h4 { color: var(--dark); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 3px; }
.about-page .author-info p { color: var(--gray); font-size: 0.83rem; }
.about-page .rating { color: var(--accent); font-size: 0.83rem; margin-top: 3px; }
.about-page .slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.about-page .dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; cursor: pointer; transition: var(--transition); }
.about-page .dot.active { background: var(--primary); transform: scale(1.3); }

/* CTA */
.about-page .cta-section { background: linear-gradient(135deg,var(--primary),var(--secondary)); padding: 80px 0; text-align: center; color: white; position: relative; overflow: hidden; }
.about-page .cta-section::before { content: ''; position: absolute; top: -50px; right: -50px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.about-page .cta-section::after { content: ''; position: absolute; bottom: -60px; left: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.about-page .cta-section h2 { font-size: 2.5rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 15px; }
.about-page .cta-section p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; }
.about-page .cta-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* Dark Mode */
.dark-mode.about-page, .dark-mode .about-page {
    background-color: #121212 !important;
}
.dark-mode .who-we-are, .dark-mode .timeline-section, .dark-mode .values-section { background: #121212; }
.dark-mode .mvv-section, .dark-mode .team-section, .dark-mode .testimonials-section { background: #1a1a1a; }
.dark-mode .stats-bar, .dark-mode .about-image-badge { background: #1e1e1e; }
.dark-mode .mvv-card, .dark-mode .team-card { background: #1e1e1e; }
.dark-mode .value-card, .dark-mode .timeline-card, .dark-mode .testimonial-slide { background: #1e1e1e; }
.dark-mode .section-title, .dark-mode .about-text h2, .dark-mode .mvv-card h3, .dark-mode .value-text h4, .dark-mode .team-info h4, .dark-mode .timeline-card h4, .dark-mode .testimonial-content { color: #f1f1f1; }
.dark-mode header:not(.scrolled) { background-color: rgba(20,20,20,0.9); }
.dark-mode .nav-links a:not(.active) { color: var(--light); }

/* Responsive */
@media (max-width: 992px) {
    .about-page .about-grid { grid-template-columns: 1fr; }
    .about-page .about-image-badge { bottom: 15px; right: 15px; }
    .about-page .mvv-grid { grid-template-columns: 1fr; }
    .about-page .team-grid { grid-template-columns: repeat(2,1fr); }
    .about-page .values-grid { grid-template-columns: repeat(2,1fr); }
    .about-page .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .about-page .timeline::before { left: 20px; }
    .about-page .timeline-item, .about-page .timeline-item.right { padding-right: 0; padding-left: 60px; justify-content: flex-start; }
    .about-page .timeline-item { transform: translateX(-20px); }
    .about-page .timeline-item.right { transform: translateX(-20px); }
    .about-page .timeline-dot { left: 20px; }
    .about-page .timeline-card { max-width: 100%; }
    .about-page .mvv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .about-page .team-grid { grid-template-columns: 1fr; }
    .about-page .values-grid { grid-template-columns: 1fr; }
    .about-page .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */
.contact-page .hero-banner {
  height: 50vh;
  background: linear-gradient(rgba(52,152,219,0.8), rgba(46,204,113,0.7)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.contact-page .hero-banner h1 {
  font-size: 3rem;
  animation: fadeInDown 1s ease;
}
.contact-page .contact-section {
  padding: 80px 20px;
}
.contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.contact-page .contact-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
}
.contact-page .contact-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.contact-page .contact-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-top: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-page .contact-form input,
.contact-page .contact-form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: var(--font-body);
}
.contact-page .contact-form button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-page .contact-form button:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   404 (Error) Page Specific Styles
   ========================================================================== */
.error-page .section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.error-page .error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.error-page .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
    font-family: var(--font-heading);
    animation: pulse 2s infinite;
}
.error-page .error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-heading);
}
.error-page .error-message {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.error-page .error-icon {
    font-size: 6rem;
    color: var(--danger);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}
.error-page .error-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}
.error-page .error-search input {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: var(--shadow);
}
.error-page .error-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.error-page .error-search button:hover {
    background: var(--primary-dark);
}
.error-page .popular-links {
    margin-top: 40px;
}
.error-page .popular-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gray);
}
.error-page .popular-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.error-page .popular-links li a {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}
.error-page .popular-links li a:hover {
    background: var(--primary);
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .error-page .error-code {
        font-size: 6rem;
    }
    .error-page .error-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .error-page .error-code {
        font-size: 5rem;
    }
    .error-page .error-title {
        font-size: 1.8rem;
    }
    .error-page .error-message {
        font-size: 1rem;
    }
    .error-page .popular-links ul {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Tool Converter & Transliteration Unique Styles
   ========================================================================== */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.tool-container:hover {
    box-shadow: var(--shadow-lg);
}

.my-tools {
    padding: 32px;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.converter-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.converter-label i {
    color: var(--primary);
}

.converter-field:nth-child(2) .converter-label i {
    color: var(--secondary);
}

.textarea-converter {
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border: 2px solid #e8ecf0;
    border-radius: var(--radius);
    font-size: 1.05rem;
    background: #fafbfc;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-body);
    resize: vertical;
}

.textarea-converter:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.converter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .my-tools {
        padding: 20px;
    }

    .converter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .textarea-converter {
        min-height: 200px;
    }

    .converter-buttons {
        flex-direction: column;
    }

    .converter-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Translator Tool Unique Styles
   ========================================================================== */
.translation-boxes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .translation-boxes {
        flex-direction: row;
        align-items: stretch;
    }
}

.translation-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.translation-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.1);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.language-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.character-count {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 600;
}

.text-box {
    width: 100%;
    min-height: 220px;
    padding: 12px 0;
    border: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    resize: vertical;
    outline: none;
    color: var(--dark);
    background: transparent;
}

.action-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.action-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

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

.swap-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.swap-btn {
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    color: var(--dark);
    font-size: 1.05rem;
}

.swap-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
    border-color: var(--primary);
}

.translate-btn-container {
    text-align: center;
    margin-top: 8px;
}

.translate-btn {
    min-width: 220px;
}

@media (max-width: 768px) {
    .translation-box {
        padding: 16px;
    }

    .text-box {
        min-height: 180px;
    }

    .swap-btn-container {
        padding: 10px 0;
    }
}

/* Preeti Font Class for Converters */
.preeti-font {
    font-family: 'Preeti', 'preetinormal', Preeti, sans-serif !important;
    font-size: 1.35rem !important;
}




