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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
}

.logo-img {
  height: 70px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #bb0101; /* replaced blue hover color with red */
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
}

/* Hero Section */
.hero {
  /*background: linear-gradient(135deg, #7f0000 0%, #8b0000 100%); !* replaced blue gradient with red gradient *!*/
  background-image: url("/web/images/main_banner.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;;
  color: white;
  text-align: left;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding: 140px 0 60px;
}

/* Added two-column layout for hero section */
.hero-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 300;
}

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

.hero-description p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Image Slider Styles */
.image-slider {
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
  max-width: 950px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  display: none;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: rgba(255, 255, 255, 1);
}

/* CEBTESU Information Section Styles */
.cebtesu-info {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  opacity: 0.9;
}

.info-card li:last-child {
  border-bottom: none;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* About Section */
.about {
  background: #f8f9fa;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

/* Contact Section */
.contact {
  background: #fff;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-banner {
  width: 100%;
  margin-bottom: 30px;
}

.contact-banner-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-item p {
  color: #666;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.membership-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.membership-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #555;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #bb0101; /* replaced blue radio accent color with red */
}

.epf-section {
  transition: all 0.3s ease;
}

.form-input,
.form-textarea {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #bb0101; /* replaced blue focus color with red */
}

.form-button {
  background: #bb0101; /* replaced blue button background with red */
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background: #8b0000; /* replaced blue button hover with darker red */
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* Added hero about section styling */
.hero-about {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-about h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-about p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.highlight-item {
  font-size: 0.9rem;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #bb0101;
  border-radius: 4px;
  opacity: 0.9;
}

/* Added news section styling */
.news-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 800px;
  overflow-y: auto;
}

/* Added custom scrollbar styling for news section */
.news-section::-webkit-scrollbar {
  width: 8px;
}

.news-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.news-section::-webkit-scrollbar-thumb {
  background: rgba(187, 1, 1, 0.6);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.news-section::-webkit-scrollbar-thumb:hover {
  background: rgba(187, 1, 1, 0.9);
}

/* Firefox scrollbar styling */
.news-section {
  scrollbar-color: rgba(187, 1, 1, 0.6) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: white;
}

.news-article {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.news-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-article:hover {
  transform: translateX(5px);
}

.news-date {
  font-size: 0.85rem;
  color: #bb0101;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-headline {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.9rem;
  margin-bottom: 12px;
  opacity: 0.85;
  line-height: 1.5;
}

.news-link {
  font-size: 0.9rem;
  color: #bb0101;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #ff6b6b;
}

/* Added news image thumbnail styling */
.news-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.news-article:hover .news-image {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Stack columns vertically on smaller screens */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    text-align: center;
  }

  .hero-about,
  .news-section {
    text-align: left;
  }

  .news-section {
    max-height: none;
  }

  .header .container {
    flex-direction: column;
    gap: 10px;
    padding: 5px 20px;
  }

  .logo-img {
    height: 70px;
    max-width: 350px;
  }

  .nav-list {
    gap: 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }



  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 60px;
    max-width: 280px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }


  .slider-btn {
    font-size: 18px;
    padding: 10px 15px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}

/* Added modal popup styling */
.news-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #bb0101;
}

.modal-title {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.modal-date {
  color: #bb0101;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-body {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #bb0101;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #8b0000;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 25px;
    margin: 20% auto;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .news-image {
    height: 120px;
  }
}
