:root {
    /* Brand Colors */
    --primary: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    /* Dark Royal Blue */
    --primary-light: #60a5fa;
    /* Light Blue */
    --secondary: #1e3a8a;
    /* Navy Blue */
    --accent: #3b82f6;
    /* Bright Blue */

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    /* Requested Body Color */
    --bg-blue: #eff6ff;
    /* Blue 50 */

    /* Text */
    --text-dark: #0f172a;
    /* Slate 900 */
    --text-gray: #475569;
    /* Slate 600 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --border-blue: #dbeafe;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow: rgba(15, 23, 42, 0.08);
}



.uk-loan-page-container {
    max-width: 100%;
    margin: 0;
    padding: 10px 135px;
}



/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 90px 20px 60px;
    overflow: hidden;
    background: radial-gradient(50% 50% at 50% 50%, #EFF6FF 0%, #FFFFFF 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(19deg, rgba(9, 111, 113, 1) 0%, rgba(4, 32, 72, 1) 100%);
    z-index: 0;
}

.hero-badge {
    display: block;
    padding: 0;
    margin: 5px 0;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 34px;
    animation: fadeInUp 1s ease;
    opacity: 0;
    animation-fill-mode: forwards;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    box-shadow: none;
}

.hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 43px;
    /* Reduced from 56px to ensure 2 lines */
    line-height: 1.3;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    position: relative;
    z-index: 1;
}

.highlight {
    color: #fec64f;
    /* Brand gold */
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    /* Extra Light */
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0px;
    color: #FFFFFF;
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
    z-index: 1;
}

.partners {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.partners p {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    width: 550px;
    height: 85px;
    align-items: center;
}

.partner-list img {
    height: 70px;
    width: auto;
    object-fit: contain;
    padding: 0.4rem 0.8rem;
    background: var(--bg-white);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.partner-list img:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Hero Grid Layout */
.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.hero-text {
    flex: 1.2;
    max-width: 900px;
    z-index: 1;
}

.hero-image {
    flex: 0.8;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: relative;
    /* Precise positioning for desktop */
    transform: translateX(100px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: inline-block;
    overflow: hidden;
}

/* Gradient Overlay from Right to Left */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Matching the dark hero background flow */
    background: linear-gradient(to left, rgba(21, 52, 97, 0.8) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-image img {
    /* Exact Dimensions for Desktop */
    width: 663px;
    height: 462px;
    display: block;
    object-fit: cover;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fec64f;
    color: black !important;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-primary:hover {
    background: #fec64f;
    color: black !important;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #096F71;
    color: #fec64f;
    border: 2px solid #096F71;
}

.btn-secondary:hover {
    border-color: #fec64f;
    background: #fec64f;
    color: #096F71;
    box-shadow: 0 5px 20px rgba(9, 111, 113, 0.4);
}

/* Sections */
section {
    padding: 40px 20px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 49px;
    line-height: 60px;
    letter-spacing: 0px;
    margin-bottom: 0.75rem;
    color: black;
    text-align: center;
    /* Using Navy for headings */
}

.subtitle {
    text-align: center;
    color: #000000;
    margin-bottom: 2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0px;
}

/* Cards */
.card {
    background: #dae3e2;
    border: 4px solid #ffffff;
    border-radius: 30px;
    padding: 2.8rem;
    transition: all 0.3s ease;
    box-shadow: none;
    text-align: center;
    height: 100%;
}

.card:nth-child(even) {
    background: #ede9de;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    /* Regular */
    font-size: 24px;
    line-height: 29.4px;
    letter-spacing: 0px;
    color: #212529;
    margin-bottom: 0.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Purpose */
.purpose {
    background: #e5e5e5;
}

/* Eligibility Section Redesign */
.eligibility {
    background: #ffffff;
}

.eligibility-content {
    background: #f8f9fb;
    padding: 3rem;
    border-radius: 40px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.eligibility-header h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.eligibility-lead {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.checklist {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.checklist li {
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li i {
    color: #096f71;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.checklist li:hover {
    padding-left: 0.5rem;
    color: #096f71;
}

.eligibility-note {
    margin-top: 2.5rem;
    padding: 1.25rem 2rem;
    background: #042048;
    color: #ffffff;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(4, 32, 72, 0.15);
}

.eligibility-note i {
    color: #fec64f;
    /* Accent gold */
    font-size: 1.2rem;
}

/* Ensure split alignment stays consistent */
.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: stretch;
}

.stats {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #dae3e2;
    border: 4px solid #ffffff;
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.stat-card:nth-child(even) {
    background: #ede9de;
}

.stat-num {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
}

.stat-label {
    color: #000000;
    margin-top: 0.5rem;
}

/* Courses */
.courses {
    background: #e5e5e5;
}

.intake-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #08706f;
    border-radius: 50px;
    margin: 0 auto 3rem;
    display: block;
    width: fit-content;
    color: white;
    font-weight: 600;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.course-category {
    background: #dae3e2;
    border: 2px solid #94a3b8;
    border-radius: 30px;
    padding: 1rem;
    box-shadow: none;
    text-align: center;
    transition: all 0.3s ease;
}

.course-category:nth-child(even) {
    background: #ede9de;
}

.course-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.category-header h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29.4px;
    color: #212529;
    margin-bottom: 0.2rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(14, 145, 143, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: hsl(0, 0%, 0%);
    font-weight: 700;
}

.course-items div {
    padding: 0.2rem 1.5rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    font-weight: 500;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.course-items div::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.5rem;
    color: #096f71;
}

.course-items div:hover {
    transform: translateX(5px);
    color: #096f71;
}

.note {
    text-align: center;
    font-size: 18px;
    color: #000000;
    font-weight: 400;
    margin: 2rem 0;
}

.cta-center {
    text-align: center;
    margin-top: 1rem;
}

/* Documents */
.documents {
    background: #f8f9fb;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.doc-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 24px;
    padding: 2.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #042048;
    height: 100%;
}

.doc-card i {
    font-size: 1.75rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Colorful Icons */
.doc-card:nth-child(1) i {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.doc-card:nth-child(2) i {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
}

.doc-card:nth-child(3) i {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.doc-card:nth-child(4) i {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.doc-card:nth-child(5) i {
    color: #db2777;
    background: rgba(219, 39, 119, 0.1);
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.doc-card:hover:nth-child(1) i {
    background: #2563eb;
    color: #fff;
}

.doc-card:hover:nth-child(2) i {
    background: #0891b2;
    color: #fff;
}

.doc-card:hover:nth-child(3) i {
    background: #059669;
    color: #fff;
}

.doc-card:hover:nth-child(4) i {
    background: #7c3aed;
    color: #fff;
}

.doc-card:hover:nth-child(5) i {
    background: #db2777;
    color: #fff;
}

.doc-card small {
    font-weight: 400;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive adjustments for 5 columns */
@media (max-width: 1100px) {
    .doc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* Process */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
}

/* Horizontal line for desktop */
.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Center of 60px step-num */
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 60px;
    height: 60px;
    background: #042048;
    /* Brand dark blue */
    border: 4px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(4, 32, 72, 0.15);
    transition: transform 0.3s ease;
}

.step:hover .step-num {
    transform: scale(1.1);
    background: #096f71;
    /* Accent teal */
}

.step h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #042048;
    margin-bottom: 0.5rem;
}

.step p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* Mobile Timeline Responsiveness */
@media (max-width: 991px) {
    .timeline {
        flex-direction: column;
        gap: 3.5rem;
        margin: 3rem auto;
        max-width: 500px;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 31px;
        /* Align with step-num center */
        right: auto;
    }

    .step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        padding: 0;
    }

    .step-num {
        margin: 0;
        flex-shrink: 0;
    }

    .step p {
        margin: 0;
        max-width: 100%;
    }
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 2rem auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 1.75rem 2rem;
    text-align: left;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 670;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q span {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-q span {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
}

.faq-item.active .faq-a {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

/* Forms */
.form {
    max-width: 800px;
    margin: 2rem auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form textarea {
    margin-bottom: 1rem;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Main Footer */
.main-footer {
    background: linear-gradient(19deg, rgba(9, 111, 113, 1) 0%, rgba(4, 32, 72, 1) 100%);
    color: #ffffff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-col h3 {
    color: #fec64f;
    /* Brand gold */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fec64f;
    padding-left: 5px;
}

.footer-advisors {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-contact-item i {
    font-size: 1.5rem;
    color: #fec64f;
}

.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    color: var(--text-dark);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}