* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.6s ease;
}

.navbar.scrolled {
  background-color: #004a8f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Left Container */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover span {
  background-color: #00b5e2;
}

.navbar .logo img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #00b5e2;
}

.navbar .nav-links li {
  position: relative;
}

.navbar .nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #004a8f;
  min-width: 250px;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar .nav-links li ul::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.navbar .nav-links li:hover ul {
  display: block;
}

.navbar .nav-links li ul li {
  padding: 12px 20px;
}

.navbar .nav-links li ul li:hover {
  background-color: #166dbe;
}

.navbar .cta a {
  color: white;
  background-color: transparent;
  padding: 10px 24px;
  text-decoration: none;
  border: 2px solid #ff5733;
  border-radius: 5px;
  transition: all 0.3s;
}

.navbar .cta a:hover {
  background-color: #ff5733;
}

/* ========== HERO SECTION ========== */
.home-background {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../pictures/background.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.home-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.2s ease;
}

.home-content .btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #00b5e2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  animation: fadeInUp 1.4s ease;
}

.home-content .btn:hover {
  background-color: #0095c2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 181, 226, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f8f9fa;
}

.about-section h2 {
  font-size: 42px;
  color: #333;
  margin-bottom: 25px;
  font-weight: 700;
}

.about-section p {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== EVENTS SECTION ========== */
.event-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.event {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-content {
  padding: 25px;
}

.event-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.event-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* ========== OFFICIALS SECTION ========== */
.council-section {
  text-align: center;
  padding: 80px 40px;
  background-color: #f8f9fa;
}

.north {
  color: #00b5e2;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.council-section h2 {
  font-size: 42px;
  margin-bottom: 50px;
  color: #333;
  font-weight: 700;
}

.card-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.cards-wrapper {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
  padding: 0 50px;
}

.council-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  min-width: 280px;
  transition: transform 0.3s;
}

.council-card:hover {
  transform: translateY(-5px);
}

.council-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #00b5e2;
}

.council-card .name {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0;
  color: #333;
}

.council-card .position {
  color: #007bff;
  font-size: 16px;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 74, 143, 0.8);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
  z-index: 10;
}

.nav-button:hover {
  background-color: #004a8f;
}

.nav-button.left {
  left: 0;
}

.nav-button.right {
  right: 0;
}

/* ========== E-SERVICES ========== */
.e-service {
  padding: 80px 40px;
  background-color: white;
}

.certificate {
  color: #00b5e2;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.e-service h1 {
  font-size: 42px;
  margin-bottom: 50px;
  color: #333;
  font-weight: 700;
}

.box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.box {
  background-color: white;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  min-width: 320px;
}

.box:hover {
  background-color: #4a6cf7;
  transform: translateX(5px);
}

.box:hover a {
  color: white;
}

.box a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.box p {
  color: #00b5e2;
  font-size: 20px;
  font-weight: bold;
}

.logo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: contain;
}

/* ========== CONTACT SECTION ========== */
.contact-information {
  padding: 80px 40px;
  background: #f8f9fa;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: white;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-container h2 {
  font-size: 38px;
  color: #004a8f;
  margin-bottom: 45px;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}

.contact-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #00b5e2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background: #f8f9fa;
  padding: 35px 30px;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid #00b5e2;
}

.contact-icon {
  width: 75px;
  height: 75px;
  background: #004a8f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.contact-icon i {
  font-size: 32px;
  color: white;
}

.contact-card h3 {
  font-size: 22px;
  color: #004a8f;
  margin-bottom: 18px;
  font-weight: 600;
}

.contact-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-card ul li {
  margin-bottom: 8px;
}

.contact-card ul li a {
  color: #00b5e2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.contact-card ul li a:hover {
  color: #004a8f;
}

/* ========== FOOTER ========== */
.footer {
  background: #1d1d1d;
  color: #bbb;
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.6;
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
}

.footer h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #00b5e2;
  display: block;
  margin-top: 8px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #00b5e2;
}

.footer-contact ul li i {
  color: #00b5e2;
  margin-right: 10px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #00b5e2;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
}

/* ========== USER DROPDOWN ========== */
.user-container {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  width: 250px;
  background-color: black;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.user-container.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.profile-info {
  text-align: center;
  padding: 20px;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.username-text {
  font-size: 16px;
  margin-bottom: 10px;
}

.logout-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff5733;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #c04a28;
}

/* ========== MOBILE SIDEBAR ========== */
.mobile-sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: 280px;
  height: 100vh;
  background-color: #004a8f;
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
  width: 50px;
  height: 50px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-links li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.sidebar-links li a:hover {
  background-color: #166dbe;
}

.sidebar-links .has-submenu>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-links .arrow {
  font-size: 12px;
  transition: transform 0.3s;
}

.sidebar-links .has-submenu.open .arrow {
  transform: rotate(180deg);
}

.sidebar-links .submenu {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-links .has-submenu.open .submenu {
  max-height: 500px;
}

.sidebar-links .submenu li {
  border-bottom: none;
}

.sidebar-links .submenu li a {
  padding-left: 40px;
  font-size: 14px;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #004a8f;
}

.sidebar-logout {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: #ff5733;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.sidebar-logout:hover {
  background-color: #c04a28;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ========== READ MORE BUTTON ========== */
.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
  background: #1d4ed8;
}

/* ========== RESPONSIVE STYLES ========== */
@media (min-width: 992px) {
  .mobile-sidebar,
  .sidebar-overlay {
    display: none !important;
  }
  
  .hamburger-menu {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .hamburger-menu {
    display: flex;
  }

  .navbar-left .logo {
    cursor: default;
  }

  .navbar .logo img {
    width: 60px;
    height: 60px;
    margin-left: 0;
  }

  .navbar .nav-links {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-container {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .home-content h1 {
    font-size: 36px;
  }

  .home-content p {
    font-size: 16px;
  }

  .about-section h2,
  .council-section h2,
  .e-service h1 {
    font-size: 32px;
  }

  .event-container,
  .council-section,
  .e-service {
    padding: 50px 20px;
  }

  .box-container {
    flex-direction: column;
  }

  .card-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 10px;
    scroll-snap-type: x mandatory;
  }

  .cards-wrapper {
    padding: 0 10px;
    display: flex;
    gap: 20px;
    width: max-content;
    transform: none !important;
  }

  .council-card {
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .nav-button {
    display: none;
  }

  .card-container::-webkit-scrollbar {
    height: 8px;
  }

  .card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .card-container::-webkit-scrollbar-thumb {
    background: #00b5e2;
    border-radius: 10px;
  }

  .card-container::-webkit-scrollbar-thumb:hover {
    background: #004a8f;
  }

  .contact-information {
    padding: 60px 20px;
  }

  .contact-container {
    padding: 35px 25px;
  }

  .contact-container h2 {
    font-size: 30px;
    margin-bottom: 35px;
  }

  .contact-card {
    padding: 30px 25px;
  }

  .contact-icon {
    width: 65px;
    height: 65px;
  }

  .contact-icon i {
    font-size: 28px;
  }

  .contact-card h3 {
    font-size: 20px;
  }

  .contact-card ul li a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hamburger-menu {
    width: 25px;
    height: 20px;
  }
  
  .hamburger-menu span {
    height: 2px;
  }

  .navbar .logo img {
    width: 50px;
    height: 50px;
  }

  .council-card {
    min-width: 220px;
    padding: 20px;
  }

  .council-card img {
    width: 120px;
    height: 120px;
  }

  .council-card .name {
    font-size: 18px;
  }

  .council-card .position {
    font-size: 14px;
  }

  .contact-container h2 {
    font-size: 26px;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 26px;
  }
}