﻿/* Base font-size: 16px (1rem = 16px on 1080p) */
html {
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Roboto';
    margin: 0;
    padding: 0;
}
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    color: inherit;
}

/* Typography */

/* Global Utilities */
.text-white {
    color: white;
}

.bg-black {
    background-color: black;   
}

.bg-blue {
    background-color: #41B7E9;
}

.padding-8em {
    padding: 8rem;
}

/* Header Section */
.header-container {
    position: relative;
}

.header-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    /* Loading optimization */
    background-color: #f3f4f6; /* Light gray placeholder */
    transition: opacity 0.3s ease-in-out;
}

.header-image[loading] {
    opacity: 0.7;
}

.header-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.header-title {
    position: absolute;
    top: 39.8rem; /* 636.69px / 16 */
    left: 6.25rem; /* 100px / 16 */
    transform: translateY(-50%);
    color: white;
    font-family: Roboto;
    font-weight: bold;
    font-style: normal;
    font-size: 6.25rem; /* 100px / 16 */
    line-height: 6.75rem; /* 108px / 16 */
    text-align: left;
    letter-spacing: 0;
    width: auto;
}

.header-title .subtitle {
    font-size: 2.5rem;
}

/* Responsive header title for different viewport heights */
@media (max-height: 800px) {
    .header-title {
        top: 50%;
        font-size: 7rem;
        line-height: 7rem;
    }
}

@media (max-height: 700px) {
    .header-title {
        top: 50%;
        font-size: 6rem;
        line-height: 6rem;
    }
}

@media (max-height: 600px) {
    .header-title {
        top: 50%;
        font-size: 5rem;
        line-height: 5rem;
    }
}

@media (max-height: 500px) {
    .header-title {
        top: 50%;
        font-size: 4rem;
        line-height: 4rem;
    }
}

/* Intro Section */
.intro-section {
    position: relative;
    display: flex;
    flex-direction: row;
    font-family: Roboto;
    font-weight: 900;
    font-style: normal;
    font-size: 2.8125rem; /* 45px / 16 */
    line-height: 3.4375rem; /* 55px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
}

.intro-content {
    line-height: 1;
    width: auto;
    flex-grow: 1;
    padding: 8rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: white;
}

.intro-content > .whitespace {
    font-family: Inter;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem; /* 20px / 16 */
    line-height: 1.875rem; /* 30px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
    height: 1.875rem; /* 30px / 16 */
}

.intro-title {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: normal;
    font-size: 2.8125rem; /* 45px / 16 */
    line-height: 3.4375rem !important; /* 55px / 16 */
}

.intro-paragraph {
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem; /* 24px / 16 */
    line-height: 2.375rem; /* 38px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
    margin: 0;
}

.intro-image-middle {
    display: none;
}

.intro-image {
    display: block;
    width: 36vw;
    height: auto;
    margin: 0;
    order: 0;
}

/* Fast Facts Section */
.fast-facts-section {
    position: relative;
    display: flex;
    background-color: black;
    flex-direction: column;
    color: white;
    height: auto;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 8rem;
}

.fast-facts-header-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.fast-facts-header {
    width: 100%;
    height: 3.75rem; /* 60px / 16 */
    border-radius: 0.625rem; /* 10px / 16 */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.fast-facts-title {
    color: rgba(255, 255, 255, 0.9);
    font-family: Roboto;
    font-weight: 700;
    font-style: normal;
    font-size: 2.8125rem; /* 45px / 16 */
    line-height: 3.4375rem; /* 55px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
    margin-right: 0.625rem; /* 10px / 16 */
}

.fast-facts-line {
    flex-grow: 1;
    height: 0.125rem; /* 2px / 16 */
    background-color: white;
    border-radius: 0.0625rem; /* 1px / 16 */
}

/* Custom styling for the airplane icon */
.icon-airplane {
    color: white;
}

.airplane-icon--red {
    color: #E92349;
}

.airplane-icon--blue {
    color: #1C8BC0;
}

.airplane-icon--dark-blue {
    color: #021F4D;
}

/* Fast Facts Grid */
.fast-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem; /* 20px / 16 */
    width: 100%;
    height: auto;
    padding: 0 1.25rem 1.25rem 1.25rem; /* 20px / 16 */
    box-sizing: border-box;
    font-family: 'Roboto Condensed', sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

.fast-fact-block {
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    color: white;
    border-radius: 0.3125rem; /* 5px / 16 */
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
    min-height: 10rem;
}

.fast-fact-number {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: Roboto;
    font-weight: 200;
    font-style: normal;
    font-size: clamp(6rem, 8vw, 10rem);
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
    padding-top: 0.5rem;
}

.fast-fact-text {
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    letter-spacing: 0;
    vertical-align: middle;
    padding-top: 0.5rem;
}

.fast-fact-highlight {
    background-color: #E51937;
    color: white;
    padding: 0.125rem 0.25rem; /* 2px 4px / 16 */
    border-radius: 0.1875rem; /* 3px / 16 */
}

/* Project Cards Grid */
.project-cards-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* 24px / 16 */
    box-sizing: border-box;
    background-color: #000;
    width: 100%;
    overflow: hidden;
}

#project-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 24px / 16 */
    width: 100%;
    max-width: 110rem; /* 1760px / 16 - container max width */
}

.project-card {
    background-color: white;
    /* border-radius: 0.5rem; 8px / 16 */
    box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1), 
                0 0.125rem 0.25rem -0.0625rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 0.1875rem solid black; /* 3px / 16 */
    width: 100%;
    max-width: 34.625rem; /* 554px / 16 */
    margin: 0 auto;
}

.project-card-content {
    padding: 1.5rem; /* 24px / 16 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-icon {
    font-size: 1.875rem; /* 30px / 16 */
    margin-bottom: 1rem; /* 16px / 16 */
}

.project-card-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5625rem; /* 25px / 16 */
    line-height: 3.4375rem; /* 55px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
}

.project-card-description {
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; /* 16px / 16 */
    line-height: 1.5rem; /* 24px / 16 */
    letter-spacing: 0;
    vertical-align: middle;
}

.project-card-link {
    color: black;
    font-size: 0.875rem; /* 14px / 16 */
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-top: auto;
	letter-spacing: .2rem;
}

.project-card-link-arrow {
    margin-left: 0.5rem; /* 8px / 16 */
    font-size: 1.25rem; /* 20px / 16 */
    line-height: 1;
}

.project-card-image-container {
    width: 100%;
    height: 21rem; /* 336px / 16 */
    background-color: #d1d5db;
    border-top: 0.1875rem solid black; /* 3px / 16 */
}

.project-card-image {
    width: 100%;
    height: 100%;
    /* Loading optimization */
    background-color: #d1d5db; /* Matches existing background */
    transition: opacity 0.3s ease-in-out;
    object-fit: cover;
}

/* Airplane SVG sizes */
.airplane-R,
.airplane-b .img,
.airplane-DB {
    width: 2.06625rem; /* 33.06px / 16 */
    height: 2.13125rem; /* 34.1px / 16 */
}

/* Tablet breakpoint - 1050px */
@media (max-width: 1050px) {
    /* Fast facts grid - 2 columns */
    .fast-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Switch to mobile image in intro section */
    .intro-section {
        flex-direction: column;
    }
    
    .intro-image {
        display: none;
    }
    
    .intro-image-middle {
        display: block;
        width: 100%;
        margin: 0;
        padding: 4rem 0;
    }
    
    .intro-content {
        padding: 6rem;
    }
}

/* Fix for fast facts title line break issue */
@media (max-width: 940px) and (min-width: 768px) {
    .fast-facts-header {
        align-items: flex-start;
        gap: 1rem;
        height: auto; /* Allow header to expand */
        min-height: 6rem; /* Set minimum height for multi-line titles */
    }
    
    .fast-facts-header-wrapper {
        height: auto; /* Allow wrapper to expand with content */
        min-height: 6rem;
    }
    
    .fast-facts-title {
        margin-right: 0;
        width: 100%;
        line-height: 1.2; /* Tighter line height for wrapped text */
    }
    
    .svg-line-container {
        display: flex !important;
        align-items: center;
        gap: 0.625rem;
        width: 100%;
    }
    
    .fast-facts-line {
        flex-grow: 1;
    }
}

/* Ensure fast facts header stays above grid on smaller tablet sizes */
@media (max-width: 875px) and (min-width: 768px) {
    .fast-facts-section {
        padding: 4rem 2rem;
    }
    
    .fast-facts-header-wrapper {
        margin-bottom: 2rem;
    }
    
    .fast-facts-title {
        font-size: 2.2rem;
        line-height: 2.8rem;
    }
}

/* Mobile-Only Media Query - Single breakpoint at 768px */
@media (max-width: 767px) {
  html {
    font-size: 12px; /* Smaller base for mobile */
  }
  
  .header-title {
    font-size: 2.8rem; /* scale down for mobile */
    line-height: 1.2;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
  }
  
  .intro-content {
    padding: 2.5rem 1.5rem; /* tighter padding on mobile */
  }
  
  .intro-title {
    margin-bottom: 1.5rem; /* tighter spacing */
  }
  
  .intro-image-middle {
    width: 100%;
    margin: 0;
    padding: 2rem 0; /* reduced spacing around image */
  }
  
  .fast-facts-section {
    padding: 3rem 1rem; /* reduced top/bottom spacing */
    min-height: auto;
  }
    
    .fast-facts-header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0.5rem;
    }
    
    .fast-facts-header-wrapper {
        margin-bottom: 2.83rem; /* Added spacing between header and facts */
    }

    .fast-facts-title {
        font-size: 3rem;
        line-height: 3.83rem;
        margin-right: 0;
        order: 2; /* Move title to second position */
    }

    .svg-line-container {
        order: 1; /* Move SVG and line to first position */
        display: flex;
        align-items: center;
        gap: 0.625rem;
    }

    .fast-facts-line {
        flex-grow: 1;
    }
    
  .fast-facts-grid {
    padding: 0 1.67rem 0 1.67rem; /* Removed bottom padding since section has padding */
    grid-template-columns: repeat(1, 1fr);
    gap: 2.83rem; /* Consistent spacing between facts */
  }
    
    .fast-fact-block {
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 1rem;
        min-height: auto;
    }
    
    .fast-fact-number {
        font-size: 5rem;
        padding-top: 0;
        align-items: center;
    }
    
    .fast-fact-text {
        font-size: 1.2rem;
        line-height: 1.5;
        padding-top: 0;
    }
    
  #project-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem; /* tighter spacing between cards */
    max-width: 100%;
  }
  
  .project-card {
    max-width: 100%; /* full width on mobile */
    width: 100%;
    margin: 0 auto; /* Center the cards */
  }
  
  .project-cards-wrapper {
    padding: 1.25rem; /* tighter spacing */
  }
  
  main {
    margin-top: 0 !important;
  }
  
  .header-image {
    height: 60vh;
    min-height: 320px;
  }
  
  .header-title .subtitle {
    font-size: 1.4rem;
  }
  
  .intro-section {
    flex-direction: column;
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .project-tabs {
    padding: 12px 16px 0;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .project-tab {
    font-size: 14px;
    padding-bottom: 12px;
  }
  
  #tab-current:checked ~ .project-cards-wrapper #project-cards-grid-current,
  #tab-upcoming:checked ~ .project-cards-wrapper #project-cards-grid-upcoming,
  #tab-completed:checked ~ .project-cards-wrapper #project-cards-grid-completed {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .project-card-title {
    font-size: 1.4rem;
  }
}

/* Extra small devices - 480px and below */
@media (max-width: 480px) {
    html {
        font-size: 10px; /* Even smaller for very small screens */
    }
    
  .header-title {
    font-size: 2.4rem;
    top: 42%;
  }

  .intro-content {
    padding: 2rem 1.25rem; /* Updated to 5.5rem top/bottom spacing */
  }

  .intro-title {
    margin-bottom: 1.25rem; /* Same spacing between title and paragraph */
  }

  .intro-image-middle {
    padding: 1.5rem 0; /* Updated to 5.5rem spacing around image */
  }

  .fast-facts-section {
    padding: 2.5rem 1rem; /* Updated to 5.5rem top/bottom spacing */
  }
    
    .fast-facts-header-wrapper {
        margin-bottom: 2.83rem; /* Same spacing between header and facts */
    }
    
    .fast-facts-grid {
        gap: 2.83rem; /* Same spacing between facts */
    }
    
    .project-cards-wrapper {
        padding: 2.83rem 0.5rem; /* Consistent top/bottom spacing, reduced sides */
    }
    
    #project-cards-grid {
        gap: 2.83rem; /* Same spacing between cards */
    }
    
    .project-card {
        max-width: 85%; /* Made cards 85% wide */
        width: 85%;
        margin: 0 auto; /* Center the cards */
    }
    
    .project-card-content {
        padding: 1rem;
    }
    
    .project-card-title {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }
    
    .project-card-description {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }
}

/* SVG line container fix for larger screens */
@media (min-width: 941px) {
    .svg-line-container {
        display: contents; /* This makes the container "invisible" and its children behave as direct children of the flex parent */
    }
}

.project-card-image-container {
    position: relative;
    overflow: hidden;
    /* width: 561px; */
    aspect-ratio: 561 / 486; 
}


.project-card-image-container > a,
.project-card-image-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Default (top center) */
.project-card-image--top-center {
    object-position: 50% 0%;
}

/* Center */
.project-card-image--center {
    object-position: 50% 50%;
}

.project-card-content {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(227, 25, 55, 0.6); /* #E31937 with 60% opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allows clicks to pass through to the link below */
}

.project-card-overlay::before {
    content: "VIEW";
    width: 241px;
    height: 241px;
    border: 4px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Roboto;
    font-weight: 700;
    font-size: 85px;
    line-height: 75px;
    letter-spacing: 0%;
    font-variant: small-caps;
}

.project-card-image-container:hover .project-card-overlay {
    opacity: 1;
}


/* TABS */
body {
	background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
	background-repeat: no-repeat;
	font: 400 16px/1.5em "Open Sans", sans-serif;
}
.page-content {
	max-width: 700px; 
	margin: 32px auto; 
	padding: 32px; 
	background: #fff;
}
a {
	color: #21D4FD; 
	transition: all 0.3s;
}
a:hover {
	color: #B721FF;
}

.tabbed {
	overflow-x: hidden; /* so we could easily hide the radio inputs */
	margin: 32px 0;
	padding-bottom: 16px;
	border-bottom: 1px solid #ccc;
}

.tabbed [type="radio"] {
	/* hiding the inputs */
	display: none;
}

.tabs {
	display: flex;
	align-items: stretch;
	list-style: none;
	padding: 0;
	border-bottom: 1px solid #ccc;
}
.tab > label {
	display: block;
	margin-bottom: -1px;
	padding: 12px 15px;
	border: 1px solid #ccc;
	background: #eee;
	color: #666;
	font-size: 12px; 
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;	
	transition: all 0.3s;
}
.tab:hover label {
	border-top-color: #333;
	color: #333;
}

.tab-content {
	display: none;
	color: #777;
}

/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) label,
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) label,
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tabs .tab:nth-of-type(3) label,
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tabs .tab:nth-of-type(4) label,
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tabs .tab:nth-of-type(5) label {
	border-bottom-color: #fff;
	border-top-color: #B721FF;
	background: #fff;
	color: #222;
}

.tabbed [type="radio"]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1),
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2),
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3),
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4) {
	display: block;
}


/* Section backgrounds */
.projects-section {
    background: #000;
}

/* Hide radio controls */
.project-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Tabs bar: white background above black cards area */
.project-tabs {
    background: #fff;
    padding: 16px 24px 0;
    display: flex;
    gap: 40px;
}

/* Tabs themselves */
.project-tab {
    position: relative;
    border: none;
    background: none;
    padding: 0 0 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

/* Cards wrapper on black */
.project-cards-wrapper {
    background: #000;
    padding: 24px;
}

/* Grids: hidden by default, shown when tab is checked */
.project-cards-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* CURRENT active */
#tab-current:checked ~ .project-tabs label[for="tab-current"],
#tab-upcoming:checked ~ .project-tabs label[for="tab-upcoming"],
#tab-completed:checked ~ .project-tabs label[for="tab-completed"],
#tab-program:checked ~ .project-tabs label[for="tab-program"],
#tab-cmar:checked ~ .project-tabs label[for="tab-cmar"],
#tab-working:checked ~ .project-tabs label[for="tab-working"],
#tab-doing:checked ~ .project-tabs label[for="tab-doing"],
#tab-maximizing:checked ~ .project-tabs label[for="tab-maximizing"],
#tab-payment:checked ~ .project-tabs label[for="tab-payment"] {
    color: #E51937;
    font-weight: 700;
}

/* Underline for active tab */
#tab-current:checked ~ .project-tabs label[for="tab-current"]::after,
#tab-upcoming:checked ~ .project-tabs label[for="tab-upcoming"]::after,
#tab-completed:checked ~ .project-tabs label[for="tab-completed"]::after,
#tab-program:checked ~ .project-tabs label[for="tab-program"]::after,
#tab-cmar:checked ~ .project-tabs label[for="tab-cmar"]::after,
#tab-working:checked ~ .project-tabs label[for="tab-working"]::after,
#tab-doing:checked ~ .project-tabs label[for="tab-doing"]::after,
#tab-maximizing:checked ~ .project-tabs label[for="tab-maximizing"]::after,
#tab-payment:checked ~ .project-tabs label[for="tab-payment"]::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -11px;           /* hangs into the black section */
    width: 143px;
    height: 11px;
    background: #E51937;
    opacity: 1;
}

/* Mobile (default): 1 card across */
#tab-current:checked ~ .project-cards-wrapper #project-cards-grid-current {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 110rem;
}

/* Small/medium screens: 2 cards */
@media (min-width: 600px) {
  #tab-current:checked ~ .project-cards-wrapper #project-cards-grid-current {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Larger screens: 3 cards */
@media (min-width: 900px) {
  #tab-current:checked ~ .project-cards-wrapper #project-cards-grid-current {
    grid-template-columns: repeat(3, 1fr);
  }
}

#tab-upcoming:checked ~ .project-cards-wrapper #project-cards-grid-upcoming {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 110rem;
}

#tab-completed:checked ~ .project-cards-wrapper #project-cards-grid-completed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 110rem;
}


.info-grid {
    display: none;
    gap: 24px;
}
.info-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.info-tabs {
    background: #fff;
    padding: 16px 24px 0;
    display: flex;
    gap: 40px;
}

/* Tabs themselves */
.info-tab {
    position: relative;
    border: none;
    background: none;
    padding: 0 0 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}
.info-section{
    background-color: white;
}
.info-wrapper{
    background:white;
    height:auto;
}

/* CURRENT active */
#tab-program:checked ~ .info-tabs label[for="tab-program"],
#tab-cmar:checked ~ .info-tabs label[for="tab-cmar"],
#tab-working:checked ~ .info-tabs label[for="tab-working"],
#tab-doing:checked ~ .info-tabs label[for="tab-doing"],
#tab-maximizing:checked ~ .info-tabs label[for="tab-maximizing"],
#tab-payment:checked ~ .info-tabs label[for="tab-payment"] {
    color: #E51937;
    font-weight: 700;
}

#tab-program:checked ~ .info-tabs label[for="tab-program"]::after,
#tab-cmar:checked ~ .info-tabs label[for="tab-cmar"]::after,
#tab-working:checked ~ .info-tabs label[for="tab-working"]::after,
#tab-doing:checked ~ .info-tabs label[for="tab-doing"]::after,
#tab-maximizing:checked ~ .info-tabs label[for="tab-maximizing"]::after,
#tab-payment:checked ~ .info-tabs label[for="tab-payment"]::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -11px;           /* hangs into the black section */
    width: 100%;
    height: 11px;
    background: #E51937;
    opacity: 1;
}

#tab-program:checked ~ .info-wrapper #info-program {
    display:block;
    margin:5%;
    width: 100%;
}
#tab-cmar:checked ~ .info-wrapper #info-cmar {
        display:block;
    margin:5%;
    width: 100%;
}
#tab-working:checked ~ .info-wrapper #info-working {
        display:block;
    margin:5%;
    width: 100%;
}
#tab-doing:checked ~ .info-wrapper #info-doing {
        display:block;
    margin:5%;
    width: 100%;
}
#tab-maximizing:checked ~ .info-wrapper #info-maximizing {
        display:block;
    margin:5%;
    width: 100%;
}
#tab-payment:checked ~ .info-wrapper #info-payment {
        display:block;
    margin:5%;
    width: 100%;
}

/* Shared image width so everything aligns */
:root {
  --resource-img-width: 247px;
  --resource-img-height: 320px;
}

/* Row of cards */
.resources-div {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin-block: 2rem;
}

/* Individual card */
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* card wider than image: “about 50% extra on both sides” */
  width: calc(var(--resource-img-width) * 1.75);
  max-width: 100%;
  font-family: Roboto, Arial, sans-serif;
}

/* Image link */
.resource-card__image-link {
  display: block;
  margin: 0 auto; /* centers the image in the card */
}

/* Image itself – uniform size */
.resource-card__image {
  display: block;
  width: var(--resource-img-width);
  height: var(--resource-img-height);
  object-fit: cover;
}

/* Text + arrow row (clickable) */
.resource-card__info-link {
  display: flex;
  align-items: flex-start;  /* arrow aligns with first line of text */
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  text-decoration: none;
  color: #000;
}

/* Text block – left aligned, can wrap */
.resource-card__title {
  flex: 1 1 auto;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
}

/* Arrow – stays on the right, top-aligned */
.resource-card__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-start;
}

/* Make sure the SVG scales nicely if needed */
.resource-card__arrow svg {
  width: 35px;
  height: auto;
}

/* Responsive tweak if you want them stacked on small screens */
@media (max-width: 600px) {
  .resource-card {
    width: 100%;
  }
}



/* CURRENT active */
#tab-2026:checked ~ .news-tabs label[for="tab-2026"],
#tab-2025:checked ~ .news-tabs label[for="tab-2025"],
#tab-2024:checked ~ .news-tabs label[for="tab-2024"],
#tab-2023:checked ~ .news-tabs label[for="tab-2023"],
#tab-2022:checked ~ .news-tabs label[for="tab-2022"],
#tab-2021:checked ~ .news-tabs label[for="tab-2021"],
#tab-2020:checked ~ .news-tabs label[for="tab-2020"],
#tab-2019:checked ~ .news-tabs label[for="tab-2019"],
#tab-2018:checked ~ .news-tabs label[for="tab-2018"]
{
    color: #E51937;
    font-weight: 700;
}

/* Underline for active tab */
#tab-2026:checked ~ .news-tabs label[for="tab-2026"]::after,
#tab-2025:checked ~ .news-tabs label[for="tab-2025"]::after,
#tab-2024:checked ~ .news-tabs label[for="tab-2024"]::after,
#tab-2023:checked ~ .news-tabs label[for="tab-2023"]::after,
#tab-2022:checked ~ .news-tabs label[for="tab-2022"]::after,
#tab-2021:checked ~ .news-tabs label[for="tab-2021"]::after,
#tab-2020:checked ~ .news-tabs label[for="tab-2020"]::after,
#tab-2019:checked ~ .news-tabs label[for="tab-2019"]::after,
#tab-2018:checked ~ .news-tabs label[for="tab-2018"]::after
{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -11px;           /* hangs into the black section */
    width: 125%;
    height: 11px;
    background: #E51937;
    opacity: 1;
}

.news-tab {
    position: relative;
    border: none;
    background: none;
    padding: 0 0 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

.news-tabs {
    background: #fff;
    padding: 16px 24px 0;
    display: flex;
    gap: 40px;
    border-bottom: 1px #EFEFEF solid;
}

.news-section {
    width: 80vw;
    margin: auto;
}
.headerBP{
    font-weight:bold !important;
}

.info-tab {
    position: relative;
    border: none;
    background: none;
    padding: 0 0 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

.info-tabs {
    background: #fff;
    padding: 16px 24px 0;
    display: flex;
    gap: 40px;
    border-bottom: 1px #EFEFEF solid;
}

.info-section {
    width: 80vw;
    margin: auto;
}


@media (min-width: 768px) {
  #tab-upcoming:checked ~ .project-cards-wrapper #project-cards-grid-upcoming,
  #tab-completed:checked ~ .project-cards-wrapper #project-cards-grid-completed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  #tab-upcoming:checked ~ .project-cards-wrapper #project-cards-grid-upcoming,
  #tab-completed:checked ~ .project-cards-wrapper #project-cards-grid-completed {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: stack project tabs vertically and make them full-width */
@media (max-width: 767px) {
  .project-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;              /* no gaps; borders act as dividers */
    padding: 0;
    width: 100%;
    background: transparent; /* tabs themselves are red */
  }

  .project-tab {
    display: block;
    width: 100%;
    box-sizing: border-box;

    background: #E51937;
    color: #fff;

    padding: 2rem 3rem 2rem 1.25rem; /* extra right padding for ellipsis */
    text-align: left;

    position: relative;      /* anchor for the ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* keep long labels tidy */
    font-weight: 400;
  }

  /* Restore bottom border on the last tab */
  .project-tab:last-child {
    border-bottom: 1px solid #000;
  }

  /* Remove the desktop "active underline bar" on mobile */
  .project-tab::after {
    content: none !important;
  }

  /* Right-aligned ellipsis indicator (mobile-only) */
  .project-tab::before {
    content: "…";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
  }

  /* Optional: make the active tab slightly darker and bolder */
  #tab-current:checked ~ .project-tabs label[for="tab-current"],
  #tab-upcoming:checked ~ .project-tabs label[for="tab-upcoming"],
  #tab-completed:checked ~ .project-tabs label[for="tab-completed"] {
    background: #B3132A;   /* darker red */
    font-weight: 700;
  }
}

@media (max-width: 767px) {
  /* Hide ellipsis by default */
  .project-tab::before {
    content: none;
  }

  /* Active tab: white background, red text, show ellipsis */
  #tab-current:checked ~ .project-tabs label[for="tab-current"],
  #tab-upcoming:checked ~ .project-tabs label[for="tab-upcoming"],
  #tab-completed:checked ~ .project-tabs label[for="tab-completed"] {
    background: #fff;
    color: #E51937;
    font-weight: 700;
  }

  /* Ellipsis only on active tab */
  #tab-current:checked ~ .project-tabs label[for="tab-current"]::before,
  #tab-upcoming:checked ~ .project-tabs label[for="tab-upcoming"]::before,
  #tab-completed:checked ~ .project-tabs label[for="tab-completed"]::before {
    content: "…";
    position: absolute;
    right: 1rem;
    top: 30%;
    transform: translateY(-50%);
    color: #E51937;
    font-size: 3.5rem;
    line-height: 1;
    pointer-events: none;
    font-weight: 400;
  }
}
