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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

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

/* Top Bar */
.top-bar {
  background-color: #1a1a2e;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  margin-right: 5px;
  color: #dc3545;
}

.social-links a {
  color: #fff;
  margin-left: 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #dc3545;
}

/* Navigation */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 24px;
  font-weight: 700;
}

.logo i {
  color: #dc3545;
  margin-right: 10px;
  font-size: 32px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #dc3545 !important;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #dc3545;
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
  background-color: #dc3545 !important;
}

/* Ensure active state is red even when navbar is sticky */
.navbar .nav-menu a.active {
  color: #dc3545 !important;
}

.navbar .nav-menu a.active::after {
  background-color: #dc3545 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #1a1a2e;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  height: 600px;
  background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
    url("../img/college_hero.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 20px;
  animation: fadeInUp 1s;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  animation: fadeInUp 1s 0.2s backwards;
}

.hero-buttons {
  animation: fadeInUp 1s 0.4s backwards;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #dc3545;
  color: #fff;
}

.btn-primary:hover {
  background-color: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(175, 76, 76, 0.3);
}

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

.btn-secondary:hover {
  background-color: #fff;
  color: #1a1a2e;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  color: #dc3545;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  color: #1a1a2e;
  margin-top: 10px;
}

/* About Section */
.about-section {
  background-color: #f9f9f9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.about-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-card .icon {
  width: 70px;
  height: 70px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.about-card h3 {
  color: #1a1a2e;
  margin-bottom: 15px;
  font-size: 20px;
}

.about-card p {
  color: #666;
  font-size: 14px;
}

/* Vision Section */
.vision-section {
  text-align: center;
  background-color: #fff;
}

.vision-section h2 {
  font-size: 36px;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.vision-text {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto 50px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.vision-card {
  text-align: center;
}

.vision-icon {
  width: 80px;
  height: 80px;
  background-color: #f0f8ff;
  color: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.vision-card h3 {
  font-size: 22px;
  color: #1a1a2e;
  margin-bottom: 15px;
}

.vision-card p {
  color: #666;
}

/* Features Section */
.features-section {
  background-color: #f9f9f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

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

.feature-card h3 {
  padding: 20px;
  color: #1a1a2e;
  font-size: 20px;
}

.feature-card p {
  padding: 0 20px 20px;
  color: #666;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #1a1a2e, #2d4a7c);
  color: #fff;
  text-align: center;
}

.stats-section h2 {
  color: #fff;
  margin-bottom: 50px;
  font-size: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-card h3 {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 18px;
  color: #fff;
}

/* Why Choose Us Section */
.why-choose-section {
  background-color: #fff;
  padding: 80px 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.why-choose-card {
  background-color: #f9f9f9;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  border-top: 4px solid transparent;
}

.why-choose-card:hover {
  background-color: #fff;
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top-color: #dc3545;
}

.why-choose-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc3545, #c62828);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  transition: transform 0.3s;
}

.why-choose-card:hover .why-choose-icon {
  transform: scale(1.1) rotate(5deg);
}

.why-choose-card h3 {
  color: #1a1a2e;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 600;
}

.why-choose-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}
.campus-life-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.activity-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.activity-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
  transform: scale(1.1);
}

.activity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(220, 53, 69, 0.8), rgba(198, 40, 40, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-overlay i {
  font-size: 60px;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-overlay {
  opacity: 1;
}

.activity-card:hover .activity-overlay i {
  transform: scale(1.1);
}

.activity-content {
  padding: 30px;
}

.activity-content h3 {
  color: #1a1a2e;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.activity-card:hover .activity-content h3 {
  color: #dc3545;
}

.activity-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Programs Section */
.programs-section {
  text-align: center;
}

.programs-subtitle {
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.program-card {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  transition: all 0.3s;
}

.program-card:hover {
  background-color: #dc3545;
  color: #fff;
  transform: translateY(-10px);
}

.program-card i {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 20px;
}

.program-card:hover i {
  color: #fff;
}

.program-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.program-card p {
  margin-bottom: 10px;
}

.learn-more {
  display: inline-block;
  margin-top: 20px;
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
}

.program-card:hover .learn-more {
  color: #fff;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(228, 56, 56, 0.9), rgba(175, 76, 76, 0.9)),
    url("../img/college_hero.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-section .btn {
  background-color: #fff;
  color: #dc3545;
}

.cta-section .btn:hover {
  background-color: #1a1a2e;
  color: #fff;
}

/* Footer */
.footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  margin-bottom: 20px;
  color: #dc3545;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #dc3545;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.footer-social a:hover {
  background-color: #c62828;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-list i {
  color: #dc3545;
  margin-right: 10px;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover {
  color: #dc3545;
}

/* Page Header for Internal Pages */
.page-header {
  background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)),
    url("../img/college_hero.jpg") center/cover;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  color: #ddd;
}

/* About Page Styles */
.about-content {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.content-text h2 {
  color: #1a1a2e;
  font-size: 32px;
  margin-bottom: 20px;
}

.content-text h3 {
  color: #1a1a2e;
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-text p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
}

.values-list {
  list-style: none;
  margin-top: 20px;
}

.values-list li {
  padding: 10px 0;
  color: #666;
  border-bottom: 1px solid #eee;
}

.values-list li strong {
  color: #dc3545;
}

.content-image {
  position: sticky;
  top: 100px;
}

.content-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-caption {
  background-color: #f9f9f9;
  padding: 15px;
  margin-top: -5px;
  border-radius: 0 0 10px 10px;
  text-align: center;
}

.image-caption p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Team Section */
.team-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3 {
  color: #1a1a2e;
  margin: 20px 0 10px;
  font-size: 20px;
}

.team-member .position {
  color: #dc3545;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-member p {
  color: #666;
  padding: 0 20px 20px;
  font-size: 14px;
}

/* Achievements Section */
.achievements-section {
  padding: 80px 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.achievement-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
}

.achievement-card:hover {
  background-color: #dc3545;
  color: #fff;
  transform: translateY(-5px);
}

.achievement-card i {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 20px;
}

.achievement-card:hover i {
  color: #fff;
}

.achievement-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.achievement-card p {
  font-size: 14px;
}

/* Why Choose Us Section */
.why-choose {
  background-color: #f9f9f9;
  padding: 80px 0;
  text-align: center;
}

.why-choose h2 {
  font-size: 36px;
  color: #1a1a2e;
  margin-bottom: 50px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.reason {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
}

.reason i {
  color: #dc3545;
  font-size: 24px;
  margin-right: 15px;
}

.reason p {
  color: #333;
  margin: 0;
  font-weight: 500;
}

/* Contact Page Styles */
.contact-section {
  padding: 80px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-box,
.contact-form-box {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
}

.contact-info-box h2,
.contact-form-box h2 {
  color: #1a1a2e;
  margin-bottom: 20px;
}

.info-items {
  margin-top: 30px;
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.info-content h3 {
  color: #1a1a2e;
  margin-bottom: 5px;
  font-size: 18px;
}

.info-content p {
  color: #666;
  font-size: 14px;
  margin: 3px 0;
}

.social-connect {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}

.social-connect h3 {
  color: #1a1a2e;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background-color: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: #c62828;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc3545;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background-color: #edd4d4;
  color: #571515;
  border: 1px solid #e6c3c3;
}

.alert-error {
  background-color: #f5c6cb;
  color: #721c24;
  border: 1px solid #e6c3c3;
}

.alert i {
  font-size: 20px;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a2e;
  font-size: 36px;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(175, 76, 76, 0.3);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #c62828;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(175, 76, 76, 0.4);
}

.back-to-top.show {
  display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-image {
    position: relative;
    top: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-info span {
    display: block;
    margin: 5px 0;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .activity-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card h3 {
    font-size: 36px;
  }
}
