/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #fafafa;
  color: #222;
}

/* Branding Top */
.branding {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #002147;  /* dark blue */
  color: gold;
  padding: 15px 20px;
}

.branding .logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.school-name h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.school-name p {
  font-size: 14px;
  letter-spacing: 1px;
}

/* Navbar */
.nav {
  background: #004080;
  padding: 10px;
  text-align: center;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav ul li {
  margin: 5px 12px;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav ul li a:hover {
  background: gold;
  color: #002147;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 1100px;
  flex-wrap: wrap;
}

/* Slideshow Box */
.slideshow {
  position: relative;
  height: 500px; /* vertical size */
  overflow: hidden;
  border-radius: 15px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px 0;
}

.welcome-card {
  max-width: 600px;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;       /* text ko bilkul center karega */
  padding: 15px;
  background: #004080;
  color: white;
  margin-top: 30px;
}

/* About Page Styling */
.content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  color: #333;
}

.content h2 {
  text-align: center;
  font-size: 2rem;
  color: #004080;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.content h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #ff9900;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.content section {
  background: linear-gradient(135deg, #fdfdfd, #f2f6ff);
  border-left: 6px solid #004080;
  padding: 20px 25px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content section:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.content h3 {
  color: #ff6600;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: bold;
}

.content p {
  font-size: 1rem;
  text-align: justify;
}

.principal-card {
  background: linear-gradient(135deg, #ffcc66, #ff9900);
  color: #fff;
  text-align: center;
  border: 2px solid #ff6600;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.principal-card h3 {
  font-size: 20px;
}
.principal-card p {
  font-size: 16px;
}

.ex-principal-card {
  background: linear-gradient(135deg, #99ccff, #3366cc);
  color: #fff;
  text-align: center;
  border: 2px solid #004080;
  font-weight: bold;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.ex-principal-card h3 {
  font-size: 18px;
}
.ex-principal-card p {
  font-size: 14px;
}

/* Ye tumhare style.css me add karna hai */

/* Slideshow ko responsive banao */
.slideshow {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.slideshow img {
  width: 100%;
  height: auto;
}

/* Mobile ke liye special design */
@media (max-width: 600px) {
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav li {
    margin: 8px 0;
  }

  .welcome-card {
    text-align: center;
    padding: 10px;
  }

  .slideshow {
    height: 250px; /* Mobile ke liye chhoti height */
  }
}

