/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #ffcc00;
    text-align: center;
    padding: 20px;
    position: relative; /* Needed for absolute positioning of back button */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    color:  #FFFFFF;
}

.header p {
    margin: 5px 0;
    font-size: 1rem;
    color: #555;
}

/* Back Button */
.back-button {
    position: absolute; /* Changed from 'left' to 'absolute' */
    top: 15px;
    left: 15px;
    background: #fff;
    color: #ff8800;
    border: 1px solid #ff8800;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.back-button:hover {
    background: #ff8800;
    color: #fff;
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Second Semester Intro Styles */
.intro-content {
    text-align: center;
    margin-bottom: 20px;
    align-self: center;
}
.intro-content h2{
    color: #ff8800;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.semt2-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.semt2-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.news-item {
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.news-item h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ff8800;
}

.news-item p {
    margin: 10px 0;
    font-size: 0.9rem;
}

/* Video Section (for single videos) */
.video-section {
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center; /* Center the text content within the section */
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    padding: 20px; /* Add padding for spacing */
    border-radius: 8px; /* Rounded corners for the whole section */
}

.video-section h2 {
    font-size: 1.4rem;
    color: #ff8800;
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 15px; /* Space below heading */
}

.video-section p {
    max-width: 700px; /* Set a maximum width for better readability */
    font-size: 0.9rem;
    margin: 0 auto 20px auto; /* Center the paragraph and add bottom margin */
    padding: 15px; /* Add padding for text spacing */
    background: #f7f7f7; /* Add a subtle background */
    border-radius: 8px; /* Optional: Rounded corners */
    text-align: center; /* Align text within the paragraph */
}

.video-section video {
    width: 100%; /* Make video fill its container */
    max-width: 800px; /* Max width for videos on larger screens */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-top: 20px; /* Add spacing below the paragraph */
}

/* Video Section 2 (for 6 videos in a grid) */
.video-section2 {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding: 2rem;
  max-width: 1400px;
  margin: 40px auto; /* Center the section */
  background-color: #ffffff; /* White background for the gallery */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.video-section2 h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ff8800;
}

.indip-discription {
    width: 90%; /* Adjust width for better responsiveness */
    max-width: 700px; /* Set a max-width for readability */
    background-color: #e8e8e8;
    margin: 0 auto 30px auto; /* Center description and add bottom margin */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.indip-discription p {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.95rem;
}


.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 videos in a row for laptops */
  gap: 1rem;
}

.video-card {
  position: relative;
  aspect-ratio: 9/16; /* Portrait ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: #000; /* Fallback for portrait video background */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.02);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures portrait video fills the space */
  display: block;
  border-radius: 12px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .overlay {
  opacity: 1;
}

.play-btn {
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 videos in a row for tablets */
  }
}

@media (max-width: 768px) {
  /* General video section adjustments */
  .video-section video {
    width: 95%; /* Make single videos slightly wider on smaller screens */
    max-width: none;
  }
  .video-section p {
    width: 90%;
  }

  /* Grid video section adjustments */
  .video-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 videos in a row for mobile landscape/small tablets */
  }

  .video-section2 {
    padding: 1rem; /* Reduce padding on smaller screens */
  }

  .indip-discription {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr; /* 1 video in a column for phones */
  }

  .video-section2 h2 {
    font-size: 1.5rem; /* Smaller heading for phones */
  }
}


/* Footer Styles */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
}

/* Responsive Design for news items and header */
@media (max-width: 700px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .news-item h2,
    .video-section h2 { /* Apply to both types of video section headings */
        font-size: 1.2rem;
    }

    .news-item p {
        font-size: 0.8rem;
    }
}

/*Audio*/
.Audio {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Adjust as needed */
    background-color: #f0f0f0;
    margin-top: 40px; /* Add some space above audio section */
    margin-bottom: 40px; /* Add some space below audio section */
}
.box {
    width: 80%;
    max-width: 600px; /* Limit max width for desktop */
    background-color: #F5F2F1;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white; /* This color applies to direct text in .box, but overridden by spans */
    font-family: Arial, sans-serif;
}

.music-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.icon {
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    color: #5E3E2C; /* Ensure icon color is visible */
}

.icon:hover {
    transform: scale(1.1);
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.2); /* Darker progress bar background */
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #4F5AFF;
    transition: width 0.1s linear;
}

input[type="range"] {
    width: 100px;
    cursor: pointer;
}
.audio-discription h1 {
    color: #FFC90E;
    margin-bottom: 20px; /* Space below title */
}
span {
    color: #5E3E2C;
}

@media (max-width: 768px) {
    .audio-discription h1 {
        font-size: 1.8rem; /* Smaller font for tablets */
    }
    .box {
        width: 90%; /* Wider on smaller screens */
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .audio-discription h1 {
        font-size: 1.5rem; /* Even smaller font for phones */
    }
    .icon {
        font-size: 30px; /* Smaller icon on phones */
    }
}