/* Reset & base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.6;
  margin: 0;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background-color: #1a1a1a;
  padding: 15px;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #4da6ff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Image */
.hero-img {
  width: 30%;
  max-height: none;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-img:hover {
  box-shadow: 0 8px 20px #4da6ff;
  transform: scale(1.03);
}


/* Content Sections */
.content-section {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1, h2 {
  color: #4da6ff;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  color: #fff;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border: 1px solid #333;
  text-align: left;
}

th {
  background-color: #292929;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  padding: 30px;
  text-align: center;
  margin-top: 50px;
}

footer a {
  color: #4da6ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Gallery */
/* Common styles for all typhoon containers */
#typhoon1,
#typhoon2,
#typhoon3,
#typhoon4 {
  position: relative;
  width: 50%;                  /* uniform width for all */
  margin: 20px auto;           /* centers and adds vertical gap */
  border: solid #4da6ff 1px;   /* consistent border */
  border-radius: 25px;
  overflow: hidden;            /* clip caption inside border radius */
  box-sizing: border-box;      /* include border in width */
}

/* Images inside each container */
#typhoon1 img,
#typhoon2 img,
#typhoon3 img,
#typhoon4 img {
  width: 100%;
  border-radius: 25px;
  display: block;
  transition: transform 0.3s ease, filter 0.4s ease;
}

/* Hover effect for images */
#typhoon1:hover img,
#typhoon2:hover img,
#typhoon3:hover img,
#typhoon4:hover img {
  transform: scale(1.05);
  filter: brightness(60%);
}

/* Captions inside each container */
#typhoon1 .caption,
#typhoon2 .caption,
#typhoon3 .caption,
#typhoon4 .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;                /* full container width */
  padding: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  border-radius: 0 0 25px 25px;
  box-sizing: border-box;
}

/* Show caption on hover */
#typhoon1:hover .caption,
#typhoon2:hover .caption,
#typhoon3:hover .caption,
#typhoon4:hover .caption {
  opacity: 1;
}


/* Resource List Styling */
.resource-list {
  list-style-type: none;
  padding-left: 0;
  max-width: 800px;
  margin: 30px auto;
}

.resource-list li {
  background-color: #1a1a1a;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #4da6ff;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: background 0.3s;
}

.resource-list li:hover {
  background-color: #292929;
}

.resource-list a {
  color: #4da6ff;
  font-weight: bold;
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}
