: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 */
}

/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff; /* Changed base text color for dark sections */
  background: var(--black); /* Set background for consistency */
  overflow-x: hidden;
}


/* 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 (Matching Home Page) */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
}

.btn-warning {
  /* Overrides for the buttons not using btn-gold, adjust to match */
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #000 !important;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.btn-warning:hover {
  filter: brightness(1.1);
}

/* --- END NAVBAR STYLES --- */

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  color: #fff;
  margin-top: 50px; /* Account for fixed navbar height */
}

#about {
  background-color: var(--law-blue) !important;
  justify-content: center;
}

#about .container {
  max-width: 1200px;
  margin: 0 auto;
}

#aboutcontainer {
  max-width: 100%;
  margin: 0 auto;
}
.hero-section .hero-overlay {
  z-index: 1;
}
#aboutus p{
  margin-left: 0;
}
#addre p{
  margin-left: 0;
}
.hero-section h1,
.hero-section p {
  position: relative;
  z-index: 2;
}
#herocontent, #herocont{
  align-items: center;
  text-align: center;
}
.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.25rem;
  margin-top: 15px;
}

/* WhatsApp Button */
.btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.btn-success:hover {
  transform: scale(1.1);
}

/* Section Titles */
h2,
h3 {
  position: relative;
  color: var(--gold); /* Set titles to gold */
}

h2::after,
h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 10px auto 0;
}
#mainPhoto {
  height: auto;
  max-width: 100%;
}
/* Cards Hover Effect */
#vision-mission-values {
  background-color: #0d1b2a !important;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--law-blue) !important; /* Set card background */
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0;
}
.card h5 {
  color: var(--gold);
}
.card p {
  color: #ddd;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* Why Choose List Icons */
.list-unstyled i {
  color: var(--gold) !important;
}

/* FOOTER (Keep the existing footer styles which match the home page) */
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 16px;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: black;
}

/* Footer styles are now in home.css - removed duplicates */

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments (Matching Home Page) */
@media (max-width: 991.98px) {
  /* LOGO MOBILE FIX */
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-right: 5px;
  }
  .alpha-symbol img {
    margin-left: -5px;
    width: 80px;
  }
  .logo-text {
    text-align: left;
    font-size: 14px;
    margin-top: 5px;
    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,
  .btn-warning {
    width: 100%;
    margin-top: 15px !important;
  }

  /* OTHER MOBILE STYLES */
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
  #aboutus p{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .card {
    margin-left: 15px !important;
    margin-right: 15px !important;
}
#addre p{
  margin-left: 0 !important;
  margin-right: 0 !important;
}
}

@media (max-width: 480px) {
  .hero-section {
    text-align: center;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }
}
/* --- 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;
}

/* Fix text overflow on mobile */
p, h1, h2, h3, h4, h5, h6, li, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* About section text fix */
#about p,
#about .text-light {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Container overflow fix - don't override Bootstrap's max-width on desktop */
.container {
  overflow-x: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Center section content */
#about .container,
#vision-mission-values .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Row overflow fix - only on mobile */
@media (max-width: 767px) {
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  #aboutus p{
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 15px;
  }
}

/* Column overflow fix on mobile */
@media (max-width: 991.98px) {
  [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }
  
  #about .row {
    flex-direction: column-reverse;
  }
  
  #about .col-lg-6 {
    width: 100%;
    margin-bottom: 20px;
  }
}


/* Additional Mobile Responsive Fixes */
@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section p {
    font-size: 0.85rem;
  }
  
  .card {
    margin-bottom: 15px;
  }
  
  h2::after,
  h3::after {
    width: 60px;
    height: 3px;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
  
  .footer-title {
    font-size: 18px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* About section mobile text fix */
  #about p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
  }
  
  #about .text-light.col-lg-6 {
    padding: 0 10px;
  }
  
  /* List items fix */
  .list-unstyled li {
    font-size: 0.9rem;
    padding-right: 10px;
  }
  
  /* Section padding fix */
  section.py-5 {
    padding: 2rem 0 !important;
  }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}