:root {
  --black: #0f0f0f;
  --gold: #e8c46a; /* Keep this gold color */
  --law-blue: #1e4b7a; /* New: Define the primary blue color */
  --light-blue: #275d94; /* New: A slightly lighter blue for contrast */
  --white: #ffffff;
}

/* 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: 10px 0; /* Add more padding */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
  transition: all 0.4s ease;
}

/* --- LOGO STYLING (DEFAULT: DESKTOP) --- */
.logo {
  display: flex;
  flex-direction: column; /* DEFAULT: SIDE-BY-SIDE (Row Layout) for Desktop */
  align-items: center;
  gap: 10px; /* Space between image and text */
}

.alpha-symbol img {
  width: 150px; /* Smaller, more balanced logo image */
  height: auto;
  transition: transform 0.3s ease;
}

/* .logo:hover .alpha-symbol img {
  transform: rotate(5deg);
} */

.logo-text {
  font-weight: 500;
  font-size: 16px; /* Slightly larger text */
  line-height: 1.3;
  color: var(--gold);
  margin-top: 0;
  /* Ensure text is aligned correctly */
  text-align: left;
}

/* Navigation Links Styling */
.navbar-nav .nav-item {
  position:relative;
}

.nav-link {
  font-size: 17px;
  color: #fff !important;
  margin-left: 20px;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
  padding: 10px 0; /* Adjust padding for better clickable area */
}

.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;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
  margin-right: -200px !important;
}

.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;
  position: fixed;
}


.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 ;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  
}
#herocontent{
  margin-left: 100px;
}

.hero-title {
  font-size: 58px;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text {
  font-size: 20px;
  max-width: 600px;
  margin: 20px 0;
  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: #091a2c;
}
.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: #091d33;
  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: 1100px;
  margin: 20px;
}

.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: #092038;

}
.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: #071625;
  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: #092038;
  padding: 60px 0 20px;
  color: #fff;
  border-top: 1px solid var(--gold);
}

.footer-title {
  font-size: 22px;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 16px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer p,
.footer a {
  font-size: 15px;
}

.footer .copyright {
  font-size: 14px;
  color: #aaa;
  margin-top: 15px;
}

.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) {
  /*
    Overwriting desktop logo layout for mobile view.
    Stack the image and text vertically for space saving on small screens.
  */
  .logo {
    /* Set right margin of the logo container */
    margin-right: 5px; 
    
    flex-direction: column; 
    align-items: flex-start;
    gap: 0; /* Remove gap */
  }
 
  .alpha-symbol img {
    /* Nudge the image slightly to the left to reduce left margin */
    margin-left: -5px; 
    width: 80px; /* Adjusted size for better mobile fit */
  }
 
  .logo-text {
    text-align: left;
    font-size: 14px; /* Slightly smaller text on mobile */
    margin-top: 5px; /* Add slight separation */
    
    /* Nudge the text slightly to the left to reduce left margin */
    margin-left: -5px; 
  }

  /* 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: 10px;
  }
  
  .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;

  }
}

@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: #142f4a;
  --primary-dark:  #142f4a;
  --primary-green: #142f4a;
  --primary-green-dark: var(--gold);
  --bg-color: #f8f9fa;
  --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: -30px !important;
  }
}

/* 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: var(--light-blue);
  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: #0c0c0c;
}

.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: 75px;
}


/* 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: #000;
}

.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;
  }
}