/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;  /* Prevents horizontal scroll due to overflow */
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    background-color: #f0f2f5; /* A soft, neutral background */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes at least full viewport height */
    position: relative; /* Needed for positioning the background blobs */
}

/* Modern background blobs for aesthetic appeal */
body::before, body::after {
    content: '';
    position: fixed; /* Fixed so they don't scroll with the page */
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px); /* Creates the soft, blurred effect */
    z-index: -1; /* Places them behind all content */
    opacity: 0.5;
}

body::before {
    background: radial-gradient(circle, rgba(165, 215, 255, 0.6), transparent 70%);
    top: -100px;
    left: -150px;
    animation: float 15s infinite alternate;
}

body::after {
    background: radial-gradient(circle, rgba(210, 180, 255, 0.6), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: float 20s infinite alternate-reverse;
}

/* Header and Navbar */
.header {
     background-color: #1f2a44;
    background-size: cover; /* Ensures the gradient covers the entire header */
    color: white;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 20px; /* Add padding to create some space inside the header */
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
    background-blend-mode: overlay; /* Apply blending for texture */
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Ensure content is above the background */
.header > * {
    position: relative;
    z-index: 1;
}



.header .logo-container img {
    height: 100px;
    border-radius: 30px;
    padding: 2px;
    
  
}



.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    border-radius: 10px; /* Adjust this value to control how rounded the corners are */
    
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold; 
    font-family: 'Poppins', sans-serif;

}

.navbar a:hover {
    background-color: #1f2a44;
    color: #ffffff;
    transform: scale(1.05);
    border-radius: 10px;
}


/* Responsive Navbar */


.typed-text {
  font-weight: bold;
  color: #007bff;
}
.cursor {
  display: inline-block;
  width: 1px;
  background-color: black;
  animation: blink 0.7s steps(1) infinite;
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


/* Container box around the whole update list */
.update-container {
    background-color: #ffffff;
    border: 1px solid #e0e7ef; /* A very light, subtle border */
    border-radius: 16px; /* Softer, more modern corners */
    padding: 24px; /* Consistent padding */
    box-shadow: 0 8px 32px rgba(0, 30, 80, 0.12); /* A more modern, layered shadow for a 3D effect */
    max-width: 90%;
    margin: 0 auto 2rem auto;
    max-height: 300px; /* Set a fixed height for the container */
    overflow-y: auto;  /* Enable vertical scrolling */
}

/* Remove default list styling */
#update-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual list item without its own box */
#update-list li {
    
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the start (left) */
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

/* Remove the bottom border from the last item */
#update-list li:last-child {
    border-bottom: none;
}

/* Styling for the update link */
#update-list li a {
    font-family: 'Inter', sans-serif;
    flex-grow: 1;
    text-decoration: none;
    color: #1f2a44;
    font-size: 1.1rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

/* Hover effect for each row */
#update-list li:hover {
    background-color: #f4faff;
}

#update-list li a:hover {
    color: #0056b3;
}

/* Modern styled date badge */
.update-date {
    font-size: 0.8em;
    color: #1f2a44; /* Dark text for readability on light background */
    background-color: #e9ecef; /* Even lighter background color */
    padding: 0.3em 0.6em;
    border-radius: 20px;
    margin-bottom: 0.5rem; /* Add some space below the date */
    white-space: nowrap;
    animation: fadeSlideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

/* Entry animation */
@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container for date and 'New' tag */
.date-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between date and tag */
    margin-bottom: 0.5rem; /* Same margin as the date badge had */
}

/* "New" Tag for recent updates */
.new-tag {
    color: #ff0000; /* Red color */
    font-weight: bold;
    font-size: 0.7em; /* Made the tag smaller */
    animation: blink-animation 1.5s infinite;
    background-color: #ffebeb;
    padding: 1px 5px; /* Reduced padding */
    border-radius: 5px;
}

/* Blinking animation for the "New" tag */
@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


  

  .more-link {
    display: block;
    text-align: right;
    font-weight: bold;
    font-size: 100%;
    color: #000000;
    text-decoration: none;
    margin-right: 5%;
    padding: 0% 0% 3% 0%;
  }
  .more-link:hover {
    text-decoration: underline;
    color: #ff0000;
  }
  





/* Keyframes for the slide-in animation */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(20px); /* Start off-screen */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* End at normal position */
    }
}

/* Main Layout */
.main-content {
    display: flex;
    flex-grow: 1; /* Allows main content to take up available space, pushing footer down */
    margin-top: 0px;
    padding: 0 0px;
    width: 100%; 
    background-color: #ffffff;

}

/* Override for pages like courses.html that don't use the sidebar layout */
.main-content:has(#courses-container) {
    flex-direction: column;
    align-items: center;
}

.sidebar {
    flex: 1;
    padding: 0px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    margin-top: 0px;
    width: 100%; 
}



.main-area {
    flex: 3;
    padding: 0px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    margin-top: 0px;
    width: 100%; 
}



.typing-animation-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #1f2a44, #050912);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .typing-animation-section h1 {
    font-size: 2rem;
    color: #ffffff;
  }
  
  .typed-text {
    font-weight: bold;
    color: #f2ff00;
    transition: all 1s ease;
  }
  
  .cursor {
    display: inline-block;
    color: #1f2a44;
    font-weight: bold;
    animation: blink 0.5s infinite;
    margin-left: 2px;
  }
  
  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }
  

  

.content-section
.content-section h2 {
    align-content: center;
    margin-bottom: 10px;
    background-color: #ffffff;
    color: #1f2a44;
    padding: 10px 20px;
    font-weight: bold;
    padding: 10px;  /* Optional: To make the content look better with rounded corners */
   font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

/* Add consistent vertical spacing between sections */
.content-section,
.popular-video-section,
.popular-playlist-section,
.testimonial-section {
    background-color: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 30, 80, 0.12);
    max-width: 90%;
    margin: 40px auto 0 auto;
}

.content-section,
.popular-video-section,
.popular-playlist-section,
.testimonial-section,
.guidance-form-section {
    margin-top: 40px;
}



.content-section ul {
    list-style: none;
    padding: 10px;
}

.content-section ul li {
    margin-bottom: 10px;
    color: #005b99; /* Link color */
    font-weight: bold; /* Bold text */

}

/* Blinking keyframe animation */
@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.content-section a {
    color: #ff0505;
    text-decoration: none;
    transition: color 0.3s ease;
    
}

.content-section a:hover {
    color: #0008ff;
    text-decoration: underline;
}



/* JOBS Section styling */
.job-section {
    padding: 0px;
    background-color: #ffffff;
}




/* Job Grid Layout */
.job-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #ffffff;
    gap: 10px;
    padding: 1%;

    
    
}

/* Individual Job Card Styling */
.job-card {
    background-color: white;
    padding: 0px;
    border: 1px solid #1f2a44;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    
}
.about-section h2 {
    align-content: center;
    margin-bottom: 10px;
    
    color: rgb(0, 0, 0);
    padding: 1px;  /* Optional: To make the content look better with rounded corners */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.about-section {
    align-content: center;
    margin-bottom: 10px;

    padding: 10px;  /* Optional: To make the content look better with rounded corners */
    
}
.about-section p
{
    background-color: white;
    padding: 1%;
    border: 1px solid #1f2a44;
    border-radius: 8px;
    width: 100%;
    max-width: 97%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: justify;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;

}

.content-title h2
{
    
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1f2a44;
    text-align: center;
    border-bottom: 1px solid #1f2a44; /* dim line */
    display: block; /* full width, so center-align works */
    margin: 0 auto; /* optional: centers block elements if needed */
    padding-bottom: 2px;
    width: fit-content; /* makes border hug the text again if needed */       /* ensures border fits the text */
    
}
.content-section h2,
.job-section h2,
.popular-video-section h2,
.popular-playlist-section h2,
.content-section .testimonial-section h2 {
    
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #ffffff;
    color: #1f2a44;
    text-align: center;
    display: block; /* full width, so center-align works */
    margin: 0 auto; /* optional: centers block elements if needed */
    padding-bottom: 2px;
    width: fit-content; /* makes border hug the text again if needed */
}

/* Specific styling for Popular Videos and Playlists titles */
.popular-video-section h2 {
    border-bottom: 1px solid #ddd;
}

.popular-playlist-section h2 {
    border-bottom: 1px solid #ddd;
}



.job-card .job-icon {
    font-size: 5px; /* Adjust size for the icon */
    color: #005b99; /* Change the icon color */
    margin-bottom: 1px; /* Space between icon and title */
    margin-top: 1px;
    border-top: 0px;
    padding-top: 0%;

}

.job-card img.job-icon {
    width: 30%; /* Adjust size for the image */
    height: 25%;
    border-radius: 30%;
    object-fit: contain;
    margin-bottom: 2px; /* Space between image and title */
    margin-top: 10px;
}

.job-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.job-card p {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.job-card .apply-btn {
    display: inline-block;
    padding: 5px 5px;
    background-color: #21418b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 12px;
}

.job-card .apply-btn:hover {
    background-color: #1f2a44;
    color: #ffffff;
}

/* Add hover effect */
.job-card:hover {
    transform: scale(1.05);
}




.popular-video-section {
    width: 100%;
    overflow: hidden; /* Hides scrollbar from the container */
    position: relative;
}

/* Navigation Arrows for scrolling sections */
.popular-video-section::before, .popular-video-section::after,
.popular-playlist-section::before, .popular-playlist-section::after,
.testimonial-section .testimonial-grid::before, .testimonial-section .testimonial-grid::after {
    content: '‹';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.video-grid {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    gap: 20px;
    padding: 1% 2%; /* Add some padding on the sides */
    width: 100%;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth; /* Smooth scrolling for arrows */
}


/* Show arrows on hover for devices that support it */
@media (hover: hover) {
    .popular-video-section:hover::before, .popular-video-section:hover::after,
    .popular-playlist-section:hover::before, .popular-playlist-section:hover::after,
    .testimonial-section:hover .testimonial-grid::before, .testimonial-section:hover .testimonial-grid::after {
        opacity: 1;
    }
}

.popular-video-section::before, .popular-playlist-section::before, .testimonial-section .testimonial-grid::before {
    left: 10px;
}
.popular-video-section::after, .popular-playlist-section::after, .testimonial-section .testimonial-grid::after {
    right: 10px;
    content: '›';
}

.video-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.video-item {
    position: relative;
    overflow: hidden; background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(223, 227, 235, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 0 0 280px; /* Flex-shrink, flex-grow, flex-basis. Prevents shrinking and sets a fixed width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-section h2, .playlist-section h2 {
  background-color: #f5f5f5;
  color: #1f2a44;
  padding: 10px 20px;
  font-weight: bold;
    align-content: center;
    
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.popular-playlist-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.playlist-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 1% 2%;
    width: 100%;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}


.playlist-grid::-webkit-scrollbar {
    display: none;
}

.playlist-item {
    position: relative;
    overflow: hidden; background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(223, 227, 235, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 0 0 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-item:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-item iframe, .playlist-item iframe {
    width: 100%; /* Makes iframe responsive */
    height: auto;
    max-width: 560px; /* Limits max size */
    aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
}

.video-item h4, .playlist-item h4 {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    word-wrap: break-word;
    color: #1f2a44;
    /* Glassmorphism/Pastel background for titles */
    background-color: #e0f7fa; /* Light Cyan background */
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block; /* Ensures background fits content */
    width: auto;
    max-width: 95%; /* Prevents overflow on smaller cards */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(223, 227, 235, 0.5);
    /* backdrop-filter: blur(2px); */ /* Removing for solid color feel */
}

fieldset.video-item, fieldset.playlist-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

fieldset.video-item legend, fieldset.playlist-item legend {
    font-weight: bold;
    padding: 0 10px;
    color: #333;
}

/* Testimonial Section */
.testimonial-section {
    padding: 24px;
    position: relative;
}

.testimonial-grid h2 { 
    background: linear-gradient(  #434d85,  #001685 );
    color: white;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.testimonial-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 1% 2%;
    width: 100%;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}


.testimonial-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonial-item {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    flex: 0 0 280px; /* Fixed width for horizontal scrolling */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(223, 227, 235, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial-item h4 {
    font-size: 18px;
    font-weight: bold;
}

.guidance-form-section {
    margin: 40px auto 0 auto; /* Keep auto for horizontal centering, add top margin */
    padding: 20px;
    border: 2px solid #1f2a44;
    border-radius: 10px;
    max-width: 600px; /* It won't get wider than 600px */
    width: 70%; /* It will take 90% of the screen width on smaller screens */
    background-color: #f9f9ff;
}

.guidance-form-section h2 {
    text-align: center;
    color: #1f2a44;
}

.guidance-form-section textarea {
    width: 95%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.guidance-form-section input[type="submit"] {
    background-color: #1f2a44;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.guidance-form-section input[type="submit"]:hover {
    background-color: #1f2a44;
}





/* Footer Styling */
.footer {
    background-color: #1f2a44;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative; 
    width: 100%;
    box-shadow: 0 -5px 10px rgba(205, 13, 13, 0.1);
    margin-top: 20px; /* This provides space above the footer */
    flex-shrink: 0; /* Prevents footer from shrinking if content is too large */
}


.footer p {
    margin: 0;
    font-size: 16px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #005b99;
}

.footer .social-icons {
    margin-top: 15px;
}

.footer .social-icons a {
    margin: 0 5px;
    font-size: 24px;
    padding: 5px;
    border-radius: 30%; /* Round background */
    background-color: #ffffff; /* White background */
    color: #0074cc; /* Icon color */
    box-shadow: 0 0 8px rgba(0,0,0,0.2); /* Slight shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.footer .social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
}

.footer .social-icons a:nth-child(1) {
    color: #4267B2; /* Facebook */
}

.footer .social-icons a:nth-child(2) {
    color: #1DA1F2; /* Twitter */
}

.footer .social-icons a:nth-child(3) {
    color: #0088cc; /* Telegram */
}
.footer .social-icons a:nth-child(4) {
    color: #E1306C; /* Instagram */
}

.footer .social-icons a:nth-child(5) {
    color: #0e76a8; /* LinkedIn */
}

.footer .social-icons a:nth-child(6) {
    color: #25d366; /* WhatsApp */
}


/* Grid Layout for MCQs (PYQs) Material, Study Material */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 items in a row */
    gap: 1%;
    padding: 0.5% 1% 1% 1%;
    margin: 0.5% 1% 1% 1%; /* top, right, bottom, left */
    border-radius: 1%;
    max-width: 100%;
    background-color: #ffffff;
    overflow: auto; /* Or overflow: hidden; or overflow: clip; */
    
    
}

.grid-item {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: #000000;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
    color: #1f2a44; /* Folder icon color */
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    max-width: 100%;
    border: 1px solid #1f2a44;
   
}

.grid-item:hover {
    background-color: #e0e0e0;
    border-bottom: 5px solid #1f2a44; /* Blue bottom border on hover */
    transform: scale(1.05);
}


.grid-item a {
    color: #1f2a44;
    text-decoration: none;
    font-size: 16px;
}

.grid-item a:hover {
    text-decoration: underline;
}

.grid-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Keeps the 16:9 ratio for videos */
    max-width: 100%; /* Ensures the iframe fits within the container */
    border-radius: 3%;
}

.grid-item img {
    width: 40%;
    height: auto;
    max-width: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px ridge #1f2a44;
}

.faculty-profiles .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 items per row */
    gap: 20px;
    padding: 1%;
    margin: 2%;
    border-radius: 1%;
}

/* Text Styling */
.faculty-name {
    font-weight: bold;
    font-size: 1.2em;
    margin: 10px 0 5px;
}

.faculty-title {
    font-weight: 500;
    font-size: 1em;
    margin: 0;
}

.separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

.faculty-description {
    font-size: 0.95em;
    color: #555;
}




/* =========================================================
   ✅ Max Width: 1024px - Medium Screens (Tablets and below)
   ========================================================= */
   @media (max-width: 1024px) {
    .container-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =========================================================
   ✅ Max Width: 992px - Tablet View
   ========================================================= */
@media (max-width: 992px) {
    .faculty-profiles .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item img {
        width: 50%;
    }
}

/* =========================================================
   ✅ Max Width: 768px - Small Devices (Landscape Phones/Tablets)
   ========================================================= */
@media (max-width: 768px) {
    /* Sidebar adjustments */

    /* Navbar layout */
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        padding: 10px;
    }

    /* Footer adjustments */
    .footer {
        padding: 15px;
        text-align: center;
    }

    .footer p {
        font-size: 14px;
    }

    .footer .social-icons {
        margin-top: 10px;
    }

    .footer .social-icons a {
        margin: 0 5px;
        font-size: 20px;
    }

    /* Video and Testimonial Grids */
    .video-grid {
        grid-template-columns: 2fr;
        padding-left: 15px;
        padding-right: 15px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Layout Grid Containers */
    .container-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Other layout elements */
    .typing-animation-section {
        padding: 30px 10px;
    }

    .typing-animation-section h1 {
        font-size: 1.5rem;
    }

    .job-grid {
        justify-content: center;
    }

    .update-date {
        font-size: 0.6rem;
    }

    #update-list li a {
        font-size: 1rem;
    }
}

/* =========================================================
   ✅ Max Width: 600px - Small Tablets and Larger Phones
   ========================================================= */
@media (max-width: 600px) {
    .faculty-profiles .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item img {
        width: 60%;
    }

    .faculty-name {
        font-size: 1.05em;
    }

    .faculty-description {
        font-size: 0.9em;
    }
}

/* =========================================================
   ✅ Max Width: 480px - Mobile View (Portrait Phones)
   ========================================================= */
@media (max-width: 480px) {
    /* Reduce width of updates container on mobile */
    .update-container {
        max-width: 95%;
    }

    /* Grid changes */
    .container-grid,
    .grid-container,
    .video-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Make cards in scrolling sections smaller on mobile */
    .video-item,
    .playlist-item,
    .testimonial-item {
        flex: 0 0 220px; /* Reduce card width from 280px to 220px */
    }

    .job-card {
        justify-content: center;
        width: 100%;
    }

    .typing-animation-section {
        padding: 20px 5px;
    }

    .typing-animation-section h1 {
        font-size: 0.9rem;
    }

    .more-link {
        font-size: 60%;
    }

    .update-date {
        font-size: 0.5rem;
    }

    #update-list li a {
        font-size: 0.6rem;
    }

    /* Responsive adjustments for course viewer */
    .video {
        flex-direction: column; /* Stack video info and button vertically */
        align-items: flex-start; /* Align items to the left */
        gap: 15px;
    }

    /* Adjust single course view for mobile */
    .single-course-content {
        padding: 15px; /* Reduced padding for mobile */
    }

    .single-course-header {
        padding: 15px; /* Reduced padding for mobile */
        margin: -15px -15px 15px -15px; /* Adjust negative margin to match new padding */
    }

    .playlist-video-header {
        margin: -15px -15px 20px -15px; /* Adjust negative margin to match new padding */
    }

    /* Stack video thumbnail and info vertically on mobile */
    .video-details-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Reduce width of the video list container on mobile */
    #videos-container {
        padding: 15px;
    }

}

/* === Course Viewer Styles === */
/* Main container for the courses page */
#courses-container {
    padding: 20px;
    max-width: 1100px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between courses and videos section */
}

/* Container for the single course view content */
.single-course-content {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box; /* This will prevent overflow on mobile */
    box-shadow: 0 8px 32px rgba(0, 30, 80, 0.1);
}

/* Header banner for the single course title */
.single-course-header {
    background: linear-gradient(135deg, #4a5a8a, #1f2a44);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* Container for the list of course cards */
#course-list-view {
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    justify-content: center; /* Center the cards horizontally */
    gap: 25px; /* Space between cards */
}

/* Button to go back from single course view to list view */
#back-to-courses-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}
#back-to-courses-btn:hover {
    background-color: #5a6268;
}

/* Individual Course Card */
.course {
    /* Clean, professional card style */
    background-color: #ffffff; /* Solid white background */
    border-radius: 16px;
    border: 1px solid #e9ecef; /* Soft border */
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Softer, more subtle shadow */
    display: flex; flex-direction: column; /* Use flexbox to push button to the bottom */
    position: relative; /* Required for positioning the ribbon */
    transition: transform 0.3s ease, box-shadow 0.3s ease, cursor 0.3s ease;
    cursor: pointer;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 30, 80, 0.1); /* Subtle lift effect */
}

/* Ribbon Tag for "FREE" courses */
.free-ribbon {
    position: absolute;
    top: 15px;
    left: -8px;
    background: linear-gradient(135deg, #34d399, #059669);
    color: white;
    padding: 6px 20px;
    font-weight: bold;
    font-size: 0.85em;
    border-radius: 20px 0 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Folded corner effect for the ribbon */
.free-ribbon::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Controls the size of the fold */
    right: 0;
    border-width: 4px 4px 0 0;
    border-style: solid;
    border-color: #047857 transparent transparent transparent; /* Darker shade of green for the fold */
}


/* Header banner for each course card */
.course-card-header {
    background: linear-gradient(135deg, #4a5a8a, #1f2a44);
    color: white;
    padding: 20px 24px;
    margin: -24px -24px 15px -24px; /* Use negative margins to span the full width */
    border-radius: 16px 16px 0 0; /* Match the top corners of the card */
}

.course-card-header h3 {
    color: white; /* Ensure text inside the banner is white */
}

.single-course-header h3 {
    color: white; /* Ensure course title in single view is white */
    margin: 0;
}

.course h3 {
    margin-top: 0;
    font-size: 1.3rem; /* Slightly adjusted for better hierarchy */
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    flex-direction: column; /* Stack icon and title vertically */
    align-items: center; /* Center them horizontally */
    gap: 10px;
}
.course h3 .fas { /* Styling for the large icon in the course header */
    color: #1f2a44; /* A lighter, blending blue for the icon */
    color: white; /* Set icon color to white inside the banner */
    font-size: 1.8rem; /* Scaled down to match new title size */
    opacity: 0.7;
    opacity: 0.8; /* Slightly transparent for a softer look */
}

/* Styling for the course description */
.course-description {
    background-color: #f8f9fa; /* A very light grey background */
    border-left: 4px solid #4f46e5; /* A colored accent border */
    padding: 12px 15px;
    margin: 15px 0; /* Space above and below */
    border-radius: 0 8px 8px 0; /* Rounded corners on the right side */
    font-style: italic;
    color: #495057; /* A softer text color */
    font-size: 0.9em;
}

.course .meta {
    font-size: 0.95em;
    color: #6c757d;
    margin-top: 4px;
}

.course .course-stats {
    display: flex;
    flex-wrap: wrap; /* Allow badges to wrap on smaller screens */
    gap: 20px;
    margin-top: 20px; /* More space above the badges */
    font-weight: 500;
    color: #343a40;
}

.course .total-videos-meta { /* Base style for stat badges */
    /* Badge-like styling for stats */
    padding: 8px 15px; /* Larger padding for a bolder look */
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Light border for glass effect */
}

/* Specific color for Video stats */
.course .video-stat {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd); /* Soft Blue Gradient */
    color: #0c4a6e; /* Darker Blue text */
}

/* Specific color for PDF stats */
.course .pdf-stat {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); /* Soft Green Gradient */
    color: #065f46; /* Darker Green text */
}

/* Specific color for Hours stat */
.course .hours-stat {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe); /* Soft Purple Gradient */
    color: #5b21b6; /* Darker Purple text */
}

/* Container for the Explore button */
.explore-btn-container {
    margin-top: auto; /* This pushes the button to the bottom */
    padding-top: 20px; /* Space above the button */
    text-align: center;
}

.explore-btn {
    background: linear-gradient(135deg, #1f2a44, #4a5a8a);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Make button full width */
}

.explore-btn:hover {
    background: linear-gradient(135deg, #4a5a8a, #1f2a44);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.course .playlists {
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

/* Individual Playlist Item */
.playlist {
    padding: 0; /* Remove padding to allow header to be full-width */
    margin: 6px 0;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 10px; /* This ensures the card has rounded corners */
    border: 1px solid #d0d7de; /* This adds a thin, visible border */
    transition: all 0.3s ease;
    overflow: hidden; /* Ensures the header corners are clipped correctly */
}

.playlist:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 30, 80, 0.1);
}

/* New container for header and marks tag */
.playlist-header-container {
    position: relative; /* This is the new anchor for the marks tag */
}

.playlist-title-header {
    background: linear-gradient(135deg, #4f46e5, #3730a3); /* Bluish Indigo Gradient */
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.playlist-meta-container {
    padding: 15px;
    padding-top: 20px; /* Add more space below the header */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the badges */
    gap: 15px;
    flex-wrap: wrap;
}

.playlist-stats, .compiled-pdf-btn {
    margin: 0; /* Override the margin from the old rule */
    text-decoration: none;
    display: inline-flex; /* Use inline-flex to make it capsule-like */
    align-items: center;
    gap: 8px;
    padding: 10px 20px; /* Increased padding for a bigger look */
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem; /* Larger font size */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Add a subtle shadow */
    transition: all 0.3s ease;
}

.playlist-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.playlist-stats {
    background-color: #e0f2fe; /* Using the same blue as the course card video stat */
    color: #0c4a6e;
}

/* Styling for the Compiled PDF button and individual PDF count badge */
.compiled-pdf-btn {
    background-color: #dcfce7; /* Using the same green as the course card pdf stat */
    color: #065f46;
}

.playlist-stats .fas, .compiled-pdf-btn .fas {
    font-size: 1.1em; /* Make the icon slightly larger than the text */
    margin-right: 2px;
}

/* Styling for the new Marks badge */
.marks-stat {
    position: absolute; /* Now relative to .playlist-header-container */
    bottom: -15px; /* Position it below the header, overlapping slightly for style */
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Richer amber gradient */
    color: white;
    padding: 6px 15px;
    font-weight: bold;
    font-size: 0.9em;
     box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 0 8px; /* Rounded bottom-left corner */
    z-index: 1; /* Ensure it sits above the meta container */

}

/* Dog-ear fold effect */
.marks-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px; /* Width of the fold */
    border-style: solid;
    border-width: 0 10px 10px 0; /* Creates the triangle shape */
    border-color: transparent #92400e transparent transparent; /* Darker shade for the fold's shadow */
}

.playlist-meta-container .pdf-stat {
    background-color: #dcfce7;
    color: #065f46;
}

/* Header for the video list inside the course page */
.playlist-video-header {
    background: linear-gradient(135deg, #1f2a44, #4a5a8a);
    color: white;
    padding: 15px 25px;
    border-radius: 16px 16px 0 0; /* Match parent card's top corners */
    margin: -24px -24px 20px -24px; /* Pull to the edges of the container */
}

.playlist-video-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

/* Videos Section Container */
#videos-container {
    /* Style it like other main sections */
    background-color: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 30, 80, 0.1);
}

/* Create a grid for the video cards */
#videos-container > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Individual Video Row */
.video {
    /* Glassmorphism Card Style */
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 30, 80, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between thumbnail, info, and buttons */
    animation: card-fade-in 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for cards */
.video:nth-child(2) { animation-delay: 0.1s; }
.video:nth-child(3) { animation-delay: 0.2s; }
.video:nth-child(4) { animation-delay: 0.3s; }

@keyframes card-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

.video:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 30, 80, 0.15);
}

.video .title {
    font-weight: 600;
    color: #1f2a44;
}

.video .video-details-left {
    width: 100%;
    flex-direction: column; /* Stack thumbnail and info vertically */
    align-items: flex-start;
}

.video .video-details-left img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 10px; /* Rounded corners for the thumbnail */
    margin-bottom: 10px;
}

.video .video-info {
    display: flex;
    flex-direction: column;
}

.video .info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video .meta {
    font-size: 0.85em;
    color: #6c757d;
}

.video .video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.duration-badge {
    background-color: #eef2ff; /* Light Indigo */
    color: #4338ca; /* Dark Indigo */
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.youtube-btn {
    background-color: #ff0000;
    color: white;
}
.youtube-btn:hover {
    background-color: #cc0000;
}

.video-actions {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-top: auto; /* Pushes buttons to the bottom of the card */
    flex-wrap: wrap; /* Allow buttons to wrap onto the next line on smaller screens */
}

/* Base styles for both buttons */
.pdf-btn, .youtube-btn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: background-color 0.3s ease;
    font-size: 0.85em; /* Ensure consistent font size */
}

/* Styling for the Open PDF button */
.open-pdf-btn {
    background-color: #4f46e5; /* Indigo */
    color: white;
}
.open-pdf-btn:hover {
    background-color: #4338ca; /* Darker Indigo */
}

/* Styling for the Download PDF button */
.download-pdf-btn {
    background-color: #1f2a44; /* Dark Blue/Black */
    color: white;
}
.download-pdf-btn:hover {
    background-color: #0d121f; /* Darker shade */
}

.pdf-btn, .youtube-btn, .open-pdf-btn, .download-pdf-btn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: background-color 0.3s ease;
    font-size: 0.85em; /* Ensure consistent font size */
}
    font-size: 0.85em; /* Ensure consistent font size */
}
    font-size: 0.85em; /* Ensure consistent font size */
}
