/* ============================================================
   GH Under-18 Classical Chess Tournament — Stylesheet
   100% Fully Responsive Layout (Mobile, Tablet, Desktop)
   Color Palette: Deep Green + Golden Horse Gold + Crisp White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Montserrat:wght@400;600;700;800;900&display=swap');

/* ── Hide default theme page title on this page & reset theme containers ── */
.page-id-u18-tournament .entry-title,
.post-type-archive .entry-title,
.page-template-default .entry-title,
.page-header,
.entry-header,
.post-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Reset parent theme margins, padding & top space ─────── */
html,
body,
.site,
#page,
#content,
#main,
#primary,
.site-content,
.site-main,
.entry-content,
.content-area,
.ast-container,
.elementor,
.elementor-section.elementor-section-boxed > .elementor-container,
article.page,
.post-inner,
.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* ── Reset & Scope (100% Responsive, Zero Horizontal Scroll) ─ */
.gh-u18-wrap,
.gh-u18-wrap *,
.gh-u18-wrap *::before,
.gh-u18-wrap *::after {
    box-sizing: border-box !important;
}

.gh-u18-wrap {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    color: #111111;
    background: #FAFAFA;
    line-height: 1.7;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.gh-u18-wrap a {
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.gh-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.gh-hero-u18 {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    padding: 115px 0 70px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
}

.gh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 61, 46, 0.60) 0%,
        rgba(10, 38, 28, 0.50) 50%,
        rgba(5, 20, 15, 0.70) 100%
    );
    z-index: 1;
}

.gh-hero-grid {
    position: relative;
    z-index: 2;
    max-width: 840px;
    width: 100%;
}

.gh-hero-content {
    padding-top: 10px;
}

.gh-supervision-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: rgba(15, 61, 46, 0.82);
    border: 1.5px solid #C8A951;
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    line-height: 1.4;
}

.gh-supervision-badge strong {
    color: #E6C96A;
}

.gh-supervision-icon {
    font-size: 16px;
}

.gh-supervision-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #E6C96A;
    opacity: 0.92;
    font-weight: 600;
}

.gh-hero-title {
    font-size: clamp(28px, 5.5vw, 54px);
    font-weight: 900;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 16px;
    word-break: break-word;
}

.gh-highlight-gold {
    color: #E6C96A;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.gh-hero-slogan {
    font-size: clamp(17px, 2.5vw, 24px);
    font-weight: 800;
    color: #A8D5BA;
    margin: 0 0 4px;
}

.gh-hero-slogan-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px;
    font-weight: 600;
    line-height: 1.4;
}

.gh-hero-description {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.85;
    margin-bottom: 26px;
}

.gh-hero-description strong {
    color: #FFFFFF;
}

.gh-hero-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 30px;
}

.gh-mini-feat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.gh-mini-feat strong {
    color: #E6C96A;
}

.gh-feat-dot {
    font-size: 14px;
}

.gh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none !important;
    line-height: 1.3;
    text-align: center;
}

.gh-btn-primary {
    background: linear-gradient(135deg, #C8A951 0%, #E6C96A 100%);
    color: #000000 !important;
    box-shadow: 0 4px 18px rgba(200, 169, 81, 0.35);
}

.gh-btn-primary:hover {
    background: linear-gradient(135deg, #E6C96A 0%, #C8A951 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 81, 0.5);
    color: #000000 !important;
}

.gh-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF !important;
    backdrop-filter: blur(4px);
}

.gh-btn-outline:hover {
    background: #FFFFFF;
    color: #0f3d2e !important;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* 🔴 PROMINENT SUBMIT BUTTON */
.gh-submit-wrap {
    margin-top: 25px;
    margin-bottom: 15px;
    width: 100%;
}

.gh-btn-submit-prominent {
    display: block;
    width: 100% !important;
    background: linear-gradient(135deg, #C8A951 0%, #E6C96A 50%, #C8A951 100%);
    color: #000000 !important;
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 25px rgba(200, 169, 81, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.4;
    white-space: normal !important;
    word-break: break-word;
    box-sizing: border-box;
}

.gh-btn-subtext {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #222222;
    margin-top: 4px;
    opacity: 0.88;
}

.gh-btn-submit-prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 81, 0.6);
    background: linear-gradient(135deg, #E6C96A 0%, #F5DE8C 50%, #E6C96A 100%);
    color: #000000 !important;
}

/* ════════════════════════════════════════════════════════════
   DETAILS & HIGHLIGHTS SECTION
   ════════════════════════════════════════════════════════════ */
.gh-section {
    padding: 70px 0;
    width: 100%;
}

.gh-section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 45px;
}

.gh-sub-badge {
    display: inline-block;
    color: #0f3d2e;
    background: #EAF4EE;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.gh-section-header h2 {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 900;
    color: #0f3d2e;
    margin: 0 0 4px;
}

.gh-section-en-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0 0 14px;
    font-weight: 600;
}

.gh-gold-line {
    width: 60px;
    height: 3px;
    background: #C8A951;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.gh-section-intro {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
}

.gh-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.gh-feature-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.gh-feature-card:hover {
    transform: translateY(-4px);
    border-color: #C8A951;
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.08);
}

.gh-feat-icon-wrap {
    color: #0f3d2e;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.gh-feature-card h3 {
    font-size: 17px;
    font-weight: 900;
    color: #0f3d2e;
    margin: 0 0 2px;
}

.gh-card-en-sub {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    color: #8E711E;
    font-weight: 700;
    margin-bottom: 10px;
}

.gh-feature-card p {
    font-size: 13.5px;
    color: #555555;
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   FORM LAYOUT & SIDEBAR (RESPONSIVE GRID / FLEX)
   ════════════════════════════════════════════════════════════ */
.gh-section-form {
    background: #F4F6F5;
    border-top: 1px solid #E5E9E7;
    width: 100%;
}

.gh-form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
    width: 100%;
}

/* 1. Registration Form Container */
.gh-form-container {
    width: 100%;
    max-width: 100%;
}

.gh-form-card {
    background: #FFFFFF;
    border: 1.5px solid #DDE3E0;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gh-form-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ECECEC;
}

.gh-form-card-header h2 {
    font-size: 22px;
    font-weight: 900;
    color: #0f3d2e;
    margin: 0 0 2px;
}

.gh-form-subtitle-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #777777;
    margin: 0 0 6px;
    font-weight: 600;
}

.gh-form-desc-ar {
    font-size: 13.5px;
    color: #444444;
    font-weight: 700;
    margin: 0;
}

/* Alerts */
.gh-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 20px;
}

.gh-alert-danger {
    background: #FDF2F2;
    border: 1.5px solid #F8B4B4;
    color: #9B1C1C;
}

.gh-alert-success {
    background: #EDFDF5;
    border: 1.5px solid #A3E6C5;
    color: #03543F;
}

/* Form Groups & Inputs */
.gh-form-group {
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.gh-label {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.gh-label-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #666666;
    font-weight: 600;
}

.gh-required {
    color: #E74C3C;
}

.gh-input,
.gh-select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    font-weight: 700;
    color: #000000;
    background: #FAFBFB;
    border: 1.5px solid #CCD5D0;
    border-radius: 8px;
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
    min-height: 48px;
}

.gh-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%230f3d2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 35px;
}

.gh-input:focus,
.gh-select:focus {
    background: #FFFFFF;
    border-color: #0f3d2e;
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.15);
}

.gh-input.is-invalid,
.gh-select.is-invalid {
    border-color: #E74C3C;
    background: #FFF9F9;
}

.gh-input-hint {
    display: block;
    font-size: 12px;
    color: #E74C3C;
    margin-top: 4px;
    min-height: 15px;
    font-weight: 800;
}

/* Row Grid */
.gh-form-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.gh-col-6 { flex: 0 0 calc(50% - 7px); width: calc(50% - 7px); }

/* ════════════════════════════════════════════════════════════
   PRICE BREAKDOWN CARD & SAUDI RIYAL SVG
   ════════════════════════════════════════════════════════════ */
.gh-price-breakdown-card {
    background: #F8FAF9;
    border: 1.5px solid #D5DCD8;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0 18px;
    width: 100%;
    box-sizing: border-box;
}

.gh-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13.5px;
    gap: 8px;
    flex-wrap: wrap;
}

.gh-p-label {
    color: #333333;
    font-weight: 800;
}

.gh-p-val {
    color: #000000;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gh-currency-tag {
    font-size: 13px;
    color: #333333;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.gh-price-divider {
    height: 1px;
    background: #DCE3DF;
    margin: 8px 0;
    width: 100%;
}

.gh-price-total {
    padding-top: 4px;
}

.gh-price-total .gh-p-label {
    color: #0f3d2e;
    font-size: 15px;
    font-weight: 900;
}

.gh-p-val-total {
    color: #0f3d2e;
    font-size: 20px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gh-total-currency {
    font-size: 14px;
    font-weight: 900;
    color: #0f3d2e;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.gh-sar-icon {
    display: inline-block;
    vertical-align: middle;
    width: 0.9em;
    height: 0.9em;
    fill: currentColor;
}

/* Footer Note */
.gh-form-footer-note {
    font-size: 12.5px;
    color: #555555;
    text-align: center;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.gh-info-sidebar {
    width: 100%;
    max-width: 100%;
}

.gh-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E0E6E3;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.gh-badge-gold {
    display: inline-block;
    background: #FFF9E6;
    border: 1px solid #C8A951;
    color: #8E711E;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.gh-sidebar-header h3 {
    font-size: 17px;
    font-weight: 900;
    color: #0f3d2e;
    margin: 0 0 2px;
}

.gh-sidebar-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #777777;
    margin: 0 0 16px;
    font-weight: 600;
}

.gh-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.gh-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0F0F0;
}

.gh-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gh-det-label {
    font-size: 12px;
    color: #666666;
    font-weight: 800;
}

.gh-det-val {
    font-size: 13.5px;
    color: #111111;
    font-weight: 800;
    line-height: 1.5;
}

.gh-sidebar-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #EAF4EE;
    border: 1px solid #C2E2CC;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.gh-guar-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.gh-sidebar-guarantee strong {
    display: block;
    color: #0f3d2e;
    font-size: 13px;
    margin-bottom: 2px;
}

.gh-sidebar-guarantee p {
    color: #446655;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.gh-support-box {
    text-align: center;
    font-size: 12.5px;
    color: #555;
    background: #FAFBFB;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #EAEAEA;
}

.gh-support-box a {
    color: #0f3d2e !important;
    font-weight: 900;
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET / DESKTOP)
   ════════════════════════════════════════════════════════════ */

/* Tablet & Mobile (<= 991px) */
@media (max-width: 991px) {
    .gh-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gh-form-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 25px;
    }

    .gh-form-container {
        width: 100%;
        order: 1; /* Form on top */
    }

    .gh-info-sidebar {
        width: 100%;
        order: 2; /* Sidebar below */
    }
}

/* Mobile Screens (<= 767px) */
@media (max-width: 767px) {
    .gh-container {
        padding: 0 14px !important;
    }

    .gh-section {
        padding: 40px 0;
    }

    .gh-hero-u18 {
        min-height: auto;
        padding: clamp(90px, 22vw, 125px) 0 45px !important;
        background-position: top center !important;
    }

    .gh-hero-title {
        font-size: clamp(24px, 7vw, 34px);
        margin-bottom: 12px;
    }

    .gh-hero-slogan {
        font-size: 16px;
    }

    .gh-hero-slogan-en {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .gh-hero-description {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .gh-hero-features-mini {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 22px;
        width: 100%;
    }

    .gh-mini-feat {
        width: 100%;
        padding: 8px 10px;
        font-size: 12px;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .gh-supervision-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 10px 14px;
        font-size: 13.5px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .gh-supervision-en {
        font-size: 11.5px;
    }

    .gh-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .gh-hero-actions .gh-btn {
        width: 100%;
    }

    .gh-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Force all form rows to stack vertically on mobile */
    .gh-form-row {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .gh-col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .gh-form-card {
        padding: 20px 14px !important;
        border-radius: 10px;
    }

    .gh-form-card-header h2 {
        font-size: 20px;
    }

    .gh-sidebar-card {
        padding: 18px 14px !important;
        border-radius: 10px;
    }

    .gh-btn-submit-prominent {
        font-size: 16px !important;
        padding: 14px 12px !important;
    }

    .gh-btn-subtext {
        font-size: 11px !important;
    }

    .gh-price-breakdown-card {
        padding: 12px 14px;
    }

    .gh-p-val-total {
        font-size: 18px;
    }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
    .gh-hero-title {
        font-size: 23px;
    }

    .gh-hero-slogan {
        font-size: 15px;
    }

    .gh-hero-features-mini {
        grid-template-columns: 1fr;
    }

    .gh-form-card {
        padding: 16px 10px !important;
    }

    .gh-supervision-badge {
        font-size: 12.5px;
        padding: 8px 10px;
    }
}
