/* ==========================================================================
   Profile Header - Replacement header for profile page (logged-in users)
   ========================================================================== */

/* ── 1. Orange Announcement Bar ── */
.ph-orange-bar {
    background: #eabd39;
    height: 55px;
    padding: 0 16px;
    border-bottom: 1px solid #e65100;
    display: flex;
    align-items: center;
}
.ph-orange-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    max-width: 1423px;
    margin: 0 auto;
}
.ph-orange-left {
    flex-shrink: 0;
}
.ph-orange-logo {
    width: auto;
    height: 45px;
    border-radius: 4px;
}
.ph-orange-center {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ph-orange-center p {
    margin: 0;
    display: inline;
}
.ph-orange-center i {
    margin-right: 6px;
    color: #555;
}
.ph-orange-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.ph-orange-right a {
    color: #607196;
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.15s;
    position: relative;
}
.ph-orange-right a:hover {
    opacity: 0.8;
    color: #607196;
    text-decoration: none;
}
.ph-orange-right .ph-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d32f2f;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}
.ph-orange-right .ph-icon-alert {
    color: #c62828;
}
/* ── 2. Banner Area (ad banner) ── */
.ph-banner-area {
    background: linear-gradient(180deg, #d2d2f4 0%, #d2d2f4 100%);
    padding: 0 16px;
    border: 2px solid #5c6690;
    border-radius: 10px;
    max-width: 1423px;
    margin: 6px auto 0 auto;
    text-align: center;
    max-height: 112px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ph-banner-inner {
    max-width: 1423px;
    margin: 0 auto;
}
.ph-banner-adtext {
    text-align: right;
    max-width: 1423px;
    margin-top: auto;
    font-size: 10px;
    color: #666;
    padding-bottom: 1px;
}
.ph-banner-adtext a {
    color: #555;
    text-decoration: none;
}
.ph-banner-adtext a:hover {
    color: #1a237e;
    text-decoration: underline;
}

/* ── 3. Nav Bar ── */
.ph-nav-bar {
    padding: 6px 0 0 0;
}
.ph-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1423px;
    margin: 0 auto;
    gap: 12px;
    background: linear-gradient(180deg, #b0b1df 0%, #b0b1df 100%);
    border: 2px solid #5c6690;
    border-radius: 10px;
    padding: 7.42px 14px;
}

/* Left section */
.ph-nav-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    min-width: 160px;
}
.ph-nav-page-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}
.ph-nav-page-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ph-nav-page-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
}
.ph-nav-breadcrumb {
    font-size: 11px;
    color: #2a2a3e;
}
.ph-nav-breadcrumb a {
    color: #1a1a2e;
    text-decoration: none;
}
.ph-nav-breadcrumb a:hover {
    color: #000;
}
.ph-nav-page-select {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 11px;
    border: 1px solid #5c6690;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    max-width: 140px;
}

/* Center menu buttons */
.ph-nav-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding-top: 2px;
}
.ph-nav-btn-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.ph-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 1.7px 4px;
    background: linear-gradient(180deg, #5c74a9 0%, #5c74a9 100%);
    color: #fff;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #000;
    transition: all 0.15s;
    white-space: nowrap;
    min-width: 107px;
}
.ph-nav-btn-row a {
    color: #fff;
}
.ph-nav-btn:hover {
    background: linear-gradient(180deg, #4a5580 0%, #3a4470 100%);
    color: #fff;
    text-decoration: none;
}
.ph-nav-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8e97b8;
    color: #fff;
    font-size: 11px;
}

/* Right subscribe section */
.ph-nav-right {
    flex-shrink: 0;
    max-width: 230px;
    text-align: left;
}
.ph-subscribe-title {
    font-size: 13px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.ph-subscribe-text {
    font-size: 9px;
    color: #2a2a3e;
    line-height: 1.3;
    margin-bottom: 5px;
}
a.ph-subscribe-btn {
    color: #fff;
}
.ph-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 1.7px 4px;
    background: linear-gradient(180deg, #5c74a9 0%, #5c74a9 100%);
    color: #fff;
    border-radius: 14px;
    font-size: 13.2px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #000;
    transition: all 0.15s;
    white-space: nowrap;
    min-width: 107px;
}
.ph-subscribe-btn:hover {
    background: linear-gradient(180deg, #4a5580 0%, #3a4470 100%);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .ph-nav-inner {
        flex-wrap: wrap;
    }
    .ph-nav-left {
        min-width: auto;
    }
    .ph-nav-right {
        max-width: 100%;
        text-align: center;
        order: 3;
        width: 100%;
    }
    .ph-nav-buttons {
        order: 2;
        width: 100%;
    }
    .ph-orange-center {
        font-size: 12px;
    }
    .ph-banner-area {
        margin: 6px 4px 0 4px;
    }
    .ph-nav-bar {
        margin: 0 4px;
    }
}

@media (max-width: 768px) {
    .ph-nav-btn {
        padding: 3px 10px;
        font-size: 9px;
    }
    .ph-nav-left {
        width: 100%;
        justify-content: center;
    }
    .ph-orange-center {
        font-size: 11px;
    }
    .ph-orange-center * {
        font-size: inherit !important;
    }
    .ph-banner-area {
        margin: 6px 4px 0 4px;
    }
    .ph-nav-bar {
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .ph-orange-bar {
        padding: 4px 8px;
    }
    .ph-orange-center {
        font-size: 10px;
    }
    .ph-orange-center * {
        font-size: inherit !important;
    }
    .ph-banner-area {
        margin: 6px 4px 0 4px;
    }
    .ph-nav-bar {
        margin: 0 4px;
    }
    .ph-nav-btn-row {
        gap: 3px;
    }
    .ph-nav-btn {
        padding: 3px 8px;
        font-size: 8px;
        border-radius: 10px;
    }
    .ph-subscribe-title {
        font-size: 11px;
    }
}
