/* ==========================================================================
   refine.css - additive design refinements + new page styles for
   Edu Connections. Loaded after style.css so it can override cleanly
   without having to touch the original (huge, template-sourced) stylesheet.
   ========================================================================== */

/* ---------- Scroll reveal (replaces the old, never-initialised wow.js) --- */
html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}
html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ---------- General polish -------------------------------------------- */
section { scroll-margin-top: 90px; }

.section-eyebrow {
    display: inline-block;
    color: #6a1a21;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.page-hero {
    background: linear-gradient(135deg, #192c41 0%, #1c2035 100%);
    color: #fff;
    padding: 7rem 0 4rem;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #cfd4de; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Service teaser cards (homepage) ---------------------------- */
.our_room .room { position: relative; }
.our_room .room a.room-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.our_room .room .room-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #6a1a21;
    font-weight: 600;
    font-size: .95rem;
}
.our_room .room .room-cta i,
.our_room .room .room-cta svg { transition: transform .2s ease; }
.our_room .room:hover .room-cta i,
.our_room .room:hover .room-cta svg { transform: translateX(4px); }

.view-all-cta {
    text-align: center;
    margin-top: 1rem;
}
.view-all-cta a {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 10px;
    background: rgba(20, 120, 213, 0.9);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}
.view-all-cta a:hover { background: #14a862; }

/* ---------- Destination country cards (homepage) ------------------------ */
.topic-area .single-topic { cursor: pointer; }
.topic-area .single-topic .topic-content-box .topic-content span.view-unis {
    display: block;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #e7c9cc;
    margin-top: .35rem;
}

/* ---------- Testimonials: full redesign --------------------------------- */
#testimonial { padding: 6rem 0 5rem; }

.testimonial-carousel .testimonial-item {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
    border: 1px solid rgba(20, 20, 40, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0.75rem 0.5rem 2.5rem;
}

.testimonial-item .quote-mark {
    color: #f0d3d6;
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: .75rem;
}

.testimonial-item .stars {
    color: #f5a425;
    font-size: .9rem;
    margin-bottom: .75rem;
}

.testimonial-item .testimonial-text {
    font-size: .98rem;
    line-height: 1.7;
    color: #3c3c3c;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-item .testimonial-person {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f2;
}

.testimonial-item .testimonial-person img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f6f4f9;
    flex-shrink: 0;
}

.testimonial-item .testimonial-person .ps-4 h5 { margin-bottom: .15rem; }
.testimonial-item .testimonial-person .ps-4 span { color: #6a1a21; font-size: .9rem; font-weight: 500; }

.testimonial-carousel .owl-nav button {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-radius: 50% !important;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #6a1a21 !important;
    font-size: 1.1rem !important;
}

/* ---------- Services page ------------------------------------------------ */
.service-detail {
    padding: 4rem 0;
    border-bottom: 1px solid #f0f0f2;
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20,20,40,0.10);
}
.service-detail h2 { margin-bottom: 1rem; }
.service-detail .summary { font-size: 1.1rem; color: #4a4a4a; margin-bottom: 1.25rem; }
.service-detail ul.highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-detail ul.highlights li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .75rem;
    color: #3c3c3c;
}
.service-detail ul.highlights li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #14a862;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: .85rem;
}
.service-detail .cta-row { margin-top: 1.5rem; }
.service-detail .cta-row a {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 10px;
    background: rgba(20, 120, 213, 0.9);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-right: .75rem;
}
.service-detail .cta-row a:hover { background: #14a862; }

/* ---------- Destinations overview + per-country page --------------------- */
.destination-grid { padding: 5rem 0; }
.destination-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(20,20,40,0.10);
    height: 100%;
}
.destination-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.65);
    transition: transform .4s ease;
}
.destination-card:hover img { transform: scale(1.06); }
.destination-card .destination-card-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem;
    color: #fff;
}
.destination-card .destination-card-label h3 { color: #fff; margin-bottom: .2rem; }
.destination-card .destination-card-label span {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #d9dee6;
}

.destination-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0 4rem;
    color: #fff;
}
.destination-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,18,30,0.55) 0%, rgba(15,18,30,0.85) 100%);
}
.destination-hero .container { position: relative; z-index: 1; text-align: center; }
.destination-hero h1 { color: #fff; }
.destination-hero p { color: #e3e6ec; max-width: 640px; margin: 0.75rem auto 0; }

.university-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(20,20,40,0.08);
    border: 1px solid rgba(20,20,40,0.06);
    height: 100%;
    text-align: center;
}
.university-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}
.university-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.university-card .uni-type { color: #6a1a21; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }
.university-card .uni-location { color: #777; font-size: .85rem; }

.destination-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f7f7f9;
    border-radius: 14px;
    color: #555;
    max-width: 560px;
    margin: 0 auto;
}

.destination-crumb {
    padding: 1.25rem 0;
}
.destination-crumb a { color: #6a1a21; text-decoration: none; font-weight: 600; }
.destination-crumb a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .page-hero { padding: 6rem 0 3rem; }
    .service-detail img { height: 220px; }
}
