
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;600;800&display=swap');
:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent: #ffe66d;
  --bg: #f0f3bd;
  --text: #333;
}
* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; flex: 1; margin-top: 0rem; }

/* Glass Card for news */
.news-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
.news-card h3 { margin-top: 0; }
.news-card .meta { font-size: 0.9rem; color: var(--secondary); }

/* Admin form styles */
.admin-form {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}
.admin-form input, .admin-form textarea {
  width: 100%; padding: 0.75rem; margin-bottom: 1rem;
  border: 2px solid var(--secondary); border-radius: 8px;
  font-family: inherit;
}
.admin-form button {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none; border-radius: 8px;
  font-size: 1rem; cursor: pointer;
}
.admin-form button:hover { background: var(--accent); }

/* Sticky Footer */
.site-footer {
  background: #222; color: #ddd;
  padding: 2rem 0; margin-top: auto;
  text-align: left;
  padding-left: 2cap;
}
.footer-container { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; max-width: 1100px; margin:  auto; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--accent); }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }


.home-hero {
  min-height: 80vh;
  background: linear-gradient(120deg, #e03f3f, #bf8663);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.animate-logo {
  width: 100px;
  margin-bottom: 1rem;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 2.5s ease forwards;
}

.delay-1 {
  animation-delay: 1.5s;
}

.delay-2 {
  animation-delay: 2s;
}

.animate-bounce {
  animation: bounce 1.2s infinite;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
/* Glass card inside home hero */
/* Professional Glass Hero Panel */
.home-hero {
  /* Center wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(34,193,195,0.2), rgba(253,187,45,0.2));
  margin: 2rem auto;
}

.hero-content {
  /* Glassmorphism + clipping */
  width: 100%;
  max-width: 900px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  clip-path: polygon(
    8% 0%, 92% 0%,
    100% 8%, 100% 92%,
    92% 100%, 8% 100%,
    0% 92%, 0% 8%
  );
}

/* Optional tweaks for inner content */
.hero-content .logo {
  width: 100px;
  margin-bottom: 1.5rem;
}
.hero-content .hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}
.hero-content .hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}
.hero-content .btn {
  margin-top: 1.5rem;
}
/* Gallery Card Overrides */
.gallery-item-card {
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Fix Hero spacing */
.home-hero {
  padding: 1rem;       /* reduce interior padding */
  margin: 1rem auto;   /* reduce vertical margin */
}
.hero-content {
  margin: 0;           /* eliminate extra top/bottom gaps */
}
.hot-news {
  background: linear-gradient(90deg, #e8eb1663, #f00e0e77);
  color: #050000;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.523);
  margin: 2rem auto;
  max-width: 900px;
  overflow: hidden;
}

.news-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  text-align: center;
  color: #fff;
}

.scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left  linear infinite;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.animate-logo {
  animation: logoFadeIn 1.2s ease-out forwards;
  opacity: 0;
  transform: scale(0.7);
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.animated-logo{
  background: none;
}

/* Make images scale nicely within their container */
.home-hero .logo {
  width: 40vw;       /* 40% of viewport width for flexibility */
  max-width: 200px;  /* Don't exceed original size */
  height: auto;      /* Preserve aspect ratio */
  display: block;
  margin: 1rem auto;
}
.some-container {
  background-image: url('...');
  background-size: cover;    /* Fill container while cropping excess */
  background-position: center center;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.my-img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.some-container {
  background-image: url('...');
  background-size: cover;    /* Fill container while cropping excess */
  background-position: center center;
}
.home-hero {
  /* …other styles… */
  background-image: url("/static/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1200px;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("/static/images/hero-bg.jpg"); /* adjust your path */
  background-size: cover;
  background-position: center;
  opacity: 0.5;               /* 50% fade */
  filter: blur(8px);          /* blur effect */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.grid-5 { display:flex; flex-wrap:wrap; gap:1rem; }
.grid-5 .glass-card { flex:1 1 calc(20% - 1rem); }
.grid-2 { display:flex; flex-wrap:wrap; gap:1rem; }
.grid-2 .glass-card { flex:1 1 calc(50% - 1rem); }
.admin-form { max-width:600px; margin:auto; }

/* Glass Cards & Grids */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.news-grid,
.teachers-grid,
.students-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* Header wrapper */


/* Gallery grid on index */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  padding: 2rem;
}

/* Card styling + hover */
.gallery-card {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Detail page grid */
.image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  margin: 2rem 0;
}
.detail-img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}
.detail-img:hover {
  transform: scale(1.05);
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px; color: #fff;
  cursor: pointer;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}
/* Teacher & Student Grids */
.teachers-grid,
.students-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 1rem;
}
.teacher-card img,
.student-card img {
  width: 100%; height: auto;
  border-radius: 8px;
}
.detail-card {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}
.detail-card img {
  width: 100%; max-width: 300px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* --- Animations & Hover Effects --- */
.teacher-card,
.student-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.teacher-card:hover,
.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.teacher-card h3,
.student-card h3 {
  text-align: center;
  padding: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}
/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; color: #333; line-height: 1.6; }

/* Header */
.site-header { position: fixed; top: 5px; width: 100%; background: #0fe0971f; box-shadow: 0 6px 18px rgba(7, 11, 9, 0.361); z-index: 1000; height: 65px;}
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; }
.logo { display: flex; align-items: center; color: #fff; text-decoration: none; }
.logo img { height: 40px; margin-right: 0.5rem; }
.logo span { font-size: 1.25rem; font-weight: bold; }

.main-nav ul { display: flex; gap: 1rem; list-style: none; }
.main-nav a { color: #fff; text-decoration: none; padding: 0.5rem; border-radius: 4px; transition: background 0.3s; }
.main-nav a:hover,
.main-nav .active { background: rgba(255,255,255,0.2); }

.login-btn { background: #f4a261; color: #09151a; padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; transition: background 0.3s; }
.login-btn:hover { background: #e37b3c; }

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, rgba(123,220,227,0.8), rgba(107,161,183,0.8));
  padding-top: 70px; /* header height */
}
.welcome-card {
  background: rgba(223, 98, 98, 0.85);
  backdrop-filter: blur(5px);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  animation: fadeInDown 1s ease-out;
  text-align: center;
}
.welcome-card h1 { font-size: 2rem; color: #1a4f63; }

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: -0.0rem; }
  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.0rem;
    width: 100%;
  }
  .main-nav li {
    text-align: center;
  }
  .welcome-card {
    width: 90%; padding: 1.5rem;
  }
}


@font-face {
  font-family: 'SolaimanLipi';
  src: url('/static/fonts/SolaimanLipi.ttf') format('truetype');
}
body {
  font-family: 'Noto Sans Bengali', sans-serif;
}

.main-body {
  background: 
    linear-gradient(to bottom, rgba(214, 218, 106, 0.452), rgba(46, 180, 147, 0.808));
  background-size: cover;
  color: var(--text);
}

/* two columns for the first row */
.teachers-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* five columns for the rest */
.teachers-grid.five-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* responsive for the five-col grid */
@media (max-width: 1200px) {
  .teachers-grid.five-col { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .teachers-grid.five-col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .teachers-grid.five-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .teachers-grid.five-col { grid-template-columns: 1fr; }
}

/* shared card styles */
.teacher-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #000;
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.teacher-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-name {
  margin: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}
h1.teachers-heading {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #222;
}
@media (max-width: 576px) {
  /* first row: single card per row on mobile */
  .teachers-grid.two-col {
    grid-template-columns: 1fr;
  }
}
/* Routine page overrides */
.routine-section {
  margin: 1rem 0;
}
.routine-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.routine-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.routine-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.routine-table th,
.routine-table td {
  border: 1px solid #1c0505;
  padding: 0.5rem;
  text-align: center;
}
.routine-table th {
  background: var(--secondary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
@media (max-width: 600px) {
  .routine-table th,
  .routine-table td {
    padding: 0.3rem;
    font-size: 0.85rem;
  }
}
.print-btn {
  display: inline-block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.print-btn:hover {
  background: var(--accent);
}
/* Drawer Styles */

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: rgba(3, 2, 7, 0.696);
  padding: 10px;
  transition: color 0.3s;
  text-align: right;
  margin-left: auto;
  padding-right: 70px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
ba
}

.main-nav li {
  margin: 0 10px;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
  flex: 1;
  text-align: center;
  flex-basis: 20%; /* Adjusts to 5 items per row */
  background-color:  rgb(31, 28, 5);
}
.main-nav li:hover {
  border-color: #286862;
}
.main-nav a {
  display: block;
  padding: 10px;
  color: rgb(251, 233, 233);
  text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 1768px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #45411f93;
    width: 200px;
    z-index: 999;
    border-left: 1px solid #704b4b;
    max-height: 10px;
  }

  .main-nav.open {
    display: block;
    background-color: #363652;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 0;
    border-bottom: 1px solid #472626;
  }

  .main-nav a {
    padding: 5px;
  }
}

.myMarquee {width:800px; height:40px; overflow:hidden; position:relative; border:1px solid #aaa;
-o-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
-webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);

-o-border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;

background:rgba(207, 205, 95, 0.235);
background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(rgba(156, 171, 96, 0.7)), to(rgba(127, 134, 204, 0)));
background-image: -moz-linear-gradient(-90deg, rgba(151, 129, 129, 0.212), rgba(101, 70, 45, 0));

}
.scroller {display:block; width:1240px; height:40px; position:absolute; left:0; top:0;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
-moz-animation-duration:10s;
-moz-animation-name: scroll;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-duration:10s;
-webkit-animation-name: scroll;
}
.scroller div {font-family:georgia, serif; font-size:16px; line-height:40px; float:left; width:600px; color:#000; font-weight:bold; padding:0 10px; 
}
.scroller div a {color:rgba(55, 107, 42, 0.703);}

@-moz-keyframes scroll {
0% {left:0;}
100% {left:-620px;}
}

.scroller:hover {
 -moz-animation-play-state: paused;
 }


@-webkit-keyframes scroll {
0% {left:0;}
100% {left:-620px;}
}

.scroller:hover {
 -webkit-animation-play-state: paused;
 }
 body{
    background:#22222b;
}
#box{
	min-width:300px;
  max-width:800px;
	min-height:50px;
	height:auto;
	margin:80px auto;
	border:2px #55a solid;
	border-radius:5px;
	background:#0005;
	color:rgb(0, 0, 0);
	padding:15px;
	font-size:18px;
}


/* Responsive container */
.admin-container {
  display: grid;
  grid-template-columns: 1fr; /* mobile first */
  gap: 20px;
  margin-top: 20px;
  align-items: start; 
}

/* Two-column layout for tablet and above */
@media (min-width: 768px) {
  .admin-container {
    grid-template-columns: 1fr 2fr;
    gap: 30px;
  }
  .admin-form {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Form and news cards */
.admin-form, 
.admin-news {
  background: rgba(237, 249, 219, 0.934); /* slightly more opaque for readability */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px); /* glassmorphism effect */
}

/* Titles inside cards */
.admin-form h2,
.admin-news h1 {
  margin-bottom: 15px;
  color: #340303cb;
}

/* Buttons */
button.btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: #2ecc71;
  color: #fff;
}
.btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}
.btn-danger:hover {
  background: #c0392b;
  transform:
}
.admin-news {
  background: rgba(237, 249, 219, 0.934);
  backdrop-filter: blur(6px);
}

.news-grid a {
  background: rgba(255, 255, 255, 0.65);
  color: #222;
}
