/* --- Tutorial Course Page Styling --- */
.tutorial-project-page .page-header {
    background-color: var(--color-bg-dark-accent);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    max-width: 100%;
}
.tutorial-project-page .page-header-container {
    max-width: 1400px;
    margin: 0 auto;
}
.tutorial-project-page .page-header .page-title {
    color: var(--color-text-light);
}

.tutorial-project-page .page-header .page-slogan {
    color: var(--color-text-light);
}

.learning-cinema-section {
    background-color: var(--color-bg-dark-accent);
    padding: var(--space-xxl) 0;
    color: var(--color-text-light);
}

.cinema-container {
    max-width: var(--container-width-lg);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    align-items: flex-start;
}

.main-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--color-text-dark);
    box-shadow: 0 0 80px 5px rgba(0, 162, 255, 0.2); /* horizontal-offset vertical-offset blur-radius spread-radius color */

}

.main-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-playlist {
    display: flex;
    flex-direction: column;
    max-height: calc((var(--container-width-lg) * 2 / 3) * 9 / 16);
    overflow-y: auto;
    padding-right: var(--space-xxs);
}

.video-playlist::-webkit-scrollbar {
    width: 6px;
}

.video-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
}

.video-playlist::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
}

.playlist-item {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xs);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.playlist-item .part-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    text-transform: uppercase;
}

.playlist-item .playlist-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    margin: 4px 0 0 0;
    color: var(--color-text-light);
}


.tutorial-breakdown-container {
    max-width: var(--container-width-lg); /* 1680px */
    margin: 0 auto;
    padding: 0 var(--space-lg);
    margin-top: 150px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.column-title {
    font-size: 1.5rem; /* ~24px, much more readable */
    font-weight: 700; /* Bold */
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.breakdown-column p {
    color: #b0b0b0; /* Slightly dimmer than pure white for comfort */
    font-size: 1.1rem;
    line-height: var(--line-height-base);
    max-width: 60ch; /* Controls line length for readability */
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.screenshot-item {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer; 
}

.screenshot-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

/* =================================================================== */
/* ==       RELATED TUTORIALS SECTION STYLES      == */
/* =================================================================== */

.related-tutorials-section {
    background-color: var(--color-bg-white);
    padding: var(--space-xxl) 0;
    border-top: 1px solid #e5e5e5;
}

.related-tutorials-container {
    max-width: var(--container-width-lg);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.related-tutorials-container .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}

.view-all-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--color-primary-gold-hover);
}

/* --- Card Grid --- */

.related-tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 510px);
    justify-content: center; 
    gap: var(--space-xl) var(--space-lg);
}

/* --- Individual Card Styling --- */

/* This is the link that wraps the thumbnail image */
.related-thumbnail-link {
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Required for the animated sheen effect */
    position: relative;
    overflow: hidden;

    border: 3px solid rgba(208, 208, 208, 0.7);

}


.related-thumbnail-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* --- Card Info Text --- */

.related-item-info {
    padding-top: var(--space-xs);
}

.related-item-info .item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-body);
    margin: 0;
}

.related-item-info .item-category {
    font-size: 0.875rem;
    color: var(--color-text-subtle);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Animated Sheen Effect --- */

.related-thumbnail-link::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* The diagonal white gradient for the sheen */
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 70%
    );
        animation: sheen-animation 3.5s ease-in-out infinite;
}

/* Stagger the animation for a more polished effect */
.related-tutorials-grid .related-tutorial-item:nth-child(2) .related-thumbnail-link::before {
    animation-delay: 0.5s;
}

.related-tutorials-grid .related-tutorial-item:nth-child(3) .related-thumbnail-link::before {
    animation-delay: 1.0s;
}

/* =================================================================== */
/* ==           KEY LEARNINGS SECTION STYLES (Redesigned)           == */
/* =================================================================== */

.key-learnings-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-bg-medium); 
    border-top: 1px solid #e5e5e5;
}

.key-learnings-container {
    max-width: var(--container-width-md); /* 1260px is a good width */
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Centered headline for a strong introduction */
.section-intro {
    text-align: center;
    max-width: 65ch;
    margin: 0 auto var(--space-xl);
}

.section-intro h2 {
    font-size: 2.66rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

.section-intro p {
    font-size: 1.125rem;
    color: var(--color-text-subtle);
    line-height: var(--line-height-base);
}

/* The new 3-column grid for the points */
.learning-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.learning-point-card {
    background: rgba(247, 247, 247, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(224, 224, 224, 0.15);

    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    position: relative; /* Crucial for positioning the pseudo-elements */
    overflow: hidden;   /* Clips the highlight sheen as it animates */
    isolation: isolate; /* Creates a new stacking context for z-index */
}

.learning-point-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px; /* How far the glow extends down */
    z-index: -1; /* Places the glow behind the content but on top of the background */

    /* A radial gradient positioned at the top-center, using your gold color */
    background: radial-gradient(
        circle at 50% 0%,
        hsla(45, 95%, 37%, 0.6), /* A transparent version of your gold color */
        transparent 70%
    );
    opacity: 0.5; /* Keep it subtle */
    mix-blend-mode: color-dodge; /* Blends the glow nicely with the card background */
}

.learning-point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The diagonal white gradient for the sheen */
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 70%
    );
        animation: sheen-animation 3.5s ease-in-out infinite;
}

/* Stylized container for the icon */
.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background-color: var(--color-primary-gold); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(224, 224, 224, 0.15);


    
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-bg-white);
    stroke-width: 2;
}

.learning-point-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.learning-point-card p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-subtle);
    margin: 0;
}
@keyframes sheen-animation {
  0% {
    transform: translateX(-101%) skewX(-25deg);
  }
  100% {
    transform: translateX(101%) skewX(-25deg);
  }
}
.learning-point-card:nth-child(2)::before {
  animation-delay: 0.4s;
}

.learning-point-card:nth-child(3)::before {
  animation-delay: 0.9s;
}


/* =================================================================== */
/* ==             ABOUT THE INSTRUCTOR SECTION STYLES               == */
/* =================================================================== */

.about-instructor-section {
    background-color: var(--color-bg-medium); 
    padding: var(--space-xxl) 0;
    margin-bottom: var(--space-sm);
}

.about-instructor-container {
    max-width: var(--container-width-sm); /* Using a smaller container for a more intimate feel */
    margin: 0 auto;
    padding: 0 var(--space-lg);
    
    /* The two-column layout */
    display: grid;
    grid-template-columns: auto 1fr; /* Image takes its natural size, text takes the rest */
    gap: var(--space-xl);
    align-items: center;
}

.author-photo img {
    width: 200px; 
    height: 200px;
    object-fit: cover;
    border-radius: 50%; 
    display: block;
}

.author-info h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.author-info p {
    font-size: 1.1rem;
    color: var(--color-text-subtle);
    line-height: var(--line-height-base);
    margin-bottom: var(--space-lg);
}

.author-info .btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-primary-gold);
    color: var(--color-text-light);
    font-weight: 400;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease;
}

.author-info .btn:hover {
    background-color: var(--color-primary-gold-hover);
}

@media (max-width: 743px) {

  /* --- 1. Global Containers & Page Header --- */
  .page-header-container,
  .key-learnings-container,
  .about-instructor-container {
    max-width: 360px;
    margin: 0 auto;
  }

  .page-title {
    font-size: 1rem;
  }

  /* --- 2. Learning Cinema Section --- */
  .learning-cinema-section {
    padding: var(--space-xl) 0;
  }

  .cinema-container {
    /* Stack video and playlist vertically */
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .main-video-player {
    border-radius: 0;
    box-shadow: none;
  }

  .video-playlist {
    max-height: none !important;
    padding: 0 !important;
    overflow-y: visible;
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    margin: 0 auto; 
  }
.playlist-item .playlist-title{
    font-size: 1rem;
}
  /* --- 3. Tutorial Breakdown Section --- */
  .tutorial-breakdown-container {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    max-width: 360px;
  }
  
  .screenshot-grid {
    display: flex;
    flex-direction: column;
}
.screenshot-item{
    width: 100%;
    height: auto;
}
  /* --- 4. Related Tutorials Section --- */
  .related-tutorials-container {
    max-width: 360px;
  }

  .section-header{
    display: flex;
    flex-direction: column;
  }
.related-tutorials-container .section-title{
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.7rem;
}

.view-all-link{
    font-size: 1.3rem;
    font-weight: 400;
}
  .related-tutorials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-tutorials-section{
    padding: 2rem 0;
  }
.key-learnings-section{
    padding: 2rem 0;
}
  /* --- 5. Key Learnings Section --- */
  .learning-points {
    grid-template-columns: 1fr;
  }

  /* --- 6. About the Instructor Section --- */
  .about-instructor-section {
    padding: var(--space-xl) 0;
  }

  .about-instructor-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
.author-photo img{
    display: none;
}
.author-info h3{
    font-size: 2rem;
    font-weight: 400;
}

.learning-point-card{
    width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.learning-point-card p{
    font-size: 1rem;
}
}