/* ============================================
   3CRS COLOR PALETTE & CSS VARIABLES
   Global design tokens used across all pages
   HTML files: ALL (index.html, team.html, research.html, 
   rt1-7.html, communities.html, galilee.html, providence.html,
   rockland.html, bath.html, resource-library.html, tools.html,
   lessons.html, videos.html, publications.html, contact.html)
   ============================================ */
:root {
    --dark-blue: #0C3C60;
    --navy-blue: #2c5282;
    --light-blue: #49D6F7;
    --ligth-blue-old: #4A90E2;
    --accent-blue: #49D6F7;
    --accent-blue-old: #5BA3F5;
    --warm-gray: #E8E8E8;
    --white: #ffffff;
    --text-dark: #2b2b2b;
    --text-light: #f5f5f5;
}

/* ============================================
   GENERAL PAGE STYLING
   Base styles for html and body elements
   HTML files: ALL
   ============================================ */
html {
    scroll-behavior: smooth;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: var(--warm-gray);
    color: var(--text-dark);
    max-width: 100%;
    overflow-x: hidden;
}


/* ============================================
   TYPOGRAPHY
   Global heading styles
   HTML files: ALL
   ============================================ */
h1,
h2 {
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

h2 {
    font-size: 2.8em;
    /* or your desired size */
}


/* ============================================
   HEADER AND NAVIGATION
   Site header, branding, navbar, hamburger menu,
   dropdown menus, and mobile navigation
   HTML files: ALL
   ============================================ */
header {
    background: var(--white);
    color: var(--dark-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.page-wrapper {
    overflow-x: hidden;
}

.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .branding {
        padding: 12px 80px;
    }
}

@media (min-width: 1400px) {
    .branding {
        padding: 12px 80px;
    }
}

.logo-mark {
    padding-right: 20px;
    padding-top: 5px;
    display: flex;
    align-items: center;
}

.logo-mark img {
    height: 100px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 1.35em;
    font-weight: 600;
    font-family: 'CircularStd', 'Inter', sans-serif;
    color: var(--dark-blue);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.brand-subtitle {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.6);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--dark-blue);

}

.navbar .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0 40px;
    min-height: 58px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .navbar .menu {
        padding: 0 80px;
    }
}

@media (min-width: 1400px) {
    .navbar .menu {
        padding: 0 80px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 895px) {

    /* Header - Smaller logo and text */
    header {
        padding-right: 60px;
    }

    .branding {
        padding: 10px 20px;
        gap: 15px;
    }

    .logo-mark {
        padding-right: 15px;
    }

    .logo-mark img {
        height: 60px;
    }

    .brand-title {
        font-size: 0.9em;
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: flex;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hide regular menu by default on mobile */
    .navbar .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-blue);
        flex-direction: column;
        padding: 0;
        min-height: auto;
        max-width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Show menu when active */
    .navbar .menu.active {
        display: flex;
    }

    .navbar .menu li {
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        display: block;
        position: relative;
    }

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

    .navbar a {
        padding: 18px 20px;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        min-height: 50px;
        white-space: nowrap;
        border-left: none !important;
    }

    .home-link a {
        font-size: 1.2em;
        padding: 18px 20px;
        transform: none;
        min-height: 50px;
    }

    /* Dropdown link - prevent wrapping */
    .dropdown>a {
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    /* Dropdown arrow on mobile */
    .dropdown>a::after {
        margin-left: 8px;
    }

    .dropdown.active>a::after {
        transform: rotate(180deg);
    }

    /* Dropdown container - remove border-bottom from li to avoid double border with dropdown > a */
    .navbar .menu .dropdown {
        display: block;
        flex-direction: column;
        border-bottom: none;
        /* Remove border from li, let the link handle it */
    }

    /* Dropdown container - no border when active */
    .dropdown.active {
        border-bottom: none;
    }

    /* Dropdown submenu on mobile - display below parent */
    .navbar .menu .submenu {
        position: static !important;
        display: none;
        background: var(--white) !important;
        box-shadow: none;
        border-radius: 0;
        margin: 0 !important;
        width: 100% !important;
        padding: 0;
        list-style: none;
        border-top: none;
        /* Remove border-top to avoid double border with dropdown > a */
        top: auto !important;
        left: auto !important;
        min-width: 100% !important;
    }

    .dropdown.active .submenu {
        display: block !important;
    }

    .navbar .menu .dropdown>a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar .menu .submenu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-left: none !important;
        /* Remove left border on mobile */
        width: 100%;
        display: flex;
        align-items: center;
        min-height: 32px;
    }

    .navbar .menu .submenu li:last-child {
        border-bottom: none;
    }

    .navbar .menu .submenu a {
        padding: 8px 20px 8px 40px;
        color: var(--text-dark);
        text-transform: none;
        letter-spacing: normal;
        width: 100%;
        display: flex;
        align-items: center;
        min-height: 32px;
        font-weight: 600;
        transition: background 0.2s ease;
    }

    .navbar .menu .submenu a:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--navy-blue);
    }
}

.navbar .menu li {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar .menu li:first-child {
    border-left: none;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color .3s ease;
}

.home-link a {
    font-size: 1.4em;
    padding: 0 24px;
    transform: translateY(-2px);
}

.navbar a:hover {
    color: var(--accent-blue);
}

/* --- Dropdown Arrow Indicator --- */
.dropdown>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown:hover>a::after,
.dropdown.active>a::after {
    transform: rotate(180deg);
}

/* --- Dropdown Submenu --- */
.submenu {
    display: none;
    position: absolute;
    background: var(--white);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    top: 58px;
    left: 0;
    width: max-content;
    min-width: 180px;
    max-width: 500px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 12px 20px;
    display: block;
    width: 100%;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    white-space: nowrap;
}

.submenu a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--navy-blue);
}

.dropdown:hover .submenu {
    display: block;
}

/* ============================================
   HERO SECTION
   Full-width hero banners with background images
   HTML files: index.html, team.html, communities.html
   ============================================ */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--light-blue);
    color: var(--dark-blue);
    text-decoration: none;
    padding: 18px 40px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.cta-button:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.0em;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1em;
    }
}

/* ============================================
   BANNER SOLID SECTION
   Banner with solid color overlay (minimal opacity)
   HTML files: Currently unused (available for future use)
   ============================================ */
.banner-solid {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.banner-solid-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    padding: 10px 20px;
}

.banner-solid h1 {
    font-size: 3.5em;
    font-weight: 700;

    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .banner-solid {
        min-height: 500px;
    }

    .banner-solid h1 {
        font-size: 2.0em;
    }
}

/* ============================================
   BANNER IMAGE SECTION
   Banner with dark-blue overlay for page headers
   HTML files: resource-library.html, tools.html, 
   lessons.html, videos.html, publications.html
   ============================================ */
.banner-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--dark-blue) 50%, transparent);
    z-index: 1;
}

.banner-image-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    padding: 10px 20px;
}

.banner-image h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .banner-image {
        min-height: 500px;
    }

    .banner-image h1 {
        font-size: 2.0em;
    }
}

/* ============================================
   ABOUT SECTION
   Text content section with centered layout and CTA button
   HTML files: index.html
   ============================================ */
.about-section {
    background: var(--white);
    padding: 40px 40px;
    scroll-margin-top: 55px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-heading {
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 40px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.about-text {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 25px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.about-text:last-of-type {
    margin-bottom: 40px;
}

.about-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.about-button {
    display: inline-block;
    background: var(--navy-blue);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 8px;
    border: 0px solid var(--accent-blue);
    padding: 18px 80px 18px 80px;
    font-size: 1.0em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.about-button:hover {
    background: var(--accent-blue);
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }

    .about-heading {
        font-size: 2.5em;
        margin-bottom: 30px;
    }

    .about-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .about-text:last-of-type {
        margin-bottom: 30px;
    }

    .resources-subheading {
        font-size: 0.95em;
    }

    .about-button {
        padding: 12px 25px;
        font-size: 0.95em;
        letter-spacing: 0.12em;
    }
}

/* ============================================
   PROJECT INFO SECTION
   "What will this project do?" section with 3-column grid
   HTML files: index.html
   ============================================ */
.project-info {
    background: #E8F0F8;
    padding: 80px 40px;
}

.project-info-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.project-info-heading {
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 20px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.project-info-intro {
    font-size: 0.95em;
    color: #333333;
    margin: 0 auto 60px;
    line-height: 1.8;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.sensor-type-item {
    text-align: center;
}

.sensor-number {
    font-size: 5em;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1;
    margin: 0 0 15px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.sensor-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 15px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.sensor-description {
    font-size: 0.95em;
    color: #333333;
    line-height: 1.8;
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

@media (max-width: 768px) {
    .project-info {
        padding: 60px 20px;
    }

    .project-info-heading {
        font-size: 2.5em;
    }

    .project-info-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sensor-number {
        font-size: 4em;
    }

    .sensor-title {
        font-size: 1.3em;
    }
}

/* ============================================
   COMMUNITY BENEFITS SECTION
   "How might this benefit your community?" section
   HTML files: index.html
   ============================================ */
.community-benefits {
    background: var(--white);
    padding: 80px 40px;
}

.community-benefits-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.community-benefits-heading {
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 60px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.community-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 60px;
    margin-top: 40px;
}

.benefit-item {
    text-align: left;
    padding: 0 40px;
}

.benefit-number {
    font-size: 5em;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1;
    margin: 0 0 15px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.benefit-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 15px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    padding-left: 35px;
}

.benefit-title::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.2;
}

.benefit-description {
    font-size: 0.95em;
    color: #333333;
    line-height: 1.8;
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 1024px) {
    .community-benefits-grid {
        grid-template-columns: repeat(1, 3fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .community-benefits {
        padding: 60px 20px;
    }

    .community-benefits-heading {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .community-benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefit-item {
        padding: 0 20px;
    }

    .benefit-number {
        font-size: 4em;
    }

    .benefit-title {
        font-size: 1.3em;
    }
}

/* ============================================
   RESEARCH THEMES SECTION
   Grid of RT icons with links on homepage
   HTML files: index.html
   ============================================ */
.research-themes {
    background: #2F6083;
    padding: 80px 40px;
}

.research-themes-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.research-themes-heading {
    font-weight: 700;
    color: var(--white);
    margin: 0 0 30px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.research-themes-intro {
    font-size: 1.1em;
    color: var(--white);
    margin: 0 auto 60px;
    line-height: 1.8;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    opacity: 0.95;
}

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

.rt-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rt-item-link:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.rt-item-link:hover .rt-item {
    cursor: pointer;
}

.rt-item-link:hover .rt-title {
    color: var(--accent-blue);
}

.rt-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.rt-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rt-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.9;
}

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

@media (max-width: 768px) {
    .research-themes {
        padding: 60px 20px;
    }

    .research-themes-heading {
        font-size: 2.5em;
        margin-bottom: 25px;
    }

    .research-themes-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .research-themes-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rt-icon {
        width: 100px;
        height: 100px;
    }

    .rt-title {
        font-size: 1.1em;
        line-height: 1.9;
    }
}

/* ============================================
   PROJECT PHASES SECTION
   3-phase cards layout (People & Data, Data & Knowledge, People & Solutions)
   HTML files: index.html
   ============================================ */
.project-phases {
    background: #E8F0F8;
    padding: 80px 40px;
}

.project-phases-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.project-phases-heading {
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 60px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.phase-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phase-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.phase-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.phase-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 20px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.phase-intro {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0 0 25px 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

.phase-list li {
    font-size: 0.95em;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0 0 15px 0;
    padding-left: 25px;
    position: relative;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.phase-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.3em;
    line-height: 1.2;
}

.phase-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        row-gap: 100px;
    }
}

@media (max-width: 768px) {
    .project-phases {
        padding: 60px 20px;
    }

    .project-phases-heading {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .phases-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        row-gap: 40px;
    }

    .phase-item {
        padding: 30px 20px;
        height: auto;
    }

    .phase-title {
        font-size: 1.3em;
    }

    .phase-intro {
        font-size: 0.95em;
    }

    .phase-list li {
        font-size: 0.9em;
    }
}

/* ============================================
   PARTNERS SECTION
   Logo grid showing university and organization partners
   HTML files: index.html
   ============================================ */
.partners-section {
    background: var(--white);
    padding: 20px 40px;
    border-top: 2px solid var(--accent-blue);
    scroll-margin-top: 55px;
}

.partners-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.partners-heading {
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 50px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.8em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-logo-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.partner-logo-cell img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 836px) {
    .partners-section {
        padding: 15px 20px;
    }

    .partners-heading {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partner-logo-cell img {
        height: 100px;
        width: auto;
    }
}

/* ============================================
   FUNDING SECTION
   NSF logo and funding acknowledgment
   HTML files: index.html
   ============================================ */
.funding-section {
    background: var(--white);
    padding: 10px 40px;
    border-top: 2px solid var(--accent-blue);
    border-bottom: 0px solid var(--accent-blue);
}

.funding-content {
    max-width: 1400px;
    margin: 0 auto;
}

.funding-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.funding-logo-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.funding-logo-cell img {
    max-width: 200px;
    height: auto;
    display: block;
}

.funding-text-cell {
    text-align: left;
}

.funding-text {
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
}

@media (max-width: 768px) {
    .funding-section {
        padding: 15px 20px;
    }

    .funding-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .funding-logo-cell {
        justify-content: center;
    }

    .funding-logo-cell img {
        max-width: 150px;
    }
}

/* ============================================
   FOOTER
   Site-wide footer with logo, contact info, and links
   HTML files: ALL
   ============================================ */
footer {
    background: var(--dark-blue);
    padding: 60px 40px 30px;
    margin-top: 0px;
    color: var(--text-light);
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-university {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px 0;
    color: var(--white);
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95em;
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.footer-contact-details {
    text-align: center;
    margin: 20px 0 30px;
    font-size: 0.9em;
    line-height: 1.6;
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.footer-contact-details p {
    margin: 8px 0;
    color: var(--text-light);
}

.footer-contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-details a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}

.footer-links {
    text-align: center;
    margin: 30px 0;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.footer-links-row a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    transition: color 0.3s ease;
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.footer-links-row a:hover {
    color: var(--light-blue);
}

.footer-cta {
    text-align: center;
    margin: 40px 0;
}

.footer-button {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'CircularStd', 'Inter', sans-serif;
}

.footer-button:hover {
    background: rgba(91, 163, 245, 0.2);
    color: var(--white);
    border-color: var(--light-blue);
}


.footer-bottom {
    margin-top: 40px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    /* use container width */
    box-sizing: border-box;
}


.footer-copyright {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-light);
    text-align: left;
    font-family: 'CircularStd', 'Inter', sans-serif;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-copyright {
        text-align: center;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   Mobile-only floating button for quick navigation
   HTML files: ALL (shown on mobile only)
   ============================================ */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        display: flex;
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   COMMUNITY SINGLE BANNER SECTION
   Two-column layout with image and text for individual community pages
   HTML files: galilee.html, providence.html, rockland.html, bath.html
   Also used in: research.html (research intro banner)
   ============================================ */

.community-single-banner-section {
    background: var(--white);
    padding: 60px 0;
}

/* Flexbox-based 2-column layout */
.community-single-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-sizing: border-box;
}

/* ===================== IMAGE FRAME ===================== */
.community-single-banner-image {
    flex: 0 0 50%;
    max-width: 50%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

.community-single-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

/* ===================== TEXT BLOCK ===================== */
.community-single-banner-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}


.community-single-title {
    font-size: 2.4em;
    font-weight: 700;
    color: #2c6496;
    margin: 0 0 14px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
}

.community-single-description {
    font-size: 1.0em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}


@media (max-width: 895px) {
    .community-single-banner-section {
        padding: 40px 0;
    }

    .community-single-banner-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 30px;
    }

    .community-single-banner-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .community-single-banner-content {
        padding: 0;
    }

    .community-single-title {
        font-size: 1.8em;
    }

    .community-single-description {
        font-size: 0.98em;
    }
}



/* ============================================
   DOCUMENT SECTION
   Publication cards with thumbnails and download links
   HTML files: galilee.html, providence.html, rockland.html, 
   bath.html, publications.html
   ============================================ */

#docs-section {
    padding: 40px 40px 60px;
    background: #f5f7fa;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#docs-section .docs-heading {
    max-width: 1100px;
    margin: 0 auto 24px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c6496;
    border-bottom: 2px solid #d2dde7;
    padding-bottom: 8px;
}

#docs-section .docs-subheading {
    max-width: 1100px;
    margin: 8px auto 24px;
    font-size: 0.98rem;
    color: #4a5a6a;
}

#docs-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.doc-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.doc-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #c2d4e5;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-blue);
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.doc-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c6496;
    margin: 0;
}

.doc-meta {
    font-size: 0.88rem;
    color: #627285;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.doc-description {
    font-size: 1em;
    color: #222;
    line-height: 1.8;
}

.doc-button {
    margin-top: 10px;
    align-self: flex-start;
    display: inline-block;
    background: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.doc-button:hover {
    background: var(--light-blue);
    color: var(--dark-blue);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    #docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #docs-section {
        padding: 32px 24px 48px;
    }

    #docs-section .docs-heading {
        font-size: 1.6rem;
    }

    .doc-body {
        padding: 16px 16px 18px;
    }

    .doc-button {
        width: calc(100% - 8px);
        margin: 10px 4px 0;
        text-align: center;
        box-sizing: border-box;
    }
}



/* ============================================
   RESOURCE LIBRARY SECTION
   Filterable grid of resource cards with thumbnails
   HTML files: resource-library.html, tools.html
   ============================================ */

#resources-section {
    padding: 40px 40px 60px;
    background: #f5f7fa;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#resources-section .resources-heading {
    max-width: 1100px;
    margin: 0 auto 12px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c6496;
    border-bottom: 2px solid #d2dde7;
    padding-bottom: 6px;
}

#resources-section .resources-subheading {
    max-width: 1100px;
    margin: 4px auto 20px;
    font-size: 0.98rem;
    color: #4a5a6a;
    padding-bottom: 35px;
}

/* ===== Filters row ===== */

.resources-filters {
    max-width: 1100px;
    margin: 0 auto 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.filter-group {
    flex: 1 1 220px;
    min-width: 0;
}

.filter-group label {
    display: block;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue, #2c6496);
    margin-bottom: 8px;
}

.filter-select-wrapper {
    position: relative;
}

.filter-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.filter-select-wrapper .filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #8a94a3;
    pointer-events: none;
}

.filter-select-wrapper.type .filter-icon {
    content: "≡";
}

.filter-select-wrapper.location .filter-icon {
    font-size: 1.15rem;
}

/* Simple down-arrow using a pseudo-element */
.filter-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #8a94a3;
    pointer-events: none;
}

.resources-reset-button {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: var(--light-blue, #e7eff8);
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--dark-blue, #2c6496);
    transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    align-self: center;
    margin-top: 28px;
}

.resources-reset-button:hover {
    background: var(--dark-blue, #2c6496);
    color: var(--white, #ffffff);
    transform: translateY(-1px);
}

/* ===== Cards grid ===== */

#resources-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.resource-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* smaller rectangular thumbnail */
    background: #c2d4e5;
    overflow: hidden;
}

.resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.resource-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c6496;
    margin: 0;
}

/* Description inside card (initially hidden via [hidden] attribute in HTML) */
.resource-description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    margin-top: 4px;
}

/* Actions row: holds primary + secondary buttons */
.resource-actions {
    display: flex;
    flex-direction: column;
    /* stack vertically */
    gap: 10px;
    /* space between buttons */
    margin-top: 6px;
}

/* Shared button base */
.resource-button {
    box-sizing: border-box;
    /* include padding/border in width */
    display: block;
    width: 100%;
    /* full width of the body area */
    margin: 0;
    /* no margin - buttons align with card content */

    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;

    transition: background 0.25s ease,
        transform 0.2s ease,
        color 0.25s ease,
        border-color 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Primary button (open resource) */
.resource-button.primary {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
}

.resource-button.primary:hover {
    background: var(--light-blue);
    color: var(--dark-blue);
    transform: translateY(-1px);
}

/* Secondary button (toggle description) */
.resource-button.secondary {
    background: #ffffff;
    color: #2c6496;
    border: 1px solid #c1ccd8;
    box-shadow: none;
}

.resource-button.secondary:hover {
    background: #e7eff8;
    border-color: #2c6496;
    transform: translateY(-1px);
}

/* Responsive */

@media (max-width: 980px) {
    #resources-section {
        padding: 32px 20px 48px;
    }

    #resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #resources-section {
        padding: 32px 20px 48px;
    }

    .resources-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        /* tighter spacing between stacked filters */
    }

    /* prevent tall stretched filter blocks on mobile */
    .filter-group {
        flex: 0 0 auto;
    }

    .filter-group label {
        margin-bottom: 6px;
    }

    .resources-reset-button {
        margin-top: 4px;
        align-self: stretch;
    }

    #resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-body {
        padding: 12px 14px 14px;
    }

    /* Stack actions vertically on mobile */
    .resource-actions {
        flex-direction: column;
    }

    .resource-button {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   RT PAGES STYLES
   Shared styles for Research Theme pages including
   intro sections, overview sections, team grids, and buttons
   HTML files: rt1.html, rt2.html, rt3.html, rt4.html, 
   rt5.html, rt6.html, rt7.html, research.html
   ============================================ */

/* RT List Styles (for research.html and other pages) */
.rt-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.rt-list-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 40px;
    border-top: 2px solid var(--light-blue);
    border-bottom: 2px solid var(--light-blue);
    position: relative;
}

.rt-list-item:not(:last-child) {
    border-bottom: none;
}

.rt-list-item:not(:first-child) {
    border-top: 2px solid var(--light-blue);
}

.rt-list-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: transparent;
    padding: 10px;
}

.rt-list-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rt-list-title {
    flex: 1;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.rt-list-button {
    flex: 0 0 auto;
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    background: var(--light-blue, #e7eff8);
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    color: var(--dark-blue, #2c6496);
    transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.rt-list-button:hover {
    background: var(--dark-blue, #2c6496);
    color: var(--white, #ffffff);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .rt-list-item {
        padding: 25px 30px;
        gap: 25px;
    }

    .rt-list-icon {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .rt-list-title {
        font-size: 1.2em;
    }

    .rt-list-button {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .rt-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        gap: 20px;
    }

    .rt-list-icon {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .rt-list-title {
        font-size: 1.1em;
        width: 100%;
    }

    .rt-list-button {
        width: 100%;
        text-align: center;
        padding: 8px 18px;
        font-size: 0.75rem;
        align-self: center;
    }
}

/* --- RT Pages Intro Section ---
   Blue header bar with icon and title
   HTML files: rt1.html - rt7.html */
.rt-pages-intro-section {
    background: #2F6083;
    padding: 40px 40px;
    border-top: 2px solid var(--light-blue);
    border-bottom: 2px solid var(--light-blue);
}

.rt-pages-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.rt-pages-intro-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: transparent;
    padding: 10px;
}

.rt-pages-intro-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rt-pages-intro-title {
    flex: 1;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 768px) {
    .rt-pages-intro-section {
        padding: 30px 20px;
    }

    .rt-pages-intro-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .rt-pages-intro-icon {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .rt-pages-intro-title {
        font-size: 1.1em;
        width: 100%;
    }
}

/* --- RT Pages Team Section ---
   Team member card grid for RT pages
   HTML files: rt1.html - rt7.html */
#rt-pages-team-section {
    padding: 40px 40px 40px;
    background: #f5f7fa;
    /* Local CSS variables, only for this section */
    --rt-pages-team-card-bg: #d8e6f3;
    --rt-pages-team-name-color: #2c6496;
    --rt-pages-team-text-muted: #5f7386;
    --rt-pages-team-icon-color: #2c6496;
}

#rt-pages-team-section .rt-pages-team-heading {
    max-width: 1200px;
    margin: 0 auto 12px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c6496;
    border-bottom: 2px solid #d2dde7;
    padding-bottom: 6px;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#rt-pages-team-section #rt-pages-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}


#rt-pages-team-section .rt-pages-team-card {
    display: flex;
    align-items: stretch;
    /* make photo + content same height */
    background: var(--rt-pages-team-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    min-height: 220px;
}

/* Photo column – Safari-friendly */
#rt-pages-team-section .rt-pages-team-photo {
    flex: 0 0 180px;
    /* fixed basis instead of % */
    max-width: 220px;
    background: #c2d4e5;
    aspect-ratio: 3 / 4;
    /* ensure a stable rectangle */
    overflow: hidden;
    /* hide any overflow */
}

/* Image inside the photo column */
#rt-pages-team-section .rt-pages-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* center crop consistently */
    display: block;
}


#rt-pages-team-section .rt-pages-team-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

#rt-pages-team-section .rt-pages-team-main {
    text-align: left;
}

#rt-pages-team-section .rt-pages-team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--rt-pages-team-name-color);
    margin-bottom: 6px;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#rt-pages-team-section .rt-pages-team-affiliation {
    font-size: 14px;
    color: var(--rt-pages-team-text-muted);
    margin-bottom: 10px;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#rt-pages-team-section .rt-pages-team-role {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

#rt-pages-team-section .rt-pages-team-links {
    margin-top: 14px;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
}

/* Namespaced icon button so it doesn't collide with any other .icon-link */
#rt-pages-team-section .rt-pages-team-icon-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(44, 100, 150, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

#rt-pages-team-section .rt-pages-team-icon-link svg {
    width: 17px;
    height: 17px;
    stroke: var(--rt-pages-team-icon-color);
}

#rt-pages-team-section .rt-pages-team-icon-link:hover {
    background: rgba(44, 100, 150, 0.08);
    border-color: var(--rt-pages-team-icon-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1024px) {
    #rt-pages-team-section #rt-pages-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
}

@media (max-width: 768px) {
    #rt-pages-team-section {
        padding: 25px 20px 60px;
    }

    #rt-pages-team-section .rt-pages-team-heading {
        font-size: 1.6rem;
    }

    #rt-pages-team-section #rt-pages-team-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    #rt-pages-team-section .rt-pages-team-card {
        margin: 0;
    }
}

@media (max-width: 640px) {
    #rt-pages-team-section .rt-pages-team-card {
        flex-direction: column;
    }

    #rt-pages-team-section .rt-pages-team-photo {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        min-height: 220px;
    }

    #rt-pages-team-section .rt-pages-team-content {
        padding: 18px 18px 16px;
    }
}

/* --- RT Pages Overview Section ---
   Text content section for RT page descriptions
   HTML files: rt1.html - rt7.html */
.rt-pages-overview-section {
    background: var(--white);
    padding: 40px 40px 45px;
}

.rt-pages-overview-content {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.rt-pages-overview-section .rt-pages-overview-heading {
    max-width: 1400px;
    margin: 0 auto 12px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c6496;
    border-bottom: 2px solid #d2dde7;
    padding-bottom: 6px;
}

.rt-pages-overview-content p {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.rt-pages-overview-content p:last-child {
    margin-bottom: 0;
}

.rt-pages-button-group {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .rt-pages-overview-section {
        padding: 25px 20px 30px;
    }

    .rt-pages-overview-section .rt-pages-overview-heading {
        font-size: 1.6rem;
    }

    .rt-pages-overview-content p {
        font-size: 0.95em;
    }

    .rt-pages-button-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .rt-pages-button-group .rt-list-button {
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ============================================
   VIDEO INSERT SECTION
   Two-column layout with video thumbnail and description
   Includes YouTube play button overlay
   HTML files: rt1.html - rt7.html (as needed)
   ============================================ */

.video-insert-section {

    /* background: #f5f7fa; */
    background: var(--white);
    padding: 40px 0 10px;
}

.video-insert-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-sizing: border-box;
}

.video-insert-image {
    flex: 0 0 50%;
    max-width: 50%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #000;
    cursor: pointer;
}

.video-insert-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.video-insert-image a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #FF0000;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-insert-image:hover a::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.video-insert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

.video-insert-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.video-insert-title {
    font-size: 2.0em;
    font-weight: 700;
    color: #2c6496;
    margin: 0 0 16px 0;
    font-family: 'Poppins', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.3;
}

.video-insert-description {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 895px) {
    .video-insert-section {
        padding: 25px 0;
    }

    .video-insert-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 30px;
    }

    .video-insert-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .video-insert-content {
        padding: 0;
    }

    .video-insert-title {
        font-size: 1.8em;
    }

    .video-insert-description {
        font-size: 0.95em;
    }

    .video-insert-image a::after {
        width: 60px;
        height: 60px;
        background-size: 30px 30px;
    }
}