/* =================================================================
   STUDY ABROAD PAGE — /study-abroad
   ================================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.cp-hero--study {
    background-image: url('../images/banners/home/uk_update_14.webp');
    min-height: 560px;
}

/* Stats bar inside hero */
.sa-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.sa-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-right: 2rem;
    margin-right: 2rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.sa-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.sa-stat strong { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.sa-stat span { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Page section wrappers ────────────────────────────────────── */
.sa-page-section { padding: 5rem 0 4.5rem; }
.sa-page-section--light { background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%); }
.sa-page-section--white { background: #fff; }

/* ── Destination Cards ────────────────────────────────────────── */
.sa-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sa-dest-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}
.sa-dest-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,0.2); }
.sa-dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.sa-dest-card:hover img { transform: scale(1.06); }
.sa-dest-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,23,48,0.88) 0%, rgba(7,23,48,0.1) 55%);
}
.sa-dest-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.sa-dest-name { color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
.sa-dest-flag { width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,0.3); background-size: cover; }

/* ── Testimonials ─────────────────────────────────────────────── */
.sa-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sa-testi-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.sa-testi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dhs-accent), var(--dhs-primary));
    border-radius: 14px 14px 0 0;
}
.sa-testi-quote { font-size: 2.5rem; color: var(--dhs-accent); line-height: 1; margin-bottom: -0.5rem; }
.sa-testi-card p { font-size: 0.88rem; color: #555; line-height: 1.75; margin: 0; flex: 1; }
.sa-testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.sa-testi-photo {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e8e8e8;
}
.sa-testi-author strong { display: block; font-size: 0.9rem; color: var(--dhs-primary); font-weight: 700; }
.sa-testi-author span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }
.sa-testi-author .fi { width: 1.1rem; height: 1.1rem; border-radius: 50%; background-size: cover; }

/* ── About Section ────────────────────────────────────────────── */
.sa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.sa-about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.sa-about-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
.sa-about-body { display: flex; flex-direction: column; }
.sa-about-box {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-top: 1px solid #f1f5f9;
}
.sa-about-box:first-of-type { border-top: none; padding-top: 0; }
.sa-about-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(var(--dhs-red-rgb), 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--dhs-accent); flex-shrink: 0;
}
.sa-about-box h4 { font-size: 0.97rem; font-weight: 700; color: var(--dhs-primary); margin: 0 0 0.3rem; }
.sa-about-box p  { font-size: 0.875rem; color: #64748b; line-height: 1.7; margin: 0; }

/* ── select inputs ────────────────────────────────────────────── */
.ez-form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 0.9rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 10px;
    cursor: pointer;
}
.ez-form-group select:focus { border-color: var(--dhs-primary); background-color: #fff; }

/* ── News & Updates ──────────────────────────────────────────── */
.sa-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sa-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.sa-news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.sa-news-img { height: 210px; overflow: hidden; }
.sa-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.sa-news-card:hover .sa-news-img img { transform: scale(1.05); }
.sa-news-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.sa-news-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--dhs-accent);
    background: rgba(var(--dhs-red-rgb), 0.08);
    padding: 0.2rem 0.65rem; border-radius: 20px;
    margin-bottom: 0.75rem; width: fit-content;
}
.sa-news-title { font-size: 1.02rem; font-weight: 700; color: var(--dhs-primary); line-height: 1.45; margin: 0 0 0.7rem; }
.sa-news-excerpt { font-size: 0.875rem; color: #64748b; line-height: 1.75; margin: 0 0 1rem; flex: 1; }
.sa-news-link {
    font-size: 0.875rem; font-weight: 600; color: var(--dhs-accent);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
    transition: gap 0.2s;
}
.sa-news-link:hover { gap: 0.6rem; color: var(--dhs-accent); }

/* ── Top Universities ─────────────────────────────────────────── */
.sa-univ-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.sa-univ-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 100px;
}
.sa-univ-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.sa-univ-card img { max-width: 100%; max-height: 75px; object-fit: contain; display: block; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sa-page-section { padding: 3.5rem 0 3rem; }
    .sa-dest-grid { grid-template-columns: repeat(2, 1fr); }
    .sa-testimonial-grid { grid-template-columns: 1fr; }
    .sa-about-grid { grid-template-columns: 1fr; }
    .sa-about-img { display: none; }
    .sa-hero-stats { gap: 1rem; }
    .sa-stat { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.75rem; }
    .sa-stat:last-child { border-bottom: none; }
    .sa-news-grid { grid-template-columns: 1fr; }
    .sa-univ-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .sa-page-section { padding: 2.5rem 0 2rem; }
    .sa-dest-grid { grid-template-columns: 1fr; }
    .sa-testimonial-grid { grid-template-columns: 1fr; }
    .cp-hero--study { min-height: 480px; }
    .sa-univ-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Training Dark (What We Do) ──────────────────────────────── */
.training-dark {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at 0% 0%,   rgba(var(--dhs-red-rgb), 0.14) 0%, transparent 42%),
        radial-gradient(ellipse at 100% 100%, rgba(26,68,128,0.18) 0%, transparent 42%),
        linear-gradient(160deg, #0c2a4a 0%, #0d2b52 55%, #0c2a4a 100%);
    position: relative;
    overflow: hidden;
}
.training-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}
.training-left { display: flex; flex-direction: column; align-items: flex-start; }
.training-dark-tag {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}
.training-dark-sub {
    color: rgba(255,255,255,0.62);
    font-size: 0.97rem;
    line-height: 1.75;
    max-width: 300px;
    margin: 0;
}
.training-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    background: var(--dhs-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 18px rgba(var(--dhs-red-rgb), 0.38);
}
.training-cta:hover { background: #b91c1c; color: #fff; transform: translateY(-2px); }
.training-right { min-width: 0; }
.training-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.training-pill:last-child:nth-child(3n + 1) { grid-column: 2; }
.training-pill {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-top-color: rgba(255,255,255,0.18);
    background: linear-gradient(150deg, rgba(26,60,110,0.55) 0%, rgba(10,25,52,0.80) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    overflow: hidden;
}
.training-pill:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--dhs-red-rgb), 0.50);
    border-top-color: rgba(var(--dhs-red-rgb), 0.70);
    box-shadow: 0 10px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(var(--dhs-red-rgb), 0.15);
    text-decoration: none;
}
.training-pill-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 1.3rem;
    gap: 0.65rem;
    height: 100%;
}
.training-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dhs-red) 0%, #8b1a1a 100%);
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(var(--dhs-red-rgb), 0.45);
    transition: box-shadow 0.2s, transform 0.2s;
}
.training-pill:hover .training-pill-icon { box-shadow: 0 6px 22px rgba(var(--dhs-red-rgb), 0.65); transform: scale(1.08); }
.training-pill-name { font-size: 0.88rem; font-weight: 800; color: #ffffff; letter-spacing: 0.01em; line-height: 1.3; }
.training-pill-desc { font-size: 0.75rem; color: rgba(255,255,255,0.50); line-height: 1.45; }

@media (max-width: 1199px) {
    .training-shell { grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 991px) {
    .training-dark { padding: 4rem 0; }
    .training-shell { grid-template-columns: 1fr; gap: 2rem; }
    .training-left { align-items: center; text-align: center; }
    .training-dark-sub { max-width: 500px; }
}
@media (max-width: 575px) {
    .training-dark { padding: 3rem 0; }
    .training-pills-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .training-pill:last-child:nth-child(3n + 1) { grid-column: auto; }
    .training-pill-inner { padding: 1.1rem 0.8rem 1rem; }
    .training-pill-icon { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 12px; }
    .training-pill-name { font-size: 0.82rem; }
}

/* ── How It Works — Process Steps ────────────────────────────── */
.sa-proc-section {
    padding: 5rem 0 4.5rem;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
}
.sa-proc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    position: relative;
}
.sa-proc-grid::before {
    content: '';
    position: absolute;
    top: 4.1rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--dhs-accent), var(--dhs-primary));
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}
.sa-proc-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.1rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.sa-proc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    border-color: var(--dhs-accent);
}
.sa-proc-num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--dhs-accent);
    background: rgba(var(--dhs-red-rgb), 0.09);
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}
.sa-proc-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dhs-primary), #0d2a5e);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    margin: 0 auto 0.9rem;
    box-shadow: 0 4px 12px rgba(7,23,48,0.25);
    transition: transform 0.25s;
}
.sa-proc-card:hover .sa-proc-icon { transform: scale(1.1); }
.sa-proc-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dhs-primary); margin: 0 0 0.4rem; }
.sa-proc-card p  { font-size: 0.81rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ── Dark Testimonials Section ────────────────────────────────── */
.sa-testi-dark-section {
    position: relative;
    padding: 5rem 0 4.5rem;
    background: #071730;
    overflow: hidden;
}
.sa-testi-dark-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../home/images/bg-services.jpg') center/cover no-repeat;
    opacity: 0.06;
    z-index: 0;
}
.sa-testi-dark-section .container { position: relative; z-index: 1; }

.sa-testi-dark-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.sa-testi-dark-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(var(--dhs-support-rgb, 47, 111, 143),0.35);
    transform: translateY(-4px);
}
.sa-testi-dark-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dhs-accent), var(--dhs-support));
    border-radius: 14px 14px 0 0;
}
.sa-testi-dark-card .sa-testi-quote { font-size: 2.5rem; color: var(--dhs-support); line-height: 1; margin-bottom: -0.5rem; }
.sa-testi-dark-card p { font-size: 0.88rem; color: rgba(255,255,255,0.78); line-height: 1.78; margin: 0; flex: 1; }
.sa-testi-dark-card .sa-testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sa-testi-dark-card .sa-testi-photo {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}
.sa-testi-dark-card .sa-testi-author strong { display: block; font-size: 0.9rem; color: #fff; font-weight: 700; }
.sa-testi-dark-card .sa-testi-author span  { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem; }
.sa-testi-dark-card .fi { width: 1.1rem; height: 1.1rem; border-radius: 50%; background-size: cover; }

/* ── CTA Strip ────────────────────────────────────────────────── */
.sa-cta-strip {
    position: relative;
    padding: 4.5rem 0;
    overflow: hidden;
}
.sa-cta-bg {
    position: absolute;
    inset: 0;
    background: url('../home/images/bg-cta.jpg') center/cover no-repeat;
    z-index: 0;
}
.sa-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,23,48,0.93) 0%, rgba(var(--dhs-red-rgb), 0.78) 100%);
}
.sa-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.sa-cta-text h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.sa-cta-text p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin: 0; }
.sa-cta-btns  { display: flex; gap: 1rem; flex-wrap: wrap; }
.sa-cta-btn-primary {
    display: inline-flex; align-items: center;
    padding: 0.8rem 1.75rem;
    background: var(--dhs-accent);
    color: #fff;
    font-size: 0.95rem; font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.sa-cta-btn-primary:hover { background: #a81e1f; color: #fff; transform: translateY(-2px); }
.sa-cta-btn-outline {
    display: inline-flex; align-items: center;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: #fff;
    font-size: 0.95rem; font-weight: 600;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.sa-cta-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* ── Responsive additions ─────────────────────────────────────── */
@media (max-width: 1199px) {
    .sa-proc-grid { grid-template-columns: repeat(3, 1fr); }
    .sa-proc-grid::before { display: none; }
}
@media (max-width: 991px) {
    .sa-proc-section { padding: 3.5rem 0 3rem; }
    .sa-testi-dark-section { padding: 3.5rem 0 3rem; }
    .sa-cta-strip { padding: 3rem 0; }
    .sa-cta-inner { flex-direction: column; text-align: center; }
    .sa-cta-btns { justify-content: center; }
}
@media (max-width: 575px) {
    .sa-proc-grid { grid-template-columns: 1fr 1fr; }
    .sa-proc-card:nth-child(5) { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; }
}
