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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Header */
header {
  height: 70px;
  background-color: #006A4E; /* changed to green */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

#img-style {
  border-radius: 50%;
  border: 2px solid white;
  margin-right: 13px;
}

/* Navigation */
nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 550;
  padding: 5px 8px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover,
.active-link {
  color: white;
  border: 2px solid #009E70;
  background-color: #009E70;
}

/* Scrollable Content Area */
main.scroll-container {
  flex: 1;
  margin-top: 70px;
  margin-bottom: 25px;
  overflow-y: auto;
  padding: 20px 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 20px 20px;
  padding: 25px 30px;
  max-width: 900px;
  width: 90%;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
  font-size: 1.8em;
  color: #006A4E; /* updated to green */
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-title i {
  margin-right: 10px;
  color: #009E70; /* green accent */
}

.card-subtitle {
  font-size: 1.05em;
  color: #555;
  margin-bottom: 12px;
  font-style: italic;
}

.card-content p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.bold-text,
.bold-p {
  font-weight: bold;
}

ul {
  padding-left: 20px;
  text-align: left;
}

/* Footer */
#copyright-style {
  background-color: #006A4E;
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 998;
  letter-spacing: 0.5px;
}

.footer-icon i {
  font-size: 18px;
  color: white;
  cursor: pointer;
  margin-left: 10px;
}

.footer-icon i:hover {
  color: #bbdefb;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-content h2 {
  color: #006A4E;
  margin-bottom: 10px;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer#copyright-style {
  background-color: #006A4E; /* updated */
  color: white;
  float: left;
  padding: 12px 20px;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 998;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 20px;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 5px 10px 0 0;
    display: inline-block;
  }

  .card {
    margin: 10px;
    padding: 20px;
  }
}
