/* Custom CSS for Kanduah Mahakali High School Website */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

/* Root Variables */
:root {
  --primary-color: #781921;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --pink-color: #e91e63;
  --purple-color: #6f42c1;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --font-family: "Poppins", sans-serif;
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Colors */
.bg-pink {
  background-color: var(--pink-color) !important;
}

.bg-purple {
  background-color: var(--purple-color) !important;
}

.text-pink {
  color: var(--pink-color) !important;
}

.text-purple {
  color: var(--purple-color) !important;
}

/* Header Styles */
.header-section {
  position: relative;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #78191d !important;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

/* Stack icon above text */
.navbar-nav .nav-link i {
  display: block;
  /*font-size: 1.2rem;*/
  margin-bottom: 4px;
}


@media (max-width: 768px) {
  .navbar-nav.nav-center {
    flex-direction: column;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/scbg.jpg") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
  margin: 0.5rem;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top:15px;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/Page+Header.jpg") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 1s ease forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease forwards;
}

.counter-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Card Styles */
.card {
  border: none;
  border-radius: 15px;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  border-bottom: none;
  font-weight: 600;
}

/* Vision Mission Cards */
.vision-mission-section .card {
  border-top: 4px solid transparent;
  transition: var(--transition);
}

.vision-mission-section .card:first-child {
  border-top-color: var(--primary-color);
}

.vision-mission-section .card:last-child {
  border-top-color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
  background: var(--light-color);
}

.stat-item {
  padding: 2rem 1rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* Quote Cards */
.quote-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quote-text {
  font-style: italic;
  font-size: 1.1rem;
  margin: 1rem 0;
  color: #555;
}

.quote-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 0;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Feature Icons */
.feature-icon,
.infra-icon,
.contact-icon,
.facility-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.facility-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

/* Stream Cards */
.stream-card {
  transition: var(--transition);
}

.stream-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Activity Cards */
.activity-card,
.program-card {
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.activity-card:hover,
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Scholarship Cards */
.scholarship-card {
  transition: var(--transition);
}

.scholarship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Rule Cards */
.rule-card {
  transition: var(--transition);
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Cards */
.contact-card {
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(120, 25, 33, 0.25);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.footer-section {
  /* background: var(--dark-color) !important; */
  background: #7b736f !important;
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/footer-background.png") center / cover;
  opacity: 0.05;
  z-index: 1;
}

.footer-section .container {
  position: relative;
  z-index: 2;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 1rem !important;
  }

  .timeline-marker {
    left: 10px !important;
  }

  .hero-section {
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: 100px 0 60px;
  }

  .counter {
    font-size: 2rem;
  }

  .feature-icon,
  .infra-icon,
  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .timeline-content {
    padding: 1rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .hero-section,
  .page-header {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}







    .notice-board {
      background-color: #f8f9fa;
      border-left: 5px solid #0d6efd;
      padding: 20px;
      border-radius: 10px;
      animation: slideInLeft 1s ease;
    }

    .birthday-board {
      background-color: #fff3cd;
      border-left: 5px solid #ffc107;
      padding: 20px;
      border-radius: 10px;
      animation: slideInRight 1s ease;
    }

    .birthday-card {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .birthday-card img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 15px;
      border: 2px solid #ffc107;
    }

    .notice-title, .birthday-title {
      font-weight: bold;
      margin-bottom: 15px;
    }

    .notice-list a {
      display: block;
      color: #0d6efd;
      text-decoration: none;
      padding: 8px 0;
      border-bottom: 1px dashed #ccc;
      transition: all 0.3s ease;
    }

    .notice-list a:hover {
      text-decoration: underline;
      color: #084298;
    }

    @keyframes slideInLeft {
      from { transform: translateX(-50px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    @keyframes slideInRight {
      from { transform: translateX(50px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    
    
 a{
     text-decoration:none;
 }  
    