@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Container */
.cs-pathways-container {
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #416ca3, #45ab69, rgba(88,161,206,1));
    background-size: 300% 300%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: cs-pathways-backgroundMove 10s ease infinite;
    font-family: 'Orbitron', sans-serif; /* For main titles */
}

/* Header & Subheader */
.cs-pathways-header {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    animation: cs-pathways-fadeIn 2s ease-in-out;
    transition: transform 0.3s ease;
}

.cs-pathways-subheader {
    font-size: 26px;
    color: #f0f0f0;
    margin-bottom: 15px;
    animation: cs-pathways-fadeIn 2.5s ease-in-out;
    display: inline-block;
    position: relative;
}

/* Typing effect text and blinking cursor */
#typed-text {
    display: inline-block;
}

.cs-cursor {
    display: inline-block;
    font-weight: bold;
    font-size: 26px;
    color: #ffffff;
    animation: cs-blink 1s infinite step-start;
    margin-left: 2px;
}
@keyframes cs-blink {
    50% { opacity: 0; }
}

/* Description text */
.cs-pathways-description {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 25px;
    animation: cs-pathways-fadeInUp 3.5s ease-in-out;
    text-align: center;
    opacity: 0; /* for IntersectionObserver effect */
    transform: translateY(20px);
}

/* TAB NAV */
.cs-video-tabs {
    list-style: none;
    display: inline-flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    padding: 0;
}
.cs-video-tabs li {
    font-family: 'Roboto', sans-serif;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #ffffff22;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cs-video-tabs li:hover {
    background-color: #ffffff44;
}
.cs-video-tabs li.active {
    background-color: #ffffff44;
    font-weight: bold;
}

/* VIDEO CONTENT */
.cs-video-content {
    display: none; /* hidden by default; toggled by JS */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    font-family: 'Roboto', sans-serif;
}
.cs-video-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 30px;
}

.cs-pathways-video-wrapper {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cs-pathways-video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* 
  SECTION 1: The big heading and tagline at top 
  (dark background is optional—remove if you want a different style)
*/
.cs-podcast-heading {
    font-size: 36px;             /* bigger text */
    margin-top: 40px;
    margin-bottom: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  }
  
  .cs-podcast-tagline {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ddd;
    font-family: 'Roboto', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  }
  
  
  /* 
    SECTION 2: The dual container that holds the left and right sections
    for Student Reflections and Tech Talks 
  */
  .cs-podcast-dual-container {
    display: flex;          /* side-by-side */
    flex-wrap: wrap;        /* ensures responsiveness on smaller screens */
    justify-content: center; 
    gap: 20px;              /* space between left & right */
    margin: 30px auto;
    max-width: 1300px;      /* or whatever max you prefer */
    padding: 0 10px;        /* slight horizontal padding */
  }
  
  /* Left and right containers share similar styling */
  .cs-podcast-left, 
  .cs-podcast-right {
    flex: 1 1 400px;        /* each box tries to be at least 400px wide, adjusts on small screens */
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
  }
  
  /* Headings inside the left/right containers */
  .cs-podcast-left .cs-podcast-subheading,
  .cs-podcast-right .cs-podcast-subheading {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
  }

  .cs-podcast-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes the big image toward bottom if container is taller */
    align-items: center;            /* center horizontally */
  }
  
  /* 
    The 2×3 Reflections Grid (left container).
    Increase or decrease the 250px to taste. 
  */
  .cs-reflections-grid {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    grid-auto-rows: 250px;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* The single item for Tech Talks (right container). */
  .cs-tech-talks-single {
    display: grid;           /* Just one item, but we keep it consistent */
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* Overriding item styles so they're not huge. */
  .cs-podcast-item {
    width: 100%;
    height: 100%;
    border-radius: 0;        /* Sharp edges */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .cs-podcast-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* The "large" single item for Tech Talks. */
  .cs-podcast-item-large {
    width: 400px;   /* bigger than before */
    height: 400px;
    margin: auto 0 0 0;  /* ensures there's space above, pushing it downward if parent is tall */
  }
  
  /* Hover effect */
  .cs-podcast-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }
  
  /* 
    The "Learn More" buttons inside each container 
  */
  .cs-podcast-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  .cs-podcast-buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #27ae60;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  .cs-podcast-buttons a:hover {
    background-color: #2ecc71;
  }
  

/* KEYFRAMES */
@keyframes cs-pathways-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cs-pathways-fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes cs-pathways-backgroundMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Media Query for Mobile (Adjust the max-width to your needs) */
@media (max-width: 768px) {
    /* Stack the dual containers vertically */
    .cs-podcast-dual-container {
      flex-direction: column; /* from row to column */
      align-items: center;    /* center them */
    }
  
    /* Give both containers full width on mobile */
    .cs-podcast-left,
    .cs-podcast-right {
      flex: 1 1 auto;
      width: 100%;       /* each container takes up the full width */
      margin-bottom: 20px; /* a bit of spacing between them */
    }
  
    /* For the Reflections grid, reduce columns if desired */
    .cs-reflections-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 on mobile */
      grid-auto-rows: 180px;                /* scale rows a bit smaller if needed */
    }
  
    /* Larger single image can be scaled down */
    .cs-podcast-item-large {
      width: 80%;   /* or 100% if you want it fully responsive */
      height: auto; /* maintain aspect ratio */
      max-width: 400px; /* so it doesn't blow up on huge phone screens */
    }
  }
  