* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #004a80;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  text-align: center;
}

.btn:hover {
  background-color: #003560;
}

.btn-small {
  display: inline-block;
  padding: 8px 15px;
  background-color: #004a80;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-small:hover {
  background-color: #003560;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: #004a80;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #ff7a00;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background-color: #004a80;
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
}

.top-bar-contact span {
  margin-right: 15px;
}

.top-bar-links a {
  margin-left: 15px;
  color: white;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #004a80;
  display: flex;
  align-items: center;
}

.logo span {
  color: #ff7a00;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 25px;
  position: relative;
}

.nav-menu li a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #ff7a00;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #004a80;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("websitebanner.jpg");
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* About Section */
.about {
  background-color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Services Section */
.services {
  background-color: #f5f5f5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  font-size: 32px;
  color: #004a80;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
  color: #004a80;
  font-size: 18px;
}

/* Mission & Vision */
.mission-vision {
  background-color: #fff;
}

.mission-vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mission-box,
.vision-box {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.mission-box h3,
.vision-box h3 {
  color: #004a80;
  margin-bottom: 15px;
  font-size: 24px;
}

/* Testimonials */
.testimonials {
  background-color: #f5f5f5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: bold;
  color: #004a80;
}

/* Blog Section */
.blog {
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  color: #004a80;
  margin-bottom: 10px;
  font-size: 18px;
}

.blog-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* Blog Detail Page */
.blog-detail {
  background-color: #fff;
  padding: 40px 0;
}

.blog-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 30px;
}

.blog-header h1 {
  color: #004a80;
  margin-bottom: 15px;
  font-size: 32px;
}

.blog-meta {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.blog-meta span {
  margin-right: 20px;
}

.blog-featured-image {
  width: 100%;
  height: 400px;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content-detail {
  line-height: 1.8;
}

.blog-content-detail p,
.blog-content-detail ul,
.blog-content-detail ol {
  margin-bottom: 20px;
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.contact-form-container {
  margin-top: 50px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.contact-form-container h3 {
  color: #004a80;
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Admin Page */
.admin-panel {
  background-color: #f9f9f9;
  min-height: 100vh;
  padding: 40px 0;
}

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.admin-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  color: #004a80;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.admin-tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-tab.active {
  border: 1px solid #ddd;
  border-bottom-color: #f9f9f9;
  background-color: #f9f9f9;
  margin-bottom: -1px;
  color: #004a80;
  font-weight: bold;
}

.admin-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-list {
  width: 100%;
  border-collapse: collapse;
}

.blog-list th,
.blog-list td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.blog-list th {
  color: #004a80;
  font-weight: bold;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.edit-btn,
.delete-btn {
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.edit-btn {
  background-color: #f0ad4e;
  color: white;
}

.delete-btn {
  background-color: #d9534f;
  color: white;
}

.blog-form {
  display: grid;
  gap: 20px;
}

.blog-form input[type="file"] {
  padding: 10px 0;
}

.editor-container {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.toolbar {
  padding: 10px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.toolbar button {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-right: 5px;
  cursor: pointer;
}

.toolbar button:hover {
  background-color: #f1f1f1;
}

.editor-content {
  padding: 20px;
  min-height: 300px;
  outline: none;
}

/* Newsletter */
.newsletter {
  background-color: #004a80;
  color: white;
  text-align: center;
  padding: 50px 0;
}

.newsletter h2 {
  margin-bottom: 20px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: #ff7a00;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #e66d00;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ff7a00;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a:hover {
  color: #ff7a00;
}

.contact-info li {
  display: flex;
  margin-bottom: 15px;
}

.contact-info span {
  margin-right: 10px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.contact-form-container {
  margin-top: 50px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}

.contact-form-container h3 {
  color: #004a80;
  margin-bottom: 15px;
}

.contact-form-container a.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #004a80;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.contact-form-container a.btn:hover {
  background-color: #003560;
}

/* Newsletter Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #000;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #004a80;
}

.close-btn:hover {
  color: #ff7a00;
}

.login-container {
  width: 300px;
  margin: 100px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-list,
.blog-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.user-list th,
.blog-list th {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: left;
}

.user-list td,
.blog-list td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.action-buttons button {
  margin-right: 5px;
}

/* Improved Media Queries */

/* Large Screens */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* Medium Screens */
@media (max-width: 992px) {
  .mission-vision-container {
    grid-template-columns: 1fr;
  }

  .vision-box {
    margin-top: 20px;
  }

  /* Blog improvements */
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .blog-detail-container {
    max-width: 90%;
  }

  .blog-featured-image {
    height: 350px;
  }
}

/* Small Screens */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 20px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Blog improvements */
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .blog-content h3 {
    font-size: 16px;
  }

  .blog-image {
    height: 180px;
  }

  .blog-featured-image {
    height: 300px;
  }

  .blog-header h1 {
    font-size: 28px;
  }

  .blog-content-detail {
    font-size: 15px;
  }

  .blog-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .blog-detail-container {
    padding: 0 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 5px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: 20px;
  }
}

@media (max-width: 699px) {
  .top-bar {
    display: none;
  }
}

/* Extra Small Screens */
@media (max-width: 576px) {
  .top-bar .container {
    flex-direction: column;
  }

  .top-bar-contact {
    margin-bottom: 5px;
  }

  .hero {
    height: 400px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .testimonial-text {
    font-size: 14px;
  }
  .testimonial-author {
    font-size: 16px;
  }

  /* Blog improvements */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    max-width: 100%;
  }

  .blog-image {
    height: 200px;
  }

  .blog-featured-image {
    height: 220px;
  }

  .blog-header h1 {
    font-size: 24px;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-form-container {
    padding: 20px 15px;
  }

  /* Admin blog table responsive */
  .blog-list {
    display: block;
    overflow-x: auto;
  }

  .blog-list th,
  .blog-list td {
    padding: 10px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 5px;
  }
}

/* Very Small Screens */
@media (max-width: 400px) {
  .blog-image {
    height: 180px;
  }

  .blog-featured-image {
    height: 180px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 399px) {
  .container {
    padding: 0;
  }
}
