/* ==========================================================================
   SURUHANJAYA TENAGA (ST) WHISTLEBLOWING DISCLOSURE PROCEDURE THEME
   ENEST Group Berhad (/whistle/)
   Replicating: https://www.st.gov.my/whistleblowing-disclosure-procedure#section-1
   ========================================================================== */

:root {
    --st-blue: #004b87;
    --st-blue-dark: #003662;
    --st-blue-light: #e6f0f9;
    --st-blue-tint: #f0f7ff;
    --st-navy-gradient: linear-gradient(135deg, #092644 0%, #004b87 60%, #005a9e 100%);
    --st-text-dark: #111827;
    --st-text-body: #374151;
    --st-text-muted: #6b7280;
    --st-border: rgba(0, 0, 0, 0.08);
    --st-border-subtle: rgba(0, 0, 0, 0.05);
    --st-border-light: #e5e7eb;
    --st-bg-light: #f9fafb;
    --st-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Portal Wrapper */
.st-page-wrapper {
    font-family: var(--st-font-sans);
    color: var(--st-text-dark);
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.st-page-wrapper *,
.st-page-wrapper *::before,
.st-page-wrapper *::after {
    box-sizing: border-box;
}

/* Container: Boxed Content Area */
.st-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .st-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.st-page-header {
    border-top: 1px solid var(--st-border);
    background-color: #ffffff;
    padding-top: 40px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .st-page-header {
        padding-top: 56px;
        padding-bottom: 32px;
    }
}

.st-page-title {
    font-family: var(--st-font-sans);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--st-blue);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 768px) {
    .st-page-title {
        font-size: 2.85rem;
    }
}

/* ==========================================================================
   STICKY SECTION TABS BAR (ST daisy:section_tabs - FULLWIDTH)
   Attached directly to bottom of .fusion-secondary-main-menu (no gap)
   ========================================================================== */
.st-sticky-tabs-container {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    transition: top 0.15s ease;
}

/* Logged-in WP Admin Bar Offset (32px Admin Bar + 50px Secondary Menu = 82px) */
.admin-bar .st-sticky-tabs-container {
    top: 82px;
}
@media (max-width: 782px) {
    .admin-bar .st-sticky-tabs-container {
        top: 96px;
    }
}

.st-tabs-bar {
    width: 100%;
}

.st-tabs-relative {
    position: relative;
}

.st-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
}

.st-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.st-tabs-list {
    display: inline-flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2.25rem;
}

.st-tab-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.st-tab-link {
    display: block;
    font-family: var(--st-font-sans);
    font-size: 15px;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.6);
    text-decoration: none !important;
    padding: 1.15rem 0.25rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.st-tab-link:hover {
    color: var(--st-text-dark);
}

.st-tab-link.active,
.st-tab-link.text-st-blue {
    color: var(--st-blue) !important;
}

/* Sliding active tab indicator */
.st-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background-color: var(--st-blue);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.st-section-wrapper {
    width: 100%;
    position: relative;
    scroll-margin-top: 110px;
}

.st-section {
    width: 100%;
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .st-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

.st-section-white {
    background-color: #ffffff;
}

.st-section-bordered {
    border-top: 1px solid var(--st-border);
}

.st-section-title {
    font-family: var(--st-font-sans);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--st-blue);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 1.75rem 0;
}

@media (min-width: 768px) {
    .st-section-title {
        font-size: 2.15rem;
    }
}

/* ==========================================================================
   PROSE / CONTENT TYPOGRAPHY
   ========================================================================== */
.st-prose {
    font-family: var(--st-font-sans);
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--st-text-body);
}

.st-prose h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--st-text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.st-prose h4:first-child {
    margin-top: 0;
}

.st-prose p {
    margin-top: 0;
    margin-bottom: 1.15rem;
}

.st-prose ul {
    list-style-type: disc !important;
    padding-left: 1.75rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.st-prose ul ul,
.st-prose .st-nested-list {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.st-prose li {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.st-prose .st-nested-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.st-prose .st-nested-list li {
    background-color: var(--st-bg-light);
    border: 1px solid var(--st-border-light);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.65;
    color: var(--st-text-dark);
}

.st-prose .st-nested-list li strong {
    color: var(--st-blue);
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 4px;
}

.st-text-link,
.st-prose a {
    color: var(--st-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.st-text-link:hover,
.st-prose a:hover {
    color: var(--st-blue-dark);
}

.st-note-text {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--st-border-light);
    font-size: 14.5px;
    color: var(--st-text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 3: ENQUIRIES GRADIENT (FULLWIDTH BG DIV) & EMAIL CARD
   ========================================================================== */
.st-section-gradient {
    background: var(--st-navy-gradient);
    color: #ffffff;
    padding-top: 56px;
    padding-bottom: 56px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: -50px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .st-section-gradient {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

.st-section-title-white {
    color: #ffffff !important;
    margin-bottom: 2rem;
}

.st-enquiries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 860px) {
    .st-enquiries-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3.5rem;
    }
}

.st-prose-white {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15.5px;
    line-height: 1.75;
}

.st-prose-white p {
    margin-bottom: 1rem;
}

.st-enquiry-address {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 20px 24px;
    line-height: 1.7;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.st-enquiry-address strong {
    font-size: 1.05rem;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 4px;
}

.st-enquiry-address em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
}

/* ST Signature Direct Email Action Card */
.st-email-action-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.st-email-action-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.st-email-action-text {
    font-family: var(--st-font-sans);
    color: var(--st-text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    word-break: break-word;
}

@media (min-width: 768px) {
    .st-email-action-text {
        font-size: 1.2rem;
    }
}

.st-email-action-arrow {
    width: 24px;
    height: 24px;
    color: var(--st-text-dark);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.st-email-action-card:hover .st-email-action-arrow {
    transform: translateX(5px);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .st-page-title {
        font-size: 1.85rem;
    }
    .st-section-title {
        font-size: 1.45rem;
    }
    .st-tabs-list {
        gap: 1.5rem;
    }
    .st-tab-link {
        font-size: 14px;
        padding: 1rem 0.2rem;
    }
    .st-email-action-card {
        padding: 16px 20px;
    }
    .st-email-action-text {
        font-size: 1rem;
    }
}
