/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for the Astra theme
Author: Your Name
Author URI: https://yourwebsite.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

.wp-block-heading {
	margin-top: 0.5em !important;
}

.wp-block-list {
	margin-left: 2.5em !important;
}

/*
 * Miscellaneous overrides
 */

.entry-content .wp-audio-shortcode,
.entry-content .wp-embedded-audio,
.entry-content .wp-embedded-video,
.entry-content .wp-video,
.entry-content p,
.entry-content li {
	font-size: 17px;
  	margin-bottom:0;
  	line-height: 1.8em;
}

.entry-content img {
	margin-bottom: 1em;
}

.entry-content :where(
h2,
h3,
h4,
h5,
h6) {
  margin-bottom:0 !important;
}


	.privacy-policy-body {
		padding: 2em 0;
	}
	
	.entry-content .privacy-policy-body h2,
	.entry-content .privacy-policy-body h3,
	.entry-content .privacy-policy-body h4,
	.entry-content .privacy-policy-body p {
		margin-bottom: 0.5em !important;
	}
	
	.privacy-policy-body li {
		margin-left: 0;
	}

footer {
	margin-top: 3em;
}


#menu-footer-menu li {
	margin-bottom: 0.55em;
}

.uagb-block-7f9e9467 .uagb-ifb-title-wrap .uagb-ifb-title-prefix {
  color: #a07010;	
}

@media only screen and (max-width: 976px) {
  .uagb-blockquote__skin-border blockquote.uagb-blockquote {
    padding-left: 3em !important;
  }
   
	.uagb-block-51e30072.wp-block-uagb-star-rating {
      justify-content: center !important;
   }
	
	.uag-star-rating {
	  font-size: 34px !important;
	}
}

@media only screen and (max-width: 767px) {
  .uagb-blockquote__content {
    margin-bottom: 3em !important;
  }
	
		.uag-star-rating {
	  font-size: 34px !important;
	}
}

@media only screen and (max-width: 767px) {

/*
 * Attorney profiles
 */

.attorney-group {
	width: 100%;
	background-color: white;
	padding: 2.5em;
}

.attorney-group-title {
	padding-top: 0.5rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.single-attorney .attorney-single-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 4em;
  background-color: #fbfbfb !important;
}

.attorney-header {
  margin-top: -3.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
	z-index: 1;
}

.attorney-grid .ast-article-post {
	padding: 1em;
}

.attorney-photo img {
  max-width: 270px;
  height: auto;
  margin-bottom: 1.5em;
  border: 10px solid white;
  box-shadow:
      0 1px 1px hsl(0deg 0% 0% / 0.075),
      0 2px 2px hsl(0deg 0% 0% / 0.075),
      0 4px 4px hsl(0deg 0% 0% / 0.075),
      0 8px 8px hsl(0deg 0% 0% / 0.075),
      0 16px 16px hsl(0deg 0% 0% / 0.075);
}

.attorney-archive-photo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5em;
}

.attorney-title {
	font-size: 1em;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.5em;
	background-color: var(--ast-global-color-1);
	padding: 0.25em 1.5em;
	text-align: center;
}

.attorney-archive-card {
	text-align: center;
}

.attorney-archive-info .attorney-name {
	font-size: 1.4em;
}

.attorney-archive-title {
  	font-size: 0.9em;
  	letter-spacing: 0.25em;
  	text-transform: uppercase;
  	font-weight: bold;
	margin-top: 0.5em;
	border-top: 1px solid #ddd;
}

.attorney-biography {
	text-align: left;
	line-height: 1.7;
}

.attorney-navigation {
  margin: 2em;
  text-align: center;
}



/* =======================================
   Attorney Grid Responsive Columns
   ======================================= */

.attorney-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.attorney-item {
  flex: 0 1 100%; 
}

/* Small (≥576px) = 2 columns */
@media (min-width: 576px) {
  .attorney-item {
    flex: 0 1 calc(50% - 1.5rem);
  }
}

/* Medium (≥768px) = 3 columns */
@media (min-width: 768px) {
  .attorney-item {
    flex: 0 1 calc(33.333% - 1.5rem);
  }
}

/* Large (≥992px) = 4 columns */
@media (min-width: 992px) {
  .attorney-item {
    flex: 0 1 calc(25% - 1.5rem);
  }
}

/* =======================================
   Attorney Links and Profiles
   ======================================= */

.attorney-links {
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding: 2em 0;
	width: 100%;
}

.attorney-links-title {
  font-size: 1.5em;
  margin-bottom: 2rem;
	padding-bottom: 0.5em;
  text-align: center;
	border-bottom: 1px solid #ddd;
}

.attorney-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3em;
}

.attorney-links-grid a {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.attorney-links-grid a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.attorney-links-grid img {
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Smaller screens: wrap neatly */
@media (max-width: 600px) {
  .attorney-links-grid img {
    max-height: 35px;
  }
}

