/* ============================================
   Coursera Benefit Section - coursera-benefit.css
   All classes prefixed with cb- to avoid conflicts
   ============================================ */

/* Section wrapper */
.cb-section {
    background-color: #faf7f0;
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Container */
.cb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    text-align: center;
}

/* ---- Decorative Stars ---- */
.cb-star-orange {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.cb-star-black {
    position: absolute;
    top: 60px;
    right: 80px;
    z-index: 1;
}

.cb-star-black-2 {
    position: absolute;
    top: 160px;
    right: 40px;
    z-index: 1;
}

/* ---- Heading ---- */
.cb-title {
    font-family: 'Sabon LT Std', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.cb-subtitle {
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 16px;
    color: #555;
    font-weight: 300;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* ---- Ticket / Price Badge ---- */
.cb-ticket-wrap {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 3;
}

.cb-ticket-inner {
    position: relative;
    width: 200px;
    height: 160px;
}

.cb-big-star {
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 1;
}

.cb-small-star {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
}

.cb-star-spin {
    animation: cbStarRotate 10s linear infinite;
}

@keyframes cbStarRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cb-ticket {
    position: relative;
    z-index: 2;
    background: #1a3a8a;
    border: 3px solid #1a3a8a;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    box-shadow: 0 4px 15px rgba(26, 58, 138, 0.3);
    margin-top: 20px;
}

.cb-strike {
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 16px;
    color: #f7a04b;
    text-decoration: line-through;
    font-weight: 400;
    margin-bottom: 2px;
}

.cb-price {
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 30px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

/* ---- Tabs ---- */
.cb-tabs {
    position: relative;
    z-index: 2;
}

.cb-tab-details {
    margin-bottom: 0;
}

.cb-tab-buttons {
    display: inline-flex;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
}

.cb-tab-btn {
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cb-tab-btn:hover {
    background: #f0f0f0;
}

.cb-tab-btn.active {
    background: #1a3a8a;
    color: #fff;
    border-radius: 30px;
}

/* ---- Tab Content ---- */
.cb-tab-content {
    margin-top: 20px;
}

.cb-tab-panel {
    display: none;
}

.cb-tab-panel.active {
    display: block;
}

/* ---- University Grid (Tab 1) ---- */
.cb-university-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background: #1a3a8a;
    border-radius: 20px;
    padding: 25px 20px;
}

.cb-university-card {
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    min-width: 120px;
    flex: 1 1 calc(12.5% - 12px);
    max-width: 150px;
    min-height: 80px;
}

.cb-university-card img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* ---- Domain / Skills List (Tab 2 & 3) ---- */
.cb-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    background: #1a3a8a;
    border-radius: 20px;
    padding: 35px 40px;
    justify-content: flex-start;
    text-align: left;
}

.cb-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 calc(33.33% - 40px);
    min-width: 200px;
}

.cb-domain-item img {
    flex-shrink: 0;
}

.cb-domain-item span {
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 15px;
    color: #fff;
    font-weight: 400;
}

/* ---- Special Access Label ---- */
.cb-special-access {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 10px;
    font-family: 'HelveticaNowDisplay', 'Helvetica Now Display', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.cb-special-access img {
    vertical-align: middle;
    display: inline-block;
}

/* ---- Decorative Background Shapes (Yellow blobs) ---- */
.cb-section::before,
.cb-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.cb-section::before {
    width: 200px;
    height: 300px;
    background: #f7c948;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: -80px;
    left: -60px;
    opacity: 0.7;
    transform: rotate(-15deg);
}

.cb-section::after {
    width: 180px;
    height: 280px;
    background: #f7c948;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: -60px;
    right: -50px;
    opacity: 0.7;
    transform: rotate(15deg);
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .cb-ticket-wrap {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 25px;
    }

    .cb-ticket-inner {
        width: auto;
        height: auto;
        display: inline-block;
    }

    .cb-big-star {
        width: 80px;
        height: 80px;
        top: -15px;
        left: -25px;
    }

    .cb-small-star {
        width: 40px;
        height: 40px;
        top: -10px;
        right: -15px;
    }

    .cb-ticket {
        margin-top: 0;
    }

    .cb-title {
        font-size: 30px;
    }

    .cb-domain-item {
        flex: 1 1 calc(50% - 40px);
    }

    .cb-star-black,
    .cb-star-black-2 {
        display: none;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .cb-section {
        padding: 40px 0 35px;
    }

    .cb-title {
        font-size: 24px;
    }

    .cb-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cb-tab-buttons {
        flex-direction: column;
        border-radius: 12px;
        width: 100%;
    }

    .cb-tab-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 0 !important;
    }

    .cb-tab-btn.active {
        border-radius: 0 !important;
    }

    .cb-tab-btn:first-child,
    .cb-tab-btn:first-child.active {
        border-radius: 12px 12px 0 0 !important;
    }

    .cb-tab-btn:last-child,
    .cb-tab-btn:last-child.active {
        border-radius: 0 0 12px 12px !important;
    }

    .cb-university-grid {
        padding: 15px 10px;
        gap: 8px;
        border-radius: 14px;
    }

    .cb-university-card {
        flex: 1 1 calc(25% - 8px);
        min-width: 70px;
        max-width: 100px;
        padding: 8px;
        min-height: 60px;
    }

    .cb-domain-list {
        padding: 20px 20px;
        gap: 15px 20px;
        border-radius: 14px;
    }

    .cb-domain-item {
        flex: 1 1 100%;
        min-width: unset;
    }

    .cb-domain-item span {
        font-size: 14px;
    }

    .cb-ticket {
        padding: 15px 20px;
        min-width: 140px;
    }

    .cb-price {
        font-size: 24px;
    }

    .cb-strike {
        font-size: 14px;
    }

    .cb-special-access {
        justify-content: center;
        font-size: 14px;
    }

    .cb-section::before {
        width: 120px;
        height: 180px;
        bottom: -50px;
        left: -40px;
    }

    .cb-section::after {
        width: 100px;
        height: 160px;
        bottom: -40px;
        right: -30px;
    }
}
