/* =========================
GRAMMAR HERO
========================= */

.grammar-hero{

    background:linear-gradient(135deg,#f5f3ff,#ede9fe);

    border-radius:36px;

    padding:70px 60px;

    display:grid;

    grid-template-columns:1.1fr 0.9fr;

    gap:50px;

    align-items:center;

    margin-bottom:50px;
}

/* =========================
HERO CONTENT
========================= */

.grammar-badge{

    display:inline-block;

    background:white;

    color:#6d28d9;

    padding:12px 20px;

    border-radius:50px;

    font-weight:600;

    margin-bottom:24px;
}

.grammar-hero h1{

    font-size:72px;

    line-height:1.1;

    font-family:'Poppins',sans-serif;

    margin-bottom:22px;

    color:#111827;
}

.grammar-hero h1 span{

    color:#6d28d9;
}

.grammar-hero p{

    font-size:22px;

    line-height:1.8;

    color:#64748b;

    margin-bottom:35px;

    max-width:700px;
}

/* =========================
HERO STATS
========================= */

.hero-stats{

    display:flex;

    gap:20px;

    flex-wrap:wrap;
}

.hero-stat-card{

    background:white;

    padding:20px 24px;

    border-radius:22px;

    display:flex;

    align-items:center;

    gap:16px;

    box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

.hero-stat-icon{

    width:60px;

    height:60px;

    border-radius:18px;

    background:#ede9fe;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;
}

.hero-stat-card h4{

    font-size:22px;

    margin-bottom:5px;
}

.hero-stat-card p{

    font-size:15px;

    color:#64748b;

    margin:0;
}

/* =========================
HERO IMAGE
========================= */

.grammar-hero-image{

    display:flex;

    justify-content:center;

    align-items:center;
}

.hero-big-icon{

    width:300px;

    height:300px;

    border-radius:50%;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:120px;

    box-shadow:0 20px 50px rgba(0,0,0,0.05);
}

/* =========================
GRAMMAR TOPICS
========================= */

.grammar-topics{

    margin-bottom:60px;
}

.grammar-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;
}

/* =========================
GRAMMAR CARD
========================= */

.grammar-card{

    background:white;

    border-radius:30px;

    padding:32px;

    border:1px solid #ede9fe;

    transition:0.3s ease;
}

.grammar-card:hover{

    transform:translateY(-6px);
}

.day-badge{

    display:inline-block;

    background:#ede9fe;

    color:#6d28d9;

    padding:10px 16px;

    border-radius:14px;

    font-size:14px;

    font-weight:700;

    margin-bottom:24px;
}

/* =========================
CARD TOP
========================= */

.grammar-card-top{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-bottom:28px;
}

.grammar-card-top h3{

    font-size:34px;

    line-height:1.2;

    margin-bottom:14px;

    font-family:'Poppins',sans-serif;

    color:#111827;
}

.grammar-card-top p{

    color:#64748b;

    font-size:18px;

    line-height:1.8;
}

/* =========================
CARD ICON
========================= */

.grammar-icon{

    width:100px;

    height:100px;

    border-radius:26px;

    background:#f5f3ff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:48px;

    flex-shrink:0;
}

/* =========================
CARD FOOTER
========================= */

.grammar-footer{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    flex-wrap:wrap;
}

.mini-icons{

    display:flex;

    gap:12px;
}

.mini-icons span{

    width:48px;

    height:48px;

    border-radius:14px;

    background:#f5f3ff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;
}

/* =========================
BUTTON
========================= */

.start-btn{

    background:#6d28d9;

    color:white;

    padding:16px 28px;

    border-radius:16px;

    font-weight:600;

    transition:0.3s ease;

    display:inline-flex;

    align-items:center;

    justify-content:center;
}

.start-btn:hover{

    background:#5b21b6;
}

/* =========================
PAGINATION
========================= */

.grammar-pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:14px;

    margin-top:50px;
}

.pagination-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:16px;

    background:white;

    cursor:pointer;

    font-weight:700;

    box-shadow:0 5px 20px rgba(0,0,0,0.05);

    transition:0.3s;
}

.pagination-btn:hover{

    transform:translateY(-3px);
}

.active-btn{

    background:#6d28d9;

    color:white;
}

/* =========================
PAGE SYSTEM
========================= */

.grammar-page{

    display:none;
}

.active-page{

    display:block;
}

/* =========================
TABLET
========================= */

@media(max-width:1200px){

.grammar-hero{

    grid-template-columns:1fr;

    text-align:center;
}

.hero-stats{

    justify-content:center;
}

.grammar-grid{

    grid-template-columns:1fr;
}

}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

.grammar-hero{

    padding:36px 24px;

    border-radius:26px;

    gap:35px;
}

.grammar-badge{

    font-size:14px;

    padding:10px 16px;
}

.grammar-hero h1{

    font-size:42px;

    line-height:1.2;
}

.grammar-hero p{

    font-size:17px;

    line-height:1.7;
}

.hero-stats{

    flex-direction:column;
}

.hero-stat-card{

    width:100%;

    padding:18px;
}

.hero-stat-card h4{

    font-size:18px;
}

.hero-big-icon{

    width:180px;

    height:180px;

    font-size:80px;
}

/* =========================
GRAMMAR CARD MOBILE
========================= */

.grammar-card{

    padding:24px;

    border-radius:24px;
}

.grammar-card-top{

    flex-direction:column;

    gap:20px;
}

.grammar-card-top h3{

    font-size:28px;
}

.grammar-card-top p{

    font-size:16px;
}

.grammar-icon{

    width:80px;

    height:80px;

    font-size:38px;

    border-radius:20px;
}

.grammar-footer{

    flex-direction:column;

    align-items:flex-start;
}

.start-btn{

    width:100%;
}

.mini-icons{

    width:100%;

    justify-content:flex-start;
}

/* =========================
PAGINATION MOBILE
========================= */

.grammar-pagination{

    position:sticky;

    bottom:14px;

    background:white;

    padding:14px;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);

    z-index:100;
}

}

