/**
 * Puri Tanjung Sari Pemecutan - Standard Royal Page Hero CSS
 * Single Source of Truth for Page Hero Headers
 *
 * @package Astra
 * @version 1.1.0
 */

/* ========================================================
   ASTRA FULL-WIDTH RESET FOR PAGES WITH ROYAL HERO
   ======================================================== */
body:has(.pts-royal-hero) #content,
.pts-has-royal-hero #content,
#content:has(.pts-royal-hero) {
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body:has(.pts-royal-hero) #content .ast-container,
.pts-has-royal-hero #content .ast-container,
#content:has(.pts-royal-hero) .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}

/* ========================================================
   ROYAL PAGE HERO SECTION (GUARANTEED 100% FULL WIDTH)
   ======================================================== */
.pts-royal-hero {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    padding: 130px 20px 85px;
    text-align: center;
    background-color: #7A1C1C;
    background-image: linear-gradient(rgba(122, 28, 28, 0.90), rgba(85, 14, 14, 0.97)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    border-bottom: 4px solid #D4AF37;
    box-sizing: border-box;
    overflow: hidden;
}

/* Radial Vignette Overlay */
.pts-royal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Content Wrapper */
.pts-royal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Optional Medallion / Badge / Emblem */
.pts-royal-hero .pts-royal-hero-badge {
    margin-bottom: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.pts-royal-hero .pts-royal-hero-badge img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Page Title (H1) */
.pts-royal-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin: 0 0 14px 0;
    line-height: 1.25;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

/* Subtitle Description */
.pts-royal-hero .subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.18rem;
    color: #FDFBF7;
    font-weight: 300;
    margin: 0 auto 16px;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 780px;
}

/* Gold Star Divider */
.pts-royal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 20px;
    max-width: 260px;
}

.pts-royal-divider .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.pts-royal-divider .ornament {
    margin: 0 12px;
    color: #D4AF37;
    display: inline-flex;
    align-items: center;
}

.pts-royal-divider .ornament svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: #D4AF37;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Aksara Bali Accent */
.pts-royal-hero .aksara-hero {
    font-family: 'Noto Sans Balinese', 'Bali Simbar', serif;
    font-size: 1.45rem;
    color: #D4AF37 !important;
    letter-spacing: 2px;
    line-height: 2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ======================================================== */
@media (max-width: 768px) {
    .pts-royal-hero {
        padding: 110px 16px 65px;
    }
    .pts-royal-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.3px;
        margin-bottom: 12px;
    }
    .pts-royal-hero .subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    .pts-royal-hero .aksara-hero {
        font-size: 1.25rem;
        letter-spacing: 1.5px;
    }
    .pts-royal-divider {
        margin: 12px auto 16px;
        max-width: 220px;
    }
    .pts-royal-hero .pts-royal-hero-badge img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .pts-royal-hero {
        padding: 100px 14px 55px;
    }
    .pts-royal-hero h1 {
        font-size: 1.85rem;
    }
    .pts-royal-hero .subtitle {
        font-size: 0.95rem;
    }
    .pts-royal-hero .aksara-hero {
        font-size: 1.15rem;
    }
}
