/*
Theme Name: Zadeh MD
Theme URI: https://zadehmd.com
Description: Custom theme for Dr. Mani H. Zadeh MD - Los Angeles ENT Specialist
Author: Karla Almeida
Author URI: https://almeidakarla.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zadeh-md
Requires at least: 5.0
Requires PHP: 7.4
*/

/* Main styles are in assets/css/main.css */


section.zade-specialty-hero {
    background: #163052;
    padding: 100px 15px 50px;
}
h1.zade-specialty-hero__title {
    color: #fff;
    text-align: center;
    font-size: 36px;
}

nav.zade-breadcrumb {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}
p.zade-specialty-hero__subtitle {
    color: #fff;
    text-align: center;
    margin: 20px auto ;
    max-width: 800px;
    font-size: 20px;
}
.zade-blog-archive .zade-container {
    max-width: 1200px;
    margin: auto;
    padding: 100px 15px;
}
.zade-blog-archive__layout {
    display: flex;
    justify-content: space-between;
}
aside.zade-blog-sidebar {
    width: 25%;
    background: #fff;
    border-radius: 12px;
    padding: 24px 24px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.zade-blog-grid {
    width: 70%;
}
.zade-blog-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zade-blog-categories__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 14px;
    color: #163052;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
}
.zade-blog-categories__item:last-child {
    border-bottom: none;
}
.zade-blog-categories__item:hover {
    background: #f7faff;
    border-radius: 8px;
}
.zade-blog-categories__item.is-active {
    background: #163052;
    color: #ffffff;
}
.zade-blog-sidebar__title {
    font-size: 24px;
    color: #163052;;
    margin-bottom: 20px;
}
.zade-blog-grid__posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.zade-blog-grid__posts article{
    border-radius: 15px;
    background: #ffffff;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}
.zade-blog-grid__posts article {
    transition: all 0.3s;
    position: relative;
    top: 0;
}
.zade-blog-grid__posts article:hover {
    top: -5px;
    transition: all 0.3s;
}
.zade-blog-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.zade-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zade-blog-card__content{
    padding: 15px;
}
.zade-blog-card__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #b8986a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.zade-blog-card__read-more {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 15px;
    transition: all 0.3s;
        font-weight: 600;
    font-size: 15px;
    color: #163052;
}
.zade-blog-grid__posts article:hover .zade-blog-card__read-more{
    gap: 8px;
    transition: all 0.3s;
}

.zade-blog-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

form.zade-blog-search__form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 150ms ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input.zade-blog-search__input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #163052;
    font-family: 'Inter';
}

button.zade-blog-search__btn {
    padding: 10px 20px;
    background: #163052;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: background 150ms ease;
}
.zade-blog-search__active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

a.zade-blog-search__clear {
    margin-top: 7px;
}

nav.zade-blog-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

ul.zade-blog-pagination__list {
    display: flex;
    align-items: center;
    gap: 0px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all var(--transition-fast);
}

span.page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
}
@media(max-width: 991px){
    .zade-blog-grid__posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

}
@media(max-width: 480px){

    .zade-blog-archive__layout {
    flex-wrap: wrap;
}
    .zade-blog-grid__posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

}
@media (max-width: 767px) {
    .zade-blog-archive__layout {

    flex-direction: column;
    width: 100%;
}
aside.zade-blog-sidebar {
    width: 100%;
    margin-bottom: 40px;
}
.zade-blog-grid {
    width: 100%;
}
}

/* single post template */
  section.zad-post-banner {
    background: var(--color-primary);
    padding: var(--space-20) 0;
    text-align: center;
}

main.zad-main {
    padding-top: 45px;
}

.zad-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.zad-post-banner__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

span.zad-post-banner__category {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #EAE4D9;
    margin-bottom: 1rem;
}

h1.zad-post-banner__title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

time.zad-post-banner__date {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

article.zad-post-content {
    padding: 45px 0;
    background: #fff;
}
.zad-post-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

aside.zad-post-sidebar {
    position: sticky;
    top: 160px;
    width: 280px;
    flex-shrink: 0;
    order: 2;
}

.zad-post-sidebar__inner {
    background: #fff;
}

.zad-post-sidebar__cta {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h4.zad-post-sidebar__title {
    font-size: 1.2rem;
    color: #163052;
    margin-bottom: 0.5rem;
}

p.zad-post-sidebar__text {
    font-size: 15px;
    color: #2d343e;
    margin-bottom: 0.5rem;
}

.zad-post-sidebar__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zad-post-main {
    flex: 1;
    min-width: 0;
    order: 1;
}

.zad-post-image {
    margin-bottom: 2rem;
    text-align: center;
}

img.zad-post-image__img.wp-post-image {
    width: 90%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    display: inline-block;
}

.zad-post-content__body {
    max-width: 900px;
    margin: 0 auto;
}

.zad-post-content__body p {
    color: #2d343e;
    font-size: 16px;
    margin-bottom: 1rem;
}

.zad-post-back {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
@media (max-width:1023px) {
  .zad-post-layout {

    flex-direction: column;
}
aside.zad-post-sidebar {
    position: sticky;
    top: 160px;
    width: 100%;
    flex-shrink: 0;
    order: 2;
    text-align: center;
}
h1.zad-post-banner__title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 1rem;
}
}

/* =============================================
   LEGAL PAGE TEMPLATE (Terms & Privacy Policy)
   ============================================= */

/* Banner */
.legal-banner {
  background: #163052;
  padding: 100px 15px 50px;
  text-align: center;
}

.legal-banner__title {
  color: #fff;
  font-size: 42px;
  margin: 0;
}

/* Content Section */
.legal-content {
  background: #fff;
  padding: 60px 0 80px;
}

.legal-content__wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content__body {
  font-size: 16px;
  line-height: 1.7;
  color: #2d343e;
}

/* Paragraph spacing - the main request */
.legal-content__body p {
  margin-bottom: 1.5em;
}

/* Headings */
.legal-content__body h2 {
  font-size: 28px;
  font-weight: 700;
  color: #163052;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #e2e8f0;
}

.legal-content__body h3 {
  font-size: 22px;
  font-weight: 600;
  color: #163052;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.legal-content__body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #163052;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Lists */
.legal-content__body ul,
.legal-content__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.legal-content__body li {
  margin-bottom: 0.5em;
}

/* Links */
.legal-content__body a {
  color: #163052;
  text-decoration: underline;
}

.legal-content__body a:hover {
  color: #b8986a;
}

/* Strong/Bold */
.legal-content__body strong {
  color: #163052;
}

/* Separator between sections */
.legal-content__body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5em 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .legal-banner {
    padding: 80px 15px 40px;
  }

  .legal-banner__title {
    font-size: 32px;
  }

  .legal-content {
    padding: 40px 0 60px;
  }

  .legal-content__body h2 {
    font-size: 24px;
  }

  .legal-content__body h3 {
    font-size: 20px;
  }
}

/* =============================================
   FLOATING CONTACT WIDGET
   ============================================= */

.contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  font-family: 'Inter', sans-serif;
}

/* Trigger Button */
.contact-widget__trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #163052;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(22, 48, 82, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-widget__trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(22, 48, 82, 0.5);
}

.contact-widget__icon--close {
  display: none;
}

.contact-widget.is-open .contact-widget__icon--chat {
  display: none;
}

.contact-widget.is-open .contact-widget__icon--close {
  display: block;
}

/* Panel */
.contact-widget__panel {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.contact-widget.is-open .contact-widget__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.contact-widget__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 16px;
  background: #163052;
  color: #fff;
}

.contact-widget__header-content {
  flex: 1;
}

.contact-widget__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.contact-widget__subtitle {
  font-size: 13px;
  margin: 4px 0 0;
  opacity: 0.85;
  color: #fff;
}

.contact-widget__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.contact-widget__close:hover {
  opacity: 1;
}

/* Body */
.contact-widget__body {
  padding: 16px;
}

/* Options */
.contact-widget__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-widget__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.contact-widget__option:hover {
  background: #fff;
  border-color: #163052;
  box-shadow: 0 2px 8px rgba(22, 48, 82, 0.1);
}

.contact-widget__option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(22, 48, 82, 0.1);
  color: #163052;
}

.contact-widget__option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-widget__option-text {
  font-size: 15px;
  font-weight: 600;
  color: #163052;
}

.contact-widget__option-detail {
  font-size: 13px;
  color: #64748b;
}

.contact-widget__option-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-widget__option:hover .contact-widget__option-arrow {
  transform: translateX(3px);
  color: #163052;
}

/* Mobile */
@media (max-width: 576px) {
  .contact-widget {
    bottom: 16px;
    right: 16px;
  }

  .contact-widget__trigger {
    width: 56px;
    height: 56px;
  }

  .contact-widget__panel {
    width: calc(100vw - 32px);
    right: 0;
  }
}

/* =============================================
   DIRECTORY PAGE TEMPLATE
   ============================================= */

.directory-content {
  background: #fff;
  padding: 60px 0 80px;
}

.directory-content__wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar */
.directory-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

.directory-sidebar__inner {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.directory-sidebar__title {
  font-size: 18px;
  font-weight: 600;
  color: #163052;
  margin: 0 0 16px;
}

.directory-sidebar__categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.directory-sidebar__category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: #163052;
  text-decoration: none;
  transition: all 0.2s ease;
}

.directory-sidebar__category-item:hover {
  background: #fff;
}

.directory-sidebar__category-item.is-active {
  background: #163052;
  color: #fff;
}

.directory-sidebar__category-count {
  font-size: 13px;
  opacity: 0.7;
}

/* Grid */
.directory-grid {
  flex: 1;
  min-width: 0;
}

.directory-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.directory-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.directory-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.directory-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.directory-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.directory-card:hover .directory-card__img {
  transform: scale(1.05);
}

.directory-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
}

.directory-card__content {
  padding: 20px;
}

.directory-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #b8986a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.directory-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #163052;
  margin: 0 0 12px;
  line-height: 1.3;
}

.directory-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #163052;
  transition: gap 0.2s ease;
}

.directory-card:hover .directory-card__read-more {
  gap: 10px;
}

/* Pagination */
.directory-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.directory-pagination__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.directory-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #163052;
  text-decoration: none;
  transition: all 0.2s ease;
}

.directory-pagination .page-numbers:hover {
  background: #f1f5f9;
}

.directory-pagination .page-numbers.current {
  background: #163052;
  color: #fff;
}

/* Empty State */
.directory-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
  .directory-content__wrapper {
    flex-direction: column;
  }

  .directory-sidebar {
    width: 100%;
    position: static;
  }

  .directory-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .directory-grid__items {
    grid-template-columns: 1fr;
  }

  .directory-content {
    padding: 40px 0 60px;
  }
}