/* learning.css - styles for the Learning Zone page with enhanced hero section and card designs */
.learning-hero { /* hero section with layered background and glow effects */
  position: relative;
  background: linear-gradient(135deg, rgba(29, 57, 92, 0.95), rgba(20, 35, 54, 0.98)), url('../stylies/images/hero-bg.svg') no-repeat center/cover;
  color: #ebf7ff;
  text-align: center;
  padding: 60px 20px 50px;
  border-radius: 40px;
  margin: 20px auto 30px;
  width: min(1140px, 96%);
  box-shadow: 0 25px 50px rgba(1, 20, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: heroGlow 3s ease-in-out infinite alternate;
}

.learning-hero::before /* before means */
{ /* subtle rotating background effect */
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(126, 203, 218, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.learning-hero::after /*after means */
 { /* shimmering gradient bar at the bottom */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7ecbda, #c3a0d8, #7ecbda);
  animation: shimmer 2s ease-in-out infinite;
}

.learning-hero-content {
  position: relative;
  z-index: 1;
}

.learning-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-weight: 800;
  background: linear-gradient(90deg, #7ecbda, #c3a0d8, #7ecbda);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(126, 203, 218, 0.3);
  animation: textGlow 2s ease-in-out infinite alternate;
}

.learning-hero-content p {
  max-width: 820px;
  margin: 0 auto 2rem;
  color: #c9e7fb;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #7ecbda, #c3a0d8);
  color: #1a1a1a;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(126, 203, 218, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(126, 203, 218, 0.5);
}

.hero-cta:hover::before {
  left: 100%;
}

@keyframes heroGlow { /* subtle glow animation for the hero section */
  from { box-shadow: 0 25px 50px rgba(1, 20, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
  to { box-shadow: 0 30px 60px rgba(1, 20, 40, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

@keyframes rotate { /* slow rotation for the background effect */
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer { /* shimmer effect for the bottom gradient */
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes textGlow { /* glowing effect for the heading text */
  from { text-shadow: 0 0 20px rgba(126, 203, 218, 0.3); }
  to { text-shadow: 0 0 30px rgba(126, 203, 218, 0.6); }
}
/* container for the learning cards */
.container{
 width:75%;
 display:flex; /* enables flexbox layout */
 flex-wrap:wrap; /* allows items to wrap to the next line if needed */
 gap:30px;
 justify-content:center;
 margin:0 auto;
 background: linear-gradient(135deg, rgba(1, 77, 100, 0.55) 0%, rgba(28, 77, 90, 0.45) 100%);
  border: 1px solid rgba(126, 203, 218, 0.18);
  border-radius: 40px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  animation: fadeUp 0.8s forwards;
  position: relative;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);

}
.container:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(126, 203, 218, 0.3);
}
.card{
 width:240px;
 height:170px;
 margin-bottom: 40px;
 margin-right: 30px;
 border-radius:12px;
 text-decoration:none;
 color:white;

 background-size:cover;
 background-position:center;
 background-repeat:no-repeat;

 display:flex;
 align-items:flex-end; /* pushes text to bottom */

 box-shadow:0 4px 10px rgba(0,0,0,0.1);
 transition:0.3s;
}

.card:hover{
 transform:translateY(-6px);
}

.card-text{
 background:rgba(255, 255, 255, 0.5);
 width:100%;
 padding:8px;
 color:rgb(0, 0, 0);
 font-family: 'Rajdhani', sans-serif;
 border-radius:6px;
 text-align: center;
 text-decoration:none;
 backdrop-filter: blur(5px);
}
.card-text p{
 margin:0;
 font-size:14px;
 font-weight:600;
 font-family: 'Rajdhani', sans-serif;
 text-decoration: none;
}
.card.frame1::-webkit-scrollbar {
  width: 8px;
}

.frame1::-webkit-scrollbar-thumb {
  background: rgba(185, 221, 239, 0.55);
  border-radius: 999px;
}

.frame1::-webkit-scrollbar-track {
  background: rgba(25, 47, 67, 0.4);
}

.video-card img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

/* Mobile Responsiveness for Learning Page */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .learning-hero {
    padding: 45px 20px 40px;
    margin: 15px 15px 25px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(1, 20, 40, 0.4);
  }

  .learning-hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
  }

  .learning-hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-cta {
    padding: 14px 30px;
    font-size: 1.1rem;
    border-radius: 60px;
    margin-top: 10px;
    box-shadow: 0 6px 18px rgba(126, 203, 218, 0.3);
    transition: all 0.3s ease;
  }

  .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(126, 203, 218, 0.4);
  }

  .container {
    width: 92%;
    padding: 30px 20px;
    gap: 25px;
    border-radius: 35px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .card {
    width: 100%;
    max-width: none;
    margin-bottom: 35px;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .video-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }

  .card-text {
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
  }

  .card-text p {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .learning-section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin: 35px auto 12px;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .learning-section-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: 18px;
    color: #c9e7fb;
    font-weight: 400;
  }

  main {
    padding: 0 12px 30px;
  }

  footer {
    padding: 20px;
    font-size: 0.85rem;
  }

  /* Mobile-specific enhancements */
  * {
    -webkit-tap-highlight-color: rgba(126, 203, 218, 0.3);
  }

  .hero-cta, .card, .info {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .learning-hero {
    padding: 35px 15px 30px;
    margin: 10px 10px 20px;
    border-radius: 25px;
  }

  .learning-hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 1rem;
  }

  .learning-hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-cta {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
  }

  .container {
    width: 96%;
    padding: 25px 15px;
    gap: 20px;
    border-radius: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .card {
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
    margin-left: 5px;
    border-radius: 12px;
  }

  .video-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  .card-text {
    padding: 10px;
  }

  .card-text p {
    font-size: 14px;
  }

  .learning-section-title {
    margin: 30px auto 10px;
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .learning-section-subtitle {
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  main {
    padding: 0 8px 25px;
  }

  footer {
    padding: 15px;
    font-size: 0.8rem;
  }
}