/* ========= GLOBAL ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========= HEADER ========= */
header {
  background: #e8f5e9;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #1b5e20;
}

nav a {
  margin-left: 20px;
  color: #1b5e20;
  font-weight: 500;
}

nav a:hover {
  color: #c9a23f;
}

/* ========= HERO ========= */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-text h1 {
  font-size: 48px;
}

.hero-text p {
  font-size: 20px;
}

/* ========= ROW SECTIONS ========= */
.row {
  padding: 80px 10%;
  display: flex;
  gap: 50px;
  align-items: center;
}

.row img {
  width: 45%;
  border-radius: 10px;
}

.row div {
  width: 55%;
}

.row h2 {
  color: #1b5e20;
  margin-bottom: 15px;
}

.row.reverse {
  flex-direction: row-reverse;
}

.row ul {
  margin-top: 10px;
  padding-left: 20px;
}

.row button {
  margin-top: 20px;
  background: #1b5e20;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.row button:hover {
  background: #c9a23f;
}

/* ========= CARDS ========= */
.cards {
  background: #f4fbf6;
  padding: 80px 10%;
  text-align: center;
}

.cards h2 {
  color: #1b5e20;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  color: #c9a23f;
}

/* ========= STATS ========= */
.stats {
  padding: 60px 10%;
  background: #1b5e20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  color: #fff;
}

.stats h3 {
  font-size: 36px;
}

/* ========= GALLERY ========= */
.gallery {
  padding: 80px 10%;
  text-align: center;
}

.gallery h2 {
  color: #1b5e20;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
}

/* ========= TESTIMONIAL ========= */
.testimonials {
  background: #f4fbf6;
  padding: 80px 10%;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial h4 {
  margin-top: 10px;
  color: #1b5e20;
}

/* ========= CTA ========= */
.cta {
  padding: 80px 10%;
  background: linear-gradient(135deg,#1b5e20,#c9a23f);
  text-align: center;
  color: #fff;
}

.cta button {
  margin-top: 20px;
  padding: 12px 30px;
  border: none;
  background: #fff;
  color: #1b5e20;
  border-radius: 25px;
  cursor: pointer;
}

/* ========= RESPONSIVE ========= */
@media(max-width:900px){
  .row {flex-direction: column;}
  .row img,.row div{width:100%;}
  .card-grid,.gallery-grid,.testimonial-grid,.stats{
    grid-template-columns:1fr;
  }
}

.notes-section {
  background: #f7fbff;
}

.class-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.class-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #0b5ed7;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.class-btn:hover {
  background: #084298;
  transform: translateY(-2px);
}

/*academics*/
.faculty-section {
  padding: 70px 40px;
  background: #f8fbff;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.faculty-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faculty-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/*contact page ui*/
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input, form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

form textarea {
  min-height: 120px;
}

form button {
  background: #198754;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: #146c43;
}


/* ================= ADMIN / CMS UI ================= */

body {
  background: #f4f8fb;
}

/* Admin Login */
.admin-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-card {
  background: white;
  padding: 40px;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.admin-card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #198754;
}

.admin-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.admin-card button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #198754;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.admin-card button:hover {
  background: #146c43;
}

/* Dashboard Table */
table {
  border-collapse: collapse;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

th {
  background: #198754;
  color: white;
  padding: 12px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

td button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

td button:hover {
  background: #bb2d3b;
}

/* CMS Panel */
select, input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#saveBtn {
  background: #198754;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
}

#saveBtn:hover {
  background: #146c43;
}

.site-header {
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.site-header nav a {
  margin-right: 15px;
}

.site-footer {
  background: #198754;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 60px;
}

/*loading page */

#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #2f7f4f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loader p {
  margin-top: 15px;
  font-weight: 600;
  color: #2f7f4f;
}

/* ========= PROFESSIONAL FOOTER ========= */
.site-footer{
  background: #e8f5e9;              /* light green */
  color: #111;
  margin-top: 60px;
}

.footer-container{
  padding: 50px 10%;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 35px;
}

.footer-title{
  color: #1b5e20;                   /* green heading */
  font-size: 20px;
  margin-bottom: 12px;
}

.site-footer h4{
  color: #1b5e20;
  margin-bottom: 12px;
}

.site-footer p{
  opacity: 0.95;
  margin-bottom: 10px;
}

.footer-links{
  list-style: none;
}

.footer-links li{
  margin-bottom: 10px;
}

.footer-links a{
  color: #1b5e20;
  font-weight: 500;
}

.footer-links a:hover{
  color: #c9a23f;                   /* gold on hover */
}

.footer-social{
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.footer-social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #1b5e20;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.footer-social a:hover{
  background: #c9a23f;
  color: #111;
}

.footer-bottom{
  background: #1b5e20;              /* deep green bar */
  color: #fff;
  text-align: center;
  padding: 14px 10%;
}

.footer-bottom p{
  margin: 0;
  opacity: 0.95;
}

/* Responsive footer */
@media (max-width: 900px){
  .footer-container{
    grid-template-columns: 1fr;
    padding: 35px 8%;
  }
}

/* ========= MOBILE FRIENDLY FIXES ========= */
@media (max-width: 900px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  nav a {
    margin-left: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(27, 94, 32, 0.08);
  }

  .hero {
    height: 55vh;
  }

  .hero-text h1 {
    font-size: 30px;
    padding: 0 12px;
  }

  .hero-text p {
    font-size: 16px;
    padding: 0 14px;
  }

  .row {
    padding: 50px 6%;
    gap: 20px;
  }

  .row img {
    width: 100%;
  }

  .row div {
    width: 100%;
  }

  .cards,
  .gallery,
  .testimonials,
  .cta {
    padding: 55px 6%;
  }

  .card-grid,
  .gallery-grid,
  .testimonial-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 20px;
    padding: 40px 6%;
  }

  /* Footer */
  .footer-container {
    padding: 35px 6%;
    grid-template-columns: 1fr;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* ========= MOBILE NAV TOGGLE ========= */
.site-header-main {
  background: #e8f5e9;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-btn {
  display: none;
  border: none;
  background: #1b5e20;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .site-header-main {
    padding: 12px 16px;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    width: 100%;
    display: none; /* hidden by default */
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(27,94,32,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(27, 94, 32, 0.08);
  }
}

