/* ==========================================================================
   assets/css/style.css
   Addiction & Wellness Platform — theme: orange / navy (#0A2240) / white
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --navy: #0A2240;
    --navy-800: #0D2B52;
    --navy-600: #143A68;
    --orange: #F97316;
    --orange-600: #EA6A0C;
    --orange-soft: rgba(249, 115, 22, 0.12);
    --ink: #1B2A3D;
    --muted: #62748E;
    --surface: #F6F8FB;
    --line: rgba(10, 34, 64, 0.08);
    --shadow-sm: 0 4px 16px rgba(10, 34, 64, 0.06);
    --shadow-md: 0 14px 36px rgba(10, 34, 64, 0.10);
}

body {
    color: var(--ink);
    background-color: #ffffff;
}

/* ---------- Shared helpers ---------- */
.section-soft {
    background: var(--surface);
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: .6rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    max-width: 620px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .38rem .85rem;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.badge-brand {
    background: var(--orange-soft);
    color: var(--orange);
    border: 1px solid rgba(249, 115, 22, 0.22);
    font-weight: 600;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-navy {
    background: rgba(10, 34, 64, 0.07);
    color: var(--navy);
    border: 1px solid var(--line);
    font-weight: 600;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.26);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--orange-600);
    border-color: var(--orange-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.btn-brand-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Orange outline for light backgrounds */
.btn-brand-soft {
    background: transparent;
    border: 1.5px solid rgba(249, 115, 22, 0.55);
    color: var(--orange);
    font-weight: 600;
    border-radius: 12px;
    padding: .65rem 1.4rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.btn-brand-soft:hover,
.btn-brand-soft:focus {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--navy);
    border: 1px solid var(--navy);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    transition: background .18s ease, transform .18s ease;
}

.btn-navy:hover,
.btn-navy:focus {
    background: var(--navy-600);
    color: #fff;
    transform: translateY(-2px);
}

.btn-navy-soft {
    background: transparent;
    border: 1.5px solid rgba(10, 34, 64, 0.25);
    color: var(--navy);
    font-weight: 600;
    border-radius: 12px;
    padding: .65rem 1.4rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.btn-navy-soft:hover,
.btn-navy-soft:focus {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm.btn-brand,
.btn-sm.btn-brand-soft,
.btn-sm.btn-navy,
.btn-sm.btn-navy-soft {
    padding: .45rem 1rem;
    font-size: .88rem;
    border-radius: 10px;
}

/* ---------- Navbar ---------- */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.site-navbar .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.brand-navy {
    color: var(--navy);
}

.brand-orange {
    color: var(--orange);
}

.site-navbar .nav-link {
    color: var(--navy);
    font-weight: 500;
    font-size: .95rem;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    transition: color .18s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--orange);
}

.site-navbar .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: .4rem;
}

.site-navbar .dropdown-item {
    border-radius: 9px;
    font-size: .93rem;
    color: var(--navy);
    padding: .5rem .75rem;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background: var(--orange-soft);
    color: var(--orange);
}

.site-navbar .navbar-toggler {
    border-color: var(--line);
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem var(--orange-soft);
}

/* ---------- Hero (home) ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 55%, #10315C 100%);
    color: #fff;
    padding: clamp(40px, 5vw, 64px) 0;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -110px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.32) 0%, rgba(249, 115, 22, 0) 68%);
}

.hero-section::after {
    width: 340px;
    height: 340px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    margin-bottom: .9rem;
}

.hero-title .accent {
    color: var(--orange);
}

.hero-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    max-width: 520px;
    margin-bottom: 1.4rem;
}

.hero-visual {
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-visual img {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats .stat-value {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.hero-stats .stat-value i {
    color: var(--orange);
    margin-right: .35rem;
}

.hero-stats .stat-label {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.66);
}

/* ---------- Inner page header ---------- */
.page-head {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
    color: #fff;
    padding: clamp(34px, 4.5vw, 56px) 0;
    text-align: center;
}

.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.30) 0%, rgba(249, 115, 22, 0) 55%);
    pointer-events: none;
}

.page-head .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    margin-bottom: .6rem;
}

.page-title .accent {
    color: var(--orange);
}

.page-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(.96rem, 1.4vw, 1.06rem);
    max-width: 640px;
    margin: 0 auto;
}

.page-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: .86rem;
    margin: 0;
}

/* ---------- Content cards ---------- */
.content-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.28);
}

.content-card .card-body {
    padding: 1.6rem;
}

.content-card h3,
.content-card h5 {
    color: var(--navy);
    font-weight: 700;
}

.content-card h3 {
    font-size: 1.18rem;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.content-card h3 i {
    color: var(--orange);
    font-size: 1rem;
}

.content-card p,
.content-card li {
    color: var(--muted);
}

.content-card ul:not(.list-unstyled) {
    padding-left: 1.1rem;
}

.content-card ul:not(.list-unstyled) li {
    margin-bottom: .45rem;
}

.content-card ul:not(.list-unstyled) li::marker {
    color: var(--orange);
}

.content-card strong {
    color: var(--ink);
}

/* ---------- Cards (home) ---------- */
.feature-card,
.program-card,
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover,
.program-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.35);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
    background: var(--orange-soft);
    color: var(--orange);
    margin-bottom: 1rem;
}

.feature-card .card-title,
.program-card .card-title {
    color: var(--navy);
    font-weight: 700;
}

.feature-card .card-text,
.program-card .card-text {
    color: var(--muted);
}

.program-card {
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--navy) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}

.program-card:hover::after {
    transform: scaleX(1);
}

.program-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    background: rgba(10, 34, 64, 0.06);
    color: var(--navy);
    transition: background .22s ease, color .22s ease;
}

.program-card:hover .program-icon {
    background: var(--orange);
    color: #fff;
}

.program-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--line);
    padding: 1rem;
}

/* ---------- Check / feature lists ---------- */
.corporate-list li,
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .85rem;
    color: var(--ink);
    font-weight: 500;
}

.corporate-list i,
.check-list i {
    color: var(--orange);
    font-size: 1.05rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.check-list .small,
.check-list p {
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .95rem;
    color: var(--muted);
}

.icon-list i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: .9rem;
}

.icon-list strong {
    color: var(--navy);
}

.corporate-visual {
    border-radius: 20px;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
}

/* ---------- Pricing ---------- */
.pricing-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--orange);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.18);
}

.pricing-card .plan-flag {
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    padding: .6rem;
    border: 0;
    border-radius: 18px 18px 0 0;
}

.plan-name {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: .25rem;
}

.plan-price {
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.plan-period {
    color: var(--muted);
    font-size: .88rem;
}

.plan-divider {
    border-color: var(--line);
    opacity: 1;
    margin: 1.25rem 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .7rem;
    font-size: .94rem;
    color: var(--ink);
}

.plan-features li i {
    color: var(--orange);
    font-size: .95rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.plan-features li.excluded {
    color: var(--muted);
}

.plan-features li.excluded i {
    color: rgba(10, 34, 64, 0.25);
}

/* ---------- Steps ---------- */
.step-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
}

.step-number {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(10, 34, 64, 0.18);
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.step-card h3 {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.12rem;
    margin-bottom: .5rem;
}

.step-card p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: .96rem;
}

/* ---------- Contact / info tiles ---------- */
.info-tile {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1rem;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}

.info-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-tile .info-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.info-tile h5 {
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .3rem;
}

.info-tile p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: .93rem;
}

/* ---------- Forms ---------- */
.form-label {
    color: var(--navy);
    font-weight: 600;
    font-size: .92rem;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem .95rem;
    font-size: .96rem;
    background: #fff;
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 .2rem var(--orange-soft);
}

.form-control::placeholder {
    color: rgba(98, 116, 142, 0.7);
}

.alert {
    border-radius: 14px;
    border: 1px solid var(--line);
    font-size: .95rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.25);
    color: #15803D;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.22);
    color: #B91C1C;
}

/* ---------- Accordion (FAQ) ---------- */
.brand-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.brand-accordion .accordion-button {
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
}

.brand-accordion .accordion-button:not(.collapsed) {
    background: var(--orange-soft);
    color: var(--orange);
    box-shadow: none;
}

.brand-accordion .accordion-button:focus {
    box-shadow: 0 0 0 .2rem var(--orange-soft);
}

.brand-accordion .accordion-button::after {
    background-image: none;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .8rem;
    color: inherit;
    width: auto;
    height: auto;
    transition: transform .2s ease;
}

.brand-accordion .accordion-body {
    color: var(--muted);
    padding: 0 1.25rem 1.25rem;
    font-size: .96rem;
}

/* ---------- Resource / job list items ---------- */
.resource-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
}

.resource-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 1.15rem;
    margin-bottom: .9rem;
}

.brand-list-group .list-group-item {
    border: 1px solid var(--line);
    border-radius: 14px !important;
    margin-bottom: .7rem;
    padding: 1rem 1.15rem;
    color: var(--navy);
    font-weight: 500;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.brand-list-group .list-group-item:hover {
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateX(3px);
}

.job-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 1.35rem;
    margin-bottom: 1rem;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.job-item:hover {
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.job-item h5 {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.job-meta {
    color: var(--muted);
    font-size: .86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .6rem;
}

.job-meta i {
    color: var(--orange);
    margin-right: .35rem;
}

.job-item p {
    color: var(--muted);
    font-size: .94rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card .stars {
    color: var(--orange);
    letter-spacing: .12rem;
    font-size: .9rem;
}

.testimonial-card .quote-mark {
    font-size: 1.6rem;
    color: rgba(10, 34, 64, 0.12);
    line-height: 1;
}

.testimonial-card .card-text {
    color: var(--ink);
    font-size: .98rem;
}

.testimonial-author {
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
}

.testimonial-author i {
    color: var(--orange);
}

/* ---------- CTA ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
    color: #fff;
    padding: clamp(48px, 6vw, 72px) 0;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.32) 0%, rgba(249, 115, 22, 0) 55%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.cta-text {
    color: rgba(255, 255, 255, 0.82);
}

/* Soft CTA strip for light pages */
.cta-soft {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.cta-soft h3,
.cta-soft h4 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: .5rem;
}

.cta-soft p {
    color: var(--muted);
}

.text-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.site-footer .footer-brand i {
    color: var(--orange);
    margin-right: .5rem;
}

.site-footer a.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: .94rem;
    transition: color .18s ease;
}

.site-footer a.footer-link:hover,
.site-footer a.footer-link:focus {
    color: var(--orange);
}

.site-footer .footer-links li {
    margin-bottom: .55rem;
}

.site-footer .social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-right: .5rem;
    transition: background .18s ease, transform .18s ease;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus {
    background: var(--orange);
    transform: translateY(-2px);
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

/* ---------- Auth pages ---------- */
.auth-section {
    background: var(--surface);
    min-height: calc(100vh - 300px);
    padding: clamp(40px, 6vw, 72px) 0;
}

.auth-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.auth-card .card-body {
    padding: clamp(1.75rem, 4vw, 3rem);
}

.auth-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 1.6rem;
    margin: 0 auto 1.1rem;
}

.auth-title {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    text-align: center;
    margin-bottom: .4rem;
}

.auth-subtitle {
    color: var(--muted);
    text-align: center;
    font-size: .95rem;
    margin-bottom: 1.75rem;
}

.auth-divider {
    border-color: var(--line);
    opacity: 1;
}

.auth-footnote {
    color: var(--muted);
    font-size: .85rem;
}

.auth-footnote a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

/* Account-type toggle (register.php) */
.type-toggle {
    display: flex;
    gap: .75rem;
}

.type-toggle .type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: .85rem 1rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--muted);
    text-decoration: none;
    background: #fff;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.type-toggle .type-option i {
    font-size: 1.05rem;
}

.type-toggle .type-option:hover {
    border-color: rgba(249, 115, 22, 0.4);
    color: var(--orange);
}

.type-toggle .type-option.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .2rem var(--orange-soft);
}

.form-check-label {
    color: var(--ink);
    font-size: .93rem;
}

/* One-time-code input (2FA) */
.otp-input {
    text-align: center;
    letter-spacing: .6em;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
    padding-left: .5rem;
}

.status-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.status-icon.success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803D;
}

.status-icon.pending {
    background: var(--orange-soft);
    color: var(--orange);
}

/* ---------- Blog ---------- */
.blog-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
}

.blog-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.4rem;
}

.blog-card .card-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.05rem;
}

.blog-card .card-text {
    color: var(--muted);
    font-size: .93rem;
}

.blog-meta {
    color: var(--muted);
    font-size: .82rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .85rem;
}

.blog-meta i {
    color: var(--orange);
    margin-right: .3rem;
}

.badge-category {
    background: var(--orange-soft);
    color: var(--orange);
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .28rem .65rem;
}

.badge-tag {
    background: var(--surface);
    color: var(--navy);
    border: 1px solid var(--line);
    font-weight: 500;
    font-size: .78rem;
    border-radius: 999px;
    padding: .3rem .75rem;
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.badge-tag:hover {
    background: var(--orange);
    color: #fff;
}

.article-hero-img {
    border-radius: 18px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-title {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.article-body {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3 {
    color: var(--navy);
    font-weight: 700;
    margin-top: 1.75rem;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Search box */
.blog-search {
    max-width: 480px;
    margin: 0 auto;
}

.blog-search .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-search .form-control {
    border-radius: 0;
    border-right: 0;
}

.blog-search .btn {
    border-radius: 0;
}

/* ---------- Pagination ---------- */
.pagination-brand .page-link {
    color: var(--navy);
    border: 1px solid var(--line);
    margin: 0 .2rem;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: .9rem;
}

.pagination-brand .page-link:hover {
    background: var(--orange-soft);
    color: var(--orange);
    border-color: rgba(249, 115, 22, 0.3);
}

.pagination-brand .page-item.active .page-link {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 1.75rem;
    }

    .hero-visual img {
        max-height: 230px;
    }

    .site-navbar .navbar-nav {
        padding-top: .5rem;
    }

    .site-navbar .nav-item .btn {
        margin-top: .5rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 36px 0 40px;
    }

    .hero-visual img {
        max-height: 180px;
    }

    .hero-stats {
        gap: 1.1rem;
    }

    .hero-stats > div {
        flex: 1 1 40%;
    }

    .btn-brand,
    .btn-brand-outline,
    .btn-navy {
        width: 100%;
        margin-bottom: .7rem;
    }

    .content-card .card-body {
        padding: 1.25rem;
    }

    .job-meta {
        gap: .6rem;
    }
}

/* Header logo — large visual, no navbar growth */
.site-navbar {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 60px;
}

.site-navbar .container {
    min-height: 60px;
    align-items: center;
}

.site-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 88px;
    width: auto;
    display: block;
    /* Pull the logo up so its extra height doesn't add to the navbar */
    margin-top: -14px;
    margin-bottom: -14px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .site-logo {
        height: 60px;
        margin-top: 0;
        margin-bottom: 0;
    }
}