/* ===========================
   Global Styles
=========================== */
    
  body {
  margin: 0;
  font-family: Arial, sans-serif;
}

nav {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo img {
  height: 56px;
  max-height: 56px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2B6699;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1100;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

/* Hamburger to X */
.menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Side Drawer Style */
.side-drawer {
  position: fixed;
  top: 0;
  right: -250px;
  width: 200px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  transition: right 0.4s ease;
  z-index: 1050;
}

.menu-toggle:checked ~ .side-drawer {
  right: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1040;
}

.menu-toggle:checked ~ .overlay {
  opacity: 1;
  visibility: visible;
}

.side-drawer a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.side-drawer a:hover {
  color: #2B6699;
}

/* Desktop view */
@media (min-width: 769px) {
  .menu-icon {
    display: none;
  }

  .side-drawer, .overlay {
    display: none;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-icon {
    display: block;
  }
}

  
  /* ===========================
     Navigation Bar Styling
  =========================== */
  /* Prevent Content Overlap */
  .profile-header {
    margin-top: 0px; /* Ensures content doesn't overlap with the navbar */
  }
  
  

  
/* General Styling for Professionals Heading */
#professionals h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Mobile Adjustment */
@media (max-width: 767px) {
  #professionals h2 {
    font-size: 1.5rem;
    margin-top: 0px;
    margin-bottom: 35px;

    
  }
}


  
  /* ===========================
     Contact Section Styling
  =========================== */
  #contact {
    padding: 60px 0;
}

#contact .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

#contact .col-md-6 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

#contact iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

#contact p i {
    margin-right: 10px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact form .btn {
    align-self: flex-start;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    #contact .row {
        display: flex;
        flex-direction: column; /* Stack items vertically */
    }

    /* Make all columns full-width */
    #contact .col-md-6 {
        flex: 0 0 100%; /* Full width */
        max-width: 100%;
        text-align: center;
    }

    /* Contact form first */
    #contact .col-md-6:first-of-type {
        order: 1; /* First column (contact form) */
    }

    /* Map and Info should come after */
    #contact .col-md-6:nth-of-type(2) {
        order: 2; /* Second column (map and contact info) */
    }

    /* Adjust form input fields */
    #contact form input, #contact form textarea {
        width: 80%;
        max-width: 300px;
        margin: 10px auto;
        box-sizing: border-box;
        padding: 10px;
    }

    /* Adjust button width */
    #contact form button {
        width: 90%;
        max-width: 200px;
    }
}




  
  /* ===========================
     Services Section Styling
  =========================== */
  .services-section {
    background-color: #f0f0f0;
    padding: 40px 20px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  .service-card h5 {
    color: white;
    margin-bottom: 10px;
  }
  
  .service-card p {
    color: white;
    text-align: justify;
  }
  
  /* Responsive Services Grid */
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
    
      
}
  
  /* ===========================
     Card Styling
  =========================== */
  .card {
    background-size: cover;
    background-position: center;
    color: white;
    height: 300px;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover Effect */
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Dark Overlay */
  .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s;
  }
  
  .card:hover::before {
    background: rgba(0, 0, 0, 0.3);
  }
  
  .card * {
    position: relative;
    z-index: 2;
  }
  
  /* ===========================
     Grid Layout for Services
  =========================== */
  .row1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .col-md-4 {
    flex: 0 0 32%;
    margin-bottom: 20px;
  }
  
  /* Responsive Cards */
  @media (max-width: 768px) {
    .col-md-4 {
      flex: 0 0 48%;
      margin-bottom: 16px;
      margin-right: 4%;
    }
  }
  
  @media (max-width: 576px) {
    .col-md-4 {
      flex: 0 0 100%;
      margin-bottom: 16px;
    }
  }
  
  /* Hero Section Styling*/
  @media (max-width: 768px) {
    .hero-section {
      background-attachment: scroll !important;
      background-size: cover !important;
      background-position: center top; /* Focuses on the most important part */
    }
  }
  
  
  
  .hero-section {
    position: relative;
    background-image: url('images/law-and-authority-lawyer-concept-judgment-gavel-hammer-in-court-courtroom-for-crime-judgement.jpg'); /* Default for desktops */
    background-size:cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
  }
  
  /* Use a different image for smaller screens */
  @media (max-width: 768px) {
    .hero-section {
      background-image: url('images/law-and-authority-lawyer-concept-judgment-gavel-hammer-in-court-courtroom-for-crime-judgement.jpg') !important;
      background-attachment:scroll;
      background-size:cover; /* Stretch width while keeping height */
      background-position: center center;
      max-height: 750px; /* Limits how big it appears */
      transform: translateZ(0); /* Fixes zooming issue */
      
    }
  }
  
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  
  .hero-section .text-content {
    position: relative;
    z-index: 2;
  }
  
  /* ===========================
     Button Styling
  =========================== */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .btn-light {
    border: 2px solid black;
    background-color: white;
    color: black;
  }
  
  .btn-light:hover {
    background-color: #2B6699;
    color: white;
    border-color: #2B6699;
    transform: translateY(-2px);
  }
  
  .btn-light:focus, 
  .btn-light:active {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  }
  .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;  
  }
  button.btn {
    margin: 30px;  
  }
  
  
  
  /* Card Specific Styles (Each service's background image) */
  .competition-law {
    background-image: url('images/1.jpg');
  }
  
  .mergers-acquisitions {
    background-image: url('images/2.jpg');
  }
  
  .commercial-law {
    background-image: url('images/3.jpg');
  }
  
  .competition-tribunal {
    background-image: url('images/4.jpg');
  }
  
  .regulatory-law {
    background-image: url('images/regulatory-affairs-intro.jpg');
  }
  
  .consumer-law {
    background-image: url('images/depositphotos_376199228-stock-photo-shopping-trolley-and-symbol-of.jpg');
  }
  
  .public-procurement {
    background-image: url('images/8.jpg');
  }
  
  .public-law {
    background-image: url('images/crowd-people-with-raised-handsgenerative-ai_221128-10780.jpg');
  }
  
  .arbitration {
    background-image: url('images/mediator-remove-gap-understanding-between-600nw-2086106599.jpg');
  }
  /* Custom styles for response messages */
  #response-message {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.5s ease;
  }
  
  /* Success message style */
  #response-message.success {
    background-color: #28a745; /* Green */
    color: #fff;
    border: 1px solid #218838;
  }
  
  /* Error message style */
  #response-message.error {
    background-color: #dc3545; /* Red */
    color: #fff;
    border: 1px solid #c82333;
  }
  
  /* Optional: Add an icon to indicate success or error */
  #response-message.success::before {
    content: "✔️ "; /* Green checkmark */
  }
  
  #response-message.error::before {
    content: "❌ "; /* Red cross */
  }
  #response-message {
    display: none; /* Hidden by default */
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #f0f8ff; /* Light blue background */
    color: #2B6699; /* Text color */
  }
  /* Reset Bootstrap's row behavior */
.why-choose-us .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Center the grid */
}

/* Ensure 2 columns per row */
.why-choose-us .col-md-6 {
    flex: 0 0 50% !important; /* Forces each column to be exactly 50% */
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centers content inside */
    text-align: center !important;
}

/* Fix unwanted list-style behavior */
.why-choose-us h4, 
.why-choose-us p {
    margin: 0;
    padding: 0;
}
.quick-links {
    background-color: #2B6699; /* Blue background */
    color: white;
}

.quick-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #FFD700; /* Gold hover effect */
    text-decoration: underline;
}

.quick-links ul {
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
  }
  
  .profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  



