  
/* ------------------------HOME PAGE------------------------*/
 /* Main Content Container */

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

 .welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light-gray);
  padding-left: 40px;
  padding-top: 30px;
  padding-right: 10px;
  padding-bottom: 10px;
  border-radius: 8px;
}

.text-content {
  width: 50%;
}

.text-content h2 {
  color: black;
  font-size: 35px;
  margin-bottom: 160px;
  /* border-bottom: 2px solid black; Adjust thickness and color */
  padding-bottom: 8px; /* Adds space between text and line */
}

.text-content p {
  font-size: 16px;
  text-align: justify;
  padding-right: 5%;
  position: relative;
  bottom: 120px; /* Moves it down */
}
  
  /* Section Headers */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid black;
    padding-bottom: 10px;
  }
  
  .section-header h2 {
    color: black;
    font-size: 24px;
  }
  
  .view-all {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 15px; /* spacing between text & icon */
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
  }
  
  .circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Circle size */
    height: 48px; /* Circle size */
    background-color: var(--primary-color); /* Light gray circle */
    border: 2px solid transparent;
    border-radius: 50%; /* Makes it circular */
    transition: all 0.3s ease;
  }

  .arrow-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: var(--white);
  }

  .view-all:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
  }
  
  .circle-arrow:hover {
    background-color: var(--white);
    border-color: var(--primary-dark);
    
  }

  .view-all:hover .arrow-icon {
    color: var(--primary-color);
    transform: translateX(7px); /* arrow moves right on hover */
  }

  /* News and Announcement Section */
  .news-section {
    margin-bottom: 40px;
  }
  
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .news-item {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    min-width: 70px;
    text-align: center;
  }
  
  .day1 {
    font-size: 50px;
    font-weight: bold;
  }
  
  .month1 {
    font-size: 25px;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333333;
  }
  
  .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: var(--transition);
    z-index: 1;
  }
  
  .read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
  }

  .read-more:hover {
    color: var(--primary-dark);
  }
  
  .read-more:hover::after {
    transform: translateX(4px);
  }

  /*upcoming Events Section */
  .events-section {
    margin-bottom: 40px;
  }

  .events-container {
    display: flex;
    flex-direction: row; /* Changed to row for horizontal layout */
    gap: 100px;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    overflow-x: auto; /* Allows horizontal scrolling */
    white-space: nowrap; /* Prevents wrapping */
}

  .event-row {
    display: flex;
    align-items: stretch;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevents shrinking */
    width: 400px; /* Fixed width for each event */
  }

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

  .date-box {
    width: 100px; /* 15cm ≈ 105px */
    height: 150px; /* 7cm ≈ 49px */
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px 0 0 5px;
    transition: all 0.3s ease;
  }

  .event-row:hover .date-box {
    border: 2px solid transparent;
    border-color: var(--secondary-color);
    background: var(--white);
    color: var(--primary-color);
    transition: all 0.1s ease
  }

  .month {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 25px;
  }

  .day {
    font-weight: bold;
    line-height: 1;
    font-size: 60px; /* Bigger day */
  }

  .event-details {
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    flex: 1;
  }

  .event-row:hover .event-details {
    border-color: black;
    background-color: #f9f9f9;
  }

  .event-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
  }

  .event-year, .event-time {
    font-size: 15px;
    color: #666;
  }

  .divider {
      width: 1px;
      background-color: #e0e0e0;
      margin: 5px 0;
  }

/* Academics Section */
  .academics-section {
    margin-bottom: 40px;
  }
  
  .academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .academic-item {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
  }
  
  .academic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #e0e0e0;
  }
  
  .academic-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
  }

  .academic-item h3:hover {
    font: 500;
  }

 /* Fix for slider navigation */
 .navigation-button {
    z-index: 10;
  }
  
/* For JavaScript slider functionality */
  @keyframes slideIn {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  
  .slider img.active {
    opacity: 1;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
  }

/*  for ieor highlight */
.scroll-container {
    margin: 0 auto;
    text-align: center;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    border: 1px solid #ccc;
}

.scroll-container h2 {
    font-size: 25px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    border-radius: 3px 3px 0 0;
    margin: -15px -15px 15px -15px;
}

.scroll-wrapper {
    height: 280px; /* Increased height to accommodate larger items */
    overflow: hidden;
    position: relative;
}

.scroll-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
}

.scroll-list li {
    padding: 15px 12px;
    background:  #d5d5f1;
    color: black;
    border-bottom: 1px solid white;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Fixed height for each item */
    box-sizing: border-box;
}

.scroll-list li .number {
    font-size: 32px; /* Large number size */
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px; /* Space between number and text */
}

.scroll-list li .label {
    font-size: 14px;
    font-weight: 500;
}

.scroll-list li:hover {
    background: #e9ecef;
}

  @keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* ---------------------image slider ----------------------*/
.image-slider {
  width: 70%;
  position: relative;
  overflow: hidden;
  height: 400px;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img:first-child {
  opacity: 1;
}

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

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: var(--white);
  border-radius: 50%;
}

.dot.active, .dot:hover {
  background-color: var(--primary-color);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: var(--primary-color);
}
