/* ============================================
   Optivo Partner Portal — Standalone Styles
   ============================================ */

/* Reset & Base */
html {
    overflow-x: hidden;
}

.opp-page {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #161249;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}


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

.opp-page h1,
.opp-page h2,
.opp-page h3,
.opp-page h4,
.opp-page p {
    margin: 0;
}

.opp-page a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.opp-container {
    max-width: 1652px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Navbar
   ============================================ */
.opp-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1652px;
    background: #ffffff;
    border-radius: 16px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(22,18,73,0.08);
}

.opp-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 32px;
}

.opp-navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.opp-navbar-logo-icon {
    height: 36px;
    width: auto;
}

.opp-navbar-logo-divider {
    width: 2px;
    height: 32px;
    background: #161249;
    margin: 0 8px;
    flex-shrink: 0;
}

.opp-navbar-logo-text {
    display: flex;
    flex-direction: column;
}

.opp-navbar-logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #161249;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* Hide WP admin bar on portal pages */
.opp-page #wpadminbar {
    display: none !important;
}
.opp-page.admin-bar {
    margin-top: 0 !important;
}
.opp-page html {
    margin-top: 0 !important;
}

.opp-navbar-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.opp-navbar-links a {
    font-size: 15px;
    font-weight: 600;
    color: #161249;
    transition: color 0.2s;
}

.opp-navbar-links a:hover,
.opp-navbar-links a.opp-nav-active,
.opp-navbar-links .current-menu-item a {
    color: #ee6364;
}

/* WP nav menu output */
.opp-navbar-links > ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.opp-navbar-links > ul > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.opp-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.opp-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #161249;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Button */
.opp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
}

.opp-btn:hover {
    transform: translateY(-1px);
}

.opp-btn-coral {
    background: #ee6364;
    color: #ffffff;
}

.opp-btn-coral:hover {
    background: #d94f50;
    color: #ffffff;
}

/* ============================================
   Hero
   ============================================ */
.opp-hero {
    background: #161249;
    padding: 160px 0 140px;
    position: relative;
    overflow: hidden;
}

.opp-hero-inner {
    position: relative;
    z-index: 1;
}

.opp-hero-content {
    max-width: 680px;
}

.opp-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 96px;
}

.opp-hero-desc {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.opp-hero-decoration {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.opp-hero-decoration-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: right center;
}

.opp-hero-blob,
.opp-hero-img {
    display: none;
}

.opp-navbar-subtitle {
    font-size: 7px;
    color: #8b8fa3;
    display: block;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.opp-btn-outline {
    background: transparent;
    color: #ee6364;
    border: 1px solid #ee6364;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    transition: background 0.2s;
}

.opp-btn-outline:hover {
    background: rgba(238, 99, 100, 0.1);
}

.opp-btn-disabled {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Hub Layout
   ============================================ */
.opp-main {
    padding: 48px 0 80px;
    background: #f8f8fc;
    min-height: 60vh;
}

.opp-hub-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   Sidebar
   ============================================ */
.opp-sidebar {
    position: sticky;
    top: 112px;
}

.opp-sidebar-card {
    background: #161249;
    border-radius: 16px;
    padding: 32px 24px;
    color: #ffffff;
}

.opp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.opp-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opp-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.opp-sidebar-user {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.opp-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opp-sidebar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.opp-sidebar-section:hover {
    color: #ffffff;
}

.opp-sidebar-section--active {
    color: #ffffff;
}

.opp-sidebar-section-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ee6364;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.opp-sidebar-section--active .opp-sidebar-section-toggle {
    color: #ee6364;
}

.opp-sidebar-sublinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0;
}

.opp-sidebar-section--active + .opp-sidebar-sublinks {
    max-height: 300px;
    padding: 4px 0 12px;
}

.opp-sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 6px 8px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}

.opp-sidebar-sublink:hover {
    color: #ffffff;
}

.opp-sublink-check {
    accent-color: #ee6364;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.opp-sidebar-section-icon {
    display: none;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.opp-sidebar-section-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opp-sidebar-section-arrow {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.opp-sidebar-section--active .opp-sidebar-section-arrow {
    opacity: 1;
    transform: rotate(90deg);
}

.opp-sidebar-nav .opp-sidebar-sublinks:last-child {
    border-bottom: none;
}

.opp-sidebar-nav > :nth-last-child(2).opp-sidebar-section {
    border-bottom: none;
}

.opp-sidebar-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.opp-sidebar-logout {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.opp-sidebar-logout:hover {
    color: #ee6364;
}

/* ============================================
   Mobile Section Picker
   ============================================ */
.opp-mobile-section-picker {
    display: none;
}

.opp-mobile-select {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #161249;
    border: 2px solid #ee6364;
    border-radius: 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ee6364' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.opp-mobile-select option {
    background: #161249;
    color: #ffffff;
    padding: 12px;
}

/* ============================================
   Content Area
   ============================================ */
.opp-content-section {
    display: none;
}

.opp-content-section--active {
    display: block;
}

.opp-section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #161249;
    margin-bottom: 120px;
}

/* Resource Grid */
.opp-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Resource Card */
.opp-resource-card {
    background: #161249;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(229, 228, 243, 0.1);
    border-right: 4px solid #ee6364;
    border-bottom: 4px solid #ee6364;
}

.opp-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(22, 18, 73, 0.2);
}

.opp-resource-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ee6364;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.opp-resource-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.opp-resource-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.opp-resource-card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.opp-resource-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #ee6364 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, gap 0.2s;
}

.opp-resource-card-link:hover {
    color: #fdc2c2 !important;
    gap: 8px;
}

/* Coming Soon */
.opp-coming-soon {
    background: #ffffff;
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    border: 2px dashed #e5e4f3;
}

.opp-coming-soon-icon {
    margin-bottom: 20px;
}

.opp-coming-soon-title {
    font-size: 22px;
    font-weight: 700;
    color: #161249;
    margin-bottom: 10px;
}

.opp-coming-soon-desc {
    font-size: 15px;
    color: rgba(22, 18, 73, 0.6);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.opp-footer {
    background: #161249;
    padding: 56px 0 32px;
    color: #ffffff;
}


.opp-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.opp-footer-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.opp-footer-logo-icon {
    height: 36px;
    width: auto;
}

.opp-footer-logo-divider {
    width: 2px;
    height: 32px;
    background: #ffffff;
    margin: 0 8px;
    flex-shrink: 0;
}

.opp-footer-logo-text {
    display: flex;
    flex-direction: column;
}

.opp-footer-logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.opp-footer-subtitle {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    line-height: 1.2;
}

.opp-footer-links {
    display: flex;
    gap: 32px;
}

.opp-footer-links a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.opp-footer-links a:hover {
    color: #ee6364;
}

/* WP nav menu output in footer */
.opp-footer-links > ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.opp-footer-links > ul > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.opp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opp-footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.opp-footer-legal {
    display: flex;
    gap: 24px;
}

.opp-footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.opp-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Responsive — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .opp-container {
        padding: 0 24px;
    }

    .opp-hub-layout {
        grid-template-columns: 260px 1fr;
        gap: 28px;
    }

    .opp-hero-title {
        font-size: 34px;
    }

    .opp-resource-card {
        padding: 24px;
    }

    .opp-section-heading {
        font-size: 22px;
    }
}

/* ============================================
   Responsive — 768px
   ============================================ */
@media (max-width: 768px) {
    .opp-container {
        padding: 0 16px;
    }

    /* Navbar mobile */
    .opp-navbar {
        width: calc(100% - 32px);
        top: 12px;
    }

    .opp-nav-toggle {
        display: flex;
    }

    .opp-navbar-inner {
        height: 56px;
        padding: 0 16px;
    }

    .opp-navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid #e5e4f3;
        box-shadow: 0 8px 24px rgba(22, 18, 73, 0.1);
    }

    .opp-navbar-links.opp-navbar-links--open {
        display: flex;
    }

    .opp-navbar-links .opp-btn {
        width: 100%;
        text-align: center;
    }

    /* Hero mobile — Figma specs: 375px viewport, clip content */
    .opp-hero {
        padding: 100px 20px 0;
        min-height: 520px;
        position: relative;
        overflow: hidden;
    }

    .opp-hero-title {
        font-size: 32px;
    }

    .opp-hero-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Decoration fills bottom portion of hero */
    .opp-hero-decoration {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .opp-hero-decoration-img {
        display: none;
    }

    .opp-hero-blob,
    .opp-hero-img {
        display: block;
    }

    .opp-hero-blob {
        position: absolute;
        right: auto;
        top: auto;
        bottom: -30%;
        left: -15%;
        width: auto;
        height: 75%;
        transform: scaleY(-1) rotate(-60deg);
    }

    .opp-hero-blob img {
        height: 100%;
        width: auto;
    }

    .opp-hero-img-magnifier {
        position: absolute;
        width: 55%;
        right: auto;
        left: 18%;
        top: auto;
        bottom: 8%;
        transform: none;
    }

    .opp-hero-img-cross {
        position: absolute;
        width: 19%;
        left: 8%;
        top: auto;
        bottom: 18%;
    }

    /* Layout mobile — stack, hide sidebar, show dropdown */
    .opp-hub-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .opp-sidebar {
        display: none;
    }

    .opp-mobile-section-picker {
        display: block;
    }

    /* Resource grid single column */
    .opp-resource-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .opp-resource-card {
        padding: 24px;
    }

    .opp-section-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Footer mobile */
    .opp-footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .opp-footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .opp-footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .opp-footer-legal {
        gap: 16px;
    }
}

/* ============================================
   Auth Pages (Login & Apply)
   ============================================ */
.opp-auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.opp-auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 120px 40px 60px; }
.opp-auth-wrapper { display: flex; gap: 100px; max-width: 1300px; width: 100%; align-items: center; }
.opp-auth-left { flex: 1; min-width: 0; }
.opp-auth-below { font-size: 14px; color: #555; margin-top: 16px; text-align: center; }
.opp-auth-info { flex: 1; }
.opp-auth-info h1 { font-size: 42px; font-weight: 700; color: #161249; margin-bottom: 16px; }
.opp-auth-info p { font-size: 18px; color: #555; line-height: 1.7; margin-bottom: 24px; }

.opp-auth-link { color: #6C5CE7; font-weight: 600; }
.opp-auth-link:hover { text-decoration: underline; }

.opp-auth-card { flex: 1; background: #161249; border-radius: 16px; padding: 40px; color: #fff; }
.opp-auth-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.opp-auth-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }

.opp-auth-field { margin-bottom: 20px; }
.opp-auth-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: rgba(255,255,255,0.9); }
.opp-auth-field label .required { color: #FF6B6B; }
.opp-auth-field input[type="text"],
.opp-auth-field input[type="email"],
.opp-auth-field input[type="password"],
.opp-auth-field input[type="url"] {
    width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.4;
    height: auto; box-sizing: border-box; transition: border-color 0.2s;
}
.opp-auth-field input::placeholder { color: rgba(255,255,255,0.4); }
.opp-auth-field input:focus { outline: none; border-color: #6C5CE7; background: rgba(255,255,255,0.12); }

.opp-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.opp-auth-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.8); cursor: pointer; margin-bottom: 14px; }
.opp-auth-check input[type="checkbox"] { accent-color: #6C5CE7; }
.opp-auth-check a { color: #6C5CE7; text-decoration: underline; }

.opp-auth-submit {
    width: 100%; padding: 14px; border: none; border-radius: 8px;
    background: #6C5CE7; color: #fff; font-family: 'Montserrat', sans-serif;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.opp-auth-submit:hover { background: #5A4BD1; }

.opp-auth-error { background: rgba(255,107,107,0.15); border: 1px solid #FF6B6B; color: #FF6B6B; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.opp-auth-success { text-align: center; padding: 40px 20px; }
.opp-auth-success h2 { font-size: 28px; margin-bottom: 12px; }
.opp-auth-success p { color: rgba(255,255,255,0.8); font-size: 16px; }
.opp-auth-checkmark { font-size: 48px; margin-bottom: 16px; display: block; }

.opp-auth-image {
    flex: 1;
    position: relative;
    min-height: 480px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opp-auth-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.opp-auth-img-photo {
    position: relative;
    width: 100%;
    border-radius: 14px;
    z-index: 1;
    margin-left: auto;
}
.opp-auth-img-magnifier {
    position: absolute;
    top: -10%;
    left: -15%;
    width: 42%;
    z-index: 2;
}
.opp-auth-img-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 58%;
    z-index: 0;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .opp-auth-wrapper { flex-direction: column; gap: 30px; }
    .opp-auth-main { padding: 100px 20px 40px; }
    .opp-auth-info h1 { font-size: 32px; }
    .opp-auth-card { padding: 28px; }
    .opp-auth-image { display: none; }
    .opp-auth-row-2col { grid-template-columns: 1fr; }
}
