:root {
  --black: #0a1628;
  --gold: #d4a44a; /* Professional gold - justice & excellence */
  --law-blue: #1a365d; /* Deep navy - trust & authority */
  --light-blue: #234876; /* Royal blue - technology & professionalism */
  --white: #ffffff;
  --dark-navy: #0d1b2a; /* Darkest background */
  --slate: #64748b; /* Neutral text */
  --light-slate: #94a3b8; /* Secondary text */
}

/* GENERAL */
body {
  background: var(--light-blue);
  color: var(--white);
  font-family: "Georgia", serif;
    /* -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */

}

/* --- NAVBAR --- */
.modern-nav {
  /* Use a solid, professional color and remove blur */
  background: var(--law-blue) !important;
  padding: 5px 0; /* Reduced padding for compact navbar */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  transition: all 0.4s ease;
  min-height: auto;
}

/* --- LOGO STYLING (DEFAULT: DESKTOP) --- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px; /* Reduced gap */
}

.alpha-symbol img {
  width: 75px; /* Balanced logo size */
  height: auto;
  transition: transform 0.3s ease;
}

/* .logo:hover .alpha-symbol img {
  transform: rotate(5deg);
} */

.logo-text {
  font-weight: 500;
  font-size: 14px; /* Compact text */
  line-height: 1.2;
  color: var(--gold);
  margin-top: 0;
  text-align: left;
}

/* Navbar container compact */
.modern-nav .container {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Navigation Links Styling */
.navbar-nav .nav-item {
  position:relative;
}

.nav-link {
  font-size: 15px;
  color: #fff !important;
  margin-left: 15px;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
  padding: 8px 0; /* Compact padding */
}

.nav-link.active,
.nav-link:hover {
  color: var(--gold) !important;
}

/* Professional Underline Hover Effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px; /* Position the line below the text */
  left: 20px;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 40px); /* Adjust width to match link's text area (minus the margins) */
}

/* Custom Toggler for Mobile */
.custom-toggler {
  border: none;
  background-color: transparent !important;
  padding: 0;
  outline: none;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggle-icon {
  font-size: 24px;
  color: var(--gold); /* Gold color for the icon */
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Toggle icon animation when menu is open */
.toggle-icon.fa-xmark {
  transform: rotate(90deg);
}

.toggle-icon.fa-bars {
  transform: rotate(0deg);
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
}

.btn-outline-gold {
  padding: 6px 14px;
  font-size: 14px;
}

/* Removed negative margin that was causing navbar overflow */

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none !important;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: black;
}

/* HERO SECTION */
/* PARALLAX HERO */
.hero {
  height: 100vh;
  background: url("asset/aboutheroimage.png") center center / cover fixed no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* dark overlay */
}
#Hero{
  position: relative;
  z-index: 1;
  margin-top: 90px;
  width: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#herocontent{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 58px;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text {
  font-size: 20px;
  max-width: 600px;
  margin: 20px auto;
  text-align: center !important;
}

.btn {
  font-size: 16px;
}

.hero-services {
  font-size: 40px;
  font-weight: bold;
  color: var(--gold);
}

#dynamic-word {
  color: #fff;
  transition: opacity 0.5s;
}

/* WHATSAPP FLOAT */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  padding: 12px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  z-index: 1000; /* Ensure it floats above everything */
}

.whatsapp img {
  width: 25px;
  border-radius: 5px;
}

/* SERVICE CARDS */
#services {
  background-color: #0d1b2a;
}
.service-section {
  padding: 100px 0;
  color: #1e4b7a;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--law-blue);
  color: white;
  padding: 30px;
  border-radius: 12px;
  transition: 0.4s;
  border: 2px solid transparent;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.35);
}

.service-card h3 {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 15px;
}

.service-card p {
  color: #ddd;
  line-height: 1.5;
  font-size: 15px;
}


/* COUNTERS */
.counters-section {
  background: #0a1628;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  justify-items: center;
}

.counter-card h2 {
  font-size: 48px;
  color: var(--gold);
  font-weight: bold;
}

.counter-card p {
  font-size: 16px;
  margin-top: 10px;
  color: #ddd;
}



/* Layout */
.about-section {
  padding: 80px 20px;
  background: var(--light-blue);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.about-content {
  display: flex;
  align-items: flex-start; /* Align photo and text at top */
  gap: 30px;
  flex-wrap: wrap;
}

/* Photo styling with hover effect */
.about-photo {
  flex: 0 0 300px; /* Smaller width */
  overflow: hidden;
  border-radius: 12px;
}

.about-photo img {
  width: 100%;
  height: 380px;
  display: block;
  transition: transform 0.4s ease;
}

.about-photo img:hover {
  transform: scale(1.05);
}

/* Text styling */
.about-text {
  flex: 1 1 0;
  text-align: left; /* Align text to the left */
}

.about-text h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

/* Dynamic text */
#dynamic-text {
  display: inline;
  font-weight: 600;
  color: var(--white);
}

#cursor {
  display: inline-block;
  font-weight: bold;
  animation: blink 1s step-start infinite;
  color: var(--gold);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 20px;
  }

  .about-photo, .about-text {
    flex: 1 1 100%;
  }
}

/* TESTIMONIALS */
/* Container */
.testimonials-section{
  background-color: #0d1b2a;

}
.testimonial-slider {
  position: relative;
  width: 100%;
}

.testimonial-track {
  position: relative;
}

/* CARD */
.testimonial-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  background: #0a1628;
  padding: 35px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.testimonial-card.active {
  opacity: 1;
  position: relative;
}

/* TYPEWRITER TEXT */
.type-text {
  min-height: 140px;        /* keeps lines equal height */
  white-space: pre-wrap;
  overflow: hidden;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
  color: #ddd;
}

/* BLINKING CURSOR */
.type-text::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 1.2em;
  background: var(--gold);
  margin-left: 4px;
  animation: blinkCursor 0.7s steps(1) infinite;
  opacity: 1;
  bottom: 0;
}

/* Cursor animation */
@keyframes blinkCursor {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}



/* Mobile */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 25px;
  }
  .testimonial-card p {
    font-size: 15px;
  }
  .testimonial-card h4 {
    font-size: 13px;
  }
}



/* FOOTER */
.footer {
  background: linear-gradient(180deg, #0a1628 0%, #0d1b2a 100%);
  padding: 70px 0 30px;
  color: #fff;
  border-top: 3px solid var(--gold);
}

.footer-brand {
  margin-bottom: 15px;
}

.footer-brand .footer-title {
  display: block;
}

.footer-brand .footer-title::after {
  left: 0;
  transform: none;
}

@media (max-width: 767.98px) {
  .footer-brand {
    text-align: center;
  }
  
  .footer-brand .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-logo {
  filter: brightness(1.1);
}

.footer-title {
  font-size: 20px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

/* Mobile: Center the underline */
@media (max-width: 767.98px) {
  .footer .col-lg-3,
  .footer .col-lg-2,
  .footer .col-lg-4,
  .footer .col-md-6 {
    text-align: center;
  }
  
  .footer-title {
    display: block;
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links,
  .contact-info-list {
    display: inline-block;
    text-align: left;
  }
  
  .social-grid {
    margin: 0 auto;
  }
}

/* Desktop: Left align underline */
@media (min-width: 768px) {
  .footer-title::after {
    left: 0;
    transform: none;
  }
}

.footer-desc {
  color: #b0b8c4;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #b0b8c4;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a i {
  font-size: 10px;
  color: var(--gold);
  opacity: 0;
  transition: all 0.3s ease;
  margin-right: 0;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-links a:hover i {
  opacity: 1;
  margin-right: 8px;
}

/* Contact Info List */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #b0b8c4;
  font-size: 14px;
  line-height: 1.6;
}

.contact-info-list li i {
  color: var(--gold);
  font-size: 16px;
  margin-right: 12px;
  margin-top: 3px;
  min-width: 20px;
}

.contact-info-list li a {
  color: #b0b8c4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-list li a:hover {
  color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 196, 106, 0.3), transparent);
  margin-bottom: 25px;
}

.footer .copyright {
  font-size: 14px;
  color: #8a94a6;
}

.powered-by {
  color: #8a94a6;
  font-size: 14px;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  margin-bottom: 10px;
}

.app-store-badge img {
  height: 50px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.app-store-badge:hover img {
  transform: scale(1.05);
}

/* Social Media Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 280px;
}

.social-box {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.social-box:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(232, 196, 106, 0.2);
}

.social-box i {
  transition: transform 0.3s ease;
}

.social-box:hover i {
  transform: scale(1.1);
}

/* YouTube - Red */
.social-box .fa-youtube {
  color: #ff0000;
}

/* Facebook - Blue */
.social-box .fa-facebook-f {
  color: #1877f2;
}

/* LinkedIn - Blue */
.social-box .fa-linkedin-in {
  color: #0a66c2;
}

/* Telegram - Blue */
.social-box .fa-telegram-plane {
  color: #0088cc;
}

/* TikTok - White/Pink */
.social-box .fa-tiktok {
  color: #fff;
}

/* Instagram - Gradient effect */
.social-box .fa-instagram {
  color: #e4405f;
}

/* WhatsApp - Green */
.social-box .fa-whatsapp {
  color: #25d366;
}

/* X (Twitter) - White */
.social-box .fa-x-twitter {
  color: #fff;
}

.social-box.x-icon { 
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #fff;
}

/* Legacy social media list (keep for backward compatibility) */
.social-media-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-media-list li {
  margin-bottom: 12px;
}

.social-media-list .social-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.social-media-list .social-icon i {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 196, 106, 0.1);
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--gold);
}

.social-media-list .social-icon:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.social-media-list .social-icon:hover i {
  background: var(--gold);
  color: #000;
  transform: scale(1.1);
}

[data-aos] {
  transition: all 0.8s ease;
}

/* --- RESPONSIVE STYLES (MOBILE) --- */
@media (max-width: 991.98px) {
  /* Professional navbar on mobile */
  .modern-nav {
    padding: 15px 0;
  }

  .modern-nav .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /*
    Overwriting desktop logo layout for mobile view.
    Horizontal layout for professional appearance.
  */
  .logo {
    margin-right: 5px; 
    flex-direction: row; 
    align-items: center;
    gap: 12px;
  }
 
  .alpha-symbol img {
    margin-left: 0; 
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
 
  .logo-text {
    text-align: left;
    font-size: 13px;
    margin-top: 0;
    margin-left: 0;
    display: block;
    line-height: 1.4;
    max-width: 140px;
    font-weight: 500;
  }

  /* Mobile Menu Background */
  .navbar-collapse {
    background-color: var(--light-blue); /* Dark background for the expanded menu */
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    margin-left: 0;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none; /* Remove underline on mobile view */
  }

  .btn-gold {
    width: 100%;
    margin-top: 15px !important;
  }
  #herocontent{
    margin-left: 0;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .testimonial-card p{
    text-align: left !important;
    white-space: normal !important;

  }
  .service-card {
    margin-left: 15px !important;
    margin-right: 15px !important;
}
}

@media (max-width: 768px) {
    /* Optional: Further refinement for smaller phones if needed */
}
/* --- FIX HORIZONTAL SCROLLING (DO NOT CHANGE ANYTHING ELSE) --- */

/* Prevent any container from becoming wider than the screen */
* {
  box-sizing: border-box;
}

/* Fix for grids or flex items pushing outside screen */
body, html {
  overflow-x: hidden !important;
  width: 100% !important;
}

@media (min-width: 992px) {
  #navMenu {
    margin-right: 5px !important;
  }
  
}


:root {
  --primary-blue: #1a365d;
  --primary-dark:  #0a1628;
  --primary-green: #1a365d;
  --primary-green-dark: var(--gold);
  --bg-color: #f1f5f9;
  --white: #ffffff;
  --border-radius: 6px;
  --text-color: white;
}

/* body {
  font-family: 'Noto Sans Ethiopic', 'Roboto', sans-serif;
  background-color: var(--bg-color);
  margin: 0;
  padding: 20px;
  color: var(--text-color);
} */

body.en {
  font-family: 'Roboto', sans-serif;
}

/* .container {
  max-width: 1200px;
  margin: 0 auto;
} */

/* Header Controls */
.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.calculator-toggle {
  display: flex;
  gap: 10px;
}

.toggle-button, .calc-switch-button {
  background-color: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.toggle-button:hover, .calc-switch-button:hover {
  background-color: transparent !important;
}

.calc-switch-button.active {
  background-color: var(--gold);
}

/* Calculator Type Button Styles */
.calc-switch-button.federal-btn {
  background-color: var(--primary-dark);
}


.calc-switch-button.federal-btn.active {
  background-color: var(--gold);
}

.calc-switch-button.central-btn {
  background-color: var(--primary-green)
}

.calc-switch-button.central-btn.active {
  background-color: var(--gold);
}

/* Top Banner */
.top-banner {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.top-banner.central {
  background-color: var(--primary-green);
}

/* Main Grid */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .main-content {
      grid-template-columns: 1fr;
  }
  .feacal{
    margin-left: 0 !important;
    padding: 0 10px;
  }
}

/* Left Column: Calculator */
.calculator-card {
  background: transparent;
}

.calc-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 25px;
  line-height: 1.5;
  text-align: center;
  font-size: 0.95em;
}

.calc-header.central {
  background-color: var(--primary-green);
}

.input-group {
  margin-bottom: 25px;
}

.input-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: white;
}

input[type="number"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.2em;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  background: var(--white);
}

/* Result Boxes */
.result-box {
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-box.central {
  background-color: var(--primary-green);
}

.result-label {
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95em;
}

.result-value {
  padding: 20px;
  font-size: 1.3em;
  font-weight: 500;
}

/* Right Column: Accordion */
.right-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius);
  font-weight: 700;
  margin-bottom: 20px;
}

.right-header.central {
  background-color: var(--primary-green);
}

.sub-text {
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
  color: #ffffff;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accordion-button {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 0.95em;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.accordion-button.central {
  background-color: rgb(200, 240, 245);
}

/* .accordion-button::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
}

.accordion-button.active::after {
  content: '-';
} */

.accordion-content {
  background-color: #f1f5f9;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.accordion-body {
  padding: 20px;
  font-size: 0.9em;
  line-height: 1.6;
  color: #1a365d;
}

.accordion-body ol {
  padding-left: 20px;
  margin: 0;
}

.accordion-body li {
  margin-bottom: 10px;
}

/* SUB CALCULATOR STYLING */
.sub-calculator {
  background-color: #eef3f5;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #dbe2e8;
  margin-bottom: 20px;
}

.sub-calc-label {
  font-weight: 700;
  color: #225a71;
  margin-bottom: 8px;
  display: block;
}

.sub-calc-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 1em;
  box-sizing: border-box;
}

.sub-calc-result {
  font-weight: 700;
  font-size: 1.1em;
  color: #225a71;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.sub-calculator.central .sub-calc-label,
.sub-calculator.central .sub-calc-result {
  color: var(--primary-green);
}

/* Hidden class for toggling */
.hidden {
  display: none;
}

/* Active state for calculator buttons */
.calc-switch-button.active {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.feacal{
  margin-left: 0;
  padding: 0 15px;
}


/* Auth Buttons in Nav */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-buttons .btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.auth-buttons .btn-outline-gold {
  border-width: 1px;
}

.user-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.user-menu .dropdown-menu {
  background: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 180px;
}

.user-menu .dropdown-item {
  padding: 10px 20px;
  color: #333;
  font-size: 14px;
  transition: all 0.3s;
}

.user-menu .dropdown-item:hover {
  background: var(--gold);
  color: #0a1628;
}

.user-menu .dropdown-item i {
  width: 20px;
}

@media (max-width: 991.98px) {
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .auth-buttons .btn {
    width: 100%;
  }
  
  .guest-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .user-menu {
    width: 100%;
  }
  
  .user-menu .dropdown {
    width: 100%;
  }
  
  .user-menu .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .user-menu .dropdown-menu {
    width: 100%;
    text-align: center;
  }
}

/* Desktop navbar alignment fix */
@media (min-width: 992px) {
  .auth-buttons {
    margin-left: auto;
  }
  
  .user-menu .dropdown-toggle {
    white-space: nowrap;
  }
}


/* Additional Mobile Responsive Fixes */
@media (max-width: 576px) {
  /* Professional navbar on small phones */
  .modern-nav {
    padding: 12px 0;
  }

  .modern-nav .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .alpha-symbol img {
    width: 52px;
    height: 52px;
  }

  .logo-text {
    font-size: 11px;
    max-width: 115px;
    line-height: 1.3;
  }

  .custom-toggler {
    padding: 10px 14px;
    border-radius: 6px;
  }

  .toggle-icon {
    font-size: 22px;
  }

  .hero-title {
    font-size: 28px;
  }
  
  .hero-text {
    font-size: 14px;
  }
  
  .hero-services {
    font-size: 28px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .service-card h3 {
    font-size: 20px;
  }
  
  .counter-card h2 {
    font-size: 36px;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
  
  .footer-title {
    font-size: 18px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .type-text {
    font-size: 14px;
    min-height: 100px;
  }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
  .hero-title {
    font-size: 42px;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix container padding on mobile */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ============================================= */
/* GLOBAL CENTERING FIX - Professional Layout   */
/* ============================================= */

/* Ensure all sections are centered */
section {
  width: 100%;
}

section > .container,
main > .container,
header > .container,
footer > .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Center all row content */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure grid items have equal spacing */
.service-grid,
.article-grid,
.counters-grid {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Center hero content */
.hero .container,
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Center buttons */
.hero-buttons,
.d-flex.gap-3 {
  justify-content: center;
  width: 100%;
}

/* Fix hero section centering */
.hero.d-flex {
  justify-content: center !important;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Responsive centering */
@media (max-width: 991px) {
  section > .container,
  main > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  section > .container,
  main > .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero-content {
    padding: 0 10px;
  }
}

/* ============================================= */
/* PROFESSIONAL SECTION CENTERING               */
/* ============================================= */

/* Ensure all major sections have centered content */
#services .container,
#about .container,
#vision-mission-values .container,
.counters-section .container,
.testimonials-section .container,
.about-section .container,
.clients .container,
.testimonials .container,
.book-section .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Center card grids */
.row.g-4,
.row.gy-4 {
  justify-content: center;
}

/* Ensure equal padding on all sides */
section.py-5 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Center text content in sections */
.text-center {
  text-align: center !important;
}

/* Fix any remaining margin issues */
.col-lg-4,
.col-lg-6,
.col-md-4,
.col-md-6 {
  padding-left: 15px;
  padding-right: 15px;
}