/* NHCP-styles-main-page.css */
/* This CSS file is used to style the NHCP main page. It includes styles for the body, headings, paragraphs, links, and navigation elements. */
/* The styles are designed to create a clean and professional look for the NHCP website, with a focus on readability and accessibility. */

/* Style for the header section of the webpage */
header {
    background-image: url('Images/NHCP-img-3_2048x616-banner.png'); /* Sets the background image for the header */
    background-size: cover; /* Ensures the background image covers the entire header */
    background-position: center; /* Centers the background image */
    padding: 10px; /* Adds padding around the header content */
    text-align: center; /* Centers the header content */
    align-items: center; /* Centers the header content vertically */
    display: flex; /* Enables flexbox layout for the header */
    justify-content: center; /* Centers the header content horizontally */
    box-shadow: 0 24px 18px #ffffff; /* Adds a subtle shadow to the header for better visual separation */
}

header div {
    background-color: #ffffff; /* Adds a semi-transparent black background to the header text for better readability */
    max-width: 45ch; /* Ensures the header text does not exceed the width of its container */
    align-items: center; /* Centers the header text vertically */
    justify-content: center; /* Centers the header text horizontally */
    border: 2px solid #f69b1f; /* Adds a border around the header text for better visual separation */
    padding: 10px; /* Adds padding around the header text for better spacing */
    border-radius: 24px; /* Rounds the corners of the header text background for a modern look */
}

header h2 {
    color: #0d5776; /* Sets the text color to a blue for better readability against the header background */
}

/* General body styles */
body {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for the entire page */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    /*background-color: #ffffff; /* Set background color to white. Change to image of NHCP logo.*/
    background-image: url('Images/NHCP-img-1.jpg'); 
    background-size: cover; /* Ensures the background image covers the entire viewport */
    background-position: center; /* Centers the background image */
    color: #000000; /* Sets the text color to black for better readability against a white background */
    line-height: 1.6;
    text-align: center; /* Centers the text for a clean and professional look */
}

/*Style for heading 1, 2, and 3*/
h1, h2, h3 {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for headings */
    color: #000000; /* Black color for headings */
    text-align: center; /* Center-aligns the headings for a balanced look */
    padding: 0px 15px; /* Adds padding to the left and right of headings for better spacing on smaller screens */
}

p {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for paragraphs */
    color: #000000; /* Medium gray color for paragraphs */
    line-height: 1.6; /* Increase line height for better readability */
}

ul {
    list-style-type: none; /* Removes default bullet points from the list */
}

a {
    color: #574f8a; /* Sets the link color to a shade of purple for better visibility */
    text-decoration: none; /* Removes underline from links for a cleaner look */
}

/*Style for links on hover*/
a:hover {
    color: #ffffff; /* Changes the link color to red on hover for better visibility */
    text-decoration: underline; /* Underlines the link text on hover for better visibility */
    
}

/*Style for links when they are focused (tabbing through the content links), adds an outline for better accessibility*/
a:focus-visible {
    outline: 2px solid #01fff7; /* Adds a visible outline to links when they are focused for better accessibility */
    outline-offset: 4px; /* Adds space between the outline and the link text for better visibility */
}
/*Style for the main content area and sections*/
main {
    padding: 24px; /* Adds padding around the main content for better spacing */
    max-width: 1024px; /* Sets a maximum width for the main content area to prevent it from stretching too wide on large screens */
    margin: 0 auto; /* Centers the main content horizontally within the viewport */
}

/*Style for sections and navigation list items*/
section { /* Adds spacing between sections for better readability */
    margin-bottom: 32px; /* Adds space below each section for better separation */
    background-color: #ffffff;
    border: 2px solid #f69b1f;
    border-radius: 10px;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px #08374b;
    transition: all 0.2s ease;
}

/*Style for navigation unordered list and items and removes bullet points*/
nav {
    max-width: 1020px; /* Sets a maximum width for the navigation bar to prevent it from stretching too wide on large screens */
    margin: 0 auto;/* Centers the navigation bar horizontally within the viewport */
    justify-content: space-between; /* Aligns navigation items to the start of the nav bar */
    gap: 9px; /* Adds space between navigation items for better readability */
    padding: 5px 15px; /* Adds horizontal padding to the nav bar for better spacing on smaller screens */
    display: flex; /* Uses flexbox to layout navigation items in a row */ 
    align-items: center; /* Vertically centers the navigation items within the nav bar */
} 

/* Placeholder box for the NHCP logo until the real image is connected */
.nav-logo img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 120px;
    max-height: auto;
    padding: 0; /* Removes default padding from the image container */
    border: 2px solid #d03333c1;
    border-radius: 12px;
    background-color: rgba(77, 98, 249, 0.06);
}

/*Style for navigation h3 element to push it to the right side of the navigation bar*/
nav h3 {
    margin-left: auto; /* Pushes the h3 element to the right side of the navigation bar */
    padding: 0;/* Removes any default padding from the h3 element for a cleaner look */
}

/* makes navigation links look like buttons with padding, border, rounded corners, and a semi-transparent background for a modern and clean appearance */
nav a {
    display: inline-block; /* Makes the links behave like buttons by allowing padding and border to be applied */
    text-decoration: none; /* Removes underline from links for a cleaner look */
    padding: 7px 11px; /* Adds padding inside the links for better clickability and visual appeal */
    border: 2px solid #aa3240b2; /* Adds a semi-transparent border to the links for a subtle button-like appearance */
    border-radius: 999px; /* Rounds the corners of the links to create a pill-shaped appearance */
    background-color: #f5b22b86; /* Adds a semi-transparent background color to the links for a modern look */
}

/*Style for navigation unordered list to layout navigation items in a row and allow wrapping on smaller screens*/
nav ul {
    display: flex; /* Uses flexbox to layout navigation items in a row */
    flex-wrap: wrap; /* Allows navigation items to wrap to the next line on smaller screens */
    gap: 16px; /* Adds space between navigation items for better readability */
    margin-left: auto; /* Pushes the navigation list to the right side of the navigation bar */
    padding: 0; /* Removes default padding from the list for a cleaner look */
}

/*Style for navigation list items, adds spacing and padding for better readability*/
nav li {
    margin: 0; /* Removes default margin from list items for a cleaner look */
    padding: 0; /* Removes default padding from list items for a cleaner look */
}

#intro-vid {
    width: 700px; /* Ensures the title does not exceed the width of its container */
}

#intro-vid, #nhcp-vs-finland {
    text-align: center; /* Centers the title within its container */
    margin: 0 auto; /* Centers the video horizontally within its container */
    margin-bottom: 8px; /* Adds space below the video for better spacing */
    background-color: #ffffff;
}

.eye-catchers-columns, .two-column-section-1, .two-column-section-2 {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    height: auto;   /* or whatever looks right */
}

/* Make both sections share the space evenly */
.eye-catchers-columns > section, .two-column-section-1 > section, .two-column-section-2 > section {
    flex: 1;
    min-width: 0;
    display: flex; /* allows children to stretch */
    flex-direction: column;
}

.contribute-grid {
    display: flex;
    justify-content: center;
}

.contribute-grid li {
	aspect-ratio: 1 / 1;
    width: 75px;
	height: 75px;
	display: inline-grid;
	text-align: center;
	border: 2px solid #000000;
	padding: 5px;	
}

.contribute-grid img { 
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

#contributions p {
    padding: 13px; /* Adds padding around the paragraph for better spacing */
    text-align: center;
    margin: 0 auto; /* Centers the paragraph horizontally */
}
.executive-director-video {
    width: min(100%, 560px); /* Sets a fixed width for the video and slideshow */
    max-width: 100%; /* Ensures the video and slideshow do not exceed the width of their container */
    text-align: center; /* Centers the video within its container */
    margin: 0 auto; /* Centers the video horizontally within its container */
    margin-bottom: 10px; /* Adds space below the video for better spacing */
}

.executive-director-video iframe, #nhcp-vs-finland iframe {
    box-shadow: 0 0 24px #67618c; /* Adds a subtle shadow for depth */
}

.executive-director-video iframe {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 2px;
}

/* Base styles for the "About the NHCP" section and the "NHCP vs Finland" section */
#nhcp-vs-finland, #about-mission {
    width: 100%;
    padding: 8px;
    margin: 0 auto;
    display: flex;  /* allows child content to fill height */
    flex-direction: column; /* critical */
    align-items: center;
    background-color: #ffffff;
}

/* Styles for the "About the NHCP" flip card */
#about-mission { 
    flex: 1;            /* allows it to stretch */     
    text-align: center;
    perspective: 1000px; /* Adjust the perspective value as needed */
    cursor: pointer;   /* Changes the cursor to a pointer to indicate interactivity */
    position: relative; /* Establishes a positioning context for the front and back sides */
    transition: transform 0.6s; /* Smooth transition for the flip effect */
    transform-style: preserve-3d; /* Ensures the 3D effect is preserved */
}

#about-mission:focus-visible {
    outline: 2px solid #01fff7;
    outline-offset: 4px;
}

/* Flip after a click */
#about-mission.is-flipped {
    transform: rotateY(180deg);
}

/* Front & Back sides */
.flip-card-front,
.flip-card-back {
    position: relative; /* Establishes a positioning context for the front and back sides */
    transition: transform 0.6s; /* Smooth transition for the flip effect */
    transform-style: preserve-3d; /* Ensures the 3D effect is preserved */
    width: 100%;
    backface-visibility: hidden;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #ffffff;
}

.flip-card-front img {
    max-width: 150px;
    height: auto;
    aspect-ratio: 1/1;
}
/* front side of card */
.flip-card-front {
    min-height: 320px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
}

/* Back side rotated */
.flip-card-back {
    transform: rotateY(180deg);
}

#about-mission h2 {
    color: #0d5776;
}

#about-mission p { 
    text-indent: 5ch;
    text-align: center;
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;        /* vertical */
    height: 100%;               /* fill the column */
}

#nhcp-sponsor-partners p {
    text-indent: 5ch;
    padding: 10px;
    text-align: center;
    display: block;
    max-height: 100px;               /* fill the column */
}

.teb-descript {
    max-width: 57ch;
    padding: 5px 10px;
    margin: 0 auto;
}
#nhcp-vs-finland iframe {
    max-width: 450px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    display: block;
    height: auto;
    border: 2px;
}

.nhcp-newsletter img {
    max-width: 150px;
    height: auto;
    aspect-ratio: 1/1;
    border: 2px solid #184e1b; /* Adds a semi-transparent border to the links for a subtle button-like appearance */
    border-radius: 10px; /* Rounds the corners of the links to create a pill-shaped appearance */
}

.nhcp-newsletter h2 {
    color: #005707;
}

.nhcp-newsletter a {
    display: inline-block;
    text-decoration: none;
    color: #135300;
    padding: 5px 10px;
    margin-top: 10px;
}

/* Container */
.dropdown {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    background: #ffffff00;
    padding: 0;
    overflow: hidden;
}

/* Summary (the clickable header) */
.dropdown > summary {
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

/* Remove default arrow so you can style your own */
.dropdown > summary::-webkit-details-marker {
    display: none;
}

/* Add your own arrow */
.dropdown > summary::after {
    content: "▼";
    float: right;
    transition: transform 0.2s ease;
}

/* Rotate arrow when open */
.dropdown[open] > summary::after {
    transform: rotate(-180deg);
}

/* Content area */
.dropdown .transcript {
    padding: 16px;
    border-top: 1px solid #ccc;
    background: #fff;
}

.transcript p {
    text-align: left;
}

.transcript-scroll {
    max-height: 300px;      /* adjust height as needed */
    overflow-y: auto;       /* enables vertical scrolling */
    padding-right: 10px;    /* prevents scrollbar overlap */
}

#nhcp-contact {
    margin: 0 auto;/* Centers the navigation bar horizontally within the viewport */
    max-width: 500px;
    gap: 5px;
    background-color: #ffffff;
    border: 2px solid #f69b1f;
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

#nhcp-contact a {
    display: inline-block; /* Makes the links behave like buttons by allowing padding and border to be applied */
    text-decoration: none; /* Removes underline from links for a cleaner look */
    color: #000000;
    padding: 5px 9px; /* Adds padding inside the links for better clickability and visual appeal */
    border: 1px solid #00ff4c; /* Adds a semi-transparent border to the links for a subtle button-like appearance */
    border-radius: 700px; /* Rounds the corners of the links to create a pill-shaped appearance */
    background-color: #b2bbff; /* Adds a semi-transparent background color to the links for a modern look */
}

#nhcp-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 9px #76d6ffc7;
    transition: all 0.2s ease;
}

#nhcp-contact a:hover {
    color: #ffffff; /* Changes the link color to red on hover for better visibility */
    text-decoration: underline; /* Underlines the link text on hover for better visibility */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust the gap between logos as needed */
    flex-wrap: nowrap; /* Prevents logos from wrapping to the next line on smaller screens */
    padding: 10px; /* Adds padding around the logos for better spacing */
    overflow-x: auto; /* Enables horizontal scrolling if logos exceed the container width */
    overflow-y: hidden; /* Hides vertical overflow to prevent unwanted scrollbars */
    scroll-behavior: smooth; /* Enables smooth scrolling for a better user experience */
    scroll-snap-type: x mandatory; /* Enables scroll snapping for a better user experience */
    scroll-padding: 10px; /* Adds padding around the scrollable area for better spacing */
    border: 2px solid transparent; /* Adds a border around the logo wrapper for better visibility */
    border-radius: 15px; /* Rounds the corners of the logo wrapper for a modern look */
}

/* Sizes the logo slot */
.logo-item {
    max-width: 150px; /* Adjust the maximum width of logos as needed */
    height: auto; /* Maintains the aspect ratio of logos */
    display: flex;
    gap: 25px; /* Adjust the gap between logos as needed */
    flex-shrink: 0; /* Prevents logos from shrinking below their natural size */
    scroll-snap-align: start; /* Ensures each logo snaps to the start of the container */
    border: 2px solid #f07929; /* Adds a border around each logo for better visibility */
    border-radius: 10px; /* Rounds the corners of each logo for a modern look */
}

.logo-item img {
    aspect-ratio: 1 / 1; /* Maintains the aspect ratio of logos */
    max-width: 100%; /* Ensures logos do not exceed their container width */
    height: auto; /* Maintains the aspect ratio of logos */
    display: block; /* Removes any extra space below the image */
    object-fit: contain; /* Ensures logos are contained within their container without distortion */
    display: flex;
    justify-content: center;
    border-radius: 10px; /* Rounds the corners of each logo for a modern look */
}

@media (max-width: 700px) {
    .two-column-section-1, .two-column-section-2 {
        flex-direction: column;
    }
}
