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

html {
    font-family: 'IBM Plex Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    font-variation-settings: "wdth" 100;
    text-align: left;
}

body {
    background-color: #F7FBFD;
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
h1 {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 300;
    text-align: center;
    color: #0C7ECF;
    margin: 0 0 0.2rem 0;
    max-width: 30rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: 300;
    text-align: left;
    color: #252525;
    margin-bottom: 0.4rem;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5rem;
    color: #0C7ECF;
    width: 27.6rem;
}

h5 {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2rem;
    color: #0C7ECF;
    width: 27.6rem;
}

p {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.2rem;
    color: #252525;
}

a {
    text-decoration: underline;
    color: #0C7ECF;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.4s ease;
}

a:hover {
    color: #3BABE3;
}

a[target="_blank"]::after {
    content: " ↗";
}

/* Typography Utilities */
.uppercase { text-transform: uppercase; }
.bold { font-weight: 700; }
.underline { text-decoration: underline; }
.blue { color: #0C7ECF; }

.single-centered-text {
    text-align: center;
    width: 27.6rem;
}

.bullet-point {
    list-style: none;
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

.bullet-point::before {
    content: "•";
    font-weight: 700;
    color: #0C7ECF;
    position: absolute;
    left: 0.5em;
}

/* =================================================================
   LAYOUT CONTAINERS
   ================================================================= */
.viewport-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    top: 0;
}

.all-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 51.2rem;
    margin: 0 1rem;
}

/* Content Sections */
.project-introduction-container,
.what-is-black-carbon-container,
.what-we-do-container,
.supporting-logos-container,
.acknowledgements-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48.8rem;
}

.the-team-container,
.contact-us-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 51.2rem;
}

.project-introduction-container {
    padding-top: 5rem;
    margin-bottom: 3.5rem;
}

.what-is-black-carbon-container,
.what-we-do-container,
.supporting-logos-container,
.the-team-container,
.contact-us-container {
    padding-top: 7rem;
}

.acknowledgements-container {
    padding-top: 2rem;
}

.footer-container {
    width: 100%;
    background-color: #EBEBEB;
    height: 6rem;
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container a {
    color: #545454;
}

/* =================================================================
   GRID SYSTEMS
   ================================================================= */
.two-column-grid-container {
    display: grid;
    grid-template-columns: 23rem 23rem;
    gap: 2.8rem;
    position: relative;
}

.two-column-grid-image {
    width: 100%;
    height: auto;
    grid-column: 1;
    border-radius: 0.8rem;
}

.two-column-grid-text-right { grid-column: 2; }
.two-column-grid-text-left { grid-column: 1; }

/* Team Grid */
.team-member-grid-container {
    display: grid;
    grid-auto-rows: min-content;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: start;
}

.tm-grid-column-1,
.tm-grid-column-2,
.tm-grid-column-3 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tm-grid-column-1 { grid-column: 1; }
.tm-grid-column-2 { grid-column: 2; }
.tm-grid-column-3 { grid-column: 3; }

.team-member-grid-item {
    background-color: #B0E1F5;
    border-radius: 0.8rem;
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
}

/* =================================================================
   IMAGES AND MEDIA
   ================================================================= */
.center-image-container {
    width: 23rem;
}

.center-image-container img,
.carousel-inner img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
}

.carousel-inner img {
    width: 51.2rem;
}

.we-are-air-aware-logo {
    width: 20rem;
    margin-bottom: 2rem;
}

.single-centered-image {
    width: 28rem;
    height: auto;
    border-radius: 0.8rem;
    margin: 1.5rem 0 0.5rem 0;
}

.no-round-corners {
    border-radius: 0;
}

.caption-container {
    text-align: center;
    font-size: 0.8rem;
}

/* Team Member Images */
.team-member-image-container {
    position: relative;
    width: 100%;
    height: 12rem;
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0.05rem 0.16rem 0.12rem #25252540;
}

.team-member-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
}

.team-member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 126, 207, 0.9) 0%, rgba(59, 171, 227, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    padding: 1rem;
    gap: 0.5rem;
}

.team-member-image-container:hover .team-member-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-member-image-container:hover img {
    transform: scale(1.1);
}

.overlay-link {
    color: white !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    margin: 0.2rem 0;
    width: 85%;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.overlay-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    color: white !important;
}

.overlay-link::after {
    content: "↗";
    font-size: 0.9rem;
    opacity: 0.8;
}

.team-member-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem 0;
}

/* =================================================================
   SUPPORTING LOGOS
   ================================================================= */
.supporting-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    width: 48.8rem;
    height: 10rem;
}

.supporting-logos-row a[target="_blank"]::after {
    content: "";
} 

.logo-link {
    height: 100%;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}


.nfrf-logo { height: 80%; }
.nDStudioLab-logo { height: 85%; }
.yorku-logo { height: 65%; }
.e-am-logo { height: 70%; }
.designwith-logo { height: 60%; padding-left: 1rem; }
.gov-canada-logo { height: 31%; }
.nfrf-logo, .nDStudioLab-logo, .yorku-logo, .e-am-logo, .designwith-logo, .gov-canada-logo { width: auto; }

/* =================================================================
   NAVIGATION
   ================================================================= */
.navbar {
    position: sticky;
    top: 1rem;
    z-index: 3;
    width: 100%;
}

.nav-container {
    background: #EBEBEB;
    width: 51.2rem;
    margin: 0 auto;
    box-shadow: 0 0.05rem 0.16rem 0.12rem rgba(37, 37, 37, 0.25);
    border-radius: 2rem;
    padding: 0.65rem 1rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #252525;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0C7ECF;
}

/* Mobile Menu */
#menu-icon {
    position: fixed;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    opacity: 0.6;
}

#menu-icon span {
    display: block;
    width: 2rem;
    height: 0.3rem;
    background-color: rgba(0, 123, 255, 0.6);
    margin: 0.3rem 0;
    transition: all 0.3s ease-in-out;
}

/* =================================================================
   FORMS
   ================================================================= */
.contact-form {
    background-color: #B0E1F5;
    border-radius: 1rem;
    padding: 1.5rem 2rem 2rem;
    width: 100%;
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group,
.form-group-full {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    margin-bottom: 2rem;
}

.form-group label,
.form-group-full label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #252525;
}

.form-group input,
.form-group-full textarea {
    border: 0.1rem inset #B0E1F5;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    font-family: inherit;
    background-color: #F7FBFD;
    color: #545454;
    height: 2.5rem;
}

.form-group input:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 0.1rem #25252520;
}

.form-group input::placeholder,
.form-group-full textarea::placeholder {
    color: #7D7D7D;
}

.form-group-full textarea {
    min-height: 8rem;
    resize: vertical;
}

.send-button {
    background-color: #4A90E2;
    color: #F7FBFD;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.send-button:hover {
    background-color: #357ABD;
}

.send-button:active {
    transform: translateY(1px);
}

/* =================================================================
   NEWS AND EVENTS
   ================================================================= */
.all-news-content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-content-grid {
    margin-top: 4rem;
    width: 51.2rem;
    display: grid;
    grid-template-columns: 1fr 10rem;
    gap: 2rem;
}

.news-and-events {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-and-events-nav {
    position: sticky;
    top: 6rem;
    grid-column: 2;
    background-color: #EBEBEB;
    border-radius: 0.8rem;
    box-shadow: 0 0.05rem 0.16rem 0.12rem rgba(37, 37, 37, 0.25);
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.75rem;
}

.news-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-nav-item {
    margin-bottom: 0.5rem;
}

.news-nav-link {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #252525;
    transition: all 0.3s ease;
    border: 0.1rem solid transparent;
}

.news-nav-link:hover,
.news-nav-link.active {
    color: #0C7ECF;
}

.news-nav-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.news-nav-date {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
}

.news-and-events-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
    background-color: #B0E1F5;
    border-radius: 0.8rem;
    padding: 1rem 0 2.5rem;
}

.news-and-events-item-content {
    display: block;
    width: 22rem;
}

.news-and-events-item img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
}

.news-and-events-item p {
    margin-bottom: 1rem;
}

.news-and-events-item h2 {
    width: 80%;
}

/* =================================================================
   IMAGE MODAL
   ================================================================= */
.click-to-expand-image {
    cursor: pointer;
}

.hide-hover-overflow {
    overflow: hidden;
    border-radius: 0.5rem;
    display: inline-block;
    width: 100%;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: #25252550;
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem #25252550;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 2rem;
    color: #F7FBFD;
    cursor: pointer;
    z-index: 10;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.image-modal-close::before,
.image-modal-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.2rem;
    height: 0.4rem;
    background: #F7FBFD;
    border-radius: 2px;
    transform-origin: center;
}

.image-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.image-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

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

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.mobile-only-line-break { display: none; }
.margin-bottom-3rem { margin-bottom: 3rem; }
.margin-bottom-2rem { margin-bottom: 2rem; }
.margin-bottom-1rem { margin-bottom: 1rem; }
.margin-bottom-1point5rem { margin-bottom: 1.5rem; }
.margin-bottom-0point5rem { margin-bottom: 0.5rem; }
.margin-top-1rem { margin-top: 1.5rem; }
.smaller-height { height: 7rem; }

.to-be-crsl {
    width: 51.2rem;
    height: 28rem;
    background-color: #B0E1F5;
    border-radius: 0.8rem;
}

/* =================================================================
   MEDIA QUERIES
   ================================================================= */

/* Large Screens (1801px+) */
@media (min-width: 1801px) {
    html { font-size: 25px; }
    .nav-link { font-size: 1rem; }
    .two-column-grid-image,
    .two-column-grid-text-right,
    .two-column-grid-text-left { grid-row: 1; }
    .query-margin-bottom-1rem { margin-bottom: 1rem; }
    .acknowledgements-container .two-column-grid-container { margin-bottom: 2rem; }
}

/* Medium-Large Screens (1064px - 1800px) */
@media (max-width: 1800px) and (min-width: 1064px) {
    .team-member-grid-container { grid-template-columns: repeat(3, 16.4rem); }
    .nav-link { font-size: 1rem; }
    .two-column-grid-image,
    .two-column-grid-text-right,
    .two-column-grid-text-left { grid-row: 1; }
    .query-margin-bottom-1rem { margin-bottom: 1rem; }
    .acknowledgements-container .two-column-grid-container { margin-bottom: 2rem; }
}

/* Medium Screens (706px - 1063px) */
@media (max-width: 1063px) and (min-width: 706px) {
    h2 { margin-bottom: 0.5rem; }
    
    .center-image-container { width: 28.75rem; }
    
    .nav-container {
        width: 33.8rem;
        padding-top: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .all-content-container,
    .news-content-grid { width: 33.8rem; }
    
    .two-column-grid-container {
        grid-template-columns: 28.75rem;
        gap: 0.5rem;
    }
    
    .two-column-grid-text-right,
    .two-column-grid-text-left {
        grid-column: 1;
        width: 23rem;
        margin: 0 auto;
    }
    
    .team-member-grid-container { grid-template-columns: repeat(2, 16.4rem); }
    .contact-us-container { width: 33.8rem; }
    
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .form-email { grid-column: 1 / span 2; }
    
    .project-introduction-container,
    .what-is-black-carbon-container,
    .what-we-do-container,
    .supporting-logos-container,
    .contact-us-container,
    .the-team-container,
    .acknowledgements-container { width: 100%; }
    
    .supporting-logos-row { width: 100%; }
    .query-removable-row-gap-1rem { row-gap: 0; }
    
    .acknowledgements-container .two-column-grid-container { margin-bottom: 1rem; }
    .acknowledgements-container .two-column-grid-text-left { margin-bottom: 0.5rem; }
    
    .news-and-events-item {
        background-color: transparent;
        padding-bottom: 0;
    }
    
    .news-nav-title {
        font-size: 0.8rem;
        line-height: 1.25rem;
        margin-bottom: 0.15rem;
    }
}

/* Small Screens (375px - 705px) */
@media (max-width: 705px) and (min-width: 375px) {
    .all-content-container,
    .project-introduction-container,
    .what-is-black-carbon-container,
    .what-we-do-container,
    .supporting-logos-container,
    .contact-us-container,
    .the-team-container,
    .acknowledgements-container,
    .news-content-grid { width: 16rem; }
}

/* Extra Small Screens (up to 374px) */
@media (max-width: 374px) {
    .all-content-container,
    .project-introduction-container,
    .what-is-black-carbon-container,
    .what-we-do-container,
    .supporting-logos-container,
    .contact-us-container,
    .the-team-container,
    .acknowledgements-container,
    .news-content-grid { width: 100%; }
    
    body { padding: 0 1rem; }
}

/* Mobile Styles (up to 705px) */
@media (max-width: 705px) {
    .nav-container { display: none; }
    
    #menu-icon {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: auto;
        z-index: 1001;
        opacity: 1;
    }
    
    #menu-icon span {
        background-color: #0C7ECF;
        box-shadow: 0 0.05rem 0.16rem 0.05rem #25252540;
    }
    
    #mobile-nav {
        position: fixed;
        inset: 0;
        background: #F7FBFD;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-nav-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .mobile-nav-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .mobile-nav-links a {
        color: #0C7ECF;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.2s;
        padding: 2rem;
    }
    
    .nav-link { font-size: 1.25rem; }
    
    .project-introduction-container { margin-bottom: 1.25rem; }
    
    .what-is-black-carbon-container,
    .supporting-logos-container,
    .contact-us-container,
    .the-team-container { padding-top: 5rem; }
    
    .we-are-air-aware-logo {
        width: 100%;
        margin-bottom: 1.25rem;
    }
    
    h1 {
        width: 100%;
        font-size: 1.6rem;
        text-align: left;
        margin: 0 0 0.2rem 0;
        line-height: 2.5rem;
    }
    
    h3, h5 {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.5rem;
    }
    
    h5 { line-height: 1.4rem; }
    
    .center-image-container,
    .single-centered-image { width: 100%; }
    
    .two-column-grid-container { display: block; }
    
    .single-centered-text {
        text-align: left;
        width: 100%;
    }
    
    .supporting-logos-row {
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .supporting-logos-row img {
        max-width: 100%;
        height: auto;
    }
    .supporting-logos-row a {
        max-width: 100%;
        height: auto;
    }
    
    .nDStudioLab-logo { max-height: 9rem; }
    .yorku-logo { max-height: 6rem; }
    .e-am-logo { max-height: 7.5rem; }
    .designwith-logo { max-height: 7rem; padding-left: 0; }
    .gov-canada-logo { height: 31%; width: auto; }
    
    .team-member-grid-container {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1rem;
    }
    
    .team-member-grid-item { width: 100%; }
    
    .form-row { display: block; }
    .form-group { margin-bottom: 1.5rem; }
    
    .acknowledgements-container .two-column-grid-text-left { margin-bottom: 1rem; }
    .acknowledgements-container .two-column-grid-container { margin-bottom: 1rem; }
    
    .mobile-only-line-break { display: block; }
    .footer-container { margin-top: 2.5rem; }
    
    .news-and-events-nav { display: none; }
    .news-content-grid { display: block; }
    .news-and-events-item-content { width: 100%; }
    .news-and-events-item {
        width: 100%;
        height: auto;
        padding: 0 1rem;
    }
    
    .image-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .image-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
}

/* Desktop Navigation (706px+) */
@media (min-width: 706px) {
    #menu-icon,
    #mobile-nav { display: none; }
}




