*, *::after,*::before{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}
:root{
    --color-bg: #f7f8fb;
    --color-card: #ffffff;
    --color-primary: #0b2545;    /* deep navy */
    --color-accent: #b8860b;     /* warm gold */
    --color-muted: #6b7280;
    --text: #111827;
    --max-width: 1200px;
    --radius: 12px;
    --gap: 20px;
    --transition: 0.25s;
    --container-padding: 20px;
  }
  
  /* Base page typography */
  body{
     margin:0;
    padding:0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }
  
  /* Headings use a serif for authoritative feel */
  h1,h2,h3,h4{
    font-family: 'Merriweather', serif;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.15;
  }
  
  

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  background-color: #002244;
}

.logo img {
  width: auto;
  height: 60px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #ffff;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links li a:hover {
  color: #d4af37;
}

/* CONTACT BUTTON */
.btn-nav {
  background-color:  #ffff;
  color:  #002244!important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

.btn-nav:hover {
  background-color:#d4af37;
  color: #ffff!important;
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #002244;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  flex-direction: column;
  z-index: 999;
}

.dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: #ffff;
}

.dropdown-content li a:hover {
  background-color: #f5f5f5;
  color: cc;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* ===== TRANSLATE FIELD (RIGHT SIDE) ===== */
.translate-container {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* ===== MOBILE ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  color:#ffff;
  cursor: pointer;
}

@media (max-width: 768px) {
   .navbar {
    flex-wrap: wrap;
    background-color: #002244;
  } 

  .menu-toggle {
    display: block;
    cursor: pointer;
    color: #ffff;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
     background-color:#002244 !important;
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 15px;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .nav-links li a {
  text-decoration: none;
  color: ffff;
  font-weight: 500;
  transition: 0.3s ease;
   background-color: #002244;
}
  .nav-links.active {
    display: flex;
     opacity: 1;
     transform: translateY(0);
  }
  .btn-nav {
  background-color: #ffff!important;
  color:  #002244 !important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

.btn-nav:hover {
  background-color:#d4af37!important;
  color: #ffff!important;
}

}
.hero {
  background: linear-gradient(rgba(0, 25, 75, 0.8), rgba(0, 25, 75, 0.8)),
              url('../img/law7.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #dcdcdc;
  max-width: 700px;
}
/* Responsive */
@media (max-width: 900px){
  .hero-inner { grid-template-columns: 1fr; text-align:center; }
  .hero-image { order: -1; } /* show image above text on small screens */
}
.btn:link,
.btn:visited {
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.5rem 4rem;
  display: inline-block;
  border-radius: 10rem;
  transition: all 0.2s;
  position: relative;
  animation: moveinbottom 2s ease-out;
}

.btn:hover {
  transform: translateY(-0.4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-0.1px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.btn-primary{
  background-color: #fff;
  color: #777;
}

.btn::after {
  content: "";
  display: inline-block;
  border-radius: 10rem;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn-primary::after {
  background-color: #fff;
}

.btn:hover::after {
  transform: scale(1.5);
  opacity: 0;
}
 
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 30px auto;
    padding: 0 var(--container-padding);
  }
  
  .card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 6px 16px rgba(15,23,42,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 12px; }
  .card .button, .card .btn { display:inline-block; margin-top:8px; }
  
  /* Hover */
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11,37,69,0.08);
  }
  
.card-section-heading{
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: 40px;
    padding: 0 10px;
}

.card-section img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

   /* Footer styles */
   .footer {
    margin: 0;
    background-color: #222; /* Dark background color */
    color: #fff; /* Light text color */
    padding: 20px;
    text-align: center;
    border-top: 1px solid #444; /* Subtle top border */
}
.articles-section {
   
    background: linear-gradient( #0b2545c1,#b8870bcf)left bottom,url(../img/law2.webp);
    width: 100%;
    
  }

  .articles-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color:   #D4AF37;
    margin-bottom: 40px;
    padding: 0 10px;
    margin-top: 20px;
  }

  .article-grid {
    display: grid;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 60px ; 
  }

  .article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 100%;
    max-width: 350px;
    justify-content: space-between;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    
  }

  .article-card:hover {
    transform: translateY(-5px);
  }

  .article-card h3 {
    top: 20px;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    
  }

  .article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
  }

  .article-excerpt {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .read-more {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.2s;
  }

  .read-more:hover {
    color: #0056b3;
  }

  /* Responsive for tablets and phones */
  @media (max-width: 768px) {
    .has-dropdown:hover .dropdown{
        grid-template-columns: repeat(2,1fr); 
    }
    .article-grid {
       grid-template-columns: 1fr;
      align-items: center;
    }

    .article-card {
      max-width: 90%;
    }
  }

  @media (max-width: 480px) {
    .article-title {
      font-size: 1rem;
    }

    .article-excerpt {
      font-size: 0.9rem;
    }

    .articles-section {
      margin: 30px 0;
      padding: 0 10px;
    }

    .articles-title {
      font-size: 1.5rem;
    }
  }

  .footer {
    background-color: #0D1B2A;
    color: white;
     
    font-family: 'Poppins', sans-serif;
     
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
  }
  
  .footer-col h3, .footer-col h4 {
    color: #D4AF37;
    margin-bottom: 15px;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin: 8px 0;
  }
  
  .footer-col ul li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
  }
  
  .footer-col ul li a:hover {
    color: #00B4D8;
  }
  
  .social-icons a img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    transition: 0.3s;
    filter: brightness(0) invert(1);
  }
  
  .social-icons a img:hover {
    filter: brightness(0) invert(0.6) sepia(1) hue-rotate(180deg);
  }
  
  hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 30px 0;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
  }
  @media (max-width: 992px) {
    .card {
        width: calc(50% - 20px); /* Two cards per row on medium screens */
    }
}

/* Responsive adjustments (optional) */
@media (min-width: 768px) {
   

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .card {
        width: 100%; /* One card per row on small screens */
    }
    .slide {
        flex-direction: column; /* Stack image and content on smaller screens */
         
    }

    .slide-content {
        padding-top: 10px;
    }
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 50px; /* Adjust based on navbar height */
        left: 0;
        right: 0;
        height: 100vh;
        background-color:  #16098f;
        flex-direction: column;
        align-items: center;
        display: none; /* Initially hidden on mobile */
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active class is added */
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav-toggle.active .fa-bars::before {
        content: "\f00d"; /* Change to close icon */
    }

    .has-dropdown .dropdown {
        position: static; /* Display dropdown inline on mobile */
        display: none; /* Keep it hidden initially */
        background-color: #16098f;
    }

    .has-dropdown:hover .dropdown {
        display: block; /* Show dropdown on hover (or click with JS) */
        /* grid-template-columns: repeat(2,2fr);*/
    } 
}