 @import url('https://fonts.cdnfonts.com/css/zapfino');
 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
 @font-face {
    font-family: 'Publico Headline Web Bold';
    src: url('../fonts/Publico Headline Web Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }
  @font-face {
    font-family: 'Typo';
    src: url('../fonts/Typo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
                
  body,html {
    margin: 0;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;    
  }


  /* Navigation */
  .navbar-custom {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
  }

  /* Flex spacing for nav items */
  .navbar-custom .d-flex.align-items-stretch > .nav-link {
    margin: 0 16px; /* More space between items */
  }

  /* Logo default */
  .navbar-custom img {
    height: 100px;
    transition: all 0.3s ease-in-out;
    display: block;
    margin: 0 auto; /* keeps it centered */
  }

  /* Reduce spacing between logo and menu items */
  .navbar-custom .me-3,
  .navbar-custom .ms-3 {
    margin: 0 6.5rem !important; /* smaller gap, adjust as needed */
  }

  /* Navbar links */
  .navbar-custom .nav-link {
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    padding: 1.5rem 0; 
  }

  /* Hover effect */
  .navbar-custom .nav-link:hover {
    background-color: #00bfff;
    color: #fff !important;
  }

  /* Active link (different from hover) */
  .navbar-custom .nav-link.active {
    background-color: #004d80;
    color: #fff !important;
  }

  /* Sticky shrink on scroll */
  .navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-custom.scrolled img {
    height: 70px;
  }

  .navbar-custom.scrolled .nav-link {
    font-size: 0.9rem;
  }

  /* --- Center the Logo --- */
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Ensure toggler (hamburger) doesn't overlap logo */
  .navbar-toggler {
    border: none;
    font-size: 1.5rem;
    z-index: 1050;
  }


  /* Hero Section */
  .hero {
    background: url('../images/backgrounds/hero-bg.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 0 20px;
  }
  .hero h1 {
    font-size: 5rem;
    font-weight: bold;
    line-height: 0.2;
    color: #00aff0; 
    font-family: 'Publico Headline Web Bold', serif;
  }
  .hero h1 span {
    font-family: 'Zapfino', cursive;
    font-weight: 400;
    position: relative;
    left: 5px;
    color: #fff
  }
  .hero p {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #ddd;
  }
  /* Button */
  .hero-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: #fff;
    color: #000;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #275990;
  }

  .hero-btn span {
    margin-left: 0.5rem;
  }

  .hero-btn:hover {
    background: #275990;
    color: #fff;
    border-color: #275990;
  }

  .hero-divider {
    width: 100%;
    height: 5px;
    background: url('../images/backgrounds/line.png') repeat center center;
  }

  .hero-service {
    background: url('../images/backgrounds/service-hero.png') no-repeat center bottom/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 0 20px;
  }
  .hero-service h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #00aff0; 
    font-family: 'Publico Headline Web Bold', serif;
  }

  .hero-service p {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #000;
  }

  .hero-attorneys {
    background: url('../images/backgrounds/bg5.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 0 20px;
  }
  .hero-attorneys h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #00aff0; 
    font-family: 'Publico Headline Web Bold', serif;
  }

  .hero-attorneys p {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #000;
  }

  /* Feature Section */
  .feature-box {
    width: 100%;
    max-width: 300px;
    margin: auto;
  }

  .icon-circle {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;

    /* Background image */
    background-image: url("../images/icons/icon-overlay.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white; 
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  }

  .icon-circle img {
    width: 50%;   /* scale the icon image */
    height: auto;
  }

  .feature-row {
    display: flex;
    flex-wrap: wrap;
  }

  .feature-row .col-md-3 {
    display: flex; /* ensures equal height across columns */
  }

  .feature-row .feature-box {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .feature-box .border {
    flex: 1; /* makes content area stretch evenly */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* keep heading + text aligned */
  }

  .feature h5 {
    font-family: "Publico Headline Web Bold", serif;
    text-transform: uppercase;
    margin-top: 50px;
    color: #004d80;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .feature p {
    font-size: 0.9rem;
    color: #000;
    margin-top: 10px;
    line-height: 1.2;
  } 

  /* Welcome Section */
  .welcome-heading {
    font-weight: bold;
    color: #00aff0; /* Blue color */
    font-family: 'Publico Headline Web Bold', serif;
  }

  .tagline {
    font-family: 'Zapfino', cursive;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .principal-name {
    font-weight: bold;
    font-size: 1.2rem;

  }

  .principal-title {
    color: #00aff0;
    font-family: 'Zapfino', cursive;
    font-size: 0.8rem;
    font-weight: 600;
    
  }

/* Area of Practice Section */
.practice-section {
  background: url('../images/backgrounds/bg2.jpg') no-repeat center center/cover;
  padding: 60px 0;
  position: relative;
}

.practice-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 0;
}

.practice-section h1{
  font-size: 3.5rem;
  font-family: 'Publico Headline Web Bold', serif;
}

.practice-section .container {
  position: relative;
  z-index: 1;
}

/* Card base */
.practice-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Gradient overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95); /* white background with slight transparency */
  color: black;
  transform: translateY(40%);
  transition: transform 0.4s ease;
}

.overlay h5 {
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
}

.overlay p {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effects */
.practice-card:hover img {
  transform: scale(1.15); /* Slight zoom effect on hover */
}

.practice-card:hover .overlay {
  transform: translateY(0%);
  background: rgba(255, 255, 255, 0.8); /* slightly more opaque on hover */
}

.practice-card:hover .overlay p {
  opacity: 1;
}


/*Regulatory Compliance Section*/
.regulatory-section {
  background: url("../images/backgrounds/bg5.jpg") no-repeat center center;
  background-size: cover;
  padding: 80px 0;
  color: white;
}

.regulatory-section h2 {
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Publico Headline Web Bold', serif;
}

.regulatory-section p {
  font-size: 15px;
  line-height: 1.7;
}

.regulatory-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.regulatory-logos img {
  background: white;
  border-radius: 15px;
  padding: 15px;
  max-width: 140px;
  flex: 1 1 calc(50% - 20px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.regulatory-logos img:hover {
  transform: scale(1.05);
}

/* Client Section */

.trusted-logo {
  max-height: 105px;   /* smaller logo size */
  margin: 30px;       /* spacing around each logo */
  object-fit: contain;
}

.trusted-section h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #00aff0; /* blue color */
  font-family: "Publico Headline Web Bold", serif;

}

.trusted-section p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1px;
    font-family: "Publico Headline Web Bold", serif;


}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
  background: url('../images/backgrounds/bg6.png') no-repeat center center/cover;
  padding-bottom: 80px; /* space for wave */
}

/* Left content */
.left-content {
  max-width: 500px;
}

.left-content .subtitle {
  color: #000;
  margin-bottom: 15px;
}

.left-content h2 {
  color: #00aff0;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  font-family: 'Publico Headline Web Bold', serif;
}

.left-content p {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 30px;
}

.right-col {
  width: 100%;           /* only fill its column, not the entire screen */
  margin-left: auto;        /* center inside its column */
  background-color: #002b5c;
  border-radius: 0 0 0 6px;
  padding: 100px;
}

.right-col h2 {
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  font-family: "Publico Headline Web Bold", serif;

}

.right-col p {
  color: #ddd;
  font-size: 1rem;
  line-height: 0.6;
  margin-bottom: 70px;
}

/* Inputs styling */
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  border: none;
  color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {  
  outline: none;
  box-shadow: 0 0 5px rgba(0, 175, 240, 0.5);
}

/* Submit button */
.btn-submit {
  background: #00aff0;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-submit:hover {
  background: #275990;
}

.btn-custom {
  display: inline-block;
  background: none;
  border: 1px solid #275990;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  transition: 0.3s;
}

.btn-custom:hover {
  background: #275990;
  color: #fff;
  border-color: #275990;
}


/*Opportunity Section */
.opportunity-section {
  padding: 100px 20px;
  background: #fff;
}

.opportunity-section .title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00aff0; /* blue color */
  margin-bottom: 20px;
  font-family: "Publico Headline Web Bold", serif;
}

.opportunity-section .description {
  max-width: 750px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.btn-learn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #333;
  border-radius: 25px;
  text-decoration: none;
  color: #000;
  font-size: 15px;
  transition: 0.3s;
}

.btn-learn:hover {
  background: #275990;
  color: #fff;
  border-color: #275990;
}

.lawscope-section {
  padding: 80px 20px;
  background: #fff;
}

.lawscope-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.title {
  font-size: 32px;
  font-weight: 700;
  color: #e85d04; /* orange */
  margin-bottom: 20px;
  font-family: "Publico Headline Web Bold", serif;
}

.description {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #333;
  border-radius: 25px;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #275990;
  border-color: #275990;
  color: #fff;
}

.image-block img {
  width: 100%;
  max-width: 500px;
}

/* Carousel */
.carousel {
  margin-top: 50px;
  background: #f0f8ff;
  padding: 20px 10px;
  border-radius: 12px;
  overflow-x: auto;
}

.carousel-section {
  margin-top: 50px;
  background: #f0f8ff;
  padding: 40px 20px;
  border-radius: 12px;
}

.swiper {
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
}

.swiper-slide img {
  width: 180px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.swiper-slide img:hover {
  transform: scale(1.05);
}

.swiper-slide p {
  font-size: 14px;
  margin-top: 12px;
  color: #333;
  line-height: 1.4;
}

/* Arrows styling */
.swiper-button-next,
.swiper-button-prev {
  color: #ff6600; /* orange arrows */
}


.carousel-track {
  display: flex;
  gap: 50px; /* Increased gap between books */
  padding: 10px 20px;
}

.book-card {
  flex: 0 0 auto;
  text-align: center;
  width: 200px; /* slightly wider */
}

.book-card img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.book-card img:hover {
  transform: scale(1.05);
}

.book-card p {
  font-size: 14px;
  margin-top: 12px;
  color: #333;
  line-height: 1.4;
}

/* Arms of engagement Styling */
.arms-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background: url('../images/backgrounds/bg7.jpg') no-repeat center center/cover;
  overflow: hidden;
}

.arms-title {
  font-family: "Zapfino", cursive;
  font-size: 2rem;
  color: #0d9cec; /* blue heading */
  margin-bottom: 40px;
  font-weight: 600;
}

/* Container & Cards */
.arms-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 2; /* ensure cards stay above waves */
  
}

.arm-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arm-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.arm-card h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

/* Hover Effect */
.arm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* Service Section */
.services-section {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.wave-overlay {
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.wave-overlay img {
  width: 100%;
  height: auto;
  display: block;
  background-position: center top;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

/* Service box styling */
.service-box {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-size: 0.65rem;   /* smaller font size */
  font-weight: 500;
  text-align: center;
  white-space: nowrap; /* force single line */
  transition: all 0.3s ease;
}

.service-box:hover {
  background: #00aaff;
  color: #fff;
  border-color: #00aaff;
}

.service-detail {
  background: #fff; /* clean white background */
}

.service-detail img {
  width: 100%;
}

.service-icon {
  position: absolute;
  top: 30px;
  left: 15%;
  transform: translateX(-20%);
  background: #d7e8f7;
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 60px;
  height: 60px;
}

.service-detail h2 {
  font-size: 2rem;
  color: #00aaff;
  margin-bottom: 20px;
  font-family: 'Publico Headline Web Bold', serif;
}

.practice-team-section {
  background: url('../images/backgrounds/services.png') no-repeat center right/cover;
}

.practice-team-section h2 {
  font-family: 'Publico Headline Web Bold', serif;
  color: #00aff0; /* blue color */
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: #cef2ff;
}

.practice-areas-box {
  background: #cef2ff; /* light-blue box */
}

/* Small version of cards for right column */
/* Compact version */
.practice-card.small-version img {
  height: 120px; /* reduce image height */
}

/* Overlay adjustments */
.practice-card.small-version .overlay {
  padding: 8px;
  transform: translateY(15%);
  font-size: 0.4rem; /* smaller base */
}

.practice-card.small-version .overlay h6 {
  font-size: 0.6rem;
  margin: 0 0 5px 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.practice-card.small-version .overlay p {
  margin: 0;
  font-size: 0.5rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effect still applies */
.practice-card.small-version:hover img {
  transform: scale(1.1);
}

.practice-card.small-version:hover .overlay {
  transform: translateY(0%);
}

.practice-card.small-version:hover .overlay p {
  opacity: 1;
}

.profile-hero {
  background: #05284c; /* deep blue */
  color: white;
  position: relative;
  overflow: visible;
  padding: 20px;
}

.profile-hero h2 {
  font-weight: bold;
  color: #00aff0; 
  font-family: 'Publico Headline Web Bold', serif;
  margin-top: 190px;
}

.profile-hero p {
  font-family: 'Zapfino', cursive;
  margin-top:40px;
  color:#00aff0;
}

.profile-img{
  max-height: auto;
  max-width: 410px;
  object-fit: cover;
  position: absolute;
  top: 270px;   /* push upward slightly */
  left: 130px; /* overlap into white section */
  z-index: 1;
}

.profile-details p, ol{
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.profile-details h6{
  color: #00aff0; 
  font-family: 'Zapfino', cursive;
  margin-top: 50px;
}

.team-section {
  background: #fff;
}

.team-section h2 {
  font-size: 3.0rem;
  font-weight: 700;
  color: #00aff0; /* blue color */
  font-family: "Publico Headline Web Bold", serif;
}

.team-section p {
  color: #444;
  line-height: 1.6;
  font-size: 12px;
}

.team-card img {
  width: 100%;
  height: 250px;   /* fixed height for all team images */
  object-fit: cover;  /* crop to fit nicely */
  border: 1px solid #003;
}

.team-card h6 {
  color: #00aff0;
  font-size: 15px;
}












/* Footer */
/* Main footer */
.footer {
  background: linear-gradient(135deg, #0077b6, #002b5c);
  padding: 120px 0 100px 0;
  font-size: 15px;
  min-height: 400px;
}

/* Bottom footer */
.footer-bottom {
  background-color: #002b5c; /* darker strip */
  padding: 20px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #00aaff;
}

/* Social icons */
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: #00aaff;
}

.footer ul li {
  margin-bottom: 15px; /* adjust spacing */
  line-height: 1.2;    /* makes text easier to read */
}

/* Back to top button */
/* Floating Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d9cec;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #fff;
  color: #03274f;
}

/* ==============================
   Base (Mobile first – default styles)
   ============================== */

/* Navbar */
.navbar-custom img {
  height: 70px; /* smaller logo by default */
}
.navbar-collapse {
  text-align: center;
  margin-top: 0.5rem;
}
.navbar-brand {
  margin: 0 auto 1rem;
  display: block;
  text-align: center;
  position: relative;
  left: auto;
  transform: none;
}
.navbar-nav .nav-item {
  margin: 0.5rem 0;
}

/* Hero */
.hero h1 {
  font-size: 2.5rem;
}

/* Footer */
.footer-container,
.footer-bottom {
  flex-direction: column;
  text-align: center;
}
.footer-bottom {
  gap: 10px;
}
.footer-links {
  justify-content: center;
}

/* Arms container/cards */
.arms-container {
  justify-content: center;
}
.arm-card {
  width: 100%;
  max-width: 320px;
}

/* Opportunity section */
.opportunity-section .title {
  font-size: 26px;
}
.opportunity-section .description {
  font-size: 14px;
}

/* Practice section */
.practice-section {
  padding: 40px 0;
}
.image-container img {
  height: 180px;
}
.overlay {
  transform: translateY(30%);
  padding: 15px;
}
.overlay h5 {
  font-size: 0.9rem;
}
.overlay p {
  font-size: 0.8rem;
}
.tagline {
  font-size: 2rem;
}

/* Regulatory section */
.regulatory-section {
  text-align: center;
}
.regulatory-logos {
  justify-content: center;
}
.regulatory-logos img {
  max-width: 100px;
}

/* Smallest screens */
@media (max-width: 576px) {
  .overlay {
    transform: translateY(60%);
  }
  .overlay p {
    opacity: 1;
  }
}

/* ==============================
   Small devices (max-width: 576px)
   ============================== */
@media (max-width: 576px) {
  .overlay {
    transform: translateY(60%); /* fully open overlay on very small screens */
  }

  .overlay p {
    opacity: 1; /* always visible on tiny screens for accessibility */
  }
}

/* ==============================
   Mobile (max-width: 768px)
   ============================== */
@media (max-width: 768px) {

  /* Hero text */

  .hero h1 {
    font-size: 3.2rem;
    line-height: 0.7;
  }
  .hero h1 span {
    font-size: 2.7rem;
  }

  .feature-box {
    margin-bottom: 30px;
  }

  /* Icon circle */
  .icon-circle {
    top: -40px;
  }

  .contact-section {
    padding: 40px 20px; /* breathing space on mobile */
  }

  /* Row stack */
  .contact-section .row {
    flex-direction: column;
  }

  /* Left content */
  .contact-section .left-content {
    padding: 20px;
    text-align: center;
  }
  .contact-section .left-content h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .contact-section .left-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .contact-section .btn-custom {
    display: inline-block;
    margin: 0 auto;
  }

  /* Right content (form) */
  .contact-section .right-col {
    margin-top: 30px;
    padding: 20px;
    border: 0px;
    text-align: center;
  }
  .contact-section .right-col h2 {
    font-size: 1.4rem;
  }
  .contact-section .right-col p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Form */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #ddd;
  }

  .contact-form button.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: center; /* horizontal centering */
    gap: 8px;                /* space between text and icon */
    text-align: center;
  }

  .contact-form button.btn-submit text {
    text-align: center; /* hide icon on small screens */
  }

  /* Recaptcha */
  .g-recaptcha {
    transform: scale(0.9); /* shrink a bit on very small screens */
    transform-origin: center;
  }



  /* Footer */
  .footer-container,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    gap: 10px;
  }
  .footer-links {
    justify-content: center;
  }

  /* Arms container/cards */
  .arms-container {
    justify-content: center;
  }
  .arm-card {
    width: 100%;
    max-width: 320px;
  }

  /* Opportunity section */
  .opportunity-section .title {
    font-size: 26px;
  }
  .opportunity-section .description {
    font-size: 14px;
  }

  /* Practice section */
  .practice-section {
    padding: 40px 0;
  }
  .image-container img {
    height: 180px; /* smaller height on mobile */
  }
  .overlay {
    transform: translateY(10%);
    padding: 15px;
  }
  .overlay h5 {
    font-size: 0.9rem;
  }
  .overlay p {
    font-size: 0.8rem;
  }
  .tagline {
    font-size: 2rem;
  }

  /* Regulatory section */
  .regulatory-section {
    text-align: center;
  }
  .regulatory-logos {
    justify-content: center;
  }
  .regulatory-logos img {
    max-width: 100px;
  }
}

/* ==============================
   Tablets & small laptops (max-width: 992px)
   ============================== */
@media (max-width: 992px) {
  /* Navbar */
  .navbar-custom img {
    height: 70px;
  }
  .navbar-collapse {
    text-align: center;
    margin-top: 0.5rem;
  }
  .navbar-brand {
    margin: 0 auto 1rem;
    display: block;
    text-align: center;
    position: relative;
    left: auto;
    transform: none;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }

  /* Arm cards */
  .arm-card {
    width: 220px;
  }

  /* Lawscope section */
  .lawscope-section .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .image-block img {
    margin: 0 auto;
  }

  /* Contact section */
  .contact-section .row {
    flex-direction: column;
  }
  .right-content {
    margin-top: 30px;
  }

  /* Image container */
  .image-container img {
    height: 200px;
  }

  /* Regulatory logos */
  .regulatory-logos img {
    max-width: 120px;
    padding: 10px;
  }
}
