@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Nunito:wght@400;500;600;700;800&display=swap');

/* =========================================
   VARIABLES & GLOBAL RESET
========================================= */
:root {
    /* Clean navy, teal and white theme */
    --clr-bg: #F4F8FC;
    --clr-surface: #FFFFFF;
    
    --clr-text-main: #17324D;
    --clr-text-muted: #667A8F;
    
    --clr-accent: #20A6A4;
    --clr-accent-hover: #178987;
    --clr-secondary: #0B3768;
    
    --clr-error: #EF4444;
    --clr-success: #10B981;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(11, 55, 104, 0.07);
    --shadow-md: 0 8px 22px rgba(11, 55, 104, 0.10);
    --shadow-lg: 0 16px 38px rgba(11, 55, 104, 0.14);
    
    --border-light: 1px solid #DFEAF3;

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--clr-text-main);
    background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FC 55%, #EAF3F8 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text-main);
    letter-spacing: -0.02em;
}

.text-accent { color: var(--clr-accent); }
.text-navy { color: var(--clr-secondary); }

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--clr-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border: 3px solid #FFFFFF; /* Thicker border */
    font-weight: 800; /* Bold text */
}

.btn-outline:hover {
    background: #FFFFFF;
    color: var(--clr-secondary);
    transform: translateY(-2px);
}

.w-100 { width: 100%; }

/* =========================================
   NAVIGATION
========================================= */
nav {
    background: #FFFFFF;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid #DCE8F1;
}

nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: var(--transition-normal);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 100px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--clr-secondary);
    margin-left: 15px;
    letter-spacing: -0.01em;
}

.logo-text small {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
    display: block;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
    color: var(--clr-accent);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--clr-accent);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--clr-secondary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* =========================================
   HERO SECTION (Centered Background)
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 80px;
    background: url('assets/images/default-hero.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 60, 0.7); /* Navy dark overlay */
    z-index: 1;
}

.hero::after {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: #FFFFFF;
    animation: slideInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 40px;
    max-width: 700px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-image-wrapper {
    display: none;
}

/* =========================================
   SERVICES SECTION (Clean Corporate Grid)
========================================= */
.services-section {
    padding: 200px 0 120px;
    background: transparent !important;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--clr-secondary);
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.15rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--clr-surface);
    border: var(--border-light);
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(2, 132, 199, 0.2);
    border-color: var(--clr-accent);
    outline: none;
}

.service-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image-container img,
.service-card:focus-visible .service-image-container img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--clr-secondary);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.service-card:hover .service-content h3,
.service-card:focus-visible .service-content h3 {
    color: var(--clr-accent);
}

.home-purpose-card .service-content h3 {
    color: var(--clr-accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.home-purpose-card .service-content p {
    color: var(--clr-text-muted);
}

/* Generated home-page images remain proportional and fully visible. */
.home-purpose-card .service-image-container {
    height: auto;
    background: #FFFFFF;
}

.home-purpose-card .service-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none !important;
}

.what-we-do-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #FFFFFF !important;
}

.what-we-do-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #FFFFFF;
}

.what-we-do-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 30px;
    flex: 1;
}

.what-we-do-card:hover {
    transform: translateY(-7px);
    border-color: rgba(32, 166, 164, 0.55) !important;
    box-shadow: 0 20px 42px rgba(11, 55, 104, 0.16) !important;
}

.why-choose-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #FFFFFF !important;
}

.why-choose-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #FFFFFF;
}

.why-choose-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 30px;
    flex: 1;
}

.why-choose-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 20px 42px rgba(11, 55, 104, 0.16) !important;
}

.service-detail-section {
    padding: 180px 0 100px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--clr-surface);
    border: var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.service-detail-image {
    width: 100%;
    height: clamp(300px, 48vw, 540px);
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.service-detail-content {
    padding: clamp(35px, 5vw, 65px);
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.service-detail-content h1 {
    color: var(--clr-secondary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 18px 0;
}

.service-detail-content h2 {
    color: var(--clr-secondary);
    font-size: 1.3rem;
    margin: 28px 0 12px;
}

.service-detail-content p,
.service-detail-content li {
    color: var(--clr-text-muted);
}

.service-detail-content ul {
    padding-left: 22px;
}

.service-detail-content li {
    margin-bottom: 9px;
}

.about-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-impact-card {
    overflow: hidden;
    background: var(--clr-surface);
    border: var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.about-impact-card img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
}

.about-impact-card-content {
    padding: 30px;
}

.about-impact-card-content h3 {
    color: var(--clr-secondary);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.about-impact-card-content p {
    color: var(--clr-text-muted);
    line-height: 1.75;
}

.about-story-image-wrap {
    align-self: center;
    width: 100%;
}

.about-page-hero {
    position: relative;
    width: 100%;
    margin-top: 120px;
    overflow: hidden;
    background: #071F3B;
}

.about-page-hero > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-page-hero-content {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(48%, 700px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 80px);
    color: #FFFFFF;
}

.about-page-hero-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #67D4CF;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-page-hero-content h1 {
    max-width: 620px;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-size: clamp(2rem, 3.5vw, 3.7rem);
    line-height: 1.08;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.about-page-hero-content p {
    max-width: 620px;
    margin-bottom: 13px;
    color: #EAF4FA;
    font-size: clamp(0.9rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.about-foundation-section {
    padding: clamp(75px, 8vw, 110px) 0;
    background: #F7FAFC;
}

.about-foundation-section .container {
    max-width: 1400px;
}

.about-foundation-features {
    display: grid;
    gap: 46px;
}

.about-foundation-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DFE7EF;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(11, 55, 104, 0.1);
}

.about-foundation-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF4F8;
}

.about-foundation-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-foundation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(35px, 5vw, 68px);
}

.about-foundation-content span {
    margin-bottom: 12px;
    color: var(--clr-accent);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-foundation-content h3 {
    margin-bottom: 22px;
    color: var(--clr-secondary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about-foundation-content p {
    margin-bottom: 16px;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-foundation-content p:last-child {
    margin-bottom: 0;
}

.about-foundation-feature-reverse .about-foundation-image {
    order: 2;
}

.about-foundation-feature-reverse .about-foundation-content {
    order: 1;
}

.about-who-section {
    padding: clamp(75px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.about-who-section .container {
    max-width: 1400px;
}

.about-who-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: clamp(38px, 6vw, 80px);
}

.about-who-visual {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-who-image {
    overflow: hidden;
    background: #F1F6F9;
    border: 1px solid #DFE7EF;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(11, 55, 104, 0.12);
}

.about-who-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-who-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--clr-accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-who-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(10px, 2vw, 28px) 0;
}

.about-who-content h2 {
    margin-bottom: 24px;
    color: var(--clr-secondary);
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.about-who-content > p {
    margin-bottom: 17px;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-who-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.about-who-highlights > div {
    min-height: 142px;
    padding: 18px;
    background: #F5F9FC;
    border: 1px solid #DFE7EF;
    border-top: 4px solid var(--clr-accent);
    border-radius: 12px;
}

.about-who-highlights strong {
    display: block;
    margin-bottom: 8px;
    color: var(--clr-secondary);
    font-size: 1rem;
}

.about-who-highlights p {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.about-story-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 545;
    display: block;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(15, 58, 94, 0.16);
}

.core-values-grid {
    align-items: stretch;
}

.core-value-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.core-value-card img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
}

.core-value-card-content {
    padding: 30px;
    flex: 1;
}

.service-back-link {
    color: var(--clr-accent);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .about-page-hero {
        margin-top: 120px;
    }

    .about-page-hero > img {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        opacity: 1;
    }

    .about-page-hero-content {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 32px 24px;
        background: linear-gradient(135deg, #071F3B, var(--clr-secondary));
    }

    .about-page-hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .about-page-hero-content p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .about-foundation-feature {
        grid-template-columns: 1fr;
    }

    .about-foundation-feature-reverse .about-foundation-image,
    .about-foundation-feature-reverse .about-foundation-content {
        order: initial;
    }

    .about-foundation-content {
        padding: 32px 25px;
    }

    .about-who-layout {
        grid-template-columns: 1fr;
    }

    .about-who-content {
        padding: 0;
    }

    .about-who-highlights {
        grid-template-columns: 1fr;
    }

    .about-who-highlights > div {
        min-height: 0;
    }

    .about-story-image-wrap {
        align-self: auto;
    }

    .about-story-image {
        height: auto;
    }

    .service-detail-image {
        height: 280px;
    }
}

.service-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================
   ENQUIRY SECTION (Clean Whitespace)
========================================= */
.enquiry-section {
    padding: 120px 0;
    background: var(--clr-bg);
    border-top: var(--border-light);
}

.enquiry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.enquiry-form-container {
    background: var(--clr-surface);
    padding: 50px;
    border-radius: 12px;
    border: var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-main);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: var(--clr-text-main);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: var(--clr-surface);
}

.form-error {
    color: var(--clr-error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.form-group.error input {
    border-color: var(--clr-error);
    background: #FEF2F2;
}

.form-group.error .form-error {
    display: block;
}

.success-message, .error-message {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 600;
    display: none;
}

.success-message {
    background: #ECFDF5;
    color: var(--clr-success);
    border: 1px solid #A7F3D0;
}

.error-message {
    background: #FEF2F2;
    color: var(--clr-error);
    border: 1px solid #FECACA;
}

/* =========================================
   FOOTER (Solid Navy)
========================================= */
footer {
    background: linear-gradient(135deg, #082E59 0%, #0B3768 100%);
    color: #F8FAFC;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #CBD5E1;
    line-height: 1.7;
    max-width: 400px;
}

.footer-logo {
    width: 110px;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact-box {
    margin-bottom: 20px;
}

.footer-email-box {
    margin-top: 22px;
}

.footer-email-box p {
    max-width: none;
    font-size: 0.9rem;
}

.footer-contact-box strong {
    display: block;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.footer-contact-box p {
    color: #93C5FD;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-contact-box a {
    overflow-wrap: anywhere;
}

.contact-detail a {
    color: var(--clr-text-muted);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--clr-accent);
}

.contact-hero-content {
    width: 50%;
    margin-left: 0;
    margin-right: auto;
    padding-left: 6%;
    padding-right: 0;
    position: relative;
    z-index: 1;
    text-align: left;
    color: #FFFFFF;
}

.contact-hero-content h1 {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 14px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
}

.contact-hero-content p {
    max-width: 520px;
    margin-left: 0;
    margin-right: auto;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

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

.admin-link {
    display: inline-block;
    margin-top: 12px;
    color: #94A3B8 !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: white !important;
}

/* =========================================
   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.show {
    display: flex;
}

.modal-content {
    background: var(--clr-surface);
    padding: 40px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    color: var(--clr-secondary);
    font-size: 1.6rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--clr-error);
}

.form-section-heading {
    color: #123f68;
    font-size: 1.15rem;
    margin: 30px 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid #dbe7ef;
}

.application-grid-wide { grid-column: 1 / -1; }
.upload-guidance {
    padding: 12px 15px;
    background: #eef8fb;
    border: 1px solid #c8e5eb;
    border-radius: 8px;
    color: #22556a;
    margin-bottom: 16px;
}
.upload-grid input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #9fb8c8;
    border-radius: 8px;
    background: #f8fbfd;
}
.declaration-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    margin: 24px 0;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    line-height: 1.5;
}
.declaration-check input { margin-top: 4px; flex: 0 0 auto; }
.application-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #116c82;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.application-download-link:hover { background: #0c5568; color: #fff; }

.login-note {
    text-align: center;
    margin-top: 20px;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
========================================= */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

    .about-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero::after {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .enquiry-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-impact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-content {
        width: 100%;
        padding: 0 8%;
        text-align: center;
    }

    .contact-hero-content p {
        margin: 0 auto;
    }

    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s ease;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a:not(.btn) {
        font-size: 1.2rem;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .enquiry-form-container {
        padding: 30px;
    }
}

/* =========================================
   REFERENCE WEBSITE VISUAL BEHAVIOUR
   Presentation-only overrides: content,
   structure, icons and backend stay intact.
========================================= */
img {
    display: block;
    max-width: 100%;
}

body {
    background: #FFFFFF;
    color: #475569;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

nav {
    border-top: 4px solid var(--clr-secondary);
    border-bottom: 1px solid #DFE7EF;
    box-shadow: 0 4px 15px rgba(11, 55, 104, 0.08);
}

.nav-container {
    max-width: 1440px;
    margin-inline: auto;
}

.nav-links a:not(.btn)::after {
    background: linear-gradient(90deg, var(--clr-secondary), var(--clr-accent));
}

.hero {
    min-height: clamp(520px, calc(100svh - 120px), 680px) !important;
    height: clamp(520px, calc(100svh - 120px), 680px);
    padding-top: 120px !important;
    padding-bottom: 0 !important;
    isolation: isolate;
}

.slider-bg::after {
    background: linear-gradient(
        90deg,
        rgba(5, 32, 66, 0.92) 0%,
        rgba(11, 55, 104, 0.72) 42%,
        rgba(11, 55, 104, 0.18) 76%,
        rgba(11, 55, 104, 0.04) 100%
    ) !important;
}

.slide {
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #061f3b;
}

.hero-content h1 {
    font-size: clamp(2.25rem, 4vw, 3.4rem) !important;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.7;
}

.services-section,
.enquiry-section {
    padding-top: clamp(72px, 8vw, 110px);
    padding-bottom: clamp(72px, 8vw, 110px);
}

.section-header {
    margin-bottom: clamp(42px, 6vw, 72px);
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
}

.services-grid,
.about-impact-grid,
.core-values-grid {
    gap: clamp(22px, 2.5vw, 34px) !important;
    align-items: stretch;
}

.service-card,
.about-impact-card,
.core-value-card,
.timeline-card,
.enquiry-form-container {
    border: 1px solid #DFE7EF !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(11, 55, 104, 0.09) !important;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease !important;
}

.service-card,
.about-impact-card,
.core-value-card {
    height: 100%;
}

.service-card:hover,
.service-card:focus-visible,
.about-impact-card:hover,
.core-value-card:hover,
.timeline-card:hover {
    transform: translateY(-7px);
    border-color: rgba(32, 166, 164, 0.55) !important;
    box-shadow: 0 20px 42px rgba(11, 55, 104, 0.16) !important;
}

.service-image-container {
    height: clamp(220px, 22vw, 280px);
    background: #EAF2F7;
}

.service-image-container img,
.about-impact-card img,
.core-value-card img,
.objective-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.service-image-container img,
.about-impact-card img,
.core-value-card img {
    transition: transform 0.55s ease;
}

.service-card:hover img,
.about-impact-card:hover img,
.core-value-card:hover img {
    transform: scale(1.035);
}

.about-impact-card img {
    height: clamp(230px, 24vw, 310px);
}

.core-value-card img {
    height: clamp(210px, 22vw, 280px);
}

.about-story-image-wrap {
    overflow: hidden;
    border-radius: 16px;
}

.about-story-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0;
}

.service-detail-card {
    border-radius: 16px;
}

.service-detail-image {
    height: clamp(340px, 52vw, 650px);
    object-fit: cover;
    object-position: center;
}

.objectives-page .timeline-card {
    overflow: hidden;
}

.objectives-page .objective-image {
    min-height: 320px !important;
    height: 100% !important;
}

.contact-hero {
    min-height: clamp(320px, 36vw, 540px) !important;
    aspect-ratio: auto !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 32, 66, 0.78),
        rgba(11, 55, 104, 0.28) 48%,
        rgba(11, 55, 104, 0.06)
    );
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-support-section {
    padding: clamp(75px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.contact-support-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(38px, 6vw, 80px);
    max-width: 1400px;
    margin: 0 auto;
}

.contact-support-image {
    overflow: hidden;
    background: #F1F6F9;
    border: 1px solid #DFE7EF;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(11, 55, 104, 0.12);
}

.contact-support-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.contact-support-content > span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--clr-accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-support-content h2 {
    margin-bottom: 22px;
    color: var(--clr-secondary);
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-support-content > p {
    margin-bottom: 16px;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-support-points {
    display: grid;
    gap: 12px;
    margin: 26px 0 20px;
}

.contact-support-points > div {
    padding: 16px 18px;
    background: #F5F9FC;
    border: 1px solid #DFE7EF;
    border-left: 4px solid var(--clr-accent);
    border-radius: 10px;
}

.contact-support-points strong,
.contact-support-points small {
    display: block;
}

.contact-support-points strong {
    margin-bottom: 3px;
    color: var(--clr-secondary);
}

.contact-support-points small {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: var(--clr-text-main);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group textarea {
    min-height: 135px;
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(32, 166, 164, 0.15);
}

.site-footer {
    border-top: 4px solid var(--clr-accent);
}

@media (max-width: 1024px) {
    .hero {
        min-height: 560px !important;
        height: 560px;
    }
}

@media (max-width: 768px) {
    nav {
        border-top-width: 3px;
    }

    .hero {
        min-height: 520px !important;
        height: 520px;
        padding-top: 120px !important;
    }

    .slider-bg::after {
        background: rgba(5, 32, 66, 0.62) !important;
    }

    .hero-content p {
        font-family: 'Nunito', sans-serif;
    }

    .service-image-container,
    .about-impact-card img,
    .core-value-card img {
        height: 240px;
    }

    .objectives-page .objective-image {
        min-height: 240px !important;
        max-height: 300px !important;
    }

    .contact-hero {
        min-height: 360px !important;
        margin-top: 120px !important;
    }

    .contact-hero::before {
        background: rgba(5, 32, 66, 0.5);
    }

    .contact-support-layout {
        grid-template-columns: 1fr;
    }
}
/* Application form */
.application-page { padding-top: 110px; background: #f4f9fc; }
.standalone-form-page .application-page { padding-top: 0; min-height: 100vh; }
.application-heading {
    padding: 72px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #073c70, #0c6d86 62%, #1fa9a6);
}
.application-heading span { color: #a9f0e8; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.application-heading h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); margin: 10px 0 14px; }
.application-heading p { max-width: 760px; margin: 0 auto; color: #e8f7fa; font-size: 1.08rem; line-height: 1.75; }
.application-form-section { padding: 65px 0 85px; }
.application-form {
    max-width: 1050px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(8, 57, 91, .12);
    border-top: 5px solid #20aaa7;
}
.application-form-title { display: flex; gap: 16px; align-items: center; margin-bottom: 32px; }
.application-form-title > i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #e7f8f7; color: #168d8b; font-size: 1.4rem; }
.application-form-title h2 { color: #0a416d; margin: 0 0 4px; }
.application-form-title p { margin: 0; color: #718096; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.application-form .form-group { margin: 0; }
.application-form label { display: block; color: #153f61; font-weight: 700; margin-bottom: 8px; }
.application-form input,
.application-form select {
    width: 100%; padding: 14px 15px; border: 1px solid #cbd9e5; border-radius: 8px;
    font: inherit; color: #17354d; background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.application-form input:focus,
.application-form select:focus { outline: none; border-color: #1aa6a3; box-shadow: 0 0 0 3px rgba(26, 166, 163, .14); }
.application-submit { margin-top: 28px; border: 0; cursor: pointer; }
.application-submit:disabled { opacity: .65; cursor: wait; }
.application-message { display: none; margin-top: 24px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.application-message.success { display: block; color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; }
.application-message.error { display: block; color: #b42318; background: #fff1f0; border: 1px solid #fecaca; }
.application-fallback-success {
    display: none;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    font-weight: 700;
}
.application-fallback-success:target { display: block; }
.auto-fields-note { margin: -10px 0 24px; padding: 13px 16px; border-radius: 8px; color: #0a5270; background: #eefaff; border: 1px solid #bee8f3; font-weight: 600; }
.auto-fields-note i { margin-right: 7px; }
@media (max-width: 720px) {
    .application-page { padding-top: 80px; }
    .application-grid { grid-template-columns: 1fr; }
    .application-heading { padding: 52px 20px; }
}
