/* =========================
   WHY CHOOSE VIDEO CLASS
========================= */
@font-face {
    font-family: "bubble";
    src: url("font/Fredoka.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
.why-section {
    width: 100%;
    min-height: 100vh;
    padding: 70px 3%;
  background: rgba(91, 126, 60, 0.85);
}


/* TITLE */

.why-section h2 {
    max-width: 1200px;

    margin: 0 auto 38px;
    font-family: 'h1font', sans-serif;
    letter-spacing: 2px;
    font-size: 50px;
    -webkit-text-stroke: .1px #2e2e2d;
    color: #e7e1e1;
}


/* =========================
   CARD GRID
========================= */

.why-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 24px;
}


/* =========================
   CARD
========================= */

.why-card-link .why-card{
    
    width: 100%;
    height: 250px;
    overflow: hidden;

    border-radius: 15px;
        text-decoration: none;
    background: #f5f1e3;
     animation:  3s ease infinite;
}

.why-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.why-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* =========================
   HOVER
========================= */

.why-card-link:hover .why-card {
    transform: translateY(-8px) scale(1.03);
}

.why-card-link:hover .tape {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) rotate(-4deg);
}

.tape {
    position: absolute;
    top: -12px;
    left: 50%;

    width: 90px;
    height: 30px;

    background: rgba(255, 225, 130, 0.9);

    transform: translateX(-50%) rotate(-4deg);

    z-index: 20;

    opacity: 0.9;

    transition: opacity 0.25s ease;
}

.why-card:hover .tape {
    opacity: 0;
     transform: translateX(-50%) translateY(-15px) rotate(-4deg);
}





/* =========================
   COLORED TOP
========================= */

.why-card-top {
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* ICON / IMAGE */

.why-card-top img {
    width: 55px;
    height: 55px;

    object-fit: contain;

    display: block;
}


/* =========================
   COLORS
========================= */

.teacher-bg {
    background: #FB4141;
    
}

.video-bg {
    background: #7DAACB;
}

.schedule-bg {
    background: #FFC145;
}

.money-bg {
    background: #5CB338;
}

.progress-bg {
    background: #FFA27F;
}

.world-bg {
    background: #ECE852;
}


/* =========================
   CARD CONTENT
========================= */

.why-card-content {
    min-height: 132px;

    padding: 25px 16px;

    background: #f5f1e3;
}


.why-card-content h3 {
    margin: 0 0 15px;

    font-family: 'bubble', sans-serif;
    letter-spacing: 2px;
    font-size: 18px;
    font-weight: 700;

    color: #111;
}


.why-card-content p {
    margin: 0;

   font-family: 'bubble', sans-serif;

    letter-spacing: 2px;
    line-height: 1.5;

    color: #111;
}

/* =========================
   Transform All Card rotation
========================= */

.why-card-link:nth-child(1) {
     transform:  rotate(-3deg);
}

.why-card-link:nth-child(2) {
     transform:  rotate(3deg);
}
.why-card-link:nth-child(3) {
     transform:  rotate(-3deg);
}
.why-card-link:nth-child(4) {
     transform:  rotate(3deg);
}

.why-card-link:nth-child(6){
     transform:  rotate(6deg);
}



/* =========================
   PAPER TAPE
========================= */

.why-card-link{
    position: relative;
    overflow: visible;
}


/* Tape */

.tape {
    position: absolute;

    top: -10px;
    left: 50%;

    width: 90px;
    height: 30px;

    transform: translateX(-50%) rotate(-4deg);

    background: rgba(255, 224, 130, 0.9);

    z-index: 10;

    opacity: 0.9;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08);
}


/* Slightly rough tape edges */

.tape::before,
.tape::after {
    content: "";

    position: absolute;

    top: 0;

    width: 10px;
    height: 100%;

    background: rgba(255, 224, 130, 0.9);
}

.tape::before {
    left: -5px;

    transform: rotate(3deg);
}

.tape::after {
    right: -5px;

    transform: rotate(-3deg);
}

.why-card-link:nth-child(1) .tape {
    transform: translateX(-50%) rotate(-5deg);
    background: rgba(253, 253, 252, 0.9);
}

.why-card-link:nth-child(2) .tape {
    transform: translateX(-50%) rotate(3deg);
    background: rgba(255, 235, 150, 0.9);
}

.why-card-link:nth-child(3) .tape {
    transform: translateX(-50%) rotate(-2deg);
  background: rgba(253, 253, 252, 0.9);
}

.why-card-link:nth-child(4) .tape {
    transform: translateX(-50%) rotate(4deg);
    background: rgba(255, 225, 130, 0.9);
}

.why-card-link:nth-child(5) .tape {
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(253, 253, 252, 0.9);
}

.why-card-link:nth-child(6) .tape {
    transform: translateX(-50%) rotate(5deg);
    background: rgba(255, 220, 120, 0.9);
}

@media (max-width: 700px) {

    .why-section {
        padding: 50px 20px;
    }

    .why-section h2 {
        font-size: 30px;
        text-align: center;
        margin-bottom: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-card-top {
        height: 100px;
    }
.why-card-link:nth-child(1) {
     transform:  rotate(0deg);
}

.why-card-link:nth-child(2) {
     transform:  rotate(0deg);
}
.why-card-link:nth-child(3) {
     transform:  rotate(0deg);
}
.why-card-link:nth-child(4) {
     transform:  rotate(0deg);
}

.why-card-link:nth-child(6) {
     transform:  rotate(0deg);
}

}