@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");
@import url("./utils.css");

header {
  position: fixed;
  width: 100%;
  z-index: 999;
}

header.scrolled {
  background-color: var(--secondary);
  transition: background-color 0.3s ease;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0px;
}

header nav .nav-links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

header nav .nav-links ul li {
  /* display: inline; */
  position: relative;
}

header nav .nav-links ul li a {
  font-size: 16px;
  padding: 0px 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--light);
  transition: ease-in-out all 0.3s;
}

header nav .nav-links ul li a:hover,
header nav .nav-links ul li a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background-color: var(--light);
  padding: 24px 8px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 8px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  margin-top: 4px;
  /* min-width: 320px; */
}

li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown .dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dropdown .dropdown-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown .dropdown-links ul li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  display: block;
  /* padding: 6px 0; */
}

/* .dropdown .dropdown-links ul li:last-child a {
    margin-bottom: 0;
} */

.dropdown .dropdown-links ul li a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--light);
}

/* Base Fullscreen Overlay */
.mobile-menu,
.services-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

/* Active States */
.mobile-menu.active {
  transform: translateX(0);
}

.services-menu {
  transform: translateX(100%);
}

.services-menu.active {
  transform: translateX(0);
}

/* Menu Header (Top Right Controls) */
.menu-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header .close-menu,
.menu-header .back-menu {
  font-size: 24px;
  cursor: pointer;
  color: var(--light);
}

/* Centered Menu Items */
.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-items li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.menu-items li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-items li a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-items li a:hover {
  color: var(--primary);
}

section.hero {
  background-image: url("../img/home-hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

section.hero .overlay {
  position: absolute;
  background-color: var(--dark);
  opacity: 0.6;
  z-index: 1;
  height: 100%;
  width: 100%;
}

section.hero .hero-content {
  width: 50%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  /* padding: 0 20px; */
}

section.hero .hero-content h1 {
  color: var(--light);
}

section.hero .hero-content p {
  font-size: 20px;
  line-height: 160%;
  font-weight: 400;
  letter-spacing: 0%;
  color: var(--light);
}

section.hero .hero-content .rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 0.6rem;
}

section.hero .hero-content .rating i {
  color: var(--primary);
  font-size: 18px;
}

section.hero .hero-content .rating span {
  color: var(--light);
  margin-left: 12px;
  font-size: 16px;
  font-weight: 500;
}

section.secondary-hero {
  background-image: url("../img/blogs-hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 50vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

section.secondary-hero .overlay {
  position: absolute;
  background-color: var(--dark);
  opacity: 0.6;
  z-index: 1;
  height: 100%;
  width: 100%;
}

section.secondary-hero .hero-content {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  /* justify-content: center; */
  padding: 160px 0;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  /* padding: 0 20px; */
}

section.secondary-hero .hero-content h1 {
  color: var(--light);
}

section.secondary-hero .hero-content p {
  text-align: center;
  font-size: 20px;
  line-height: 160%;
  font-weight: 400;
  letter-spacing: 0%;
  color: var(--light);
}

section .about-us {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0px;
  gap: 40px;
}

section .about-us .about-us-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  height: 304px;
}

section .about-us .about-us-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

section .about-us .about-us-content {
  flex: 1;
}

section .about-us .about-us-content button {
  margin: 1rem 0;
}

section.service-section {
  padding: 48px 0px;
}

section .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

section .section-header p {
  margin: 1rem 0;
}

.services {
  /* display: flex;
    justify-content: center;
    align-items: center; */
  margin-top: 2rem;
  overflow: hidden;
}

.services .service {
  /* width: 25%; */
  /* height: 462px; */
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.services-sar-button {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 16px;
}
.services .service .image-box img {
  height: 462px;
  width: 100%;
  object-fit: cover;
}

.services .service .overlay-box {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  inset: 0;
  /* shorthand for top/left/right/bottom 0 */
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.services .service .overlay-box .icon-box {
  display: flex;
  justify-content: flex-end;
}

.services .service .overlay-box .icon-box i {
  color: var(--dark);
  width: 32px;
  height: 32px;
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: ease-in-out all 0.3s;
}

.services .service .overlay-box:hover .icon-box i {
  transform: rotate(315deg);
  background-color: var(--primary);
  color: var(--light);
}

.services .service .overlay-box .content-box {
  position: relative;
  z-index: 10;
  height: 28%;
}

.services .service .overlay-box .content-box p {
  margin: 0.5rem 0;
}

.slick-dots li {
  margin: 0 !important;
}

.slick-dots li button:before {
  color: var(--primary) !important;
}

section.testimonial-section {
  padding: 48px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

section.testimonial-section .testimonial-section-content {
  flex: 1 1 400px;
  max-width: 600px;
}

section.testimonial-section .testimonial-section-content p {
  margin-top: 12px;
}

section.testimonial-section .testimonials {
  flex: 1 1 400px;
  max-width: 600px;
}

.testimonials {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.testimonials .testimonial {
  transition: ease-in-out all 0.3s;
}

.testimonials .testimonial .testimonial-footer {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 16px;
}

.testimonials .testimonial .testimonial-footer .testimonial-image i {
  width: 100%;
  height: 100%;
  background-color: #cbcbcb;
  font-size: 24px;
  padding: 12px 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #666;
}

.testimonials .testimonial .testimonial-footer .testimonial-author span {
  font-size: 14px;
  color: #1f3044;
}

.testimonials .testimonial .testimonial-footer .testimonial-author i {
  color: var(--primary);
}

section.why-choose-us {
  padding: 48px 0px;
}

.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cards .card {
  flex: 1 1 300px;
  /* max-width: 350px; */
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card i {
  font-size: 32px;
  padding: 24px;
  background-color: var(--primary);
  color: var(--light);
  border-radius: 50%;
}

.cards .card h4 {
  margin-top: 16px;
}

.cards .card p {
  font-weight: 300;
  margin-top: 8px;
}

section.team-section {
  padding: 48px 0px;
}

section.team-section .team-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

section.team-section .team-header .header-content {
  flex: 1 1 65%;
  min-width: 280px;
}

section.team-section .team-header .header-cta {
  flex: 1 1 30%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 220px;
}

.teams {
  /* display: flex;
    justify-content: center;
    gap: 40px; */
  margin-top: 2rem;
  overflow: hidden;
}

.teams .team {
  /* width: 33%; */
  /* overflow: hidden; */
  height: 500px;
  position: relative;
  z-index: 0;
  /* margin: 0 10px; */
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.teams .team .team-image {
  flex: 1;
  height: 460px;
  overflow: hidden;
  z-index: 1;
  border-radius: 16px;
}

.teams .team .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teams .team .team-bio {
  text-align: center;
  position: absolute;
  width: 80%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light);
  border-radius: 6px;
  padding: 24px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 8px 20px;
  min-height: 120px;
  transition: ease-in-out all 0.3s;
  z-index: 33;
}

.teams .team:hover .team-bio {
  background-color: var(--primary);
}

.teams .team .team-bio h4 {
  transition: ease-in-out all 0.3s;
}

.teams .team .team-bio p {
  transition: ease-in-out all 0.3s;
}

.teams .team:hover .team-bio h4 {
  color: var(--light);
}

.teams .team:hover .team-bio p {
  color: var(--light);
}

section.cta-section {
  padding: 48px 0;
  background-image: url("https://integrity-law.co.uk/app/uploads/2025/12/2151023395-1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 60vh;
  position: relative;
  width: 100%;
}

section.cta-section .overlay {
  width: 80%;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 16px;
  padding: 40px;
  gap: 16px;
  text-align: center;
}

section.faq-section {
  padding: 48px 0;
}

section.faq-section .faqs {
  margin: 32px 0px;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  gap: 16px;
  flex-wrap: wrap;
}

section.faq-section .faqs .faq {
  flex: 1 1 100%;
  max-width: 800px;
  border-radius: 16px;
  border: 1px solid #ccc;
  padding: 24px;
  background-color: #f5f6fa;
  transition: ease-in-out all 0.3s;
}

section.faq-section .faqs .faq .faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

section.faq-section .faqs .faq .faq-header h5 {
  font-weight: 500;
  color: var(--dark);
  flex: 1;
}

section.faq-section .faqs .faq .faq-header i {
  color: var(--primary);
  font-size: 24px;
  transition: transform 0.3s ease;
}

section.faq-section .faqs .faq .faq-header .fa-circle-chevron-down {
  transition: ease-in-out all 0.3s;
}

section.faq-section .faqs .faq .faq-header .fa-circle-chevron-up {
  display: none;
  transition: ease-in-out all 0.3s;
}

section.faq-section .faqs .faq .faq-body {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

section.faq-section .faqs .faq.active .faq-header .fa-circle-chevron-down {
  display: none;
}

section.faq-section .faqs .faq.active .faq-header .fa-circle-chevron-up {
  display: block;
}

section.faq-section .faqs .faq.active .faq-body {
  display: block;
  max-height: 300px;
  margin-top: 16px;
}

section .service-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0px;
  gap: 40px;
}

section .service-intro .service-image {
  width: 40%;
  border-radius: 16px;
  overflow: hidden;
  /* height: 100%; */
}

section .service-intro .service-content {
  width: 60%;
}

section .service-intro .service-content p {
  margin-top: 0.7rem;
}

section .service-intro .service-image img {
  height: 320px;
  object-fit: cover;
  width: 100%;
  border-radius: 16px;
}

section .service-intro .service-content .lists {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 16px;
}

section .service-intro .service-content .lists .list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  width: calc(50% - 16px);
}

section .service-intro .service-content .lists .list i {
  font-size: 24px;
  color: var(--light);
  background-color: var(--primary);
  /* width: 64px;  */
  /* height: 64px; */
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

section.types-section {
  padding: 48px 0;
}

.types {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  /* spacing between types */
  margin-top: 2rem;
}

.type {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  min-height: 90px;
  /* text-align: center; */
  transition: ease-in-out all 0.3s;
}

.type i {
  font-size: 24px;
}

.type:hover {
  border-top: 4px solid var(--primary);
}

/* Default: 3 in a row */
.types .type {
  flex: 1 1 calc(33.333% - 1rem);
}

/* 4 types → all rows 4 each */
.types[data-count="4"] .type {
  flex: 1 1 calc(25% - 1rem);
}

/* 7 types → row 1 = 3, row 2 = 4 */
.types[data-count="7"] .type:nth-child(n + 4) {
  flex: 1 1 calc(25% - 1rem);
  /* 4 in a row */
}

/* 9 types → all rows 3 each */
.types[data-count="9"] .type {
  flex: 1 1 calc(33.333% - 1rem);
}

/* 10 types → 3,4,3 pattern */
.types[data-count="10"] .type:nth-child(1),
.types[data-count="10"] .type:nth-child(2),
.types[data-count="10"] .type:nth-child(3) {
  flex: 1 1 calc(33.333% - 1rem);
}

.types[data-count="10"] .type:nth-child(4),
.types[data-count="10"] .type:nth-child(5),
.types[data-count="10"] .type:nth-child(6),
.types[data-count="10"] .type:nth-child(7) {
  flex: 1 1 calc(25% - 1rem);
}

/* Repeat for next rows */
.types[data-count="10"] .type:nth-child(8),
.types[data-count="10"] .type:nth-child(9),
.types[data-count="10"] .type:nth-child(10) {
  flex: 1 1 calc(33.333% - 1rem);
}

/* 17 types → 3,4,3,4,3 pattern */
.types[data-count="17"] .type:nth-child(1),
.types[data-count="17"] .type:nth-child(2),
.types[data-count="17"] .type:nth-child(3) {
  flex: 1 1 calc(33.333% - 1rem);
}

.types[data-count="17"] .type:nth-child(4),
.types[data-count="17"] .type:nth-child(5),
.types[data-count="17"] .type:nth-child(6),
.types[data-count="17"] .type:nth-child(7) {
  flex: 1 1 calc(25% - 1rem);
}

/* Repeat for next rows */
.types[data-count="17"] .type:nth-child(8),
.types[data-count="17"] .type:nth-child(9),
.types[data-count="17"] .type:nth-child(10) {
  flex: 1 1 calc(33.333% - 1rem);
}

.types[data-count="17"] .type:nth-child(11),
.types[data-count="17"] .type:nth-child(12),
.types[data-count="17"] .type:nth-child(13),
.types[data-count="17"] .type:nth-child(14) {
  flex: 1 1 calc(25% - 1rem);
}

.types[data-count="17"] .type:nth-child(15),
.types[data-count="17"] .type:nth-child(16),
.types[data-count="17"] .type:nth-child(17) {
  flex: 1 1 calc(33.333% - 1rem);
}

/* 8 types → all rows 4 each */
.types[data-count="8"] .type {
  flex: 1 1 calc(25% - 1rem);
}

/* 6 types → all rows 3 each */
.types[data-count="6"] .type {
  flex: 1 1 calc(33.333% - 1rem);
}

/* 5 types → row 1 = 3, row 2 = 2 */
.types[data-count="5"] .type:nth-child(n + 4) {
  flex: 1 1 calc(50% - 1rem);
}

section.process-section {
  padding: 48px 0;
}

section.process-section .process-header p {
  margin-top: 0.5rem;
}

.processes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  /* spacing between processes */
  margin-top: 2rem;
}

.process {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  min-height: 90px;
  /* border: 1px solid #eee; */
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* text-align: center; */
  transition: ease-in-out all 0.3s;
}

.process i {
  font-size: 24px;
  color: var(--light);
  background-color: var(--primary);
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* Default: 3 in a row */
.processes .process {
  flex: 1 1 calc(50% - 1rem);
}

section.prices-section {
  padding: 48px 0;
}

.fees {
  width: 100%;
  margin-top: 2rem;
  overflow-x: auto;
}

.fees table {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
  min-width: 400px;
}

.fees table thead {
  background-color: var(--primary);
}

.fees table thead tr th {
  padding: 16px 32px;
  /* width: 50%; */
  text-align: left;
  color: var(--light);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  border: none;
}

.fees table tbody {
  background-color: var(--light);
}

.fees table tbody tr:nth-child(even) {
  background-color: #eee;
}

.fees table tbody tr td {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.questions {
  margin-top: 2rem;
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* gap: 16px; */
  /* flex-wrap: wrap; */
}

.questions .question {
  /* width: 100%; */
  border-bottom: 1px solid #ccc;
  padding: 24px;
  /* transition: ease-in-out all 0.3s; */
}

.questions .question .question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.questions .question .question-header h3 {
  font-weight: 500;
}

.questions .question .question-header i {
  color: var(--light);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.questions .question .question-header .fa-arrow-up {
  transform: rotate(45deg);
  transition: ease-in-out all 0.3s;
}

.questions .question .question-body {
  display: none;
  /* max-height: 0; */
  /* overflow: hidden; */
  /* transition: max-height 0.3s ease; */
  margin-top: 0;
}

.questions .question .question-body h5 {
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.questions .question .question-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.questions .question .question-body li {
  color: var(--light);
}

.questions .question .question-body li a {
  color: var(--primary);
  transition: ease-in-out all 0.3s;
}

.questions .question .question-body li a:hover {
  color: var(--light);
}

.questions .question .question-body p a {
  color: var(--primary);
  transition: ease-in-out all 0.3s;
}

.questions .question .question-body p a:hover {
  color: var(--light);
}

.questions .question.active .question-header .fa-arrow-up {
  transform: rotate(0deg);
}

.questions .question.active .question-body {
  display: block;
  /* max-height: 1000px; */
  margin-top: 16px;
}

.section-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  flex-direction: column;
  gap: 24px;
}

section.compensation-section .container {
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

section.compensation-section .compensation-content {
  flex: 1 1 25%;
}

section.compensation-section .compensation-content p {
  margin-top: 1.5rem;
}

section.compensation-section .compensation-content button {
  margin-top: 1.5rem;
}

section.compensation-section .compensation-image {
  flex: 1 1 25%;
  overflow: hidden;
}

section.compensation-section .compensation-image img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

section.contact-us {
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

section.contact-us .contact-us-map {
  width: 50%;
}

section.contact-us .contact-us-map iframe {
  border-radius: 16px;
}

section.contact-us .contact-us-content {
  width: 50%;
}

section.contact-us .contact-us-content p {
  margin-top: 1.5rem;
}

.blogs {
  padding: 48px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* spacing between items */
}

.blogs .blog {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  padding: 1rem 1rem 0 1rem;
  transition: ease-in-out all 0.3s;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.blogs .blog:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.blogs .blog a {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  overflow: hidden;
}

.blogs .blog .blog-header {
  height: auto;
  overflow: hidden;
}

.blogs .blog .blog-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.blogs .blog .blog-body {
  flex-grow: 1;
  margin-top: 1rem;
}

.blogs .blog .blog-body span {
  color: var(--primary);
}

.blogs .blog .blog-body h3 {
	font-size: 20px !important;
	line-height: 125% !important;
  margin-top: 0.3rem;
}

.blogs .blog .blog-footer {
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  border-top: 1px solid #ccc;
  padding: 1rem 0;
  width: 100%;
}

.single-blog {
  display: flex;
  gap: 32px;
  padding: 48px 0;
}

.single-blog .blog-content {
  flex: 0 0 70%;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 16px;
}

.single-blog .blog-content h6 {
  margin-bottom: 1rem;
}

.single-blog .blog-content ul {
  margin: 1em 0 1em 0;
  padding-left: 1em;
  list-style-position: outside;
}

.single-blog .blog-content li {
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 16px;
  font-weight: 300;
}
/* .reviewd-profile {
  display: flex;
  gap: 10px;
} */
.reviewd-profile .linkedin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 27px;
}
.reviewd-profile .profile {
  display: flex;
  align-items: flex-start;
  justify-content: start;
}

.reviewd-profile .profile {
  width: 100%;
}
.reviewd-profile .reviewd-content {
  width: 100%;
}
.profile img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.single-blog .author-bar,
.single-blog .info-bar {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 16px;
  height: auto;
}

.single-blog .author-bar {
  margin-top: 20px;
}

.single-blog .blog-sidebar {
  flex: 0 0 30%;
  gap: 20px;
  max-height: fit-content;
  position: sticky;
  top: 170px;
}

.single-blog .blog-sidebar h5 {
  margin-bottom: 12px;
  color: var(--primary);
}

.single-blog .blog-sidebar p {
  font-size: 14px;
  line-height: 16px;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 300;
}

.single-blog .blog-sidebar li {
  list-style: none;
}

.single-blog .blog-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-blog .blog-sidebar ul li {
  margin-bottom: 16px;
  width: 100%;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.single-blog .blog-sidebar ul li a {
  color: var(--secondary);
  text-decoration: none;
  transition: 0.3s;
}

.single-blog .blog-sidebar ul li a:hover {
  color: var(--primary);
}

/* Start Comment Section in Single Post */

#comments {
  margin: 2rem 0;
}

.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commentlist .comment {
  background: var(--light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commentlist .comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author img.avatar {
  border-radius: 50%;
  margin-right: 12px;
  width: 40px;
  height: 40px;
}

.comment-author .fn {
  font-weight: 600;
  font-size: 16px;
  margin-right: 8px;
}

.comment-author .fn a {
  color: var(--primary);
  text-decoration: none;
}

.comment-author .fn a:hover {
  color: var(--secondary);
}

.comment-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.comment-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
}

.comment .reply a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--light);
  border: 1px solid var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.comment .reply a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.comment ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#respond {
  padding: 24px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin-top: 2rem;
}

#respond h3.comment-reply-title {
  margin-bottom: 20px;
}

#respond label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 18px;
  background: var(--light);
  transition: border-color 0.3s ease;
}

#respond textarea:focus,
#respond input:focus {
  border: 1px solid var(--primary);
  outline: none;
}

#respond .form-submit input#submit {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--light);
  font-weight: 400;
  padding: 14px 40px;
  border-radius: 8px;
  transition: 0.3s ease;
  cursor: pointer;
  font-size: 16px;
  outline: none;
}

#respond .form-submit input#submit:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

#respond .logged-in-as,
#respond .required-field-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* End Comment Section in Single Post */

section.not-found-page {
  padding: 150px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

section.not-found-page p {
  margin-top: 1rem;
}

section.not-found-page button {
  margin-top: 1rem;
}

section.page-content {
  padding: 48px 0;
}

section.page-content h2,
section.page-content h3,
section.page-content h4,
section.page-content h5 {
  margin: 1rem 0;
}

section.page-content ul {
  margin: 1em 0 1em 0;
  padding-left: 1em;
  list-style-position: inside;
}

section.contact-section {
  padding: 48px 0;
}

section.contact-section .bg-secondary {
  padding: 24px 48px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

section.contact-section .bg-secondary .contact-details {
  flex: 0 0 calc(50% - 12px);
}

section.contact-section .bg-secondary .opening-hours {
  flex: 0 0 calc(50% - 12px);
}

section.contact-section .bg-secondary .contact-details a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin: 1rem;
  transition: ease-in-out all 0.3s;
}

section.contact-section .bg-secondary .contact-details a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

section.contact-section .bg-secondary .contact-details a i {
  text-decoration: none;
}

section.contact-section .bg-secondary .opening-hours p {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1rem;
}

section.contact-form-section {
  padding: 0 0 48px 0;
}

section.contact-form-section .bg-secondary {
  border-radius: 16px;
  padding: 24px 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

section.contact-form-section .bg-secondary .form {
  /* width: 50%; */
  flex: 0 0 calc(50% - 12px);
}

section.contact-form-section .bg-secondary .form h3 {
  margin-bottom: 1rem;
}

section.contact-form-section .bg-secondary .form .form-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  overflow: hidden;
}

section.contact-form-section .bg-secondary .form .form-group .input-group {
  display: flex;
  flex-direction: column;
  /* flex: 0 0 calc(50% - 8px); */
  width: 50%;
}

section.contact-form-section
  .bg-secondary
  .form
  .form-group
  .input-group
  label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

section.contact-form-section
  .bg-secondary
  .form
  .form-group
  .input-group
  .form-input {
  border: 1px solid var(--primary);
  background: transparent;
  border-radius: 4px;
  padding: 12px;
  color: var(--light);
  width: 100%;
  box-sizing: border-box;
}

section.contact-form-section
  .bg-secondary
  .form
  .form-group
  .input-group
  .form-input::placeholder {
  color: var(--light);
}

section.contact-form-section .bg-secondary .form .input-group {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

section.contact-form-section .bg-secondary .form .input-group label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

section.contact-form-section .bg-secondary .form .input-group .form-textarea {
  border: 1px solid var(--primary);
  background: transparent;
  border-radius: 4px;
  padding: 12px;
  color: var(--light);
  width: 100%;
}

section.contact-form-section .bg-secondary .map {
  flex: 0 0 calc(50% - 12px);
  /* width: 50%; */
}

section.contact-form-section .bg-secondary .map iframe {
  border-radius: 8px;
}

footer {
  padding: 48px 0;
}

footer img {
  width: 216px;
  max-width: 100%;
}

.widgets {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.widgets .widget {
  flex: 1 1 22%;
  min-width: 220px;
}

.widgets .widget p {
  margin-top: 0.8rem;
}

.widgets .widget .social-icons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 1.5rem;
}

.widgets .widget .social-icons i {
  color: var(--light);
  font-size: 20px;
}

.widgets .widget ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.widgets .widget ul li {
  display: block;
  color: var(--light);
  margin-top: 0.7rem;
}

.widgets .widget ul li a {
  font-size: 16px;
  /* padding: 0px 16px; */
  font-weight: 400;
  text-decoration: none;
  color: var(--light);
  transition: ease-in-out all 0.3s;
}

.widgets .widget ul li a:hover,
.widgets .widget ul li a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.widgets .widget img {
  /*     filter: brightness(0) invert(1); */
  /*     margin-top: 1rem; */
  max-width: 180px;
}

.widgets .widget .partner {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  text-decoration: none;
  width: fit-content;
  padding: 10px;
  background-color: #fff;
}

.widgets .widget .partner span {
  font-size: 14px;
  color: #808080;
}

footer .bottom-footer {
  margin-top: 1rem;
  text-align: center;
  border-top: 1px solid var(--light);
  padding-top: 1rem;
}

footer .bottom-footer h5 {
  margin-top: 1rem;
  font-weight: 400;
}

footer .bottom-footer h5 a {
  text-underline-offset: 4px;
  transition: ease-in-out all 0.3s;
}

footer .bottom-footer h5 a:hover {
  color: var(--light);
}

footer .bottom-footer p {
  margin-top: 0.8rem;
  font-size: 14px;
  line-height: 1.6;
}
section.hero .hero-content.post_hero_content {
  width: 100%;
}

.post-sar-button {
  margin-bottom: 16px;
}
.custom-accordion details {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.custom-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.info-name{
  display: flex;
  gap: 7px;
}
.custom-accordion summary::-webkit-details-marker {
  display: none;
}

.custom-accordion .label {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.custom-accordion .name {
  font-size: 16px;
  font-weight: 500;
}

.custom-accordion .arrow {
  transition: transform 0.3s ease;
}

.custom-accordion details[open] .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  /* padding: 15px; */
  /* padding-top: 14px; */
  padding: 14px 4px;
  font-size: 15px;
  color: #333;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 25%;
}

.linkedin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.linkedin-icon:hover {
  background: #0566c5;
  color: #fff;
}

.title_wrapper h5 {
    font-size: 16px;
    font-weight: 600;
}
.title_wrapper h3{
font-size: 16px;
    font-weight: 600;

}
@media (max-width: 992px) {
  header nav {
    padding: 16px 0;
  }

  header nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secondary);
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
  }

  header nav .nav-links ul {
    flex-direction: column;
    gap: 12px;
  }

  header nav .nav-links ul li {
    text-align: center;
  }

  header nav.active .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-btn {
    display: none;
    /* Hide contact button in mobile for cleaner UI */
  }

  section.hero {
    height: 80vh;
    /* slightly smaller so mobile nav doesn’t overlap */
  }

  section.hero .hero-content {
    width: 70%;
  }

  section.hero .hero-content h1 {
    font-size: 36px;
  }

  section.hero .hero-content p {
    font-size: 18px;
  }

  section.secondary-hero {
    height: 50vh;
    /* slightly smaller so mobile nav doesn’t overlap */
  }

  section.secondary-hero .hero-content {
    width: 100%;
  }

  section.secondary-hero .hero-content h1 {
    font-size: 36px;
  }

  section.secondary-hero .hero-content p {
    font-size: 18px;
    padding: 0 40px;
  }

  section .about-us {
    gap: 24px;
  }

  section .about-us .about-us-image {
    height: 260px;
  }

  section.service-section {
    padding: 40px 0;
  }

  section.testimonial-section {
    gap: 24px;
  }

  section.testimonial-section .testimonial-section-content,
  section.testimonial-section .testimonials {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .testimonials .testimonial {
    padding: 16px;
  }

  .cards {
    gap: 24px;
  }

  .cards .card {
    flex: 1 1 45%;
    max-width: 100%;
  }

  section.team-section .team-header {
    flex-direction: column;
    align-items: flex-start;
  }

  section.team-section .team-header .header-cta {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .teams .team {
    height: 450px;
  }

  .teams .team .team-image {
    height: 400px;
  }

  section.cta-section .overlay {
    width: 90%;
    padding: 30px;
  }

  section .service-intro {
    flex-direction: column;
    text-align: center;
  }

  section .service-intro .service-image {
    width: 100%;
  }

  section .service-intro .service-content {
    width: 100%;
  }

  section .service-intro .service-content .lists {
    justify-content: center;
  }

  section .service-intro .service-content .lists .list {
    width: calc(50% - 16px);
  }

  .types .type {
    flex: 1 1 calc(50% - 1rem) !important;
  }

  .processes .process {
    flex: 1 1 calc(50% - 1rem);
  }

  section.compensation-section .compensation-content,
  section.compensation-section .compensation-image {
    width: 100%;
  }

  section.compensation-section .container {
    gap: 24px;
    /* reduce spacing */
    flex-direction: column;
    /* stack items */
    text-align: center;
    /* center text */
  }

  section.compensation-section .compensation-content {
    order: 2;
    /* text below image */
  }

  section.compensation-section .compensation-image {
    order: 1;
    /* image on top */
  }

  .single-blog {
    flex-direction: column;
  }
  .single-blog .blog-content,
  .single-blog .blog-sidebar {
    flex: 100%;
  }
}

@media (max-width: 768px) {
  section .about-us {
    flex-direction: column;
    /* Stack image above content */
    text-align: center;
  }

  section .about-us .about-us-image {
    width: 100%;
    height: auto;
  }

  section .about-us .about-us-image img {
    height: auto;
    max-height: 320px;
  }

  section .about-us .about-us-content {
    width: 100%;
  }

  section .about-us .about-us-content button {
    width: 100%;
    max-width: 250px;
  }

  .teams .team {
    height: 400px;
  }

  .teams .team .team-image {
    height: 340px;
  }

  .teams .team .team-bio {
    width: 90%;
    padding: 16px;
  }

  section.contact-us {
    padding: 32px 16px;
    flex-direction: column;
    text-align: center;
  }

  section.contact-us .contact-us-map,
  section.contact-us .contact-us-content {
    width: 100%;
  }

  section.contact-us .contact-us-map iframe {
    width: 100%;
    height: 300px;
  }

  .fees table thead tr th,
  .fees table tbody tr td {
    padding: 12px 16px;
  }

  .blogs {
    padding: 32px 16px;
    grid-template-columns: repeat(2, 1fr);
  }

  section.contact-section {
    padding: 32px 16px;
  }

  section.contact-section .bg-secondary {
    flex-direction: column;
    padding: 24px;
  }

  section.contact-section .bg-secondary .contact-details,
  section.contact-section .bg-secondary .opening-hours {
    width: 100%;
  }

  section.contact-form-section {
    padding: 0 16px 32px 16px;
  }

  section.contact-form-section .bg-secondary {
    flex-direction: column;
    padding: 24px;
  }

  section.contact-form-section .bg-secondary form,
  section.contact-form-section .bg-secondary map {
    width: 100%;
  }

  section.contact-form-section .bg-secondary .form .form-group {
    flex-direction: column;
    gap: 0px;
  }

  section.contact-form-section .bg-secondary .form .form-group .input-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  header {
    width: 100%;
  }

  header nav .nav-links ul li a {
    font-size: 14px;
  }

  section.hero {
    height: auto;
    padding: 160px 0;
    /* give breathing space */
    text-align: center;
    justify-content: center;
  }

  section.hero .hero-content {
    width: 100%;
    align-items: center;
    padding: 0 15px;
  }

  section.hero .hero-content h1 {
    font-size: 28px;
  }

  section.hero .hero-content p {
    font-size: 16px;
  }

  section.secondary-hero {
    height: auto;
    text-align: center;
    justify-content: center;
  }

  section.secondary-hero .hero-content {
    width: 100%;
    padding: 120px 0px 60px 0;
    align-items: center;
    justify-content: center;
    /* padding: 0 15px; */
  }

  section.secondary-hero .hero-content h1 {
    font-size: 28px;
  }

  section.secondary-hero .hero-content p {
    font-size: 16px;
    padding: 0 10px;
  }

  section.hero .hero-content .rating {
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
  }

  section.hero .hero-content button {
    width: 100%;
    max-width: 300px;
  }

  section .about-us {
    padding: 32px 0;
    gap: 20px;
  }

  section .about-us .about-us-content h2 {
    font-size: 24px;
  }

  section .about-us .about-us-content p {
    font-size: 14px;
  }

  section.service-section {
    padding: 32px 0;
  }

  .services .service .overlay-box {
    padding: 12px;
  }

  section.testimonial-section {
    padding: 32px 16px;
  }

  .testimonials .testimonial .testimonial-footer .testimonial-image i {
    font-size: 18px;
    padding: 10px 24px;
  }

  .testimonials .testimonial .testimonial-footer .testimonial-author h4 {
    font-size: 14px;
  }

  .testimonials .testimonial .testimonial-footer .testimonial-author span {
    font-size: 12px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .cards .card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  section.team-section {
    padding: 32px 16px;
  }

  .teams .team {
    height: 360px;
  }

  .teams .team .team-image {
    height: 300px;
  }

  .teams .team .team-bio {
    width: 80%;
    padding: 14px;
  }

  section.cta-section {
    min-height: auto;
    padding: 24px 0;
  }

  section.cta-section .overlay {
    position: static;
    transform: none;
    width: 95%;
    padding: 20px;
    margin: 0 auto;
  }

  section.cta-section .btn {
    width: 100%;
  }

  section.faq-section {
    padding: 32px 16px;
  }

  section.faq-section .faqs .faq {
    padding: 16px;
    border-radius: 12px;
  }

  section.faq-section .faqs .faq .faq-header i {
    font-size: 20px;
  }

  .widgets {
    flex-direction: column;
    align-items: flex-start;
  }

  .widgets .widget {
    flex: 1 1 100%;
    width: 100%;
  }

  footer img {
    margin-bottom: 1rem;
  }

  section .service-intro .service-content .lists .list {
    width: 100%;
    /* stack items */
    justify-content: flex-start;
  }

  section .service-intro .service-content {
    text-align: left;
  }

  .types .type {
    flex: 1 1 100% !important;
  }

  section.process-section {
    padding: 32px 16px;
  }

  .processes .process {
    flex: 1 1 100%;
  }

  section.compensation-section .container {
    padding: 32px 16px;
  }

  section.compensation-section .compensation-content h2 {
    font-size: 1.5rem;
  }

  section.compensation-section .compensation-content p {
    font-size: 0.95rem;
  }

  .fees table thead tr th,
  .fees table tbody tr td {
    padding: 10px 12px;
  }

  .blogs {
    padding: 32px 16px;
    grid-template-columns: repeat(1, 1fr);
  }

  section.page-content {
    padding: 32px 16px;
  }
  .custom-accordion summary {
    padding: 12px 6px;
  }
  .custom-accordion .label{
    font-size: 13px;
  }
  .custom-accordion .name{
    font-size: 13px;
  }
  .info-name {
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
  }
  .info-name img{
    height: 6px;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .widgets .widget {
    flex: 1 1 45%;
    /* 2 columns */
  }
}
