/* Degree Guidance (First & Second Loan) — ported from bhe-new-design-html/bootstrap/degree-guidance.css (+ hero/button/card rules from styles.css).
   Heading/paragraph sizes carry !important because the global build CSS forces h1–h6 and p sizes. */
.degree-page {
    --navy-950: #06122a;
    --navy-900: #0a1a33;
    --navy-800: #0f2747;
    --brand-50: #fff5ed;
    --brand-100: #ffe8d4;
    --brand-200: #ffd0a8;
    --brand-300: #ffb877;
    --brand-400: #ff9a47;
    --brand-500: #f47b20;
    --brand-600: #dd6610;
    --orange-grad: linear-gradient(90deg, #f7a823, #f47b20);
    font-family: "Kanit", system-ui, -apple-system, sans-serif;
    color: var(--navy-900);
}
.degree-page h1,
.degree-page h2,
.degree-page h3 {
    color: var(--navy-900);
    font-family: "Kanit", system-ui, -apple-system, sans-serif;
}
.degree-page h2 {
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.degree-page h3 {
    font-size: 23px !important;
    font-weight: 500;
    line-height: 1.3;
}
.degree-page p {
    color: #637187;
    line-height: 1.65;
    font-size: 16px !important;
}
.degree-page .text-brand {
    color: var(--brand-500) !important;
}

/* Buttons */
.degree-page .btn {
    border-radius: 999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, color .2s, border-color .2s;
}
.degree-page .btn-lg {
    padding: .85rem 2rem;
    font-size: 16px !important;
}
.degree-page .btn-brand {
    background: var(--orange-grad);
    color: #fff !important;
    border: none;
    box-shadow: 0 14px 30px -12px rgba(244, 123, 32, .6);
}
.degree-page .btn-brand:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(244, 123, 32, .85);
}
.degree-page .btn-ghost-navy {
    color: var(--navy-800) !important;
    border: 1px solid rgba(10, 26, 51, .15);
    background: #fff;
}
.degree-page .btn-ghost-navy:hover {
    color: var(--brand-600) !important;
    border-color: var(--brand-300);
    transform: translateY(-2px);
}

/* Hero */
.degree-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: left;
    padding: 72px 0 80px;
    background: linear-gradient(125deg, #eaf2fb 0%, #f6f9fc 38%, #f4f9f1 72%, #edf6e8 100%);
}
.degree-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        radial-gradient(34% 44% at 86% 14%, rgba(244, 123, 32, .12), transparent 60%),
        radial-gradient(30% 40% at 10% 88%, rgba(45, 212, 191, .14), transparent 62%),
        radial-gradient(26% 34% at 78% 82%, rgba(42, 85, 207, .10), transparent 60%),
        radial-gradient(circle at 16% 22%, rgba(42, 85, 207, .20) 0 1.4px, transparent 1.6px),
        radial-gradient(circle at 16% 22%, rgba(42, 85, 207, .20) 0 1.4px, transparent 1.6px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 18px 18px, 18px 18px;
    background-position: 0 0, 0 0, 0 0, 70% 60%, 8% 30%;
}
.degree-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .45;
    background-image:
        radial-gradient(closest-side, transparent 70%, rgba(45, 212, 191, .28) 71%, transparent 74%),
        radial-gradient(closest-side, transparent 78%, rgba(244, 123, 32, .26) 79%, transparent 82%),
        conic-gradient(from 200deg at 50% 50%, transparent 0 92%, rgba(42, 85, 207, .18) 96%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 320px 320px, 210px 210px, 460px 460px;
    background-position: 90% 80%, 6% 12%, 78% 8%;
}
.degree-hero > .container-xxl {
    position: relative;
    z-index: 2;
}
.degree-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 48px) !important;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.degree-page .degree-lead {
    font-size: 16px !important;
    max-width: 530px;
    margin: 22px 0 0;
}
.degree-hero-photo {
    position: relative;
    max-width: 480px;
    margin-left: auto;
}
.degree-hero-photo::before {
    content: '';
    position: absolute;
    inset: 10px -10px -8px 10px;
    border-radius: 24px;
    background: #fbd5b6;
    transform: rotate(3deg);
}
.degree-hero-photo > img {
    position: relative;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 40%;
    border: 5px solid white;
    border-radius: 24px;
}
.degree-hero-photo > span {
    position: absolute;
    bottom: 18px;
    left: 20px;
    padding: 11px 16px;
    border-radius: 99px;
    background: white;
    box-shadow: 0 10px 30px #06122a18;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-900);
}
.degree-hero-photo > span i {
    color: var(--brand-600);
    margin-right: 7px;
}
.second-degree-page .degree-hero-photo > img {
    object-position: center 30%;
}

/* Sections & Cards */
.degree-section {
    padding: 64px 0;
    scroll-margin-top: 95px;
}
.degree-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 34px;
}
.degree-heading.degree-heading-wide {
    max-width: 1100px;
}
.degree-page .degree-heading p {
    font-size: 17px !important;
}
.degree-soft {
    background: #f7f9fc;
}
.degree-card {
    height: 100%;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #e0e6ef;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .degree-card:hover {
        transform: translateY(-5px);
        border-color: var(--brand-300, #ffc18f) !important;
        box-shadow: 0 18px 38px -22px rgba(244, 123, 32, .42) !important;
    }
}
.degree-card h3 {
    margin: 20px 0 14px;
    text-align: center !important;
}
.degree-page .degree-card p {
    font-size: 15px !important;
    text-align: center !important;
}
.degree-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--brand-600);
    background: #fff0e3;
    font-size: 24px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center;
    flex-shrink: 0;
}
.degree-card-copy {
    width: 100%;
}
.degree-card-copy p:last-child {
    margin-bottom: 0;
}
.degree-card-copy ul {
    list-style: none;
    padding: 0;
    margin: 18px auto 0;
    display: grid;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    text-align: left;
}
.degree-card-copy li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #637187;
    font-size: 15px;
    line-height: 1.65;
}
.degree-card-copy li::before {
    content: '✓';
    flex: 0 0 auto;
    color: var(--brand-600);
    font-weight: 500;
}
.degree-page .degree-card-copy a,
.degree-page .degree-reading a {
    color: #254da9 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.degree-page .degree-card-copy a:hover,
.degree-page .degree-reading a:hover {
    color: var(--brand-600) !important;
}
.degree-reading {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

/* Reference Table */
.degree-reference {
    border: 1px solid #e0e6ef;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 40px;
    background: #fff;
}
.degree-page .degree-reference table {
    min-width: 580px;
}
.degree-reference th,
.degree-reference td {
    padding: 18px 26px;
    vertical-align: middle;
    font-size: 14px;
}
.degree-reference thead th {
    background: var(--navy-950);
    color: white;
    font-weight: 500;
    border-bottom: none;
}
.degree-reference tbody th {
    font-weight: 500;
    color: var(--navy-800);
}
.degree-reference td {
    color: #637187;
}
.degree-reference a {
    color: #254da9 !important;
    text-decoration: none !important;
}
.degree-reference a:hover {
    text-decoration: underline !important;
    color: var(--brand-600) !important;
}

/* Bottom CTA */
.degree-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--navy-950);
    border-radius: 24px;
    padding: 44px 48px;
    color: white;
}
.degree-page .degree-cta > div:first-child {
    flex: 1;
    min-width: 0;
}
.degree-page .degree-cta h2 {
    color: white;
}
.degree-page .degree-cta p {
    color: #b9c8dc;
    margin: 0;
}
.degree-page .degree-cta p a {
    color: #ffae6d !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.degree-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 310px;
    flex-shrink: 0;
}
.degree-cta-actions > a:not(.btn) {
    color: #b9c8dc !important;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none !important;
}
.degree-cta-actions > a:not(.btn):hover {
    color: #fff !important;
}

@media (max-width: 991px) {
    .degree-hero-photo {
        margin: 16px auto 0;
        max-width: 540px;
    }
    .degree-cta {
        padding: 36px;
    }
}
@media (max-width: 575px) {
    .degree-hero {
        padding: 48px 0 60px;
    }
    .degree-hero-photo > img {
        height: 240px;
    }
    .degree-section {
        padding: 44px 0;
    }
    .degree-card {
        padding: 24px;
    }
    .degree-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
    }
    .degree-reference th,
    .degree-reference td {
        padding: 14px;
        min-width: 130px;
    }
}
