/**
 * Gallery Page Specific Widgets Stylesheet
 *
 * @package HulasiGalleryWidgets
 */

/* ========================================================
   1. HERO BANNER
   ======================================================== */
.hd-gallery-hero {
    background: linear-gradient(135deg, #00143D 0%, #002266 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 45px 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 20, 61, 0.12);
    border-bottom: 5px solid #D4A017;
    text-align: center;
}

.hd-gallery-hero__eyebrow {
    background: rgba(212, 160, 23, 0.25);
    color: #d4a017;
    border: 1px solid #D4A017;
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.hd-gallery-hero__title {
    color: #ffffff;
    font-size: clamp(24px, 4vw, 34px);
    margin: 12px 0 10px 0;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
}

.hd-gallery-hero__desc {
    color: #e2dcd2;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================================
   2. HIGHLIGHTS GRID
   ======================================================== */
.hd-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 45px;
}

.hd-highlight-card {
    border-top: 4px solid #7B0D12;
    padding: 25px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2DCD2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    display: block;
}

.hd-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 20, 61, 0.1);
}

.hd-highlight-card__icon {
    font-size: 38px;
    margin-bottom: 10px;
    line-height: 1;
}

.hd-highlight-card__title {
    color: #00143d;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.hd-highlight-card__desc {
    color: #666666;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================================
   3. GALLERY HEADER BAR
   ======================================================== */
.hd-gallery-section {
    margin-bottom: 50px;
}

.hd-gallery-header-bar {
    border-bottom: 2px solid #E2DCD2;
    padding-bottom: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hd-gallery-header-bar__title {
    color: #00143d;
    font-size: clamp(20px, 3vw, 24px);
    margin: 0;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
}

.hd-gallery-header-bar__desc {
    color: #666666;
    margin: 5px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.hd-badge-landscape {
    background: #00143D;
    color: #d4a017;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.hd-badge-portrait {
    background: #7B0D12;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ========================================================
   4. GALLERY GRID & CARDS
   ======================================================== */
.hd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hd-gallery-grid-portrait {
    grid-template-columns: repeat(4, 1fr);
}

.hd-gallery-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E2DCD2;
    background: #FAFAFA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hd-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 20, 61, 0.12);
}

.hd-gallery-card__image-wrap {
    overflow: hidden;
    height: 220px;
    position: relative;
    background: #e9ecef;
}

.hd-gallery-grid-portrait .hd-gallery-card__image-wrap {
    height: 380px;
}

.hd-gallery-card__image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hd-gallery-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

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

.hd-gallery-card__body {
    padding: 14px 16px;
    border-top: 3px solid #7B0D12;
    background: #FAFAFA;
    flex-grow: 1;
}

.hd-gallery-card__badge {
    background: #F8F5EC;
    color: #7b0d12;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hd-gallery-card__title {
    color: #00143d;
    margin: 6px 0 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hd-gallery-card__caption {
    color: #666666;
    margin: 4px 0 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ========================================================
   5. BOTTOM CONTACT & ADMISSIONS STRIP
   ======================================================== */
.hd-gallery-contact-strip {
    background: #7B0D12;
    color: #ffffff;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(123, 13, 18, 0.15);
    margin-top: 40px;
}

.hd-gallery-contact-strip__title {
    color: #d4a017;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
}

.hd-gallery-contact-strip__info {
    color: #f8f5ec;
    font-size: 15px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.hd-gallery-contact-strip__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========================================================
   6. RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1024px) {
    .hd-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hd-gallery-grid-portrait {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hd-highlights-grid {
        grid-template-columns: 1fr;
    }
    .hd-gallery-grid {
        grid-template-columns: 1fr;
    }
    .hd-gallery-grid-portrait {
        grid-template-columns: 1fr;
    }
    .hd-gallery-card__image-wrap {
        height: 240px;
    }
    .hd-gallery-grid-portrait .hd-gallery-card__image-wrap {
        height: 340px;
    }
    .hd-gallery-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .hd-gallery-contact-strip__actions {
        flex-direction: column;
    }
    .hd-gallery-contact-strip__actions .hd-btn {
        width: 100%;
    }
}
