/* Shared inner-page UI — heroes, sections, cards, forms */

.page-hero {
    position: relative;
    background-color: #0f172a;
    overflow: hidden;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.82) 55%, rgba(15, 23, 42, 0.94) 100%),
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 55%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 28px 0 36px;
}

.page-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: #0f172a;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.page-hero-lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 12px;
    font-size: 0.98rem;
    line-height: 1.55;
}

.page-hero .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-hero .breadcrumb-item a:hover {
    color: #D4AF37;
}

.page-hero .breadcrumb-item.active {
    color: #D4AF37;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

.page-hero-wave {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-bottom: -1px;
}

.page-hero-wave svg {
    display: block;
    width: 100%;
    height: 36px;
}

.page-section {
    padding: 72px 0;
}

.page-section-sm {
    padding: 56px 0;
}

.page-section-light {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.page-section-white {
    background: #fff;
}

.page-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #0f172a;
    margin-bottom: 10px;
}

.page-section-lead {
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-info-card:hover {
    transform: translateY(-6px);
    border-color: #2563EB;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.page-info-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 58, 138, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.page-info-card:hover .page-info-icon {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
}

.page-info-icon i {
    font-size: 1.45rem;
    color: #2563EB;
    transition: color 0.3s ease;
}

.page-info-card:hover .page-info-icon i {
    color: #fff;
}

.page-info-card h5 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-info-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.page-info-card a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.page-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.page-form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    color: #0f172a;
    margin-bottom: 24px;
}

.page-form-label {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.page-form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

.page-form-control:focus {
    background: #fff;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.page-btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    color: #fff;
    padding: 13px 32px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    color: #fff;
}

.page-dark-panel {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    color: #fff;
}

.page-dark-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    margin-bottom: 20px;
}

.page-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    height: 280px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.page-direction-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-direction-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-direction-item i {
    color: #D4AF37;
    margin-top: 3px;
}

.page-direction-item strong {
    display: block;
    margin-bottom: 4px;
}

.page-direction-item span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
}

.page-quick-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.page-quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.page-quick-card i {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.page-quick-card h5 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-quick-card p {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 0;
}

.page-quick-card.call i { color: #22c55e; }
.page-quick-card.whatsapp i { color: #25D366; }
.page-quick-card.email i { color: #2563EB; }
.page-quick-card.apply i { color: #0f172a; }

.page-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1.15rem;
}

.page-social-link:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    color: #fff;
    transform: translateY(-3px);
}

.page-alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    color: #15803d;
    margin-bottom: 20px;
}

.cms-content {
    padding: 56px 0;
}

.cms-content-body {
    color: #475569;
    line-height: 1.8;
    font-size: 1.02rem;
}

.cms-card {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cms-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

.cms-feature-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cms-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

.cms-feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    font-size: 1.35rem;
}

.cms-feature-card h5 {
    color: #1e293b;
    font-weight: 700;
}

/* Program & academics pages */
.program-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.program-split-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    min-height: 320px;
}

.program-split-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.program-pathway-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 340px;
    display: block;
    text-decoration: none;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.program-pathway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.18);
}

.program-pathway-card img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-pathway-card:hover img {
    transform: scale(1.05);
}

.program-pathway-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
}

.program-pathway-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.program-pathway-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.55;
}

.program-pathway-link {
    color: #D4AF37;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.program-highlight-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.program-highlight-card:hover {
    border-color: #2563EB;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}

.program-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 58, 138, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.program-photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.program-photo-caption {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 8px;
}

.program-cta-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    color: #fff;
}

.program-cta-band h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.program-cta-band p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 20px;
}

.program-cta-band .page-btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: #0f172a;
}

@media (max-width: 991px) {
    .program-split { grid-template-columns: 1fr; }
    .program-split-image { min-height: 260px; }
    .program-split-image img { min-height: 260px; }
}

@media (max-width: 575px) {
    .page-hero-content { padding: 22px 0 28px; }
    .page-section { padding: 52px 0; }
    .page-form-card, .page-dark-panel { padding: 24px 18px; }
}

/* Legal documents */
.legal-document {
    color: #334155;
}

.legal-updated {
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.legal-table {
    margin-bottom: 0;
    min-width: 640px;
}

.legal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
}

.legal-inline-link {
    color: #2563eb;
    text-decoration: underline;
}

.legal-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: rgba(15, 23, 42, 0.97);
    color: #fff;
    border-top: 3px solid #f59e0b;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.25);
    padding: 20px 0;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cookie-consent-text {
    color: rgba(255, 255, 255, 0.82);
    max-width: 760px;
}

.cookie-consent-links {
    margin-top: 10px;
    font-size: 0.9rem;
}

.cookie-consent-links a {
    color: #fbbf24;
    text-decoration: none;
}

.cookie-consent-links a:hover {
    color: #fff;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-essential,
.btn-cookie-accept {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    border: none;
}

.btn-cookie-essential {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-cookie-essential:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
}

.cookie-settings-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1085;
}

.cookie-settings-panel {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.cookie-settings-panel:not([hidden]) {
    pointer-events: auto;
}

.cookie-settings-card {
    width: min(100%, 520px);
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-setting-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

body.cookie-settings-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        flex: 1;
    }
}
