/*
Theme Name: WP-Angel
Theme URI: https://phearum.com/wp-angel
Description: A modern GeneratePress child theme powered by Tailwind CSS & reset.css
Author: Your Name
Author URI: https://phearum.com
Template: generatepress
Version: 1.0.0
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-angel
*/

/*
// ===========================
// section Style
// ===========================
*/
section {
  display: flex;
}

/*
// ===========================
// Plugin Card Style
// ===========================
*/
.phearum-banner .phearum-banner-button,
.block-card-grid .item-card .featured-icon-wrapper {
  color: hsl(var(--color-surface));
  background-color: hsl(var(--color-primary));
}
.phearum-banner .phearum-banner-button:hover,
.block-card-grid .item-card:hover .featured-icon-wrapper {
  color: hsl(var(--color-surface));
  background-color: hsl(var(--color-secondary));
}

/*
// ===========================
// Single Heading Title Style
// ===========================
*/
.wp-block-heading {
  font-family: var(--font-body);
}
.widget .wp-block-heading {
    font-family: var(--font-body);
    font-size: var(--font-size-3xl, 1.875rem);
}
.section-heading-title,
.banner-heading-title,
.banner-sub-heading-title {
    font-family: var(--font-body);
}
.entry-header .page-title,
.wp-block-heading.has-text-align-center {
    font-family: var(--font-mono);
}
 
.widget-area .widget {
	padding: 0 0 40px 0;
}

.wp-block-separator.has-alpha-channel-opacity.is-style-default {
  border-top: 2px solid #ccc;
  margin: 2em auto;
  width: 50%;
}

/* Latest Posts Block – Base */
.inside-article ul.wp-block-latest-posts__list {
  list-style: none;
  margin: 0 0 2.5rem;
}

/* Each Post Item */
.inside-article ul.wp-block-latest-posts__list li {
  color: hsl(var(--text));
  border-radius: var(--radius-xl, 0.5rem);
  padding: var(--spacing-md, 1.5rem);
  position: relative;
  border: 1px solid hsl(var(--color-border));
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.inside-article ul.wp-block-latest-posts__list li:hover {
  border: 1px solid hsl(var(--color-primary));
  transform: translateY(-3px);
}

/* Post Title */
.inside-article ul.wp-block-latest-posts__list li a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.inside-article ul.wp-block-latest-posts__list li a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Post Date */
.inside-article ul.wp-block-latest-posts__list li time {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* Excerpt (if enabled) */
.inside-article ul.wp-block-latest-posts__list li .wp-block-latest-posts__post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* Featured image (if enabled) */
.inside-article ul.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image {
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 8px;
}

.inside-article ul.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: var(--radius-xl, 0.5rem);
  object-fit: cover;
  aspect-ratio: 3/2;
}

.inside-article ul.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
  transform: scale(1.05);
}


/*
// ===========================
// Custom Latest Posts Grid
// ===========================
*/

.wp-singular.separate-containers .featured-image {
  background-color: hsl(var(--color-primary)) !important;
}
.inside-article ul.wp-block-latest-posts__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
/* ≥640px (tablet portrait) → 2 columns */
@media (min-width: 640px) {
  .inside-article ul.wp-block-latest-posts__list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Make first post big (spans 2 rows) */
  .inside-article ul.wp-block-latest-posts__list > li:first-child {
      grid-column: span 2;
      grid-row: span 2;
  }
}

/* ≥1024px (desktop) → 3 columns */
@media (min-width: 1024px) {
  .inside-article ul.wp-block-latest-posts__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.inside-article ul.wp-block-latest-posts__list li:first-child .wp-block-latest-posts__featured-image img {
  aspect-ratio: revert-layer;
  object-fit: contain;
}

.wp-block-latest-posts.is-grid li {
    margin: 0;
    width: 100%;
}

@media (min-width: 600px) {
    .wp-block-latest-posts.columns-3 li {
        width: 100%;
    }
}

/*
// ===========================
// Featured Image for Pages
// ===========================
*/
.page-featured-image {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-featured-image .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

/*
// ===========================
// Contact Form Page
// ===========================
*/
.law-firm-contact-form {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: hsl(var(--color-surface));
    border-radius: var(--radius-lg, 0.75rem);
}

.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) {
  padding: 4rem 0;
  background-image: url(http://rattana-associates.local/wp-content/uploads/2022/04/blob-grad.svg);
  background-position: bottom center;
  background-repeat: no-repeat;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) > .wp-block-column {
  border-style: solid;
  border-width: 3px 3px 3px 3px;
  border-color: #FFFFFF;
  box-shadow: 0px 11px 22px -12px rgba(0, 0, 0, 0.11);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  padding: 3rem 2rem;
  border-radius: 15px 15px 15px 15px;
  color: #833D0C;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) > .wp-block-column .wp-block-heading,
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) > .wp-block-column p {
  margin-bottom: 0;
}
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) .wp-block-buttons {
  display: flex;
  justify-content: center;
}

/* Contact Form Buttons */
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) .wp-block-buttons a.wp-block-button__link:not(.has-background) {
  background-color: hsl(var(--color-primary));
  border-radius: 3px;
}
.law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) .wp-block-buttons a.wp-block-button__link:not(.has-background):hover {
    background-color: hsl(var(--color-secondary));
}
.widget .wpforms-container .wpforms-field,
.widget .wp-core-ui div.wpforms-container .wpforms-field {
  padding-top: 0;
}
.wp-block-button__link .wp-element-button,
div.wpforms-container-full .wpforms-form input[type=submit]:not(:hover):not(:active),
div.wpforms-container-full .wpforms-form button[type=submit]:not(:hover):not(:active),
div.wpforms-container-full .wpforms-form .wpforms-page-button:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full input[type=submit]:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full button[type=submit]:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active) {
  color: hsl(var(--color-surface));
  background-color: hsl(var(--color-primary));
  border-radius: 3px;
}
div.wpforms-container-full .wpforms-form input[type=submit]:hover,
div.wpforms-container-full .wpforms-form input[type=submit]:active,
div.wpforms-container-full .wpforms-form button[type=submit]:hover,
div.wpforms-container-full .wpforms-form button[type=submit]:active,
div.wpforms-container-full .wpforms-form .wpforms-page-button:hover,
div.wpforms-container-full .wpforms-form .wpforms-page-button:active,
.wp-core-ui div.wpforms-container-full input[type=submit]:hover,
.wp-core-ui div.wpforms-container-full input[type=submit]:active,
.wp-core-ui div.wpforms-container-full button[type=submit]:hover,
.wp-core-ui div.wpforms-container-full button[type=submit]:active,
.wp-core-ui div.wpforms-container-full .wpforms-page-button:hover,
.wp-core-ui div.wpforms-container-full .wpforms-page-button:active {
  background-color: hsl(var(--color-secondary));
}
@media (min-width: 782px) {
  .law-firm-contact-form .law-firm-contact-info:not(.is-not-stacked-on-mobile) > .wp-block-column:hover {
    border-style: solid;
    border-width: 3px 3px 3px 3px;
    border-color: var(--e-global-color-primary);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  }
}
.contact-form-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: hsl(var(--color-primary));
  background-color: hsl(var(--color-primary));
}
.contact-form-icon svg {
  position: relative;
  z-index: 10;
  stroke: hsl(var(--color-surface));
}

@keyframes slideInUp {
    from {
        transform: translate3d(0,100%,0);
        visibility: visible
    }

    to {
        transform: translate3d(0,0,0)
    }
}

.slideInUp {
    animation-name: slideInUp
}


/* Menu Styles */
/* ============================
   Bellow Header Menu Style
============================ */
.site-header .main-navigation,
.secondary-navigation {
    background-color: transparent;
}
.menu-location-nav-below-header .secondary-navigation {
    background-color: hsl(var(--color-primary));
    border-top: 1px solid #eee;
}

.menu-location-nav-below-header .secondary-menu > li:hover > a {
    background-color: hsl(var(--color-secondary));
}

.menu-location-nav-below-header .secondary-menu > li > a {
    color: #fff;
}

.menu-location-nav-below-header .secondary-menu > li:hover > a {
    color: #fff;
}

@media (min-width: 1280px) {
    /* Logo */
    .menu-location-nav-below-header .site-logo img {
        max-width: 400px;
        max-height: 100px;
        height: auto;
    }
}

/* ============================
   MOBILE RESPONSIVE
============================ */
@media (max-width: 992px) {
    .inside-header {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
    }

    .site-logo img {
        max-width: 260px;
    }

    .header-actions {
        margin-left: 0;
    }

    .header-social-links {
        display: none;
    }
}

@media (max-width: 768px) {
  .secondary-menu {
      gap: 20px;
      flex-wrap: wrap;
  }

  .secondary-menu > li > a {
      padding: 12px 0;
  }

  .dropdown-arrow {
      right: -5px;
  }
  .site-header .main-navigation,
  .secondary-navigation {
      width: 100%;
  }
}