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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

:root {
  --primary-color: #0a3d2f;
  --secondary-color: #0b5340;
  --background-color: #f9f9f9;
  --text-dark: #222;
  --text-light: #ffffff;
}

.clear {
  clear: both;
}

/* =========================================
   Header Section
========================================= */
.main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a3d2f;
  color: white;
  padding: 10px 20px;
  text-align: center;
  gap: 20px;
  position: relative; 
}

.logo-section .logo {
  height: 90px;
  width: 90px;
  object-fit: cover;
}

.info-section h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.info-section h3 {
  font-size: 1.2rem;
  font-weight: 400;
}

.info-section h4 {
  font-size: 1rem;
  font-weight: 300;
  margin-top: 3px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
}

/* ===== Menu & Sticky Navbar ===== */
.menu {
  background: #0b5340;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0 15px;
  position: -webkit-sticky;
  position: sticky; 
  top: 0;
  z-index: 9999; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

.menu-left, .menu-center, .menu-right {
  display: flex;
  align-items: center;
}

/* Live Search Bar Styles */
.nav-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  padding: 2px 10px;
  margin: 8px 15px 8px 0;
}
.nav-search input {
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 15px;
  border-radius: 25px;
  width: 160px;
  transition: width 0.3s ease;
}
.nav-search input:focus {
  width: 220px;
}
.nav-search button {
  background: transparent;
  border: none;
  color: #0b5340;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}

.menu .nav-link {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  font-size: 17px;
  display: block;
  transition: background 0.3s ease;
}
.menu .nav-link:hover {
  background: #10755a;
  color: white;
}

/* Dropdown Container Logic */
.dropdown {
  position: relative;
}

/* Advanced Real-World Dropdown Menu Style */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
  z-index: 10000;
  border-radius: 4px;
  top: 100%;
  left: 0;
  border-top: 3px solid #10755a;
  padding: 5px 0;
}

.dropdown-content .dropdown-item {
  color: #333 !important;
  padding: 12px 18px;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.dropdown-content .dropdown-item i {
  color: #0b5340;
  width: 16px;
  text-align: center;
}
.dropdown-content .dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-content .dropdown-item:hover {
  background-color: #f4f6f8;
  color: #10755a !important;
  padding-left: 24px; /* বাস্তবসম্মত হোভার ইফেক্ট */
}

/* Show dropdown items on Hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive Navigation */
@media (max-width: 950px) {
  .menu { justify-content: center; }
}

@media (max-width: 768px) {
  .hamburger { 
    display: flex; position: absolute; top: 25px; right: 25px; 
  }
  .menu {
    display: none; flex-direction: column; align-items: stretch; padding: 0;
  }
  .menu.active { display: flex; }
  .menu-left, .menu-center, .menu-right {
    flex-direction: column; width: 100%;
  }
  .nav-search {
    margin: 10px auto; width: 90%; justify-content: space-between;
  }
  .nav-search input { width: 100%; }
  .nav-search input:focus { width: 100%; }
  .menu .nav-link { text-align: center; width: 100%; border-bottom: 1px solid #0a3d2f; }
  
  /* Mobile Dropdown View Adjustment */
  .dropdown-content { 
    position: static; box-shadow: none; background: #0a4d3b; width: 100%; border-top: none; padding: 0;
  }
  .dropdown-content .dropdown-item { 
    color: #fff !important; text-align: center; justify-content: center; padding: 12px; border-bottom: 1px solid #0b5340;
  }
  .dropdown-content .dropdown-item i { color: #fff; }
  .dropdown-content .dropdown-item:hover { padding-left: 12px; background: #10755a; }
  .dropdown:hover .dropdown-content { display: block; }
}

/*------------- motion notice start ----------*/
.notice-bar {
  display: flex; align-items: center; border: 3px solid #0a3d2f; width: 100%; background: #fff; overflow: hidden; box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.notice-left {
  background: #0a3d2f; color: #fff; font-weight: 700; font-size: 20px; padding: 15px 25px; flex-shrink: 0;
}
.notice-right {
  flex: 1; overflow: hidden; position: relative; height: 52px; display: flex; align-items: center;
}
.notice-text {
  position: absolute; white-space: nowrap; font-size: 18px; color: #0b8b3a; animation: scroll-left 18s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/*---------- Banner Section -------- */
.banner { position: relative; width: 100%; height: 400px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease-in-out; position: absolute; }
.motion-text {
  position: absolute; top: 50%; left: -100%; transform: translateY(-50%); width: 100%; text-align: center; color: white; font-size: 4rem; font-weight: bold; text-shadow: 3px 3px 8px black; animation: moveRight 20s linear infinite;
}
@keyframes moveRight {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

/*----------------------- profile-card Start --------------------*/
.school-layout {
  display: flex; justify-content: space-between; background: #fff; border-radius: 12px; padding: 25px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 95%; margin: 30px auto; gap: 25px;
}
.left-section { flex: 70%; }
.left-section h2 { color: #0a3d2f; font-size: 22px; margin-bottom: 15px; border-left: 4px solid #0a3d2f; padding-left: 10px; }
.left-section h3 { color: #0b5340; font-size: 17px; margin: 10px 0 5px 0; }
.left-section p { text-align: justify; font-size: 15px; color: #333; margin-bottom: 12px; line-height: 1.6; }
.right-section { flex: 30%; display: flex; flex-direction: column; align-items: center; gap: 25px; }
.profile-card {
  text-align: center; background: #f8f9fb; border-radius: 10px; padding: 15px; width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.3s;
}
.profile-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.profile-card img { width: 100%; max-width: 300px; height: 300px; object-fit: cover; border-radius: 6px; border: 3px solid #0a3d2f; margin-bottom: 10px; }
.profile-card h3 { font-size: 16px; color: #111; font-weight: bold; }
.profile-card p { font-size: 14px; color: #555; }

@media (max-width: 900px) {
  .school-layout { flex-direction: column; }
  .left-section, .right-section { flex: 100%; }
}

/* =========================================
   Events & Gallery
========================================= */
.events { max-width: 95%; margin: 40px auto; background-color: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center; }
.events-photo { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 15px; }
.events-photo img { width: 95%; height: 250px; object-fit: cover; border-radius: 10px; transition: transform 0.3s; }
.events-photo img:hover { transform: scale(1.05); }

.gallery-section { max-width: 95%; height: 400px; margin: 40px auto; background-color: #fff; padding: 20px; border-radius: 12px; text-align: center; }
.gallery-container { overflow: hidden; white-space: nowrap; width: 100%; position: relative; }
.gallery-track { display: inline-flex; animation: scrollLeft 25s linear infinite; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-track img { width: 380px; height: 280px; margin: 0 15px; border-radius: 10px; object-fit: cover; transition: transform 0.3s; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   Pagination
========================================= */
.pagination-container { display: flex; justify-content: center; align-items: center; margin: 30px 0; }
.pagination { display: inline-block; }
.pagination a {
  color: #0a3d2f; float: left; padding: 8px 16px; text-decoration: none; font-size: 18px; font-weight: bold; border: 1px solid #ddd; margin: 0 4px; border-radius: 5px; transition: 0.3s;
}
.pagination a.active { background-color: #0a3d2f; color: white; border: 1px solid #0a3d2f; }
.pagination a:hover:not(.active) { background-color: #0b5340; color: white; }

/*------------- Footer Styling ----------- */
.footer { background-color: #0B1A2A; color: white; width: 100%; padding: 50px 0 20px 0; }
.footer-container { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1100px; margin: auto; }
.footer-section { flex: 0 0 22%; min-width: 250px; margin: 10px; }
.footer-section h3 { color: #00a8ff; margin-bottom: 15px; border-bottom: 2px solid #00a8ff; display: inline-block; padding-bottom: 5px; }
.footer-section p, .footer-section ul li a { line-height: 1.8; font-size: 14px; color: #ddd; text-decoration: none; }
.footer-section ul { list-style: none; }
.footer-section ul li a:hover { color: #00a8ff; }
.footer-section .btn { border: none; background: white; margin: 5px; padding: 10px; border-radius: 50%; font-size: 20px; cursor: pointer; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.footer-section .btn:hover { background-color: #00a8ff; color: white; }
.footer-bottom { text-align: center; border-top: 1px solid #555; margin-top: 20px; padding-top: 15px; font-size: 14px; color: #ccc; }

/* =========================================
   Modal System (Login/Cart) 
========================================= */
.custom-modal {
  display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); align-items: center; justify-content: center;
}
.custom-modal.show-modal { display: flex; }
.modal-content {
  background-color: #ffffff; padding: 30px; border-radius: 10px; width: 100%; max-width: 450px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; }
.close-modal:hover { color: var(--primary-color); }
.modal-content h2 { color: var(--primary-color); margin-bottom: 20px; font-size: 22px; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; text-align: left; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 14px; margin-bottom: 5px; color: #333; font-weight: bold; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; outline: none; }
.form-group input:focus { border-color: var(--secondary-color); }
.modal-btn { width: 100%; background-color: var(--primary-color); color: white; border: none; padding: 12px; font-size: 16px; font-weight: bold; border-radius: 5px; cursor: pointer; margin-top: 10px; }
.modal-btn:disabled { background-color: #ccc; cursor: not-allowed; }
.switch-text { margin-top: 15px; font-size: 14px; text-align: center; }
.switch-text a { color: #0b8b3a; text-decoration: none; font-weight: bold; }
.empty-cart-msg { text-align: center; color: #777; padding: 20px 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-item-name { font-size: 15px; color: #333; }
.remove-cart-item { background: transparent; border: none; color: #ff4d4d; cursor: pointer; font-size: 16px; }
.cart-footer { margin-top: 20px; border-top: 2px solid #eee; padding-top: 15px; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 15px; }