.study-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.study-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    align-items: center;
    color: white;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.24), transparent 34%),
        linear-gradient(135deg, #080808, #1d1d1d);
    border-radius: 0 0 40px 40px;
}

.study-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.study-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: center;
    padding: 54px 0;
}

.study-eyebrow {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: #f3d675;
    background: rgba(212, 175, 55, 0.1);
    font-weight: 900;
    margin-bottom: 18px;
}

.study-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.35;
}

.study-hero p {
    margin: 18px 0 0;
    max-width: 720px;
    color: rgba(255,255,255,0.76);
    line-height: 1.9;
    font-size: 1.08rem;
}

.study-hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 28px;
    padding: 26px;
    backdrop-filter: blur(12px);
}

.study-hero-card strong {
    color: #f3d675;
    display: block;
    margin-bottom: 8px;
}

.study-hero-card span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

.study-hero-card p {
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.study-section {
    padding: 60px 0;
    background: #f7f7f4;
}

.study-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
}

.semester-list {
    position: sticky;
    top: 95px;
    background: white;
    border-radius: 28px;
    padding: 20px;
    border: 1px solid rgba(17,17,17,0.07);
    box-shadow: 0 18px 45px rgba(0,0,0,0.07);
}

.semester-list h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
    color: #111;
}

.semester-tab {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    background: #f5f5f5;
    color: #111;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    transition: 0.25s ease;
}

.semester-tab span {
    font-weight: 900;
}

.semester-tab small {
    color: #777;
}

.semester-tab:hover,
.semester-tab.active {
    background: #111;
    color: #d4af37;
    transform: translateX(-4px);
}

.semester-tab.active small,
.semester-tab:hover small {
    color: rgba(255,255,255,0.75);
}

.semester-panel {
    display: none;
}

.semester-panel.active {
    display: block;
    animation: fadeUp 0.35s ease both;
}

.semester-header {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 30%),
        #111;
    color: white;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.semester-header span {
    color: #d4af37;
    font-weight: 900;
}

.semester-header h2 {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.semester-header p {
    margin-top: 10px;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
}

.semester-hours {
    min-width: 120px;
    min-height: 100px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    font-size: 2.4rem;
    font-weight: 900;
    color: #d4af37;
}

.semester-hours small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.course-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    border: 1px solid rgba(17,17,17,0.07);
    box-shadow: 0 14px 38px rgba(0,0,0,0.055);
    transition: 0.25s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.36);
    box-shadow: 0 24px 58px rgba(0,0,0,0.09);
}

.course-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: right;
}

.course-toggle h3 {
    margin: 0;
    color: #111;
    line-height: 1.5;
    font-size: 1.12rem;
}

.course-toggle p {
    margin: 6px 0 0;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

.course-toggle span {
    background: rgba(212,175,55,0.16);
    color: #8a6818;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    white-space: nowrap;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.course-meta span {
    background: #f5f5f5;
    color: #555;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.course-details {
    display: none;
    margin-top: 24px;
    background: white;
    border-radius: 28px;
    padding: 26px;
    border: 1px solid rgba(212,175,55,0.32);
    box-shadow: 0 20px 55px rgba(0,0,0,0.08);
}

.course-details.active {
    display: block;
    animation: fadeUp 0.35s ease both;
}

.details-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.details-header span {
    color: #8a6818;
    font-weight: 900;
}

.details-header h3 {
    margin: 8px 0;
    color: #111;
    font-size: 1.6rem;
}

.details-header p {
    margin: 0;
    color: #777;
}

.details-close {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #111;
    color: #d4af37;
    padding: 9px 16px;
    border-radius: 999px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.details-box {
    background: #fafafa;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid #eee;
}

.details-box.full {
    grid-column: 1 / -1;
}

.details-box h4 {
    margin: 0 0 12px;
    color: #111;
    font-size: 1.15rem;
}

.details-box p {
    color: #555;
    line-height: 1.9;
}

.study-alert {
    background: #fff3cd;
    color: #7a5400;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #f3d675;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {
    .study-layout {
        grid-template-columns: 1fr;
    }

    .semester-list {
        position: static;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .study-container {
        width: min(100% - 24px, 1180px);
    }

    .study-hero-grid {
        grid-template-columns: 1fr;
    }

    .semester-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .semester-hours {
        width: 100%;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-header {
        flex-direction: column;
    }
}

.program-selector {
    background: white;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(17,17,17,0.07);
    box-shadow: 0 18px 45px rgba(0,0,0,0.07);
    margin-bottom: 28px;
}

.program-selector h2 {
    margin: 0 0 16px;
    color: #111;
}

.program-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.program-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.program-choice:hover,
.program-choice.active {
    background: #111;
    color: #d4af37;
    border-color: rgba(212,175,55,0.35);
}

#semesters-area {
    scroll-margin-top: 110px;
}

.course-description-button {
    width: 100%;
    margin-top: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 999px;
    background: #111111;
    color: #d4af37;
    font-weight: 900;
    transition: 0.25s ease;
}

.course-description-button:hover {
    background: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

.course-description-button span {
    font-size: 1.1rem;
}

.course-code {
    background: rgba(212,175,55,0.16);
    color: #8a6818;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .program-selector {
        scroll-margin-top: 90px;
    }

    .study-layout {
        scroll-margin-top: 90px;
    }

    .semester-panel {
        scroll-margin-top: 90px;
    }

    .course-details {
        scroll-margin-top: 90px;
    }

    .course-description-button {
        min-height: 46px;
        font-size: 0.95rem;
    }
}