/* ================================
   Reset & Base Styles
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    color: #191717;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* ================================
   Navigation
================================ */
nav.navbar {
    background-color: #082f56;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.navbar ul {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 30px;
    flex-wrap: wrap;
}

nav.navbar ul li a {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav.navbar ul li a:hover {
    color: #aec6cf; /* lighter accent on hover */
}

/* ================================
   Header / Hero Section (Solid Navy)
================================ */
header.header-background {
    width: 100%;
    min-height: 250px;       
    background-color: #041a30; /* Navy color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.header-text {
    color: #ffffff;
    text-align: center;
    max-width: 900px;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: bold;
}

.header-text p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ================================
   Main Sections
================================ */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
}

section {
    margin-bottom: 50px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #194067;
    text-align: center;
}

/* Paragraph text */
.text-container p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* ================================
   Focus Areas (Tile/Grid Layout)
================================ */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.tile {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.tile-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tile h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #021529;
}

.tile p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ================================
   Collaborators / Partners
================================ */
.collaborators ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
}

.collaborators li {
    background: #f9fafc;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 1rem;
}

/* ================================
   Projects Section (Cards)
================================ */
.project-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.project-item h3 {
    color: #194067;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.project-item ul.nested-list {
    margin-top: 10px;
    padding-left: 20px;
}

/* ================================
   Footer
================================ */
footer {
    background-color: #2c3a48;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ================================
   Responsive Adjustments
================================ */
@media (max-width: 1024px) {
    header.header-text h1 {
        font-size: 1.8rem;
    }
    .header-text {
        padding: 25px 40px;
    }
}

@media (max-width: 768px) {
    nav.navbar ul {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .tiles-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    header.header-text h1 {
        font-size: 1.5rem;
        padding: 15px 25px;
    }
}
.current-members-box {
    padding: 20px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.members-grid div {
    background-color: #f4f6f9;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* ================================
   Adjustments for projects.html
================================ */

/* Container holding all project tiles */
/* Container for project boxes stacked vertically */
.tiles-container2 {
    display: flex;
    flex-direction: column; /* stack boxes on top of each other */
    gap: 25px;
    align-items: center;    /* center the boxes horizontally in page */
}

/* Each project box */
.tile2.project-item2 {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px 40px;
    width: 90%;            /* wide box */
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    
    text-align: left !important; /* FORCE left alignment */
    word-wrap: break-word;
}

/* Project heading */
.tile2.project-item2 h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #002147;
    text-align: left !important;
}

/* Paragraph styling */
.tile2.project-item2 p {
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left !important;
}

/* Nested lists */
.nested-list2 {
    padding-left: 30px;
    line-height: 1.5;
    text-align: left !important;
}

/* Header styling */
.header-background {
    background-color: #001f3f; /* navy */
    color: #ffffff;
    padding: 60px 0;
}

.header-text2 h1 {
    text-align: center;
    margin: 0;
}

/* Section title */
.section-title2 {
    text-align: center;
    margin-bottom: 30px;
}


/* ================================
   tyles for Research Focus html
================================ */


.tiles-container3 {
    display: flex;
    flex-direction: column; /* stack boxes vertically */
    gap: 20px; /* space between boxes */
}

.project-item3 {
    background-color: #f2f2f2;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;  /* ensures text is left-aligned */
    width: 100%;
    min-height: 250px; /* ensures all boxes have at least this height */
    box-sizing: border-box;
}

.project-item3 ul {
    padding-left: 20px; /* Indent first-level list items */
    margin-top: 10px;
}

.project-item3 ul ul {
    padding-left: 20px; /* Indent second-level nested list items */
}

.project-item3 li {
    margin-bottom: 6px; /* Space between list items */
}


/* ================================
   logo's styles 
================================ */


.logo-image {
  display: block;
  margin: 0 auto;
  width: 80px; /* adjust if needed */
  height: auto;
}

.logo2-image {
  display: block;
  margin: 0 auto;
  width: 180px; /* adjust if needed */
  height: auto;
}

.title-logo {
  text-align: center;
}
