/*
Theme Name: SA
Theme URI: https://s-a.law
Author: Jason Murtha
Author URI: https://jasonmurtha.com
Description: Template for s-a.law
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 0.1
Text Domain: salaw
*/
h1,h2,h3,h4,h5,h6{
    font-family:'Oswald', sans-serif;
    font-weight: 700;
  }
  :root {
    --bs-link-color: #0A3A60;
    --bs-link-color-rgb: #0A3A60;
    --bs-link-hover-color: #212529;
    --bs-btn-hover-bg: #212529 !important;
  }
  a{
    color:#0A3A60;
  }
  a:hover{
    color:#212529;
  }
  .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.wp-caption {
  max-width: 100%;
  padding: 0.5em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  text-align: center;
  margin: 1.5em 0;
}

.wp-caption img {
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 0.875em;
  color: #555;
}
blockquote {
  border-left: 4px solid #ddd;
  margin: 1.5em 0;
  padding: 0.5em 1em;
  font-style: italic;
  background: #f9f9f9;
}


  .bg-light-subtle{
    background-color: #f9f9f9 !important;
  }
  
  .btn-primary{
    background-color:#0A3A60;
    border:none;
  }
  .active > .page-link, .page-link.active{
    background-color:#0A3A60; 
    border-color:#0A3A60;
  }
  .btn:hover{
    background-color: #212529;
  }
  #pauseButton:hover, #playButton:hover{
    background-color:#f9f9f9;
  }
  .card{
    background-color: #f9f9f9;
  }
  .bg-dark{
    background-color:#0A3A60 !important;
  }

@keyframes spinYOnce {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.spin-once {
  display: inline-block;
  backface-visibility: hidden;
  perspective: 800px;
}

.spin-once.animated {
  animation: spinYOnce 2.0s ease forwards;
}


.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  

  grid-template-columns: repeat(3, 1fr);
}

.services-grid li {
  width: 100%;
  padding-bottom:15px;
  box-sizing: border-box;
}
.services-grid li.current {
  border-bottom: 5px solid #0A3A60;
  padding-bottom:10px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color:#F8F9FA; 
  box-shadow: var(--bs-shadow-sm);
  padding: 1rem;
  border: 1px solid #0A3A60;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid #0A3A60;
  transition: outline 0.2s, box-shadow 0.2s;

}
.service-item {
  display: block;            
  width: 100%;
  height: 100%;
  color: inherit;              
  text-decoration: none;
}
.service-item:hover{
  outline: 3px solid #0A3A60;
outline-offset: -3px;     
box-shadow: 0 4px 12px rgba(6, 103, 186, 0.3);
}
.service-item h3{
  font-size:14px;
}

.service-item .icon{
  font-size: 3rem;
  color: #0A3A60;
  margin-bottom: 0.5rem;
}

#heroSection {
  position: relative;
  overflow: hidden;
  background: url(/wp-export/texture-1027800_1280.jpg);
  z-index:1;
}
#heroSection::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -2;
}
#heroSection::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(238, 238, 238, 1);
  clip-path: polygon(100% 100%, 100% 194px, 0% 776px, 0% 100%);
  z-index: -1;
}
.page-bg {
  position: relative;
  overflow: hidden;
  background: url(/wp-export/texture-1027800_1280.jpg);
  z-index:1;
}
.page-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -2;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(238, 238, 238, 1);
  clip-path: polygon(100% 100%, 100% 194px, 0% 776px, 0% 100%);
  z-index: -1;
}
.hero-text-glass {
  background-color: rgba(255, 255, 255, 0.7); /* semi-transparent white */
  backdrop-filter: blur(8px);                /* background blur */
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
}
#ourTeamSection {
  position: relative; 
  padding-bottom: 0px; 
}
#ourTeamSection::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/marble-grey.jpg'); 
  background-size: cover; 
  background-repeat: no-repeat;

  z-index: -1; 

}
.blog-grid {
  margin-top: 15px;
  margin-bottom: 15px;
}
.blog-grid .blog-img {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}
.blog-grid .blog-img .date {
  position: absolute;
  background: #3a3973;
  color: #ffffff;
  padding: 8px 15px;
  left: 0;
  top: 10px;
  font-size: 14px;
}
.blog-grid .blog-info {
  box-shadow: 0 0 30px rgba(31, 45, 61, 0.125);
  border-radius: 5px;
  background: #ffffff;
  padding: 20px;
  margin: -30px 20px 0;
  position: relative;
}
.blog-grid .blog-info h5 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}
.blog-grid .blog-info h5 a {
  color: #3a3973;
}
.blog-grid .blog-info p {
  margin: 0;
}
.blog-grid .blog-info .btn-bar {
  margin-top: 20px;
}

.px-btn-arrow {
    padding: 0 50px 0 0;
    line-height: 20px;
    position: relative;
    display: inline-block;
    color: #fe4f6c;
    -moz-transition: ease all 0.3s;
    -o-transition: ease all 0.3s;
    -webkit-transition: ease all 0.3s;
    transition: ease all 0.3s;
}


.px-btn-arrow .arrow {
    width: 13px;
    height: 2px;
    background: currentColor;
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 25px;
    -moz-transition: ease right 0.3s;
    -o-transition: ease right 0.3s;
    -webkit-transition: ease right 0.3s;
    transition: ease right 0.3s;
}

.px-btn-arrow .arrow:after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    display: inline-block;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


.menu-item a{
  border-bottom:transparent 2px solid !important;
}
.current-menu-item a{
  border-bottom:#000 2px solid !important;
}
.pagination nav{
  margin:0 auto;
}
.single-text .post-thumbnail {
  max-width: 100%;
  height: auto;
}
.single-text .author-info {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
}
.single-text .author-info .card-body {
  display: flex;
  align-items: center;
}
.single-text .author-info .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.single-text .author-info .card-text {
  font-size: 1rem;
  color: #6c757d;
}
.social-icons a{
  color:#0A3A60 !important;
  font-size:1.8em;
}
#blog .card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: transform 0.2s;
}

#blog .card:hover {
  transform: scale(1.05);
}
#blog .card .card-img-top{
  object-fit:cover;
  max-height:220px
}
#blog .card-title a {
  color: #333;
  font-weight: bold;
}

#blog .card-text {
  font-size: 0.9rem;
}

#blog .card-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}
/* General styles for the nav menu */
.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  color: #333;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.navbar-nav > li > a:hover {
  color: #0A3A60;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-nav .dropdown-menu li {
  position: relative;
}

.navbar-nav .dropdown-menu li a {
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease;
  border-bottom:0 !important;
}

.navbar-nav .dropdown-menu li a:hover {
  background: #f8f9fa;
  border-bottom:0 !important;
}

/* Show dropdown on hover */
.navbar-nav > li:hover > .dropdown-menu {
  display: block;
}
#mainNav {
  position: sticky; /* Enable sticky positioning */
  top: 0; /* Stick to the top of the viewport */
  z-index: 1020;
  background-color: #f9f9f9; /* Add a background color to prevent transparency issues */
  transition: all 0.3s ease; /* Smooth transition for shrinking effect */
}

#mainNav.scrolled {
  padding:0 0;
  transition: height 0.3s ease; /* Smooth transition for logo resizing */
}
#mainNav.scrolled header{
  padding-top:0.5rem !important;
  padding-bottom:0.5rem !important;
}
#navLogo {
  transition: height 0.3s ease; /* Smooth transition for logo resizing */
}

#mainNav.scrolled #navLogo {
  height: 50px; /* Shrink logo height */
}
/* --- Menu links --- */
.offcanvas .navbar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offcanvas .navbar-nav .nav-item {
  width: 100%;
}
.offcanvas .navbar-nav > li > ul > li{
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0;
}
.offcanvas .navbar-nav > li > a, .offcanvas .navbar-nav > li > ul > li > a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  background-color: #f1f3f5;
  border-radius: 0.375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas .navbar-nav  > li > a:hover,
.offcanvas .navbar-nav  > li > a:focus,
.offcanvas .navbar-nav > li > ul > li > a:hover, 
.offcanvas .navbar-nav > li > ul > li > a:focus {
  background-color: #0A3A60;
  color: #fff;
}

/* Phone Button inside Offcanvas */
.offcanvas .btn {
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  display: block;
  margin-top: 1rem;
}
.accordion-button{
  background-color:#EBF2FC !important;
}
.wp-element-caption{
  font-size:13px;
}

@media (max-width: 767px) {
  #navLogo {
    height: 60px; /* Adjust logo height for mobile */
  }
}
@media(min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media(min-width: 1276px) {
  .service-item h3{
    font-size:1rem;
  }
}

