/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a237e;
  --secondary-color: #ff6f00;
  --accent-color: #4caf50;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --text-color: #212121;
  --text-light: #757575;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  width: 80px;
  height: 80px;
  margin-right: 1rem;
}

.school-name h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.school-name p {
  color: var(--text-light);
  font-size: 0.9rem;
}

nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

.cta-button:hover {
  background-color: transparent;
  color: #fff;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid #fff;
}

.cta-button.secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.key-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

/* Academics Section */
.academics {
  padding: 5rem 0;
}

.academics-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.curriculum, .streams {
  flex: 1;
  min-width: 300px;
}

.curriculum h3, .streams h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.curriculum p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.curriculum ul {
  padding-left: 1.5rem;
}

.curriculum ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.curriculum ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.stream-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stream-card {
  flex: 1;
  min-width: 200px;
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.stream-card:hover {
  transform: translateY(-5px);
}

.stream-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.stream-card h4 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

/* Facilities Section */
.facilities {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.facility-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-5px);
}

.facility-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.facility-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--primary-color);
}

.facility-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
}

/* Achievements Section */
.achievements {
  padding: 5rem 0;
}

.achievements-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.achievement-stats {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.achievement-highlights {
  flex: 1;
  min-width: 300px;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.achievement-highlights h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.achievement-highlights ul li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.achievement-highlights ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

/* Rankers Section */
.rankers {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.rankers-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.8rem 2rem;
  background-color: #fff;
  border: none;
  border-radius: 50px;
  margin: 0 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
}

.tab-button.active, .tab-button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.rankers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.ranker-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.ranker-card:hover {
  transform: translateY(-5px);
}

.ranker-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ranker-card h4 {
  margin-top: 1.5rem;
  color: var(--primary-color);
}

.ranker-card .percentage {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

.ranker-card p:last-child {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Programs Section */
.programs {
  padding: 5rem 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--primary-color);
}

.program-card p .program-card p {
  padding: 0 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.program-card ul {
  padding: 0 1.5rem 1.5rem 3rem;
}

.program-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.program-card ul li::before {
  content: '✓';
  position: absolute;
  left: -1.5rem;
  color: var(--accent-color);
}

/* Gallery Section */
.gallery {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9)), url('images/testimonial-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.testimonials .section-title {
  color: #fff;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  backdrop-filter: blur(5px);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1rem;
}

.testimonial p::before, .testimonial p::after {
  content: '"';
  font-size: 2rem;
  color: var(--secondary-color);
  position: absolute;
}

.testimonial p::before {
  left: -5px;
  top: -10px;
}

.testimonial p::after {
  right: -5px;
  bottom: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid var(--secondary-color);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: var(--secondary-color);
}

.map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Faculty Section */
.faculty {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.faculty-content {
  overflow-x: auto;
}

.faculty-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.faculty-table th, .faculty-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.faculty-table th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.faculty-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.faculty-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.faculty-note {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faculty-note p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Faculty Page Specific Styles */
.faculty-page {
  padding: 5rem 0;
}

.faculty-banner {
  background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.8)), url('images/school-building.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.faculty-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faculty-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faculty-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.faculty-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.faculty-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.faculty-note h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Footer Section */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 4rem 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  width: 80px;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h3, .footer-social h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-social {
  flex: 1;
  min-width: 250px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.newsletter form {
  display: flex;
}

.newsletter input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter button {
  padding: 0 1.5rem;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter button:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo-container {
    justify-content: center;
    padding: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-content, .academics-content, .achievements-content, .contact-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
  }
  
  .testimonial-slider {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .faculty-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .key-features, .stream-cards {
    flex-direction: column;
  }
  
  .achievement-stats {
    grid-template-columns: 1fr;
  }
  
  .rankers-tabs {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tab-button {
    width: 100%;
  }
  
  .programs-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .faculty-stats {
    grid-template-columns: 1fr;
  }
}