/*
Theme Name: Hamed Law
Author: Your Name
Description: Custom WordPress theme for Hamed Law
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: 'RocGrotesk';
  src: url('fonts/roc-grotesk-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

p {
  font-weight: 300;
  line-height: 1.6;
}

h1, .inter-font {
  font-family: 'RocGrotesk', sans-serif;
}


body {
  margin: 0;
  padding: 0;
  color: #404040;

}

h1 {
  font-family: 'RocGrotesk', sans-serif;
}

h2 {
	font-weight: 300;
	font-size: 2rem;
	line-height: 1.33;
}

.hero-section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-underline {
  position: relative;
  top: -20px;
  max-width: 300px;
}

.site-header {
	background-color: #39614E;
	color: #eeeeef;
}

.site-header a {
	color: #eeeeef;
}

.hero-section {
	background-color: #39614e;
	color: #eeeeef;
}

.hero-section a {
	color: #eeeeef;
}

* {
	box-sizing: border-box;
}

h1 {
	margin: 0;
}

#menu-main {
	margin: 0;
}

/* Style top-level menu items */
.menu-main-container ul.menu > li {
  position: relative;
}

/* Hide submenus by default */
.menu-main-container ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2f4f4f;
  flex-direction: row;
  padding: 1rem;
  border-radius: 8px;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Show submenu on hover */
.menu-main-container ul.menu > li:hover > ul.sub-menu {
  display: flex;
}

/* Horizontal submenu styling */
.menu-main-container ul.sub-menu li {
  margin: 0 10px;
  list-style: none;
}

/* Style submenu links */
.menu-main-container ul.sub-menu li a {
  color: #eeeeef;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

/* Example icons using FontAwesome (you can replace or customize) */
/* .menu-main-container ul.sub-menu li:nth-child(1) a::before {
  content: "\f2c1";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.menu-main-container ul.sub-menu li:nth-child(2) a::before {
  content: "\f2dc";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.menu-main-container ul.sub-menu li:nth-child(3) a::before {
  content: "\f228";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.menu-main-container ul.sub-menu li:nth-child(4) a::before {
  content: "\f500";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.menu-main-container ul.sub-menu li:nth-child(5) a::before {
  content: "\f19c";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
} */

.menu-main-container ul.sub-menu li:nth-child(1) a::before {
  content: "";
  display: inline-block;
  background-image: url('./images/civilrightslawsuits.svg');
  background-repeat: no-repeat;
  background-size: 1em 1em;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.menu-main-container ul.sub-menu li:nth-child(2) a::before {
  content: "";
  display: inline-block;
  background-image: url('./images/section1983lawsuits.svg');
  background-repeat: no-repeat;
  background-size: 1em 1em;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.menu-main-container ul.sub-menu li:nth-child(3) a::before {
  content: "";
  display: inline-block;
  background-image: url('./images/immigration.svg');
  background-repeat: no-repeat;
  background-size: 1em 1em;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.menu-main-container ul.sub-menu li:nth-child(4) a::before {
  content: "";
  display: inline-block;
  background-image: url('./images/employmentdiscrimination.svg');
  background-repeat: no-repeat;
  background-size: 1em 1em;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.menu-main-container ul.sub-menu li:nth-child(5) a::before {
  content: "";
  display: inline-block;
  background-image: url('./images/civilrightslawsuits.svg');
  background-repeat: no-repeat;
  background-size: 1em 1em;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.site-branding {
  display: flex;
  align-items: center;
}

.custom-logo {
	max-height: 2rem;
	height: auto;
	width: auto;
}

.site-title a {
  text-decoration: none;
  color: inherit;
  font-size: 24px;
}

.site-header > .container {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

/* Force submenu to align left-to-right, stay inside screen */
.menu-main-container ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	white-space: nowrap;
	flex-direction: row;
	padding: 1rem;
	background-color: #39614e;
	border-radius: 0;
	z-index: 999;
	box-shadow: none;
	overflow-x: auto;
	max-width: 100vw;
	padding-inline: 0;
}

/* Ensure sub-menu doesn't break or wrap */
.menu-main-container ul.sub-menu li {
  white-space: nowrap;
  margin-right: 16px;
}

/* Optional: Prevent dropdown from overflowing right */
.menu-main-container ul.menu > li {
  position: relative;
  overflow: visible;
}

.menu-main-container ul.sub-menu::-webkit-scrollbar {
  height: 6px;
}

.menu-main-container ul.sub-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#menu-item-31 {
	position: unset;
}

#menu-main {
	position: unset;
}

.menu-main-container {
	position: unset;
}

.site-header > .container {
	position: relative;
}

#menu-main {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	list-style: none;
}

#menu-main > li {
	margin-right: 2rem;
}

#menu-main > li a {
	text-decoration: none;
}

#menu-main > li a:hover {
	color: #E1AC53;
}

.site-header {
	padding-inline: 2rem;
	padding-left: 4rem;
	padding-top: 2.25rem;
}

#menu-main > li {
	margin-right: 2rem;
	padding-bottom: 0.75rem;
}

#menu-main > li:hover > a {
	color: #E1AC53;
}

.menu-main-container ul.sub-menu li {
	margin-left: 0;
	margin-right: 2rem !important;
}

.menu-main-container ul.sub-menu li a::before {
	color: #E1AC53;
	font-size: 3rem;
	display: flex;
}

.menu-main-container ul.sub-menu li a {
	gap: 0.5rem;
	font-size: 1rem;
	white-space: wrap;
	flex-wrap: wrap;
}

.site-header {
	padding-bottom: 2.25rem;
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9999;
	width: 100%;
}

main {
	padding-top: 6rem;
}

.menu-main-container ul.sub-menu li {
	padding-top: 0.75rem;
}

.menu-main-container ul.sub-menu li a::before {
	width: 100%;
}

.menu-main-container ul.sub-menu li a {
	max-width: 15rem;
}

.markout {
	display: inline-block;
	content: "";
	background-image: url('./images/p.svg');
	background-size: contain;
	height: 4rem;
	width: 27rem;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	bottom: 3.5rem;
	left: 14.5rem;
	z-index: 1;
}

.hero-section h1 {
	font-size: 4rem;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 4rem;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	text-align: left;
	padding-left: 1.5rem;
}

.photo-left-info-right-section {
	position: relative;
	top: -4rem;
	margin-bottom: -4rem;
}

.padding-inline-4 {
  padding-inline: 4rem !important;
}

.hero-underline {
	position: relative;
	top: -20px;
	max-width: 100%;
}

.col-2-container {
  display: flex;
}

.photo-left-info-right-section .right {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: center;
	padding-inline: 4rem;
	flex: 1;
}

.photo-left-info-right-section .left {
	flex: 1;
	max-width: 35%;
}

.anchor-link {
	color: #39614e;
	font-weight: bold;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  border-top: 1px solid #C8CACB;
}

.footer-bar p {
  margin: 0;
  font-size: 14px;
  color: #404040;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  color: #404040;
  margin-right: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #404040;
}

.footer-links a {
  margin-left: 10px;
  color: #404040;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bar {
	padding-block: 2rem;
}

.site-header {
	padding-inline: 0;
	padding-left: 0;
}

.site-header > .container {
	padding-inline: 4rem;
}

.menu-main-container ul.sub-menu {
	padding-inline: 4rem;
}

.markout-word, .markout-word-2, .markout-word-3, .markout-word-4 {
  position: relative;
  display: inline-block;
}

.markout-word::after {
	background-image: url('./images/d.svg');
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	position: absolute;
	content: "";
	height: 2.5rem;
	width: 14rem;
	bottom: -0.5rem;
}

.markout-word-2::after {
	background-image: url('./images/K.svg');
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	position: absolute;
	content: "";
	height: 4.5rem;
	width: 20rem;
	bottom: -1.7rem;
}

.markout-word-3::after {
	background-image: url('./images/S.svg');
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	position: absolute;
	content: "";
	height: 5.5rem;
	width: 27rem;
	bottom: -2.3rem;
}

.markout-word-4::after {
	background-image: url('./images/q.svg');
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	position: absolute;
	content: "";
	height: 2rem;
	width: 7rem;
	bottom: 0.2rem;
}

.hero-section h1 {
	padding-left: 0;
}

.hero-section {
	padding: 6rem 0;
}

.site-footer {
	padding-top: 4rem;
}

#menu-main > li a[aria-current="page"] {
	color: #E1AC53;
}

.vertical-move {
	position: relative;
	top: -4rem;
	margin-bottom: -4rem;
}

.padding-2 {
  padding: 2rem !important;
}

.background-gray {
  background-color: #E2E2E2 !important; 
}

.padding-block-2 {
  padding-blocK: 2rem !important;
}

.values-section {
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.values-title {
  font-size: 24px;
  margin-bottom: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  justify-items: center;
  align-items: start;
}

.value-card {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}

.value-card .icon {
  height: 40px;
  margin-bottom: 10px;
  background-color: #eee;
}

.value-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.value-card p {
  font-size: 14px;
  color: #555;
}

/* Highlighted Equity Card */
.equity {
  background-color: #254634;
  color: #fff;
}

.equity .icon {
  background-color: transparent;
}

/* Ensure second row starts below three top cards */
.values-grid .value-card:nth-child(4),
.values-grid .value-card:nth-child(5) {
  grid-column: span 1;
}

/* Adjust layout on smaller screens */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.values-footer {
  margin-top: 40px;
  font-size: 16px;
  color: #404040;
}

.value-card img {
	width: 4rem;
	height: 4rem;
}

.values-grid {
	display: flex;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: 0;
	justify-items: center;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.value-card {
	background: #ffffff;
	border: 1px solid #39614E;
	padding: 20px;
	text-align: center;
	width: 100%;
	max-width: 250px;
	box-sizing: border-box;
	aspect-ratio: 1/1;
}

.values-grid > .value-card:nth-of-type(2) {
	border-left: none;
	border-right: none;
}

.values-grid > .value-card:nth-of-type(4) {
	border-top: none;
  border-right: none;
}

.values-grid > .value-card:nth-of-type(5) {
	border-top: none;
}

.text-align-center {
  text-align: center !important;
}

.large {
  font-size: 1.5rem !important;
}

.font-400 {
  font-weight: 400 !important;
}

.font-100 {
  font-weight: 100 !important;
}

.font-200 {
  font-weight: 200 !important;
}

.font-300 {
  font-weight: 300 !important;
}

.font-500 {
  font-weight: 500 !important;
}

.font-600 {
  font-weight: 600 !important;
}

section[class*="who-we-are-section-"] img {
	width: 100%;
}

.padding-inline-2 {
  padding-inline: 2rem !important;
}

.span-color span {
  color: #E1AC53 !important;
}

.who-we-are-section-6 .p-wrapper {
	border-top: 1px solid #c8cacb;
}

.who-we-are-section-6 .p-wrapper > p:first-of-type {
	margin-top: 0 !important;
}

.max-width-45 {
  max-width: 45% !important;
}

.center-everything {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	position: relative !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
}

.values-grid h3 {
	color: #404040;
	font-weight: 300;
}

.value-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.value-card .icon {
	background-color: transparent;
}

.value-card .icon {
	height: auto;
	margin-bottom: 0;
}

.values-grid h3 {
	margin-bottom: -0.25rem;
}

.margin-bottom-2 {
  margin-bottom: 2rem !important;
}

.homepage .photo-left-info-right-section h2 {
	margin-top: 4rem;
	margin-bottom: 0;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 0;
  background-color: transparent;
  gap: 20px;
}

.service-card {
  flex: 1 1 200px;
  max-width: 250px;
  background-color: transparent;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}

.service-card img {
  height: 40px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #404040;
}

.service-card p {
  font-size: 14px;
  color: #404040;
}

.homepage-section-3 {
	padding-inline: 3rem;
}

.service-card img {
	height: 3.75rem;
	margin-bottom: 0;
}

section[class*="homepage-section-"] img {
	width: 100%;
}

.padding-right-2 {
  padding-right: 2rem !important;
}

.small-img-wrapper img {
  max-width: 10rem;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
}

.padding-right-4 {
  padding-right: 4rem !important;
}

.border-top {
  border-top: 1px solid #C8CACB !important;
}

.small-img-wrapper > p {
	margin-top: 0;
  text-align: right;
}

.homepage-section-6 img {
	width: 9rem !important;
}

.featured-resources h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #404040;
}

.resource-cards {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.resource-card {
  flex: 1 1 300px;
  max-width: 32%;
  display: flex;
  flex-direction: column;
}

.resource-card img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.resource-card h3 {
  font-size: 1rem;
  color: #404040;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 1rem;
  color: #404040;
  margin-bottom: 10px;
}

.resource-card a {
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.consultation-cta {
  background-color: transparent;
  text-align: center;
  padding: 2rem 4rem;
}

.consultation-cta p {
  font-size: 1.25rem;
  color: #404040;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cta-button {
  background-color: #39614E;
  color: #C8CACB;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #234937;
}

.homepage-section-8 .large {
	width: 100%;
}

.consultation-cta > .container {
	background-color: #e2e2e2;
	padding-bottom: 3rem;
	padding-top: 1.25rem;
}

.homepage-section-3 img {
	width: auto !important;
}

.accordion-section {
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.accordion {
  max-width: 800px;
  margin: auto;
}

.accordion-item {
  border-top: 1px solid #ddd;
  padding: 20px 0;
}

.accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.accordion-header img {
  height: 28px;
  margin-right: 15px;
}

.accordion-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.accordion-header::after {
  content: "\f078"; /* fa-chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  color: #666;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header::after {
  content: "\f077"; /* fa-chevron-up */
}

.accordion-content {
  display: none;
  margin-top: 15px;
}

.accordion-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.accordion-content a {
  color: #2d5a47;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

.accordion-item.active .accordion-content {
  display: block;
}

.what-we-do-section-3 img {
	width: 100%;
	min-height: 25rem;
	object-fit: cover;
	margin-bottom: -4rem;
}

.margin-block-0 {
	margin-block: 0;
	margin-bottom: 0;
}

.what-we-do-section-3 .padding-right-2 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 4rem;
}

.what-we-do-section-3 .padding-right-2 > h2 {
	margin-top: 0;
}

.what-we-do-section-3 .container.col-2-container.padding-inline-4 {
	padding-right: 0 !important;
}

.what-we-do-section-3 > .container > .p-wrapper {
	max-width: 28rem;
	margin-left: 4rem;
}

.what-we-do-section-3 {
	margin-bottom: 4rem;
}

.max-width-80 {
	display: inline-block;
	max-width: 80%;
}

.text-gold {
  color: #E1AC53;
}

.what-we-do-section-5 img {
	width: 100%;
}

.what-we-do-section-5 > .container > .p-wrapper:first-of-type > p {
	margin-top: 0;
}

.what-we-do-section-5 h2 {
	margin-top: 0;
}

.what-we-do-section-5 .text-gold {
	margin-bottom: 0;
	margin-top: 2rem;
}

.accordion-header h3 {
	font-weight: 300;
	font-size: 1.65rem;
}

.accordion-section.what-we-do-section-2 {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.page-template-template-our-impact .photo-left-info-right-section img {
	width: 100%;
}

.page-template-template-our-impact .photo-left-info-right-section h2 {
	margin-top: 6rem;
}

.page-template-template-learn .photo-left-info-right-section img {
	width: 100%;
}

.learn-news .resource-cards {
	flex-wrap: wrap;
	flex-direction: column;
}

.learn-news .resource-card {
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 100%;
	align-items: center;
  flex: unset;
}

.learn-news .resource-card img {
	width: 100%;
	max-width: 22rem;
	height: 13rem;
	object-fit: cover;
	min-height: unset;
	max-height: unset;
	margin-left: 3rem;
	min-width: 22rem;
}

.page-template-template-learn .photo-left-info-right-section h2 {
	margin-bottom: 0;
}

.learn-section-4 > div > .large {
	width: 100%;
}

#menu-main > li:last-of-type {
	background-color: #e1ac53;
	line-height: 1;
	padding-bottom: 0.5rem;
	padding-top: 0.5rem;
	padding-inline: 0.75rem;
	position: relative;
	top: -0.33rem;
}

#menu-main > li:last-of-type a {
	color: #39614E;
}

#menu-main > li:last-of-type:hover {
	background-color: white;
}

#menu-main > li a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	width: 100%;
}