/* Modern styling for JMMNJ Homepage */
:root {
  --primary-color: #1f3f9b;
  --secondary-color: #ffbd1a;
  --dark-color: #333333;
  --light-color: #ffffff;
  --gray-color: #f8f9fa;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* General Styling */
body {
  font-family: 'JMMNJ Font Regular', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Bootstrap Customization */
.navbar {
  background-color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--light-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-dark .navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
  width: 70%;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-color);
  font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #e6a800;
  border-color: #e6a800;
  color: var(--dark-color);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Section Styling */
section {
  position: relative;
  padding: 5rem 0;
  word-wrap: break-word;
}

.section-dark {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.section-light {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Card Styling */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-container {
  overflow: hidden;
  height: 200px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-container img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  transition: var(--transition);
}

.card-icon img {
  max-height: 100px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.card:hover .card-icon img {
  transform: scale(1.1);
}

.list-group-item {
  border-left: none;
  border-right: none;
  border-color: rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 550px;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f3f9b 0%, #304db3 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  color: var(--light-color);
  padding: 2rem;
  animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 30px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Titles */
.section-title {
  position: relative;
  font-weight: bold;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Profile Card */
.profile {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.profile:hover {
  transform: translateY(-5px);
}

.pro-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}

.pro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile:hover .pro-img img {
  transform: scale(1.1);
}

.profile h5 {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.profile h6 {
  font-weight: 500;
  margin-bottom: 0;
}

/* Activity Slider */
.activity-slider {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.mySlidesAct {
  display: none;
  padding: 1rem;
}

.mySlidesAct h3 {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.activity-info {
  margin-bottom: 1.5rem;
}

.activity-info i {
  color: var(--secondary-color);
  width: 24px;
}

.prevAct, .nextAct {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

.prevAct {
  left: 10px;
}

.nextAct {
  right: 10px;
}

.prevAct:hover, .nextAct:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot-containerAct {
  text-align: center;
}

.dotAct {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dotAct:hover {
  background-color: var(--secondary-color);
}

/* animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .pro-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
} 