/* Custom styles to enhance Bootstrap */

/* General styles */
:root {
  --primary-color: #161179;
  --secondary-color: #ff5722;
  --text-color: #333;
  --light-bg: #fff;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

/* Hero Section Styles */
.hero-section {
  height: 100vh;
  min-height: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  will-change: transform;
  margin: 0;
  padding: 0;
  padding-top: calc(var(--navbar-height, 60px) + var(--announcement-height, 35px));
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  transform: translateZ(0);
  margin: 0;
}

.hero-video {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateZ(0);
}

/* Container styles */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.content-wrapper {
  padding: 20px;
  transform: translateZ(0);
}

/* Typography */
.welcome-text {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--light-bg);
  margin-bottom: 1rem;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.school-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--light-bg);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--light-bg);
  margin-bottom: 2rem;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button styles */
.btn-know-more {
  background-color: #00b4ff;
  color: var(--light-bg);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: none;
  display: inline-block;
  transform: translateZ(0);
}

.btn-know-more:hover {
  background-color: #0095d9;
  color: var(--light-bg);
  transform: translateY(-2px);
}

/* Header styles */
.header-scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-scrolled .navbar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Navbar styles */
.navbar-brand h1 {
  color: var(--primary-color);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  font-family: 'Times New Roman', Times, serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.nav-link.menu-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  transition: all var(--transition-speed) ease;
}

.nav-link.menu-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width var(--transition-speed) ease;
}

.nav-link.menu-link:hover,
.nav-link.menu-link.active {
  color: var(--primary-color);
}

.nav-link.menu-link:hover::after,
.nav-link.menu-link.active::after {
  width: 80%;
}

/* Management section styles */
.management {
  padding: 4rem 0;
  text-align: center;
}

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

.pic {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

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

.pic img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* Values section styles */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  
}

.value-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  .pic img {
    width: 150px;
    height: 180px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .team {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .pic img {
    width: 120px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .values-container {
    grid-template-columns: 1fr;
  }
  .pic img {
    width: 100px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .team {
    grid-template-columns: 1fr;
  }
  
  .pic {
    padding: 1rem;
  }
  .pic img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
}

/* Print styles */
@media print {
  .hero-video-container,
  .navbar,
  .btn-know-more {
    display: none;
  }
  
  body {
    background: var(--light-bg);
  }
  
  .container {
    max-width: 100%;
  }
}

/* Additional animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.navbar-brand:hover h1 {
  animation: float 2s ease-in-out infinite;
  color: #0e0c54;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar-brand h1 {
    font-size: 20px;
  }
  
  .nav-link.menu-link {
    padding: 8px 0;
  }
  
  .nav-link.menu-link::after {
    left: 0;
    transform: none;
  }
  
  .nav-link.menu-link:hover::after,
  .nav-link.menu-link.active::after {
    width: 40px;
  }
}

@media (max-width: 576px) {
  .navbar-brand h1 {
    font-size: 18px;
  }
  
  .announcement-bar {
    font-size: 12px;
  }
}

/* Animation durations */
.animate__fadeIn {
  --animate-duration: 1s;
}

.animate__fadeInLeft,
.animate__fadeInRight {
  --animate-duration: 1.2s;
}

.animate__fadeInDown {
  --animate-duration: 1.5s;
  animation-delay: 0.5s;
}

/* For the navbar items when appearing on mobile */
@media (max-width: 992px) {
  .navbar-collapse.collapsing .navbar-nav .nav-item,
  .navbar-collapse.show .navbar-nav .nav-item {
    animation: slideInDown 0.3s forwards;
    opacity: 0;
  }
  
  @keyframes slideInDown {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(7) { animation-delay: 0.7s; }
}

/* Patron Saint Section */
.patron-saint-section {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.patron-text-col {
  position: relative;
  z-index: 2;
}

.content-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.section-title {
  font-size: 2.8rem;
  color: #000;
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  line-height: 1.2;
}

.accent-line {
  width: 0;
  height: 4px;
  background: #ff5722;
  margin-bottom: 30px;
  animation: lineWidth 1s ease-out 0.5s forwards;
}

.patron-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.education-highlight {
  background-color: #ff5722;
  padding: 40px;
  margin-top: 40px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.highlight-content {
  position: relative;
  z-index: 2;
}

.highlight-shape {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.education-highlight h3 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.founder-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.founder-link span {
  margin-right: 10px;
}

.founder-link i {
  transition: transform 0.3s ease;
}

.founder-link:hover {
  color: #fff;
  opacity: 0.9;
}

.founder-link:hover i {
  transform: translateX(5px);
}

.patron-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  line-height: 0;
  background-color: transparent;
}

.patron-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-decoration {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: #ff5722;
  opacity: 0.1;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.patron-image-wrapper:hover .patron-image {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .patron-saint-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .patron-description {
    font-size: 1rem;
  }

  .education-highlight {
    padding: 30px;
  }

  .education-highlight h3 {
    font-size: 1.8rem;
  }

  .patron-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .patron-saint-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .education-highlight {
    padding: 25px;
  }

  .education-highlight h3 {
    font-size: 1.6rem;
  }

  .patron-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .patron-saint-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .patron-description {
    font-size: 0.95rem;
  }

  .education-highlight {
    padding: 20px;
    margin-top: 25px;
  }

  .education-highlight h3 {
    font-size: 1.4rem;
  }

  .patron-image-wrapper {
    margin-top: 20px;
  }

  .highlight-shape {
    display: none;
  }
}

.management{
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 30px;
}

.management h1{
  font-size: 3rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
}

.quote{
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 20px;
}

.team{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pic{
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.pic img{
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.pic:hover{
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pic p{
  text-transform: uppercase;
  margin-bottom: 5px;
}

.pic h3{
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
  padding-top: 15px;
}

/* Responsive styles for management section */
@media (max-width: 1200px) {
  .pic img {
    width: 150px;
    height: 180px;
  }
}

@media (max-width: 992px) {
  .management h1 {
    font-size: 2.5rem;
  }
  
  .quote {
    font-size: 1.3rem;
  }
  
  .pic img {
    width: 120px;
    height: 150px;
  }
  
  .pic h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .management h1 {
    font-size: 2rem;
  }
  
  .quote {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .team {
    gap: 15px;
  }
  
  .pic {
    padding: 15px;
  }
  
  .pic img {
    width: 100px;
    height: 120px;
  }
  
  .pic h3 {
    font-size: 1.2rem;
    padding-top: 10px;
  }
}

@media (max-width: 576px) {
  .management {
    padding-top: 20px;
  }
  
  .management h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .quote {
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  
  .team {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .pic {
    padding: 15px;
    margin-bottom: 0;
    width: 100%;
  }
  
  .pic img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  
  .pic h3 {
    font-size: 1.1rem;
    padding-top: 10px;
  }
  
  .pic p {
    font-size: 0.9rem;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;600&display=swap');

/* Animated background */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-20vh) translateX(20vw);
    opacity: 0;
  }
}

/* Motto Styles */
.Motto {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.Motto h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #000000;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.Motto h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: #5bc0be;
  animation: expandLine 2s ease-out;
}

@keyframes expandLine {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 50%;
    left: 25%;
  }
}

/* Values Cards */
.values-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.value-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
}

.value-card:nth-child(1) {
  animation-delay: 0.3s;
}

.value-card:nth-child(2) {
  animation-delay: 0.6s;
}

.value-card:nth-child(3) {
  animation-delay: 0.9s;
}

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

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
}

.value-card:nth-child(1)::before {
  background-color: #FFD166;
  animation: pulse 3s infinite alternate;
}

.value-card:nth-child(2)::before {
  background-color: #06D6A0;
  animation: pulse 3s infinite alternate 1s;
}

.value-card:nth-child(3)::before {
  background-color: #EF476F;
  animation: pulse 3s infinite alternate 2s;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.value-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 2rem 0;
  color: #000000;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.8;
  padding: 0 2rem 2rem;
  color: #3a506b;
}

@media (max-width: 768px) {
  .values-container {
    flex-direction: column;
    align-items: center;
  }

  .value-card {
    width: 100%;
  }
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h1 {
  color: #4d4d4d;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 5px;
}

.gallery-header h2 {
  color: #333;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.gallery-header .divider-line {
  width: 50px;
  height: 3px;
  background-color: #ff6b6b;
  margin: 0 auto;
}

.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn.active {
  background-color: #4f5bd5;
  color: white;
  border-color: #4f5bd5;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 250px;
  transition: transform 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.02);
}

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

.action-button-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.view-all-btn {
  padding: 12px 30px;
  background-color: #4f5bd5;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(79, 91, 213, 0.2);
  text-decoration: none;
  display: inline-block;
}

.view-all-btn:hover {
  background-color: #3f4bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(79, 91, 213, 0.3);
}

.top-scroll-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #4f5bd5;
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

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

.announcement-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  position: relative;
}

.section-title {
  text-align: center;
  color: #1e3a8a;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #1e3a8a;
  margin: 15px auto 0;
}

.announcement-slider {
  position: relative;
  overflow: hidden;
}

.announcement-grid {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
  width: auto;
}

.announcement-card {
  min-width: 350px;
  max-width: 350px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.announcement-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

.announcement-card:hover .announcement-image img {
  transform: scale(1.05);
}

.announcement-content {
  padding: 20px;
}

.announcement-title {
  color: #333;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.announcement-text {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* Slider Navigation */
.announcement-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: #4f5bd5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 91, 213, 0.2);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #4f5bd5;
  transform: scale(1.2);
}

/* View More Button */
.announcement-action {
  text-align: center;
  margin-top: 40px;
}

.view-more-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4f5bd5;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 91, 213, 0.2);
}

.view-more-btn:hover {
  background-color: #3f4bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 91, 213, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .announcement-card {
    min-width: 300px;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .announcement-card {
    min-width: 100%;
    max-width: 100%;
  }
  
  .announcement-navigation {
    gap: 15px;
  }
  
  .nav-btn {
    width: 36px;
    height: 36px;
  }
}

.toppers-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title .underline {
  height: 4px;
  width: 70px;
  background-color: var(--accent-color);
  margin: 15px auto;
  border-radius: 2px;
}

.topper-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

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

.topper-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: white;
  font-size: 18px;
  z-index: 2;
}

.rank-1 {
  background-color: #ffd700; /* Gold */
}

.rank-2 {
  background-color: #c0c0c0; /* Silver */
}

.rank-3 {
  background-color: #cd7f32; /* Bronze */
}

.topper-img-container {
  position: relative;
  padding-top: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topper-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topper-badge {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topper-badge i {
  font-size: 24px;
}

.badge-1 {
  color: #ffd700;
}

.badge-2 {
  color: #c0c0c0;
}

.badge-3 {
  color: #cd7f32;
}

.topper-info {
  padding: 35px 20px 20px;
  text-align: center;
}

.topper-info h3 {
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--dark-color);
}

.topper-info .grade {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.topper-stats {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #e1e1e1;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-weight: 500;
  color: var(--secondary-color);
}

.stat-value {
  font-weight: 700;
  color: var(--dark-color);
}

.btn-view-profile {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-view-profile:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .topper-card {
      margin-bottom: 40px;
  }
}

footer {
  width: 100%;
  background: #111;
  margin-top: 50px;
}

footer .content {
  max-width: 1350px;
  margin: auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer .content p,
footer .content a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .content .box {
  width: 33%;
  transition: all 0.4s ease;
}

footer .content .topic {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

footer .content .topic::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #eb2f06;
}

footer .content p {
  text-align: justify;
  line-height: 1.8;
  color: #d9d9d9;
  font-size: 14px;
}

footer .content .lower .topic {
  margin: 24px 0 5px 0;
}

footer .content .lower i {
  padding-right: 16px;
}

footer .content .middle {
  padding-left: 80px;
}

footer .content .middle a {
  line-height: 32px;
  display: block;
  color: #d9d9d9;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .content .middle a:hover {
  color: #eb2f06;
  padding-left: 10px;
}

footer .content .right input[type="text"] {
  height: 45px;
  width: 100%;
  outline: none;
  color: #d9d9d9;
  background: #000;
  border-radius: 5px;
  padding-left: 10px;
  font-size: 17px;
  border: 2px solid #222222;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

footer .content .right input[type="text"]:focus {
  border-color: #eb2f06;
}

footer .content .right input[type="submit"] {
  height: 42px;
  width: 100%;
  font-size: 18px;
  color: #d9d9d9;
  background: #eb2f06;
  outline: none;
  border-radius: 5px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 12px;
  border: 2px solid #eb2f06;
  transition: all 0.3s ease-in-out;
}

.content .right input[type="submit"]:hover {
  background: none;
  color: #eb2f06;
}

footer .content .media-icons {
  margin-top: 30px;
}

footer .content .media-icons a {
  font-size: 16px;
  height: 45px;
  width: 45px;
  display: inline-block;
  text-align: center;
  line-height: 43px;
  border-radius: 5px;
  border: 2px solid #222222;
  margin: 0 5px 0 0;
  transition: all 0.3s ease;
}

.content .media-icons a:hover {
  border-color: #eb2f06;
  color: #eb2f06;
}

footer .bottom {
  width: 100%;
  text-align: center;
  color: #d9d9d9;
  padding: 15px 0;
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer .bottom a {
  color: #eb2f06;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .bottom .developer-credit {
  font-size: 14px;
  color: #888;
}

footer .bottom .developer-credit a {
  color: #eb2f06;
}

footer .bottom .developer-credit a:hover {
  color: #ff4f2b;
}

footer .address a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #d9d9d9;
}

footer .address i {
  min-width: 20px;
}

@media (max-width:1100px) {
  footer .content .middle {
    padding-left: 50px;
  }
}

@media (max-width:950px) {
  footer .content .box {
    width: 50%;
  }
  .content .right {
    margin-top: 40px;
  }
}

@media (max-width:560px) {
  footer .content .box {
    width: 100%;
    margin-top: 30px;
  }
  footer .content .middle {
    padding-left: 0;
  }
  
  footer .content {
    padding: 20px;
  }
  
  footer .bottom {
    text-align: center;
    padding: 15px;
  }
  
  footer .content .topic {
    font-size: 20px;
  }
  
  footer .content p {
    font-size: 13px;
  }
  
  footer .bottom .developer-credit {
    font-size: 13px;
  }
}