html {
  scroll-behavior: smooth;
}

body {
  overflow: -moz-scrollbars-none;
  scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

a {
	color: var( --e-global-color-primary );
}

#cfblegal-header-video {
	background-color: var( --e-global-color-primary );
}

#cfblegal-top-menu, 
#cfblegal-news-top-menu, 
#cfblegal-team-top-menu {
	z-index: 1000;
    transition: all 0.3s ease;
}

#cfblegal-top-menu.scrolled, 
#cfblegal-news-top-menu.scrolled, 
#cfblegal-team-top-menu.scrolled {
    height: 80px; /* Smaller height on scroll */
    background-color: var( --e-global-color-primary ); /* Background changes to purple */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Light shadow */
}

#cfblegal-top-menu .cfblegal-top-menu-logo img, 
#cfblegal-news-top-menu .cfblegal-top-menu-logo img, 
#cfblegal-team-top-menu .cfblegal-top-menu-logo img {
	height: 70px;
}

#cfblegal-top-menu.scrolled .cfblegal-top-menu-logo img, 
#cfblegal-news-top-menu.scrolled .cfblegal-top-menu-logo img, 
#cfblegal-team-top-menu.scrolled .cfblegal-top-menu-logo img {
	height: 50px;
    transition: all 0.3s ease;
}

#cfblegal-top-menu a, 
#cfblegal-news-top-menu a, 
#cfblegal-team-top-menu a {
	transition: all 250ms linear;
}

.scroll-down-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scroll-down-field {
	display: flex;
	align-items: center;
	justify-content: space-around;
	width: 300px;
}

.scroll-down-mouse {
	width: 25px;
	height: 45px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 60px;
	position: relative;
	&::before {
		content: '';
		width: 6px;
		height: 6px;
		position: absolute;
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		background-color: white;
		border-radius: 50%;
		opacity: 1;
		animation: wheel 2s infinite;
		-webkit-animation: wheel 2s infinite;
	}
}

@keyframes wheel {
	to {
		opacity: 0;
		top: 30px;
	}
}

@-webkit-keyframes wheel {
	to {
		opacity: 0;
		top: 30px;
	}
}

h1 strong {
	font-weight: 600;
}


.cfblegal-newsletter-form fieldset {
	margin: 0 !important;
	padding: 0 !important;
}

.cfblegal-newsletter-form div {
	margin: 0 !important;
}

.cfblegal-newsletter-form label {
	display: none !important;
}

.cfblegal-newsletter-form input {
	width: 100% !important;
	background: transparent !important;
	border: 2px solid var( --e-global-color-primary ) !important;
	color: var( --e-global-color-primary ) !important;
	border-radius: 0 !important;
	font-size: 1rem !important;
}

.cfblegal-newsletter-form input::placeholder {
	color: var( --e-global-color-primary ) !important;
}

.cfblegal-newsletter-form button {
	width: 100% !important;
	background: transparent !important;
	border: 2px solid var( --e-global-color-primary ) !important;
	background: var( --e-global-color-primary ) !important;
	color: var( --e-global-color-secondary ) !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	margin-bottom: 0 !important;
	padding: 15px !important;
	font-size: 1rem !important;
}

/* SUB FOOTER - START */
#menu-footer-one, #menu-footer-two {
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-footer-one li, #menu-footer-two li {
    padding: 0 0 10px 10px;
    display: flex;
    align-items: center;
}

#menu-footer-one li a, #menu-footer-two li a {
    text-decoration: none;
	color: var( --e-global-color-secondary );
    font-size: 16px;
    margin-left: 8px;
    transition: padding 0.3s ease;
}

#menu-footer-one li a:hover, #menu-footer-two li a:hover {
    padding-left: 10px;
}

#menu-footer-one li a::before, #menu-footer-two li a::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
	color: var( --e-global-color-secondary );
	padding-right: 10px;
}
/* SUB FOOTER - END */

/* FOOTER - START */
#menu-footer-privacy {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#menu-footer-privacy li {
    padding: 0 0 0 10px;
	font-size: 12px;
}

#menu-footer-privacy li a {
    text-decoration: none;
	color: var( --e-global-color-secondary );
    margin-left: 8px;
    transition: all 0.3s ease;
}

#menu-footer-privacy li a:hover {
    text-decoration: underline;
}
/* SUB FOOTER - END */

/* BREADCRUMBS - START */
.breadcrumbs * {
	position: relative;
	display: inline-block;
	color: white;
	font-family: var( --e-global-typography-text-font-family ), Sans-serif;
}
.breadcrumbs svg {
	height: 12px;
	width: 12px;
	fill: white;
}
.breadcrumbs a {
	color: white;
	text-decoration: none;
	padding-bottom: 2px;
}
.breadcrumbs a::after {
    content: '';
    position: absolute;
	left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var( --e-global-color-secondary );
	transition: all 300ms linear;
}
.breadcrumbs a:hover::after {
    width: 100%;
}
/* BREADCRUMBS - END */

/* PAGE HEADER - START */
.elementor-background-slideshow {
	background: var( --e-global-color-primary );
}
#cfblegal-page-title-container {
	position: sticky;
	top: 80px;
	z-index: 10;
}
/* PAGE HEADER - END */

/* PAGE NEWS - START  */
.news-post-grid {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.post-item {
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-item:hover {
    background-color: var(--e-global-color-primary);
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.post-item a {
    text-decoration: none;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
	object-fit: cover;
}

.post-title {
    padding: 10px;
    font-size: 18px;
	min-height: 90px;
	font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
}

.post-meta {
    display: flex;
	justify-content: space-between;
	padding: 20px;
}

.post-meta .post-date {
    color: #666;
	font-family: var( --e-global-typography-text-font-family ), Sans-serif;
	font-size: 14px;
}

.post-meta .post-socials-links {
	display: flex;
    width: 30%;
    justify-content: space-evenly;
}

.post-meta .post-socials-links a {
    color: var(--e-global-color-primary);
}

.post-item:hover .post-meta .post-socials-links a {
    color: white;
	transition: all 150ms linear;
}
.post-item .post-meta .post-socials-links a:hover {
    color: #9c9c9c;
}

.post-item:hover .post-title, 
.post-item:hover .post-date {
    color: white;
}

#load-more {
    text-align: center;
    margin: 20px 0;
}

#load-more-btn {
    padding: 10px 20px;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 16px;
	line-height: 21px;
    background-color: var(--e-global-color-primary);
	border: 2px solid var(--e-global-color-primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background-color: white;
	color: var(--e-global-color-primary);
}

.cfb-legal-news-photo-gallery img {
	height: 300px !important;
	max-height: 300px !important;
	object-fit: cover;
	object-position: center bottom;
}
/* PAGE NEWS - END */

/* PAGE TEAM - START */
.cfb-team-wrapper {
    display: flex;
    gap: 20px 0;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.cfb-team-member-link {
    display: block;
    text-decoration: none !important;
}

.cfb-team-member {
    display: flex;
    flex: 0 0 33%;
    max-width: 30%;
    background: #fff;
    padding: 20px;
    transition: transform 0.3s ease;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}

.cfb-team-member:hover {
    transform: translateY(-5px);
}

.cfb-team-image img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
	filter: grayscale(1) !important;
}

.cfb-team-member:hover .cfb-team-image img {
	filter: grayscale(0) !important;
}

.cfb-team-info {
	display: flex;
    flex-direction: column;
    align-items: center;
}

.cfb-team-name {
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
	color: var(--e-global-color-primary);
}

.cfb-team-position {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
	color: #333333;
}

.cfb-team-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cfb-team-icon {
    font-size: 1.5em;
    color: var(--e-global-color-primary);
    transition: all 250ms linear;
}

.cfb-team-icon:hover {
	transform: scale(1);
    color: #6c6c6c;
}
/* PAGE TEAM - END */

/* MEMBER PROFILE PAGE - START */
.cfb-team-member-contact-list ul li span.elementor-icon-list-text {
	display: flex !important;
	width: 100% !important;
}
.cfb-team-member-contact-list ul li span.elementor-icon-list-text * {
	display: initial !important;
}
.cfb-team-member-contact-list ul li span.elementor-icon-list-text span {
	padding: 0 15px;
}
.cfb-team-member-profile a {
	color: var(--e-global-color-primary);
	position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 4px;
}
.cfb-team-member-profile a::after {
    content: '';
    position: absolute;
	left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--e-global-color-primary);
	transition: all 300ms linear;
}
.cfb-team-member-profile a:hover::after {
    width: 100%;
}
/* MEMBER PROFILE PAGE - END */

/* PAGE EXPERTISES - START */
.cfb-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    gap: 15px;
    margin: auto;
    padding: 0;
}

.cfb-expertise-item {
    background: #fff;
    padding: 15px;
    text-align: center;
	text-decoration: none !important;
    transition: transform 0.3s ease;
}

.cfb-expertise-item:hover {
    transform: translateY(-5px);
}

.cfb-expertise-item img {
    width: 75%;
    height: auto;
	padding: 10px;
}

.cfb-expertise-item h3 {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 18px;
    margin: 10px 0;
}

.cfb-expertise-item p {
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 14px;
    color: #666;
}
.cfb-expertise-hover {
	background-color: var(--e-global-color-primary)
}

.cfb-expertise-hover img {
    filter: invert(1) brightness(2);
}
.cfb-expertise-hover h3 {
    color: white;
}
.cfb-expertise-hover p {
    color: white;
}
/* PAGE EXPERTISES - END */

/* EXPERTISE SINGLE - START */
.cfb-legal-expertise-page-icon {
	filter: invert(1) brightness(2);
}

.cfb-expertise-team-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
}

.cfb-expertise-team-item {
    display: flex;
    align-items: center;
    width: auto;
    border-bottom: 1px solid #efefef;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
    flex-wrap: nowrap;
    flex-direction: row;
}

.cfb-expertise-team-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    padding: 10px 10px 0 10px;
    width: 100%;
}

.cfb-expertise-team-image-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.cfb-expertise-team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cfb-expertise-team-content {
    flex-grow: 1;
    padding-left: 10px;
}

.cfb-expertise-team-title {
	display: inline-block;
	position: relative;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 18px;
    font-weight: bold;
}

.cfb-expertise-team-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--e-global-color-primary);
    transition: all 300ms linear;
}

.cfb-expertise-team-item:hover .cfb-expertise-team-title::after{
    width: 100%;
}

.cfb-expertise-team-position {
	display: block;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

/* EXPERTISE SINGLE - END */

/* SITEMAP - START */
.sitemap-container {
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sitemap-section {
    width: 100%;
}

.sitemap-container h2 {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	color: var(--e-global-color-primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--e-global-color-primary);
}

.sitemap-container h3 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    margin-top: 15px;
    color: #555;
}

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

.sitemap-container li {
	margin: 0;
	padding: 0;
	margin-bottom: 8px;
    padding-left: 10px;
    position: relative;
	line-height: 21px;
}

.sitemap-container a {
	display: flex;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	color: var(--e-global-color-text);
    text-decoration: none;
    font-weight: normal;
	transition: all 150ms linear;
}

.sitemap-container li a::before {
	content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--e-global-color-primary);
	line-height: 21px;
	padding-right: 10px;
}

.sitemap-container li a:hover {
    padding-left: 15px;
}
/* SITEMAP - END  */

/* FORMS - START */
.frm_forms label {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}
.frm_forms button {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-size: 1.5rem !important;
}
.frm_forms .frm_description, 
.frm_forms input, 
.frm_forms textarea {
	font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}
.frm_forms .frm_button_submit:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: 2px solid #999 !important;
}
/* FORMS - END */

/* AWARDS - MASORY GALLERY - START */
#cfb-awards-gallery #gallery-1 {
	display: flex;
    gap: 10px;
    padding: 0;
    flex-wrap: wrap;
}

#cfb-awards-gallery #gallery-1 .gallery-item {
	position: relative;
    width: calc(25% - 10px);
}
#cfb-awards-gallery #gallery-1 .gallery-item:hover::before {
	content: "\f054";
    font-family: "Font Awesome 6 Free";
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 10px;
    color: var(--e-global-color-primary);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: top 0.5s ease, opacity 0.3s ease;

}

#cfb-awards-gallery #gallery-1 .gallery-item:hover::before {
    opacity: 1;
}

#cfb-awards-gallery #gallery-1 .gallery-icon {
    width: 100%;
    overflow: hidden;
}

#cfb-awards-gallery #gallery-1 .gallery-icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* MOBILE SLIDE RIGHT BAR - START */
 .slide-bar-right {
  position: fixed;
  top: 0;
  right: -100%; /* Start hidden off-screen */
  width: 100%;
  height: 100%; /* Full height of the viewport */
  background-color: rgb(67, 53, 139, 1);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
}

.slide-bar-right .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
	font-weight: 400;
  cursor: pointer;
}

.slide-bar-right ul li a {
  color: white;
}
/* MOBILE SLIDE RIGHT BAR - START */

@media (max-width: 1200px) {
    #cfb-awards-gallery #gallery-1 {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 800px) {
    #cfb-awards-gallery #gallery-1 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
    }
}

@media (max-width: 500px) {
    #cfb-awards-gallery #gallery-1 {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}
@media (max-width: 768px) {
	#cfblegal-top-menu .hfe-retina-img {
		padding: 10px;
	}
	.cfb-team-wrapper, 
	.news-post-grid {
		display: flex;
		gap: 20px 0;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: column;
	}
	.cfb-team-member, 
	.post-item {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	.cfb-team-name, .cfb-team-position {
		text-align: center;
	}
	.cfb-expertise-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 15px;
		margin: auto;
		padding: 0;
	}
	.cfb-expertise-team-list {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 10px;
		list-style: none;
		padding: 0;
	}
    .sitemap-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sitemap-section {
        width: calc(50% - 15px);
    }
    .sitemap-container h2 {
        grid-column: span 2;
    }
}