/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #ffffff5a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Post card container */
.post-card {
  background: #ffffff5a;
  width: 100%;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Nav-bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  background: #2facd99c;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-weight: bold;
  font-size: 20px;
  color: #000000;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2facd9;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  font-size: 16px;
}

.dropbtn:hover {
  color: #2facd9;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1;
}

.dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Buttons */
nav .buttons button {
  margin-left: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #2facd9;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

nav .buttons button:hover {
  background: #2facd9;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
}

.logo span {
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

/* Responsive logo shrink */
@media (max-width: 768px) {
  .logo img {
    width: 40px;   /* smaller logo on mobile */
  }
  .logo span {
    font-size: 16px; /* shrink text too */
  }
}


/* Post image */
.post-image {
  width: 100%;
  height: 400px;
  background: url('car-training.jpg') no-repeat center center;
  background-size: cover;
  position: relative; /* allows absolute positioning of buttons */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* spacing between buttons */
}

/* Overlay buttons */
.overlay-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #2facd9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.overlay-btn:hover {
  background: #2facd9;
  transform: scale(1.05);
}


/* Packages section */
.packages {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  flex-wrap: wrap;
  background: #fafafa;
}

.card {
  background: #2facd9;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 280px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.card p {
  font-size: 15px;
  margin: 6px 0;
  color: #555;
}

/* Actions */
.actions {
  display: flex;
  justify-content: flex-start;
  padding: 12px 20px;
  border-top: 1px solid #eee;
  font-size: 22px;
  background: #fff;
}

.actions span {
  margin-right: 20px;
  cursor: pointer;
}

/* About Us */
#about {
  border-top: 1px solid #eee;
  padding: 40px;
  background: #fff;
  text-align: center;
}

#about h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

#about p {
  font-size: 16px;
  color: #555;
}

/* Footer */
footer {
  margin-top: auto;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 15px;
  width: 100%;
  font-size: 14px;
}

/* Comments button */
.comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2facd9;
  background: #ffffff00; /* blue tone */
  border: 1px solid #2facd940;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.comment-btn span {
  font-size: 18px;
}

.comment-btn:hover {
  background: #2facd940;
  transform: scale(1.05);
}

.comment-item {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.comment-item strong { color: #007bff; }
.comment-item p { margin: 5px 0; }
.comment-item small { color: #777; }
.pagination {
  text-align: center;
  margin-top: 15px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #007bff;
}

.pagination a:hover {
  background: #f0f0f0;
}

.pagination .active {
  background: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.modal-content form input,
.modal-content form select,
.modal-content form button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-content form button {
  background: #f0ad4e;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
/* Comment Modal specific */
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

/* Responsive nav-bar */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  .nav-links, .buttons {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 10px 0;
  }
  .nav-links.active, .buttons.active {
    display: flex;
  }
  .hamburger {
    display: block;
    margin-left: auto;
  }
  .packages {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
  .post-image {
    height: 250px;
  }
}
