/* Site-specific additions on top of the Landrick theme (style.css). */

/* Loading indicator shown while Blazor starts */
.ba-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Blazor unhandled-error banner */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Course filter links on /courses */
.course-filter a {
    color: darkviolet !important;
}

/* Typewriter cursor (was injected by the theme's plugins.init.js) */
.typewrite > .wrap {
    border-right: 0.08em solid transparent;
}

/* Cookie consent popup (Components/Shared/CookieBanner.razor) */
.ba-cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 420px;
    z-index: 1050;
}

/* Home page sections adapted from demo.html (Components/Home/PartnerUniversities, PopularCourses, ConsultationCta) */
.pe-eyebrow {
    color: #2f55d4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pe-tile {
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    transition: border-color 0.2s ease;
}

.pe-tile:hover {
    border-color: #2f55d4;
}

.pe-tile-icon {
    font-size: 36px;
    color: #77849c;
    transition: color 0.2s ease;
}

.pe-tile:hover .pe-tile-icon {
    color: #2f55d4;
}

.pe-tile-meta {
    font-size: 12px;
}

.pe-cta-panel {
    position: relative;
    overflow: hidden;
    background-color: #0f223d;
}

/* Decorative glow in the corner of the consultation panel */
.pe-cta-panel::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.3);
    filter: blur(100px);
    pointer-events: none;
}

.pe-cta-badge {
    color: #f59e0b;
    border: 1px solid rgba(29, 78, 216, 0.3);
    font-weight: 600;
}

.pe-cta-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.2);
    color: #b7c4ff;
}

/* Header logo with company name and tagline beside it (Layout/NavMenu.razor) */
/* The theme floats the logo, button and menu; keep those floats inside the header so they
   don't push page sections (like the home hero) sideways. */
#topnav > .container::after {
    content: "";
    display: table;
    clear: both;
}

#topnav .logo.pe-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    line-height: 1;
    padding: 0.5rem 0;
}

.pe-logo-text {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.pe-logo-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pe-logo-tagline {
    color: #c5c6cd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

@media (max-width: 575.98px) {
    #topnav .logo.pe-logo img {
        height: 44px;
    }

    .pe-logo-name {
        font-size: 13px;
    }

    .pe-logo-tagline {
        font-size: 8px;
    }
}

/* Home page hero (Components/Home/AdmissionHero.razor) */
.pe-hero {
    position: relative;
    clear: both;
    overflow: hidden;
    padding: 3rem 0 5rem;
    background-color: #0f223d;
    color: #fff;
}

@media (min-width: 992px) {
    .pe-hero {
        padding: 4rem 0 7rem;
    }
}

.pe-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pe-hero-glow-left {
    top: -8rem;
    left: -8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(29, 78, 216, 0.2);
    filter: blur(120px);
}

.pe-hero-glow-right {
    bottom: 0;
    right: 2.5rem;
    width: 500px;
    height: 500px;
    background: rgba(30, 64, 175, 0.15);
    filter: blur(140px);
}

.pe-hero-title {
    color: #fff;
    font-size: 28px;
    line-height: 36px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .pe-hero-title {
        font-size: 40px;
        line-height: 48px;
    }
}

@media (min-width: 992px) {
    .pe-hero-title {
        font-size: 56px;
        line-height: 64px;
        letter-spacing: -0.03em;
    }
}

.pe-hero-text {
    max-width: 42rem;
    color: #c5c6cd;
    font-size: 18px;
    line-height: 1.6;
}

.pe-hero-btn {
    padding: 0.875rem 1.75rem;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.pe-hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pe-hero-stat {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.pe-hero-stat-label {
    display: block;
    color: #c5c6cd;
    font-size: 13px;
    font-weight: 600;
}

.pe-hero-image {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pe-hero-image img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.pe-hero-image:hover img {
    transform: scale(1.05);
}

/* Dark fade at the bottom of the image, behind the caption */
.pe-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #060e18, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.pe-hero-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(6, 14, 24, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pe-hero-caption-sub {
    color: #c5c6cd;
    font-size: 13px;
}

.pe-hero-caption-tag {
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgba(29, 78, 216, 0.4);
    border-radius: 0.25rem;
    background: rgba(29, 78, 216, 0.3);
    color: #dce1ff;
    font-size: 11px;
    font-weight: 700;
}

/* Badge above the hero headline */
.pe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid rgba(29, 78, 216, 0.3);
    border-radius: 9999px;
    background-color: #0f223d;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pe-hero-badge i {
    font-size: 18px;
}

/* Site footer (Layout/Footer.razor), styled after demo.html */
.pe-footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0f223d;
    color: #c5c6cd;
}

.pe-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.pe-footer-text {
    color: #c5c6cd;
    font-size: 13px;
    line-height: 1.6;
}

.pe-footer-head {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pe-footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.pe-footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.pe-footer-contact i {
    color: #1d4ed8;
    font-size: 18px;
    margin-right: 0.375rem;
}

.pe-footer-muted {
    color: rgba(255, 255, 255, 0.7);
}

.pe-footer-links li {
    margin-bottom: 0.625rem;
}

.pe-footer-links a,
.pe-footer-legal a {
    color: #c5c6cd;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pe-footer-links a:hover,
.pe-footer-legal a:hover,
.pe-footer-contact a:hover {
    color: #f59e0b;
}

.pe-footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(6, 14, 24, 0.8);
    font-size: 12px;
}

.pe-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.pe-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 1rem;
    font-size: 13px;
}

.pe-footer-dot {
    color: rgba(255, 255, 255, 0.2);
}

/* Extra breathing room for the Partner Universities and Popular Courses sections on the home page */
.section.pe-section-roomy {
    padding: 60px 0;
}

@media (min-width: 992px) {
    .section.pe-section-roomy {
        padding: 80px 0;
    }
}

/* Same navy as the footer, e.g. the promo panel on /about */
.pe-bg-navy {
    background-color: #0f223d;
}
