/* 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;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Header Styles */
header {
  background:   #0056b3;
  color: #fff;
  padding: 20px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* pack logo + title to the left */
  padding: 10px 0;              /* tweak header height if needed */
}

.css-logo-link {
  display: inline-block;
  text-decoration: none;
  /* if you want the white badge around it: */
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-right: 15px;
}

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

.square {
  display: flex;
  align-items: center;
  justify-content: center;
   /* add white borders */
  border: 1px solid #fff;
  box-sizing: border-box;  /* include border in the square’s size */
}

/* top-left & bottom-right: navy */
.tl, .br {
  background: #002b5c;
}

/* top-right & bottom-left: black */
.tr, .bl {
  background: #000;
}

/* put “R” only in the black squares */
.tr, .bl {
  /* letter is already inserted in HTML */
}

header nav {
  margin-left: auto;            /* ← this is the magic line */
  display: flex;                /* lay links out in a row */
  gap: 20px;                    /* space between links */
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  margin-right: 30px;           /* space between title and nav */
}

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

/* Hero Section */
.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;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 60px 0;
}
.timeline:before {
  left: 50%;           /* adjust this to move line left/right */
  width: 4px;          /* adjust thickness here */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  background: #e0e0e0;
  transform: translateX(-50%);
  z-index: 1;
}
.entry {
  position: relative;
  width: 45%;
  padding: 20px;
}
.entry:nth-child(odd) {
  left: 0;
  text-align: right;
}
.entry:nth-child(even) {
  left: 55%;
  text-align: left;
}

/* Timeline dot positioning */
.entry:before {
  content: '';
  position: absolute;
  top: 30px;           /* adjust vertical offset of dot */
  width: 16px;         /* adjust dot size */
  height: 16px;
  background: #002b5c; /* dot color */
  border-radius: 50%;
  z-index: 2;
}
.entry:nth-child(odd):before {
  left: 109%;        /* dot at right edge of left entries */
  transform: translateX(0);
}
.entry:nth-child(even):before {
  left: -11.5%;        /* dot at left edge of right entries */
  transform: translateX(0);
}

/* Year text: adjust margins to move closer to dot */
.entry h3 {
  font-size: 1.2rem;   /* year font size */
  color: #002b5c;
  margin-bottom: 5px;
}
.entry:nth-child(odd) h3 {
  margin-right: 10px;  /* reduce this to bring year closer to dot */
}
.entry:nth-child(even) h3 {
  margin-left: 10px;   /* reduce this to bring year closer to dot */
}

/* Description text: align under year and close to dot */
.entry span {
  font-size: 0.9rem;   /* description font size */
  color: #777;
  margin-top: 2px;     /* adjust line spacing */
  display: block;
}
.entry:nth-child(odd) span {
  margin-right: 10px;  /* align left description closer */
}
.entry:nth-child(even) span {
  margin-left: 10px;   /* align right description closer */
}

/* New snippet: nudge year and description even closer */
.entry:nth-child(odd) h3,
.entry:nth-child(odd) span {
  margin-right: -50px;  /* increase or decrease this value */
}
.entry:nth-child(even) h3,
.entry:nth-child(even) span {
  margin-left: -50px;   /* increase or decrease this value */
}

/* 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 */
}
