/* ============================================================
   AIIP Study Abroad — standalone site styles
   Loaded after css/aiip.css and css/footer-live.css
   ============================================================ */

/* --- Brand accent: study/education gold + deep blue --- */
:root {
    --sa-accent: #b08c5d;
    --sa-dark: #0b1f3a;
    --sa-dark-2: #12294d;
    --sa-soft: #f4f1ea;
}

/* --- Standalone header --- */
.sa-header .aiip-topbar,
.sa-topbar {
    background-color: var(--sa-dark) !important;
}

/* Mobile topbar layout — contacts left, social icons right (matches the
   main site's .aiip-mobile-topbar-inner). */
.sa-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 38px;
    padding: 0.35rem 0;
}

.sa-topbar-contacts a,
.sa-topbar-contacts i {
    color: rgba(255, 255, 255, 0.75);
}

/* Social icons use the same official brand-color circles as the footer:
   the .ct-icon-container background comes from the --official-color set
   inline on each link (styled by css/aiip.css). Here we only keep the
   standalone sizing/hover so mobile and desktop match the desktop topbar. */
.sa-topbar-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.sa-topbar-socials a .ct-icon-container {
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border-radius: 100%;
    background-color: var(--official-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sa-topbar-socials a .ct-icon-container svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

.sa-topbar-socials a:hover {
    transform: translateY(-2px);
}

.sa-topbar-socials a:hover .ct-icon-container {
    opacity: 0.8;
}

.sa-back-btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.sa-main-nav .nav-link {
    font-size: 0.92rem;
}

.sa-main-nav .nav-link.active {
    color: var(--sa-accent) !important;
}

/* --- Hero --- */
.sa-hero {
    position: relative;
    padding: 7rem 0 6rem;
    background-color: var(--sa-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.sa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(7, 18, 38, 0.92) 20%, rgba(11, 31, 58, 0.72) 60%, rgba(11, 31, 58, 0.45) 100%);
    z-index: 1;
}

.sa-hero > .container {
    position: relative;
    z-index: 2;
}

.sa-hero-badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd9a0;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sa-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: #fff;
}

.sa-hero p.lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 46rem;
}

.sa-hero-actions .btn {
    padding: 0.8rem 1.7rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.sa-hero-actions .btn-sa-gold {
    background: var(--sa-accent);
    border-color: var(--sa-accent);
    color: #fff;
}

.sa-hero-actions .btn-sa-gold:hover {
    background: #c9a36d;
    border-color: #c9a36d;
    color: #fff;
}

.sa-hero-actions .btn-sa-ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.sa-hero-actions .btn-sa-ghost:hover {
    background: #fff;
    color: var(--sa-dark);
}

/* --- Section headings reuse aiip styles with gold accent --- */
.sa-section .aiip-section-label {
    color: var(--sa-accent);
}

/* --- Feature / highlight cards --- */
.sa-feature-card {
    background: transparent;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
}

.sa-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--sa-dark), var(--sa-dark-2));
    color: #ffd9a0;
    font-size: 1.6rem;
}

.sa-feature-card h5 {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.sa-feature-card p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.92rem;
}

/* --- Apply banner --- */
.sa-apply-banner {
    background: linear-gradient(120deg, var(--sa-dark) 0%, var(--sa-dark-2) 100%);
    border-radius: 1.1rem;
    padding: 2.5rem 2rem;
    color: #fff;
}

.sa-apply-banner h3 {
    font-weight: 700;
}

.sa-apply-banner .btn {
    min-width: 200px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.55rem;
    font-weight: 600;
}

.sa-apply-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- Contact strip --- */
.sa-contact-card {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sa-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0.75rem;
    background: rgba(176, 140, 93, 0.14);
    color: var(--sa-accent);
    font-size: 1.15rem;
}

.sa-contact-card h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--sa-dark);
}

.sa-contact-card a,
.sa-contact-card p {
    color: #6c757d;
    margin-bottom: 0;
}

.sa-contact-card a:hover {
    color: var(--sa-accent);
}

/* --- Footer accent --- */
.sa-footer .widget-title {
    color: #ffd9a0 !important;
}

/* --- Sub-page hero (breadcrumb banner) --- */
.sa-page-hero {
    position: relative;
    padding: 4.5rem 0 3.75rem;
    background-color: var(--sa-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.sa-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(7, 18, 38, 0.94) 25%, rgba(11, 31, 58, 0.78) 65%, rgba(11, 31, 58, 0.5) 100%);
    z-index: 1;
}

.sa-page-hero > .container {
    position: relative;
    z-index: 2;
}

.sa-page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.14;
    margin-bottom: 1rem;
    color: #fff;
}

.sa-page-hero .sa-hero-badge {
    margin-bottom: 0.9rem;
}

.sa-page-hero .lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 52rem;
    margin-bottom: 1.4rem;
}

.sa-breadcrumb {
    margin: 0;
}

.sa-breadcrumb .breadcrumb-item,
.sa-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.sa-breadcrumb .breadcrumb-item a:hover {
    color: #ffd9a0;
}

.sa-breadcrumb .breadcrumb-item.active {
    color: #ffd9a0;
}

.sa-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
    content: "/";
}

/* --- Programme cards --- */
.sa-programme-card {
    background: transparent;
    padding: 1.75rem 1.5rem;
    height: 100%;
}

.sa-programme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--sa-dark), var(--sa-dark-2));
    color: #ffd9a0;
    font-size: 1.4rem;
}

.sa-programme-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--sa-dark);
}

.sa-programme-card p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.93rem;
}

/* --- Services hub section blocks --- */
.sa-service-block {
    background: transparent;
    padding: 1.75rem 1.5rem;
    height: 100%;
}

.sa-service-block .sa-service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: rgba(176, 140, 93, 0.14);
    color: var(--sa-accent);
    font-weight: 700;
}

.sa-service-block h5 {
    font-weight: 600;
    color: var(--sa-dark);
}

.sa-service-block p {
    color: #6c757d;
    font-size: 0.93rem;
}

/* --- Checklist rows --- */
.sa-check-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #eee6d8;
}

.sa-check-item:last-child {
    border-bottom: 0;
}

.sa-check-item i {
    margin-top: 0.2rem;
    color: var(--sa-accent);
    flex-shrink: 0;
}

.sa-check-item span {
    color: #4a5568;
    font-size: 0.95rem;
}

/* --- Steps --- */
.sa-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sa-step .sa-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sa-dark), var(--sa-dark-2));
    color: #ffd9a0;
    font-weight: 700;
    font-size: 0.95rem;
}

.sa-step p {
    margin: 0.35rem 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* --- Notice / disclaimer box --- */
.sa-notice-box {
    background: rgba(176, 140, 93, 0.08);
    padding: 1.25rem 1.5rem;
}

.sa-notice-box h6 {
    color: var(--sa-accent);
    font-weight: 600;
}

.sa-notice-box p {
    margin-bottom: 0;
    color: #5c6672;
    font-size: 0.92rem;
}

/* --- Webinar cards --- */
.sa-webinar-card {
    background: transparent;
    overflow: hidden;
}

.sa-webinar-head {
    background: linear-gradient(120deg, var(--sa-dark), var(--sa-dark-2));
    color: #fff;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sa-webinar-head i {
    color: #ffd9a0;
    font-size: 1.3rem;
}

.sa-webinar-body {
    padding: 1.5rem;
}

.sa-webinar-body .sa-topic-list li {
    padding: 0.35rem 0;
    color: #4a5568;
}

.sa-webinar-body .sa-topic-list li i {
    color: var(--sa-accent);
    margin-right: 0.5rem;
}

.sa-webinar-meta {
    font-size: 0.88rem;
    color: #6c757d;
}

.sa-webinar-meta i {
    color: var(--sa-accent);
    width: 1.2rem;
}

/* --- Next webinar highlight --- */
.sa-next-webinar {
    background: linear-gradient(120deg, var(--sa-dark) 0%, var(--sa-dark-2) 100%);
    border-radius: 1.1rem;
    padding: 2.25rem 2rem;
    color: #fff;
}

.sa-next-webinar .sa-hero-badge {
    border-color: rgba(255, 217, 160, 0.5);
    color: #ffd9a0;
}

.sa-next-webinar h3 {
    font-weight: 700;
}

.sa-next-webinar .sa-webinar-meta {
    color: rgba(255, 255, 255, 0.8);
}

.sa-next-webinar .sa-webinar-meta i {
    color: #ffd9a0;
}

/* --- Contact form card --- */
.sa-form-card {
    background: transparent;
    padding: 2rem;
}

@media (max-width: 991.98px) {
    .sa-hero {
        padding: 4.5rem 0 3.5rem;
    }
    .sa-page-hero {
        padding: 3.4rem 0 2.9rem;
    }
    .sa-back-btn {
        display: none !important;
    }
}
