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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* Header Styles */
header {
  background: #0056b3;
  color: #fff;
  padding: 20px 0;
}

/* apply to both wrapper classes inside header */
header .container,
header .header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* logo + title at left */
  padding: 10px 0;               /* tweak height if needed */
}

/* CSS-built logo */
.css-logo-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-right: 15px;           /* space between logo and title */
}

.css-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:    1fr 1fr;
  width: 56px;
  height: 56px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1;
}

.square {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  box-sizing: border-box;
}
.tl, .br { background: #002b5c; }
.tr, .bl { background: #000; }

/* Site title */
header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  margin-right: 30px;           /* space between title and nav */
}

/* Nav */
header nav {
  margin-left: auto;            /* push nav to the right */
  display: flex;
  gap: 20px;                    /* uniform spacing */
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  /* removed individual margin-left */
}


/* Hero */
.hero {
  background: #f4f6f8;
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  color: #002b5c;
  font-size: 2.5rem;
}
.hero p {
  color: #555;
  font-size: 1.1rem;
}

/* Section Headings */
section {
  padding: 60px 0;
}
section h2 {
  color: #002b5c;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Cards Grid */
.cards {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
  justify-items: center;
}

/* Card */
.card {
  background: #f4f6f8;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}
.card:hover {
  background: #e9eef6;
}

/* Card Header */
.card-header {
  padding: 20px;
  text-align: center;
}
.card-header img {
  width: 200px;
  height: 200px;
  border-radius: 80%;
  object-fit: cover;
  margin-bottom: 15px;
}
.card-header h3 {
  font-size: 1.2rem;
  color: #002b5c;
  margin-bottom: 8px;
}
.card-header p {
  font-size: 0.95rem;
  color: #555;
}

/* Card Details */
.card-details {
  max-height: 0;
  padding: 0 20px;
  background: #fff;
  color: #333;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.card:hover .card-details {
  max-height: 350px;
  padding: 20px;
}
.card-details h4 {
  margin-bottom: 10px;
  color: #002b5c;
}
.card-details small {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #777;
}
.card-details ul {
  list-style: disc inside;
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}
.card-details ul li {
  margin-bottom: 6px;
}

/* Footer Styles */
footer {
  background: #0056b3;
  color: #fff;
  padding: 20px 0;
  margin-top: auto;  /* pushes footer to page bottom in flex layouts */
}

/* apply to both wrapper classes inside footer */
footer .container,
footer .footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;        /* uniform spacing between items */
}

footer a {
  color: #fff;
  text-decoration: none;
  /* no need for individual margin-rights if using gap */
}

