/* ==========================================================================
   THE BITWISE ACADEMY - POLICY & INSTITUTIONAL PAGES STYLESHEET
   Domain: thebitwiseacademy.com
   Designed for high visual excellence, WCAG AAA contrast, and responsive layout
   ========================================================================== */

:root {
    --pol-navy: #061d49;
    --pol-navy-dark: #03122f;
    --pol-navy-card: #081732;
    --pol-navy-sub: #0d234a;
    --pol-blue: #075fc7;
    --pol-sky: #159cff;
    --pol-cyan: #38bdf8;
    --pol-maroon: #8f0b2a;
    --pol-red: #d9173d;
    --pol-text-dark: #0f2244;
    --pol-text-muted: #52637a;
    --pol-bg-light: #f8fbff;
    --pol-border: #dfe7f2;
    --pol-card-shadow: 0 12px 35px rgba(6, 29, 73, 0.08);
}

/* Page wrapper */
.pol-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pol-text-dark);
    background: #ffffff;
    line-height: 1.75;
}

/* Hero Header */
.pol-hero {
    position: relative;
    padding: 75px 0 65px;
    background: radial-gradient(circle at 85% 20%, rgba(21, 156, 255, 0.18), transparent 35%),
                radial-gradient(circle at 12% 85%, rgba(217, 23, 61, 0.14), transparent 32%),
                linear-gradient(135deg, #03122f 0%, #061d49 60%, #092d68 100%);
    color: #ffffff;
    overflow: hidden;
}

.pol-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    pointer-events: none;
}

.pol-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.pol-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff4769;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(217, 23, 61, 0.12);
    border: 1px solid rgba(255, 71, 105, 0.3);
}

.pol-hero h1 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 850;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.pol-hero h1 em {
    font-style: normal;
    color: #38bdf8;
}

.pol-hero p {
    font-size: 16.5px;
    color: #d1e2f7;
    margin: 0 0 20px;
    max-width: 820px;
    line-height: 1.7;
}

.pol-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12.5px;
    color: #9db5d6;
}

.pol-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pol-meta-bar i {
    color: #38bdf8;
}

/* Layout Body */
.pol-body {
    padding: 65px 0 85px;
    background: #ffffff;
}

.pol-grid-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sticky Quick Navigation / Table of Contents */
.pol-sidebar {
    position: sticky;
    top: 100px;
    background: var(--pol-bg-light);
    border: 1px solid var(--pol-border);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(6, 29, 73, 0.05);
}

.pol-sidebar h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pol-navy);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--pol-border);
}

.pol-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pol-toc-list a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pol-text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pol-toc-list a:hover {
    color: var(--pol-blue);
    background: #e8f2ff;
    transform: translateX(3px);
}

.pol-toc-list a.active {
    color: var(--pol-maroon);
    background: rgba(143, 11, 42, 0.08);
    font-weight: 700;
}

.pol-contact-widget {
    margin-top: 24px;
    padding: 18px 16px;
    background: #ffffff;
    border: 1px solid var(--pol-border);
    border-radius: 14px;
    font-size: 12px;
}

.pol-contact-widget strong {
    display: block;
    font-size: 13px;
    color: var(--pol-navy);
    margin-bottom: 6px;
}

.pol-contact-widget p {
    margin: 0 0 10px;
    color: var(--pol-text-muted);
}

.pol-contact-widget a {
    color: var(--pol-blue);
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

/* Content Area */
.pol-content {
    min-width: 0;
}

.pol-section {
    margin-bottom: 48px;
    scroll-margin-top: 110px;
}

.pol-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--pol-navy);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f9;
    letter-spacing: -0.01em;
}

.pol-section h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 750;
    color: var(--pol-navy);
    margin: 24px 0 12px;
}

.pol-section p {
    font-size: 15px;
    color: #2c3e55;
    margin: 0 0 16px;
    line-height: 1.8;
}

.pol-section ul,
.pol-section ol {
    margin: 0 0 20px 20px;
    padding: 0;
    color: #2c3e55;
    font-size: 15px;
}

.pol-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Callout Box */
.pol-alert {
    padding: 22px 24px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 5px solid;
    font-size: 14.5px;
    line-height: 1.75;
}

.pol-alert-info {
    background: #f0f7ff;
    border-color: var(--pol-blue);
    color: #0b3469;
}

.pol-alert-warning {
    background: #fff8f0;
    border-color: #d97706;
    color: #78350f;
}

.pol-alert-danger {
    background: #fff1f3;
    border-color: var(--pol-red);
    color: #881337;
}

.pol-alert strong {
    display: block;
    font-size: 15.5px;
    margin-bottom: 6px;
}

/* Feature & Process Cards */
.pol-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.pol-card {
    background: var(--pol-bg-light);
    border: 1px solid var(--pol-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pol-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pol-card-shadow);
    border-color: rgba(7, 95, 199, 0.35);
}

.pol-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #061d49, #075fc7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.pol-card-icon.red {
    background: linear-gradient(135deg, #8f0b2a, #d9173d);
}

.pol-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 750;
    color: var(--pol-navy);
    margin: 0 0 8px;
}

.pol-card p {
    font-size: 13.5px;
    color: var(--pol-text-muted);
    margin: 0;
    line-height: 1.65;
}

/* Table Design */
.pol-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--pol-border);
    border-radius: 14px;
}

.pol-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.pol-table th {
    background: var(--pol-navy);
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 750;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.pol-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--pol-border);
    color: #2c3e55;
}

.pol-table tr:last-child td {
    border-bottom: none;
}

.pol-table tr:nth-child(even) {
    background: #f8fbff;
}

/* Forms (Corporate / Training Centre) */
.pol-form-card {
    background: #ffffff;
    border: 1px solid var(--pol-border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--pol-card-shadow);
}

.pol-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pol-form-full {
    grid-column: 1 / -1;
}

.pol-label {
    display: block;
    font-size: 12.5px;
    font-weight: 750;
    color: var(--pol-navy);
    margin-bottom: 7px;
}

.pol-input,
.pol-select,
.pol-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4e0ee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--pol-text-dark);
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pol-input:focus,
.pol-select:focus,
.pol-textarea:focus {
    border-color: var(--pol-blue);
    box-shadow: 0 0 0 3px rgba(7, 95, 199, 0.15);
}

.pol-textarea {
    min-height: 120px;
    resize: vertical;
}

.pol-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8f0b2a, #d9173d);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(143, 11, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pol-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 23, 61, 0.35);
}

/* Responsive */
@media (max-width: 980px) {
    .pol-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pol-sidebar {
        position: static;
        margin-bottom: 24px;
    }
    .pol-form-card {
        padding: 24px;
    }
    .pol-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pol-hero {
        padding: 55px 0 45px;
    }
    .pol-hero h1 {
        font-size: 30px;
    }
    .pol-hero p {
        font-size: 14.5px;
    }
    .pol-body {
        padding: 40px 0 60px;
    }
    .pol-section h2 {
        font-size: 21px;
    }
}
