/* ========================================================= 
   GLOBAL RESET & BASE STYLES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Avenir Next', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================================= 
   LAYOUT & CONTAINERS
========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
    scroll-margin-top: 90px;
}

footer {
    background: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ========================================================= 
   HEADER & NAVIGATION
========================================================= */
header nav.container {
    padding: 0 20px; /* Ensures space on the sides of the screen */
}

header {
    background: #ffffff;
    color: #1e3a5f;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 1001;
    flex-shrink: 1; /* prevents logo from being squeezed */
    min-width: 0; /* Ensures the flex item can shrink */
}

.logo img {
    height: 50px; !important;
    width: auto; !important;
    flex-shrink: 0; /* prevents image from being squeezed */
    object-fit: contain; /* ensures aspect ratio is maintained */
    max-width: 100%; !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: #1e3a5f;
        text-decoration: none;
        transition: opacity 0.3s;
        font-weight: 500;
    }

        .nav-links a:hover {
            opacity: 0.8;
        }

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #1e3a5f;
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================================= 
   HERO SECTION
========================================================= */
.hero {
    background: #1e3a5f;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(20, 40, 70, 0.98) 100%);
        z-index: 0;
    }

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

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero .tagline {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        opacity: 0.95;
    }

/* ========================================================= 
   BUTTONS & CTA
========================================================= */
.cta-section {
  background: #1e4a7f;    
     color: white;
     text-align: center;
     padding: 5rem 0;
}

.cta-section h2 {
     color: white;
}

.intro-section {
    background: #1e4a7a;
    color: white;
    font-size: 1.5rem;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.results-section {
    background: #f8fafc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-secondary {
    background: white;
    color: #1e3a5f;
}
/* ========================================================= 
   TYPOGRAPHY
========================================================= */
h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
    text-align: center;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #334155;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

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

.feature-card h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}
/* ========================================================= 
   SERVICE CARDS
========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.services-grid2 {
    display: grid;
    grid-template-columns: 1fr; 
    row-gap: 2rem; 
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative; 
    transition: transform 0.2s;
}
.service-card:active {
  transform: translateY(4px); /* Moves the card when clicked */
}
    .service-card h3 {
        color: #1e3a5f;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .service-card h4 {
        color: #1e3a5f;
        margin-bottom: 1rem;
        font-weight: 600;
        font-size: 1.5rem;
    }

    .service-card ul {
        list-style: none;
        padding-left: 0;
    }

    .service-card li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

        .service-card li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #f59e0b;
            font-weight: bold;
        }


    .services-card-link p {
        flex-grow: 1;
    }

.services-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.service-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Places the link on top of other content */
  text-decoration: none; /* Removes any default underlines */
  outline: none; /* Removes focus border (optional, use for aesthetics) */
  cursor: pointer;
}
  

.service-section-a {
    background: #f8fafc;
 }

.service-section-a h3 {
    font-size: 2rem;
 }

/* Ensure the text stays readable and is not accidentally underlined */
.service-card h3, 
.service-card li {
  text-decoration: none !important;
}
/* Keep content visible but don't block clicks */
.service-card > h3,
.service-card > ul {
  position: relative;
  z-index: 5;
  pointer-events: none; /* Don't block the link underneath */
}

.service-section-b {
    background: white;
}

.service-section-b h3 {
    font-size: 2rem;
 }

.section-intro2 {
     padding: 0.5rem 0;
     padding-left: 1.5rem;
     position: relative;
}

/* ========================================================= 
   FRAMEWORKS TABLE STYLES
   ========================================================= */

/* Global Table Borders and Centering */
.frameworks-table,
.frameworks-table th,
.frameworks-table td {
  border: 1px solid #ddd;
}

.frameworks-table {
  border-collapse: collapse;
  /* Centering the table if its width is less than 100% */
  margin-left: auto;
  margin-right: auto;
}

/* Centering the container (modern flexbox approach) */
.table-wrapper {
  display: flex;
  justify-content: center;
}

/* Responsive Design Overrides */
@media (max-width: 768px) {
  .frameworks-table {
    font-size: 0.85rem;
  }
  
  .frameworks-table th,
  .frameworks-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .table-wrapper {
    /* These styles ensure behavior on mobile matches the global styles */
    display: flex;
    border-radius: 0;
    justify-content: center; 
  }
}

/* ========================================================= 
   STATISTICS CARDS
========================================================= */

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a5f;
    display: block;
}

.stat-label {
    color: #334155;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}
/* ========================================================= 
   LEADERSHIP SECTION
========================================================= */
.leadership {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.leadership-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.leadership-bio h3 {
    color: #1e3a5f;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.leadership-bio .title {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
/* ========================================================= 
   PARTNERS SECTION
========================================================= */
.partners-section {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.partners-heading {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.partners-intro {
    color: #334155;
    margin-bottom: 1.5rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.partner-logo {
    max-height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
/* ========================================================= 
   INDUSTRIES SECTION
========================================================= */
.industry-tags-section {
    background: #f8fafc;
}

.industries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.industry-tag {
    background: #1e3a5f;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
}

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

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .industry-card h3 {
        color: #1e3a5f;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .industry-card ul {
        list-style: none;
        padding-left: 0;
    }

    .industry-card li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

        .industry-card li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #f59e0b;
            font-weight: bold;
        }
/* ========================================================= 
   INSIGHTS/BLOG SECTION
========================================================= */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .insight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        cursor: pointer;
    }

    .insight-card h2 {         /*FH changed to h2 as this is now the level */
        color: #1e3a5f;
        font-size: 1.4rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .insight-card p {
        color: #334155;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

.insight-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .insight-card-link * {
        text-decoration: none;
    }

    .insight-card-link p {
        flex-grow: 1;
    }

.card-read-link {
    color: #f59e0b;
    font-weight: 600;
    margin-top: 0.5rem;
}

.insight-card-link:hover .card-read-link {
    text-decoration: underline;
}

.insight-image {
    width: 100%;
    margin-top: 1rem;
    border-radius: 6px;
    display: block;
}

a.insight-card-link,
a.insight-card-link *,
a.insight-card-link:hover,
a.insight-card-link:hover * {
    text-decoration: none !important;
}

    a.insight-card-link:hover .card-read-link {
        text-decoration: underline !important;
    }
/* ========================================================= 
   CONTACT SECTION (Main CTA)
========================================================= */
.contact-section {
    background: #f8fafc;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section {
     background: rgb(30, 74, 122);
     color: white;
}

.cta-tagline {
    font-size: 1.2rem;
    margin-top: 1rem;
}

    .contact-section h2 {
        color: white;
    }

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-item {
    display: block;
    margin-bottom: 1.5rem;
}

    .contact-item strong {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }

    .contact-item a {
        color: white;
        text-decoration: none;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }
/* ========================================================= 
   CONTACT FORM SECTION
========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info-light {
    background: #ffffff;
    color: #0f2a44;
    padding: 3rem;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    text-align: left;
}

    .contact-info-light h2 {
        color: #0f2a44;
        text-align: left;
    }

    .contact-info-light p {
        color: #1f3a5a;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .contact-info-light a {
        color: #0f2a44;
        font-weight: 600;
        text-decoration: none;
    }

        .contact-info-light a:hover {
            text-decoration: underline;
        }
.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

    .contact-form h2 {
        color: #0f2a44;
        margin-bottom: 2rem;
        text-align: left;
    }

/* ========================================================= 
   CONTACT FORM - FIELDS & VALIDATION
========================================================= */
.contact-form form .form-group {
    margin-bottom: 1.5rem;
}

    .contact-form form .form-group label {
        display: block;
        color: #0f2a44;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    .contact-form form .form-group input[type="text"],
    .contact-form form .form-group input[type="email"],
    .contact-form form .form-group textarea {
        width: 100%;
        padding: 0.875rem 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        transition: border-color 0.3s, box-shadow 0.3s;
        background: #ffffff;
        box-sizing: border-box;
    }

        .contact-form form .form-group input[type="text"]:focus,
        .contact-form form .form-group input[type="email"]:focus,
        .contact-form form .form-group textarea:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

    .contact-form form .form-group input.invalid {
        border-color: #ef4444;
    }

        .contact-form form .form-group input.invalid:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

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

.contact-form form .error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ========================================================= 
   CONTACT FORM - SUBMIT BUTTON & STATES
========================================================= */
.contact-form form .btn-submit,
.contact-form form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

    .contact-form form .btn-submit:hover:not(:disabled),
    .contact-form form button[type="submit"]:hover:not(:disabled) {
        background: #d97706;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
    }

    .contact-form form .btn-submit:active:not(:disabled),
    .contact-form form button[type="submit"]:active:not(:disabled) {
        transform: translateY(0);
    }

    .contact-form form .btn-submit:disabled,
    .contact-form form button[type="submit"]:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .contact-form form .btn-submit.btn-loading {
        position: relative;
        color: transparent;
    }

        .contact-form form .btn-submit.btn-loading::after {
            content: "";
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin-left: -10px;
            margin-top: -10px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spinner 0.8s linear infinite;
        }
/* ========================================================= 
   CONTACT FORM - STATUS MESSAGES
========================================================= */
.form-status {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

    .form-status.success {
        background: #d1fae5;
        color: #065f46;
        border: 1px solid #6ee7b7;
    }

    .form-status.error {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fca5a5;
    }
/* ========================================================= 
   ANIMATIONS
========================================================= */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
/* ========================================================= 
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1048px) {
    /* Mobile Menu */
    nav {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        margin-left: auto;
    }

    .logo {
        order: 0;
        margin-right: 1rem;  
    }

    .logo img {
        height: 50px; /* Keeps the required fixed height */
        width: auto; /* Overrides the HTML attribute to allow scaling */
        max-width: 100%; /* Ensures it never overflows its container */
       /* Other properties you already have: */
        display: block;
        flex-shrink: 0; 
        object-fit: contain;
     }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        order: 2;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

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

    /* Hero adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .leadership {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leadership-photo {
        max-width: 300px;
        margin: 0 auto;
    }
}