/* Reset */
body, h1, h2, p, ul {
  margin: 10px;
  padding: 10px;
}

/* Global */
body {
  font-family: Playfair, serif;
  background: #f2eeec;
  color: #5a7782;
  line-height: 1.6;
}

/* Navigation */
header {
  background: #5a7782; /* dark brown */
  color: #f2eeec;
  padding: 1rem 2rem;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav h1 a {
  color: #f2eeec;
  text-decoration: none;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

header nav ul li a {
  color: #f2eeec; /* light beige */
  text-decoration: none;
}

header nav ul li a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  background: #f3f2ef;
}

.hero img {
  width: 90px;
  border-radius: 50%;
  margin-right: 2rem;
}

.hero h2 {
  color: #2f3e34;
}

.hero p {
  color: #444;
}


.profile-pic {
  display: block;
  margin: 60px auto;       /* centers image horizontally */
  max-width: 500px;     /* adjust until it looks right */
  height: auto;         /* keeps proportions */
}

.about-text {
  max-width: 600px;   /* same as your image max-width */
  margin: 0 auto;     /* centers it */
  text-align: center; /* optional: centers the text inside */
}






.research-preview {
  text-align: center;
  padding: 40px 20px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.research-card {
  display: block;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.research-card h3 {
  margin-top: 0;
}




.courses-preview {
  text-align: center;
  padding: 40px 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ensures 2 columns */
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.course-card {
  display: block;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 5px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}




.course-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
}

.course-content {
  display: flex;
  align-items: flex-start; /* align tops of image & text */
  gap: 20px; /* space between image and text */
  flex-direction: column;
  text-align: center;
}


.course-card h3 {
  margin-top: 0;
  width: 50%;
  height: auto;
  text-align: center;
}

.course-text {
  max-width: 600px;   /* same as your image max-width */
  margin: 0 auto;     /* centers it */
  text-align: center; /* optional: centers the text inside */
}





.contact-section {
  max-width: 600px;   /* limits width */
  margin: 50px auto;  /* centers section */
  padding: 20px;
}

.contact-section iframe {
  width: 100%;        /* full width of container */
  height: 600px;      /* adjust height as needed */
  border: none;
  border-radius: 8px; /* optional rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* subtle shadow */
}

/* --- At the Griot Page Styles --- */

header .subtitle {
  margin-top: 0.1rem;
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: 0px;
}

.image-header {
  display: flex;
  justify-content: center;   /* centers the row horizontally */
  gap: 0.1rem;                 /* adds space between images */
  align-items: center;
  flex-wrap: nowrap;           /* allows them to stack on small screens */
  overflow:scroll;
  gap: 0.5rem;
  margin: 1rem 0;
}

.image-header img {
  width: 48%;                /* each takes up about half the width */
  border-radius: 8px;
  display: block;
  object-fit: cover;
  height: 200px;
}



.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.post h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #3b2f2f;
}

.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.post img,
.post video {
  display: block;
  width: 60%;
  border-radius: 8px;
  margin: 1rem auto; 
}


.image-row {
  display: flex;
  justify-content: center;   /* centers the row horizontally */
  gap: 1rem;                 /* adds space between images */
  flex-wrap: wrap;           /* allows them to stack on small screens */
  margin: 1rem 0;
}

.image-row img {
  width: 48%;                /* each takes up about half the width */
  border-radius: 8px;
  display: block;
}


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

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin: 3rem 0 1rem;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  .post {
    padding: 1rem;
  }
}