/* ===========================================
CSS VARIABLES & BRAND COLORS
=========================================== */
:root {
    /* Cool Black variants */
    --coreCoolBlack: #19233a;
    --coreCoolBlack80: #474f61;
    --coreCoolBlack60: #757b89;
    --coreCoolBlack40: #a3a7b0;
    --coreCoolBlack20: #d1d3d8;
    --coreCoolBlack10: #e8e9eb;
    
    /* Dark Green variants */
    --coreDarkGreen: #004650;
    --coreDarkGreen80: #336B73;
    --coreDarkGreen60: #669096;
    --coreDarkGreen40: #99B5B9;
    --coreDarkGreen20: #CCDADC;
    --coreDarkGreen10: #E6EDEE;

    /* Teal variants */
    --coreTeal: #00AAB5;
    --coreTeal80: #33BBC4;
    --coreTeal60: #66CCD3;
    --coreTeal40: #99DDE1;
    --coreTeal20: #CCEEF0;
    --coreTeal10: #E6F7F8;  

    /* Light Teal variants */
    --coreLightTeal: #AAE1DC;
    --coreLightTeal80: #BBE7E3;
    --coreLightTeal60: #CCEDEA;
    --coreLightTeal40: #DDF3F1;
    --coreLightTeal20: #EEF9F8;
    --coreLightTeal10: #F7FCFC;
}

/* ===========================================
GLOBAL TYPOGRAPHY
=========================================== */
h1 {    
    font-family: "Crimson Pro", "Noto Sans", Arial, Helvetica, sans-serif;
    font-style: normal;
    color: var(--coreCoolBlack);
}

h2 {
    font-family: "Crimson Pro", "Noto Sans", Arial, Helvetica, sans-serif;
    font-style: normal;
    color: var(--coreCoolBlack);
    font-size: 3rem;
}

h3{
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    font-style: normal;
    color: var(--coreCoolBlack);
}

h4 {
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: var(--coreCoolBlack);
    text-transform: uppercase;
}

h5 {
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--coreCoolBlack);
    font-size: 16px;
}

p {
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--coreCoolBlack);
    font-size: 16px;
}

.lead {
    font-family: "Crimson Pro", "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--coreCoolBlack);
    font-size: 20px;
}

/* ===========================================
NAVIGATION STYLES
=========================================== */
/* Smooth transitions for shrink */
.transition-navbar {
    transition: all 0.3s ease;
}

/* Default (large) navbar */
.navbar {
    padding: 1.25rem 0; /* Taller initial height */
}

.navbar-logo {
    width: 220px;
    transition: all 0.3s ease;
}

/* Shrunk state navbar*/
.navbar-shrink {
    padding: 0.5rem 0 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-shrink .navbar-logo {
    width: 160px;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--coreDarkGreen);
}

/* Social media icons in navbar */
.social-links {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 0.25rem;
    color: var(--coreCoolBlack);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: transparent;
}

.social-icon:hover {
    color: var(--coreTeal);
    background-color: var(--coreTeal10);
    transform: translateY(-2px);
}

.social-icon:focus {
    outline: 2px solid var(--coreTeal);
    outline-offset: 2px;
}

/* Desktop layout: social icons above navigation links */
@media (min-width: 768px) {
    #navbarSupportedContent {
        flex-direction: column !important;
        align-items: flex-end !important;
    }
    
    .social-links {
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }
    
    /* Hide social icons when navbar is shrunk on desktop only */
    .navbar-shrink .social-links {
        opacity: 0;
        visibility: hidden;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        overflow: hidden;
        display: none !important;
    }
    
    /* Ensure navbar returns to original single-row layout when shrunk */
    .navbar-shrink #navbarSupportedContent {
        flex-direction: row !important;
        align-items: center !important;
        min-height: auto !important;
    }
    
    /* Ensure navbar-nav returns to original behavior when shrunk */
    .navbar-shrink .navbar-nav {
        margin: 0 !important;
    }
}

/* Mobile responsive behavior for social icons */
@media (max-width: 767.98px) {
    #navbarSupportedContent {
        flex-direction: column !important;
    }
    
    .social-links {
        justify-content: center !important;
        margin: 1rem 0 0.5rem 0 !important;
        padding-top: 1rem;
        border-top: 1px solid var(--coreCoolBlack20);
        order: 2; /* Place social icons after navigation links in mobile menu */
        width: 100%;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }
    
    /* Adjust navbar-nav order for mobile */
    .navbar-nav {
        order: 1;
        width: 100%;
    }
}

/* ===========================================
GLOBAL LAYOUT & CONTAINERS
=========================================== */
.container {
    min-width: 90%;
    margin: 0 auto;
    border-radius: 0.375rem;
}

.shadowCustom {
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2);
}

.alt-section-bg {
    background-color: var(--coreLightTeal10);
    align-items: center;
    justify-content: center;
}

/* Section headings */
.sectionHeading {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

.sectionHeading h2 {
    margin-bottom: 0.5rem;
}

.sectionHeading .underline {
    width: 80px;
    height: 3px;
    background-color: #006D74;
    margin: 0 auto 1rem;
}

/* ===========================================
HERO SECTION
=========================================== */
.hero-section {
    background-color: var(--coreLightTeal10);
    color: var(--coreCoolBlack);
    padding: 60px 0;
    border-radius: 0.375rem;
    contain: content;
}

.banner {
    background-color: var(--coreTeal40);
    border: none;
    border-radius: 0.375rem;
    width: 98%;
    height: 65px;
    margin: auto;
    padding: 2px;
    font-size: 20px;
    text-align: center;
    align-content: center;
    color: var(--coreCoolBlack);
}

/* ===========================================
CARD COMPONENTS
=========================================== */
.card-header {
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    background-color: var(--coreDarkGreen);
    text-align: center;
    align-content: center;
}

.card-body {
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--coreCoolBlack);
    font-size: 16px;
    border-color: var(--coreDarkGreen);
    background-color: white;
    border-radius: 0.375rem;

}

/* card animations */
.card-header-fixed {
    background-color: #fff;
    border: none;
    font-weight: 600;
    color: #006D74;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px; /* Adjust this number to match your tallest header */
    padding: 0.75rem;
}

.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.transition {
    transition: all 0.25s ease-in-out;
}

.headingContainer {
    background-color: var(--coreDarkGreen);
    color: white;
    border-radius: 0.375rem;
    padding: 20px;
    text-align: center;
    max-width: fit-content;
}

.deck {
    font-family: "Crimson Pro", "Noto Sans", Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--coreCoolBlack);
    font-size: 16px;
}

/* ===========================================
BUTTONS & INTERACTIVE ELEMENTS
=========================================== */
a {
    color: var(--coreCoolBlack);
    text-decoration: none;
}

.btn {
    background-color: var(--coreDarkGreen);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform .2s ease-out,background-color .2s linear,box-shadow .2s;
}

.btn:hover {
    transform: translateY(-4px);
    background-color: var(--coreDarkGreen);
    color: white;
}

.btn:focus, a:focus {
    outline: 3px solid var(--coreTeal);
    outline-offset: 3px;
}

/* Focus outlines for keyboard users */
a:focus,
button:focus,
.accordion-button:focus,
.nav-link:focus {
    outline: 3px solid var(--coreTeal);
    outline-offset: 3px;
}


/* Ensure interactive anchors styled as buttons are accessible */
.btn-as-link {
    display: inline-block;
    line-height: 1;
}

/* ===========================================
HOW IT WORKS SECTION
=========================================== */
#how-it-works {
    position: relative;
}

#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background-image: url('/assets/planecb.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transform: scaleX(-1);
}

#how-it-works > * {
    position: relative;
    z-index: 2;
}

.HIW-header1 {
    background-color: var(--coreLightTeal40);
    color: var(--coreCoolBlack);
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.90rem;
    padding: 0.75rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
    
}

.HIW-header2 {
    background-color: var(--coreLightTeal40);
    color: var(--coreCoolBlack);
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.90rem;
    padding: 0.75rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.HIW-card1 {
    border: none;
    background-color: var(--coreLightTeal10);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.HIW-card2 {
    border: none;
    background-color: var(--coreTeal10);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.curric-header1 {
    background-color: var(--coreLightTeal40);
    color: var(--coreCoolBlack);
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.90rem;
    padding: 0.75rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
    
}

.curric-header2 {
    background-color: var(--coreLightTeal40);
    color: var(--coreCoolBlack);
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.90rem;
    padding: 0.75rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.curric-card1 {
    border: none;
    background-color: var(--coreLightTeal10);
    text-align: left;
    min-height: 500px;
    display: flex;

    justify-content: center;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.curric-card2 {
    border: none;
    background-color: var(--coreTeal10);
    text-align: left;
    min-height: 500px;
    display: flex;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.logo {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===========================================
HOW TO USE SECTION (ACCORDION)
=========================================== */
.accordion {
    --bs-accordion-btn-focus-box-shadow: none; 
    --bs-accordion-btn-focus-border-color: #fff; 
    --bs-accordion-active-bg: #fff; 
}

.accordion-button {
    background-color: var(--coreDarkGreen40);
    color: var(--coreCoolBlack);
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    --bs-accordion-btn-box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--coreDarkGreen);
    color: white;
    font-family: "Inter", "Noto Sans", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

/* Consistent sizing for nested content images */
.accordion-nested-image {
    width: 100%;
    max-width: 450px;
    height: 280px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

/* Ensure container maintains aspect ratio */
.accordion-image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 15px;
    gap: 20px;
}

/* For single image containers */
.accordion-image-container:has(img:only-child) {
    flex-direction: row;
}

/* Make nested content use more width */
.accordion-body .container {
    max-width: none !important;
    padding: 20px 30px;
}

.accordion-body .row {
    margin: 0 -15px;
}

.accordion-body .col-md-6 {
    padding: 0 15px;
}

/* ===========================================
PRICING SECTION
=========================================== */
/* Pricing cards button alignment */
#pricing .row {
    align-items: stretch;
}

#pricing .col-md-6 {
    display: flex;
}

#pricing .card.h-100 {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

#pricing .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

#pricing .card-body > *:not(.d-flex) {
    flex-shrink: 0;
}

#pricing .card-body .d-flex.gap-3.mt-4 {
    margin-top: auto !important;
}

/*===========================================
FOOTER
===========================================*/
footer {
    background-color: var(--coreDarkGreen);
    color: white;
    text-decoration: none; 
    padding: 20px 0;
    text-align: center;
}

/* Footer social media icons */
.footer-social-links {
    gap: 0.5rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-social-icon:hover {
    color: var(--coreTeal);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social-icon:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    color: var(--coreTeal);
}

/* Footer responsive layout */
@media (max-width: 767.98px) {
    .footer-social-links {
        order: -1;
        margin-bottom: 1rem;
    }
}

/*===========================================
ACCESSIBILITY FEATURES
===========================================*/
/* Skip link - visible on focus */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
}

.skip-link:focus,
.skip-link:active {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: white;
    color: var(--coreCoolBlack);
    border-radius: 0.375rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

/* Focus outlines for keyboard users */
a:focus,
button:focus,
.accordion-button:focus,
.nav-link:focus {
    outline: 3px solid rgba(0, 170, 181, 0.25);
    outline-offset: 3px;
}

/*===========================================
IMAGE ZOOM MODAL
===========================================*/
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: block;
    overflow: auto;
    padding: 20px;
}

.image-modal-content {
    position: relative;
    width: fit-content;
    max-width: none;
    margin: 40px auto;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    cursor: grab;
    object-fit: contain;
}

.image-modal img:active {
    cursor: grabbing;
}

.image-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    padding: 8px 12px;
    line-height: 1;
    z-index: 10001;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ccc;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Make images clickable */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.zoomable-image:focus {
    outline: 3px solid rgba(0, 170, 181, 0.5);
    outline-offset: 2px;
}

/* Prevent zoom functionality for specific images */
.no-zoom {
    cursor: default !important;
    transform: none !important;
    box-shadow: none !important;
}

.no-zoom:hover {
    transform: none !important;
    box-shadow: none !important;
}

/*===========================================
RESPONSIVE DESIGN
===========================================*/
/* Responsive adjustments for nested images */
@media (max-width: 992px) {
    .accordion-nested-image {
        max-width: 380px;
        height: 240px;
    }
    
    .accordion-image-container {
        min-height: 260px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .accordion-nested-image {
        max-width: 320px;
        height: 200px;
    }
    
    .accordion-image-container {
        min-height: 220px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .accordion-nested-image {
        max-width: 280px;
        height: 180px;
    }
    
    .accordion-image-container {
        min-height: 200px;
        padding: 8px;
    }
}

/* Responsive adjustments for HIW cards */
@media (max-width: 768px) {
    #how-it-works::before {
        width: 350px;
        height: 280px;
    }
    
    .HIW-card1,
    .HIW-card2 {
        min-height: 400px;
        padding: 15px;
    }
    
    .logo {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    #how-it-works::before {
        width: 250px;
        height: 200px;
    }
    
    .HIW-card1,
    .HIW-card2 {
        min-height: 320px;
        padding: 12px;
    }
    
    .logo {
        max-height: 220px;
    }
}

    
/* Return to Top Button Styles */

.btn-return-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #004650 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 70, 80, 0.3) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    font-family: inherit !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-return-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.btn-return-to-top:hover {
    background-color: #003540;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 70, 80, 0.4);
}

.btn-return-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .btn-return-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


blockquote {
    border-left: 4px solid var(--coreDarkGreen40);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--coreCoolBlack80);
    font-style: italic;
    background-color: var(--coreLightTeal20);
    border-radius: 0.375rem;
    padding: 1rem;
}