/*
Theme Name: Houston Piano Lessons
Theme URI: http://example.com/my-wordpress-theme
Author: Hagop
Author URI: http://example.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, responsive, blog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b4f6c;
    --secondary-color: #107e7d;
    --accent-color: #f9a620;
    --accent-color-dark: #d78900;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-body: "Poppins", sans-serif;
    --font-heading: "Playfair Display";
    --container: 1200px;
    --gutter: 2rem;
    --section-padding: 1rem;
}
html {
    scroll-behavior: smooth;
}
body {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    padding-top: 80px;
    font-family: var(--font-body);
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

h2 {
    margin-top: 2rem;
    padding: 1rem 0 0 0;
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

article > h1 {
    text-align: center;
}

/* Auto “section + container” for top-level blocks in the post content */
/* Classic themes */
.entry-content > * {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

/* Block themes (Site Editor) */
.wp-block-post-content > * {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

/* Let full-width blocks actually go edge-to-edge when you choose Align Full */
.entry-content > .alignfull,
.wp-block-post-content > .alignfull {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Wide alignment a bit wider than container */
.entry-content > .alignwide,
.wp-block-post-content > .alignwide {
    max-width: calc(var(--container) + 6rem);
}

/* Optional: light background if you add class "section-bg" to any top-level block */
.entry-content > *.section-bg,
.wp-block-post-content > *.section-bg {
    background: var(--light-bg);
}

/* Tiny polish */
.entry-content :where(p) {
    line-height: 1.85;
}
.wp-block-post-content :where(p) {
    line-height: 1.85;
}

/* .fa-brands { font-family: var(--font-body);}
.fa-solid, .fas { font-family: var(--font-body); font-weight: 900; } */

/* ========== CONTAINERS ==========*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.container--narrow {
    max-width: 980px;
}

/* ========== HEADER ========== */
.header-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    box-shadow: var(--box-shadow);
}

/* HAMBURGER (hidden on desktop) */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.hamburger:focus {
    outline: none;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        top 0.25s ease,
        opacity 0.2s ease;
}
.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
    top: 100%;
    transform: translateY(-100%);
}

/* OPEN state → hamburger turns into X */
.nav-open .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ================= MOBILE MENU ================= */
@media (max-width: 970px) {
    /* Show hamburger, position it top-right */
    .hamburger {
        display: inline-flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Logo smaller */
    .brand-logo {
        font-size: 1.35rem !important;
    }

    .main-menu {
        position: static;
    }

    /* Mobile panel closed by default */
    .main-menu .menu-items {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: calc(var(--header-height, 64px));
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: none;
    }

    .main-menu .menu-items > li {
        display: block;
    }

    .main-menu .menu-items a {
        display: block;
        padding: 12px 8px;
        border-radius: 10px;
    }

    /* When .nav-open is on <body>, show the panel */
    .nav-open .main-menu .menu-items {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Reserve header height so panel starts below */
    .header-container {
        min-height: var(--header-height, 64px);
    }

    .nav-open .main-menu .menu-items {
        transition:
            transform 0.25s ease,
            opacity 0.2s ease; /* animate only when open */
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 971px) {
    .main-menu .menu-items {
        display: flex !important;
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.brand-logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo .accent {
    color: var(--accent-color);
}

/* WP menu */
.main-menu .menu-items {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-menu .menu-items > li {
    display: inline-flex;
}

.main-menu .menu-items a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-menu .menu-items a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--secondary-color);
}

/* parent links get a caret inside */
.main-menu .menu-items li {
    position: relative;
}
.main-menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* caret */
.main-menu .menu-item-has-children > a .caret {
    display: inline-flex;
    width: 16px;
    height: 16px;
}
.main-menu .menu-item-has-children > a .caret svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* hide submenus by default; show when parent opens */
.main-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}
.main-menu .menu-items li.submenu-open > .sub-menu {
    display: block;
}

/* rotate caret when open */
.main-menu .menu-items li.submenu-open > a .caret svg {
    transform: rotate(180deg);
}

/* desktop dropdown panel */
@media (min-width: 971px) {
    .main-menu .sub-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 200px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
        z-index: 1000;
        padding: 0.5rem;
    }
    .main-menu .sub-menu a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        white-space: nowrap;
        font-weight: 500;
    }
    .main-menu .sub-menu a:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--secondary-color);
    }
}

/* ========== BUTTONS (Gutenberg) ========== */
/* Base (applies to any WP Button) */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
    display: inline-block;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary = "Fill" style in Gutenberg */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-element-button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-element-button:hover {
    background-color: var(--accent-color-dark);
    color: var(--white);
}

/* Secondary = "Outline" style in Gutenberg (same visual size via inset shadow) */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
    background-color: transparent;
    color: var(--white);
    border: none;
    box-shadow: inset 0 0 0 2px var(--white);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ========== HERO (Cover block) ========== */
/* Make the Cover act like your hero */
.wp-block-cover.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 0rem;
    overflow: hidden;
}

/* Use WP's built-in overlay as the darkener */
.wp-block-cover.hero .wp-block-cover__background {
    background-color: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

/* Ensure image fully covers */
.wp-block-cover.hero .wp-block-cover__image-background {
    background-position: center;
    background-size: cover;
}

/* Optional extra gradient overlay (kept for consistency; can be removed) */
.wp-block-cover.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 0;
    pointer-events: none;
}

/* Content on top */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.5;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons row */
.hero-content .wp-block-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-block-cover.hero {
        min-height: 70vh;
        padding-top: 3rem;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-content p {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 0rem 0 3rem 0;
}

.section.section-bg,
.section-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* .section-title h2 {
  margin-bottom: 1.25rem;
} */

.section-title p {
    color: var(--text-color);
    opacity: 0.9;
}

/* ========== FEATURES (Columns block as cards) ========== */
.section .container--narrow {
    margin-top: 1rem;
}

/* Turn WP Columns into a responsive card grid */
.wp-block-columns.features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 1.5rem;
}

/* Each column behaves like a .feature card */
.wp-block-columns.features > .wp-block-column {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.wp-block-columns.features > .wp-block-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Icon */
.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Headings/text inside cards */
.wp-block-columns.features h3 {
    margin-bottom: 0.25rem;
}
.wp-block-columns.features p:last-child {
    margin-bottom: 0;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .wp-block-columns.features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        justify-items: center;
    }

    .wp-block-columns.features > .wp-block-column {
        min-height: 280px;
        padding: 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .wp-block-columns.features h3,
    .wp-block-columns.features p {
        text-align: center;
    }
}

/* ========== SERVICES GRID ========== */
.wp-block-columns.services {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* Service card */
.wp-block-columns.services > .wp-block-column {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover lift & stronger shadow */
.wp-block-columns.services > .wp-block-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ========== IMAGE AREA ========== */
.wp-block-image.service-img {
    margin: 0;
    height: 200px;
    overflow: hidden;
}
.wp-block-image.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wp-block-columns.services
    > .wp-block-column:hover
    .wp-block-image.service-img
    img {
    transform: scale(1.08);
}

/* Fallback if no class on image */
.wp-block-columns.services > .wp-block-column > .wp-block-image:first-child {
    margin: 0;
    height: 200px;
    overflow: hidden;
}
.wp-block-columns.services
    > .wp-block-column
    > .wp-block-image:first-child
    img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wp-block-columns.services
    > .wp-block-column:hover
    > .wp-block-image:first-child
    img {
    transform: scale(1.08);
}

/* ========== CONTENT AREA ========== */
.wp-block-columns.services > .wp-block-column > *:not(.wp-block-image) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.wp-block-columns.services h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.wp-block-columns.services p {
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.95;
}

.wp-block-columns.services .wp-block-buttons {
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .wp-block-columns.services {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }
    .wp-block-columns.services > .wp-block-column > *:not(.wp-block-image) {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ========== TESTIMONIALS GRID ========== */
.wp-block-columns.testimonials {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.wp-block-columns.testimonials > .wp-block-column {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Optional hover lift effect */
.wp-block-columns.testimonials > .wp-block-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Testimonial text */
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Author name */
.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .wp-block-columns.testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Narrow text helpers for this kind of section */
.lead {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* Lists inside narrow content */
.container--narrow ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}
.container--narrow li {
    margin-bottom: 0.5rem;
}
.container--narrow li strong {
    color: var(--primary-color);
}

.container--narrow ul li::marker {
    color: var(--primary-color);
}

.wp-block-buttons.centered-cta {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.container--narrow h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Make the row columns equal height so we can center the image vertically */
.wp-block-columns.feature-row {
    align-items: stretch;
    --wp--style--block-gap: 2rem;
    margin-bottom: 64px;
}

/* Left column: remove padding/gaps and center image vertically */
.wp-block-columns.feature-row > .wp-block-column:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

/* Kill default figure margin; ensure the image fills its figure naturally */
.wp-block-columns.feature-row > .wp-block-column:first-child .wp-block-image {
    margin: 0;
    width: 100%;
}
.wp-block-columns.feature-row > .wp-block-column:first-child img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Content side: normal spacing (you already have these, kept for clarity) */
.wp-block-columns.feature-row h3 {
    margin-bottom: 0.5rem;
}
.wp-block-columns.feature-row p {
    margin-bottom: 1rem;
}
.wp-block-columns.feature-row ul {
    padding-left: 1.25rem;
}
.wp-block-columns.feature-row .wp-block-buttons {
    margin-top: 1rem;
}

/* Mobile stack */
@media (max-width: 768px) {
    .wp-block-columns.feature-row {
        gap: 1.25rem;
    }
    .wp-block-columns.feature-row > .wp-block-column:first-child {
        margin-bottom: 0.5rem;
    }
}

/* ========== PRICING (reuses card look) ========== */
.wp-block-columns.pricing {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* Card: same style as features/services (centered content) */
.wp-block-columns.pricing > .wp-block-column {
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.wp-block-columns.pricing > .wp-block-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Price + text */
.wp-block-columns.pricing h3 {
    margin-bottom: 0.25rem;
}
.wp-block-columns.pricing .price {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0.25rem 0 0.5rem;
}
.wp-block-columns.pricing .billing-note {
    opacity: 0.9;
    margin-bottom: 0.25rem;
}
.wp-block-columns.pricing .detail {
    opacity: 0.85;
}

/* Optional “Most popular” line */
.wp-block-columns.pricing .note {
    margin-top: 0.5rem;
    display: inline-block;
    text-decoration: underline;
    background: rgba(16, 126, 125, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
}

/* Highlight a featured card (add class "popular" to that Column) */
.wp-block-columns.pricing > .wp-block-column.popular {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    outline: 2px solid rgba(249, 166, 32, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .wp-block-columns.pricing {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

/* Contact Card */

.wpcf7 br {
    display: none;
}
.contact-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card__title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Required asterisk */
.req {
    color: #e03e3e;
}

/* Form groups */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Inputs, selects, textarea */
.form-control {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 0.5px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-family: var(--font-body);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
textarea.form-control {
    min-height: 0px;
    resize: vertical;
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(16, 126, 125, 0.15);
}

/* Submit Button */
.contact-btn.wpcf7-submit {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #d78900;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.03s ease;
}
.contact-btn.wpcf7-submit:hover {
    background-color: var(--accent-color-dark);
}
.contact-btn.wpcf7-submit:active {
    transform: translateY(1px);
}

/* CF7 validation/messages */
.wpcf7-not-valid {
    border-color: #e59a9a !important;
    box-shadow: 0 0 0 2px rgba(229, 154, 154, 0.18) !important;
}
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #8a1f1f;
    margin-top: 0.25rem;
}
.wpcf7 form.sent .wpcf7-response-output {
    border: 2px solid #c1ead9;
    background: #f3fcf8;
    color: #0b5b3b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Container card */
.contact-info {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

/* Title spacing */
.contact-info .wp-block-heading {
    margin-bottom: 0.75rem;

    color: var(--primary-color);
}

/* Each info row */
.contact-info .wp-block-columns {
    display: grid !important;
    grid-template-columns: 28px 1fr;
    column-gap: 0.75rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Remove default column margins inside these rows */
.contact-info .wp-block-columns .wp-block-column {
    margin: 0 !important;
    padding: 0;
}

/* Icon column (the first column) */
.contact-info .wp-block-columns > .wp-block-column:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Font Awesome icon block */
.contact-info .wp-font-awesome-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
    display: block;
}

/* Text column (the second column) */
.contact-info .wp-block-columns > .wp-block-column:last-child p {
    margin: 0;
    line-height: 1.6;
}
.contact-info .wp-block-columns > .wp-block-column:last-child p + p {
    margin-top: 0.25rem;
}

/* Label emphasis */
.contact-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Links */
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--accent-color);
}

/* Tighter layout on small screens, but keep icon/text side-by-side */
@media (max-width: 768px) {
    .contact-info {
        padding: 1rem 1.1rem;
    }
    .contact-info .wp-block-columns {
        grid-template-columns: 24px 1fr;
        column-gap: 0.6rem;
        margin-bottom: 0.55rem;
    }
    .contact-info .wp-font-awesome-icon svg {
        width: 20px;
        height: 20px;
    }
}

.map-card {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.map-card iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* ========== CTA Banner ========== */
.cta-banner {
    background-color: var(--accent-color);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    padding: 0 1rem;
}

.cta-banner .wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* start location */

/* ===== Location Section ===== */
.location-section {
    padding: 5rem 0;
}

.location-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.location-section .section-title h2 {
    color: var(--primary-color);
}
.location-section .section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.9;
}

/* Grid */
.location-section .location-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Info card */
.location-section .location-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f6f3f3;
    min-width: 300px;
}
.location-section .info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* Address */
.location-section .address-block {
    margin-bottom: 2rem;
}
.location-section .address-label {
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.location-section .address-text {
    color: #334155;
    font-size: 1.075rem;
    line-height: 1.7;
}

/* Contact grid */
.location-section .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.location-section .contact-item {
    padding: 1rem 1.1rem;
    background: #d7eef7;
    border-radius: 12px;
    min-height: 60px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.location-section .contact-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}
.location-section .contact-value {
    color: var(--text-color);
}

.location-section .wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.location-section
    .wp-block-button.is-style-outline
    .wp-block-button__link:hover {
    background: rgba(16, 126, 125, 0.06);
}

/* Map */
.location-section .map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1fae5;
}
.location-section .map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}
.location-section .map-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #d1fae5;
}
.location-section .overlay-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.location-section .overlay-text {
    font-size: 0.85rem;
    color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
    .location-section .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .location-section .location-info {
        padding: 1.5rem;
    }
    .location-section .contact-grid {
        grid-template-columns: 1fr;
    }
    .location-section .action-buttons {
        flex-direction: column;
    }
    .location-section .map-container iframe {
        height: 380px;
    }
}
@media (max-width: 480px) {
    .location-section {
        padding: 2.5rem 0;
    }
    .location-section .section-title {
        margin-bottom: 2rem;
    }
}

/* end location */

/* ========== FOOTER ========== */
/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    list-style: none;
    margin-top: 1rem;
}

.social-links li {
    margin-right: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base state: slightly down + transparent */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 500ms ease,
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* When visible: fade in + slide up */
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay] {
    transition-delay: calc(attr(data-delay number, 0ms));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ===== Contact v2 (isolated styles using your variables) ===== */
.c2-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    max-width: 820px;
    margin: 0 auto;
}

.c2-title {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.c2-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c2-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .c2-row {
        grid-template-columns: 1fr 1fr;
    }
}

.c2-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.c2-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.c2-input,
.c2-select,
.c2-textarea {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    font-size: 1rem;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    font-family: var(--font-body);
    font-weight: 300;
}

.c2-textarea {
    min-height: 128px;
    height: auto;
    resize: vertical;
    line-height: 1.5;
}

.c2-input:focus,
.c2-select:focus,
.c2-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 126, 125, 0.18);
}

.c2-actions {
    margin-top: 0.25rem;
}

.c2-submit {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #d78900;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.03s ease;
}
.c2-submit:hover {
    background-color: var(--accent-color-dark);
}
.c2-submit:active {
    transform: translateY(1px);
}

.wpcf7 .c2-group .wpcf7-form-control-wrap {
    display: block;
}

/* Optional: tighter page padding on small screens */
@media (max-width: 768px) {
    .c2-card {
        padding: 1.25rem;
    }
}

/* ================================
   CONTACT PAGE (form + info + map)
   ================================ */

.contact-page .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-page .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Contact card (form container) */
.contact-page .contact-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.contact-page .contact-card__title {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.contact-page .contact-card .lead {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Contact info card */
.contact-page .contact-info {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.contact-page .contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Rows inside contact-info */
.contact-page .contact-info .wp-block-columns {
    margin-bottom: 1rem;
    align-items: center;
}

.contact-page .contact-info p {
    margin: 0;
    line-height: 1.5;
}

/* Icons in the info card */
.contact-page .contact-info .wp-font-awesome-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
    display: block;
}

@media (max-width: 768px) {
    .contact-page .map-card {
        height: 260px;
    }
}

/* ================================
   CONTACT FORM 3 (Full-Width)
   ================================ */

/* Full-bleed section with subtle background */
.c3-full {
    width: 100%;
    background: var(--light-bg);
    padding: 0;
}

/* Inner container spans the whole screen width but keeps sane gutters */
.c3-container {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin: 0 auto;
}

/* The main card stretches near-full screen width, capped for super-wide monitors */
.c3-card {
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
}

/* Title + subtitle */
.c3-title {
    margin: 0 0 1rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 800;
}
.c3-subtitle {
    margin: 0 0 1.75rem;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1rem;
}

/* Form grid */
.c3-form {
    display: grid;
    gap: 1.25rem;
}

.c3-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .c3-row {
        grid-template-columns: 1fr 1fr;
    }
}
.c3-row-single {
    display: grid;
    gap: 1.25rem;
}

/* Field groups */
.c3-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.c3-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Inputs */
.c3-input,
.c3-select,
.c3-textarea {
    width: 100%;
    height: 52px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text-color);
    font-size: 1rem;
    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}
.c3-textarea {
    min-height: 140px;
    height: auto;
    resize: vertical;
    line-height: 1.55;
}

/* Focus ring consistent with your theme */
.c3-input:focus,
.c3-select:focus,
.c3-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 126, 125, 0.18);
}

/* Submit */
.c3-actions {
    margin-top: 0.5rem;
}
.c3-submit {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d78900;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.03s ease;
}
.c3-submit:hover {
    background-color: var(--accent-color-dark);
}
.c3-submit:active {
    transform: translateY(1px);
}

/* CF7 wrappers play nice with our gaps */
.wpcf7 .c3-group .wpcf7-form-control-wrap {
    display: block;
}

/* Make the section feel “full screen” on tall displays */
@media (min-height: 760px) {
    .c3-full {
        padding-top: 2vh;
        padding-bottom: 2vh;
    }
    .c3-card {
        min-height: 78vh;
        display: flex;
        flex-direction: column;
    }
    .c3-form {
        margin-top: 0.5rem;
    }
}
@media (max-width: 768px) {
    .c3-container {
        padding-left: 4vw;
        padding-right: 4vw;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .c3-card {
        padding: 1.25rem;
    }
}

/* ============ BLOG INDEX (the page set as "Posts page") ============ */

/* Blog Intro Section */
.hpl-blog-title {
    text-align: center;
}

/* Blog Posts List */
.posts article {
    display: flex;
    gap: 20px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    transition:
        box-shadow 150ms ease,
        transform 150ms ease;
    margin-bottom: 16px;
}

.posts article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Thumbnail (left) */
.posts article a {
    width: 220px;
    min-width: 220px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}
.posts article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text (right) */
.posts article div {
    flex: 1;
    min-width: 0;
}

.posts article div h2 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    line-height: 1.3;
}
.posts article div h2 a {
    text-decoration: none;
    color: inherit;
}
.posts article div h2 a :hover {
    text-decoration: underline;
}

/* Meta: author + date */
.posts article small {
    font-size: 0.9rem;
    color: #6b7280; /* slate-500 */
    margin-bottom: 8px;
}

/* Excerpt (short description) */
.posts article p {
    font-size: 1rem;
    color: #374151; /* slate-700 */
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* clamp to ~3 lines */
    line-clamp: 3; /* standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive tweak */
@media (max-width: 720px) {
    body.blog .hpl-post-card,
    body.home .hpl-post-card {
        flex-direction: column;
    }
    body.blog .hpl-post-thumb,
    body.home .hpl-post-thumb {
        width: 100%;
        min-width: 0;
        height: 200px;
    }
}

/* ============ SINGLE POST ============ */
body.single .hpl-single,
body.single-post .hpl-single {
    max-width: 860px;
    margin: 32px auto 80px;
    padding: 0 16px;
}

/* Centered title */
body.single .hpl-single-title,
body.single-post .hpl-single-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.25;
    margin: 0 0 10px 0;
}

/* Meta centered under title */
body.single .hpl-single-meta,
body.single-post .hpl-single-meta {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* Optional featured image on single */
body.single .hpl-single-hero,
body.single-post .hpl-single-hero {
    margin: 0 auto 24px;
    max-width: 1100px;
    border-radius: 14px;
    overflow: hidden;
}
body.single .hpl-single-hero img,
body.single-post .hpl-single-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
body.single .entry-content,
body.single .hpl-single-content,
body.single-post .entry-content,
body.single-post .hpl-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937; /* slate-800 */
}

/* Content elements */
body.single .entry-content p,
body.single .hpl-single-content p,
body.single-post .entry-content p {
    margin: 0 0 1.1em;
}
body.single .entry-content h2,
body.single .entry-content h3,
body.single .entry-content h4,
body.single .hpl-single-content h2,
body.single .hpl-single-content h3,
body.single .hpl-single-content h4,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
body.single .entry-content img,
body.single .hpl-single-content img,
body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
body.single .entry-content ul,
body.single .entry-content ol,
body.single .hpl-single-content ul,
body.single .hpl-single-content ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    padding-left: 1.2em;
}

body.page .hpl-page-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.25;
    margin: 0 0 2rem 0;
    color: var(--primary-color);
}

/* ========== GALLERY STYLES ========== */

/* Gallery Page Header */
.hpl-gallery-intro {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hpl-gallery-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.hpl-gallery-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Grid Section */
.hpl-gallery-grid-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

/* Small Gallery Grid */
.hpl-gallery-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hpl-gallery-item-small {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hpl-gallery-item-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hpl-gallery-link-small {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hpl-gallery-thumbnail-small {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.hpl-gallery-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hpl-gallery-item-small:hover .hpl-gallery-image-small {
    transform: scale(1.1);
}

.hpl-gallery-placeholder-small {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 2.5rem;
}

.hpl-gallery-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hpl-gallery-item-small:hover .hpl-gallery-overlay-small {
    opacity: 1;
}

.hpl-gallery-info-small {
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hpl-gallery-item-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--white);
    line-height: 1.2;
}

.hpl-gallery-item-count-small {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

/* Original large gallery grid (keeping for reference) */
.hpl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hpl-gallery-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.hpl-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hpl-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hpl-gallery-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hpl-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hpl-gallery-item:hover .hpl-gallery-image {
    transform: scale(1.05);
}

.hpl-gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 3rem;
}

.hpl-gallery-placeholder span {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.hpl-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hpl-gallery-item:hover .hpl-gallery-overlay {
    opacity: 1;
}

.hpl-gallery-info {
    color: var(--white);
}

.hpl-gallery-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hpl-gallery-item-count {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* No Galleries State */
.hpl-no-galleries {
    text-align: center;
    padding: 4rem 0;
}

.hpl-no-galleries-content {
    max-width: 400px;
    margin: 0 auto;
}

.hpl-no-galleries-content i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hpl-no-galleries-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hpl-no-galleries-content p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Single Gallery Styles */
.hpl-single-gallery-header {
    background: var(--white);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #eee;
}

.hpl-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hpl-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hpl-breadcrumb a:hover {
    color: var(--accent-color);
}

.hpl-breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

.hpl-breadcrumb-current {
    color: var(--text-color);
}

.hpl-single-gallery-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hpl-single-gallery-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
}

.hpl-single-gallery-content {
    padding: 3rem 0;
    background: var(--light-bg);
}

.hpl-gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hpl-gallery-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.hpl-gallery-image-item:hover {
    transform: translateY(-4px);
}

.hpl-gallery-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.hpl-gallery-image-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hpl-gallery-image-item:hover .hpl-gallery-image-link img {
    transform: scale(1.05);
}

.hpl-gallery-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hpl-gallery-image-item:hover .hpl-gallery-image-overlay {
    opacity: 1;
}

.hpl-gallery-image-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* WordPress Gallery Fallback */
.hpl-wordpress-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hpl-wordpress-gallery .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hpl-wordpress-gallery .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hpl-wordpress-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* No Images State */
.hpl-no-images {
    text-align: center;
    padding: 4rem 0;
}

.hpl-no-images-content {
    max-width: 400px;
    margin: 0 auto;
}

.hpl-no-images-content i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hpl-no-images-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hpl-no-images-content p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Gallery Navigation */
.hpl-gallery-navigation {
    background: var(--white);
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.hpl-gallery-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hpl-gallery-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hpl-gallery-nav-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.hpl-gallery-nav-back {
    background: var(--secondary-color);
}

.hpl-gallery-nav-back:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hpl-gallery-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .hpl-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hpl-gallery-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .hpl-gallery-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hpl-gallery-nav-link {
        justify-content: center;
    }

    .hpl-gallery-intro {
        padding: 3rem 0;
    }

    .hpl-gallery-grid-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hpl-gallery-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .hpl-gallery-item-title-small {
        font-size: 0.9rem;
    }

    .hpl-gallery-item-count-small {
        font-size: 0.7rem;
    }

    .hpl-gallery-images-grid {
        grid-template-columns: 1fr;
    }

    .hpl-gallery-image-link img {
        height: 200px;
    }
}
