﻿/* Homepage-only refinements: hero, courses, and study visa process */

/* HERO */
.hero{
    padding:145px 0 88px;
    background:
        linear-gradient(135deg, rgba(247,251,248,.96) 0%, rgba(255,255,255,.98) 58%, rgba(236,248,242,.92) 100%);
}

.hero::before{
    opacity:.65;
}

.hero-grid{
    grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);
    gap:54px;
    position:relative;
    z-index:1;
}

.hero h1{
    max-width:720px;
    font-size:clamp(48px, 4.9vw, 74px);
    line-height:1.04;
    letter-spacing:0;
    margin-bottom:22px;
}

.hero h1 span{
    display:inline;
    text-decoration:none;
    background:linear-gradient(180deg, transparent 62%, rgba(23,133,74,.18) 62%);
}

.hero p{
    max-width:660px;
    margin-bottom:30px;
    font-size:18px;
    line-height:1.75;
}

.hero-badge{
    margin-bottom:22px;
    box-shadow:0 10px 26px rgba(6,29,67,.05);
}

.hero-btns{
    gap:14px;
}

.hero-primary-btn,
.hero-secondary-btn{
    min-height:56px;
    padding:0 30px;
    color:var(--color-white);
}

.hero-secondary-btn{
    background:var(--color-white);
    color:var(--color-heading);
    border:1px solid rgba(6,29,67,.14);
    box-shadow:0 10px 24px rgba(6,29,67,.06);
}

.result-marquee{
    margin-top:24px;
}

.hero-stats{
    margin-top:34px;
    gap:18px;
}

.hero-stat{
    min-width:230px;
    padding:16px 18px;
    border-radius:20px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(23,133,74,.10);
    box-shadow:0 12px 28px rgba(6,29,67,.05);
}

.hero-image-wrap{
    min-width:0;
    padding:14px 22px 40px 0;
}

.hero-main-image{
    border-radius:34px;
    box-shadow:0 28px 70px rgba(6,29,67,.12);
}

.hero-main-image img{
    height:620px;
    object-position:center top;
}

.hero-experience{
    top:24px;
    right:-8px;
    padding:20px 22px;
    border-radius:22px;
}

.hero-experience strong{
    font-size:34px;
}

.hero-card-bottom{
    right:0;
    bottom:-28px;
    width:min(330px, 92%);
    padding:22px;
}

.hero-card-bottom h3{
    font-size:23px;
}

/* COURSES */
.dictionary-courses-section .course-btn{
    color:var(--color-white) !important;
    text-decoration:none;
}

.dictionary-courses-section .course-btn i{
    color:inherit;
}

.dictionary-courses-section .course-btn:hover{
    color:var(--color-white) !important;
}

.dictionary-courses-section .featured-course .course-btn{
    background:var(--color-white);
    color:var(--primary-green-dark) !important;
}

.dictionary-courses-section .featured-course .course-btn:hover{
    color:var(--primary-green-dark) !important;
}

/* STUDY VISA PROCESS */
.dictionary-process-section{
    padding:110px 0;
    background:linear-gradient(180deg,#f8fbf9 0%,#ffffff 100%);
    overflow:hidden;
}

.dictionary-process-section .process-heading{
    max-width:800px;
    margin:0 auto 58px;
}

.dictionary-process-section .process-heading h2{
    letter-spacing:0;
}

.dictionary-process-section .process-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
    align-items:stretch;
}

.dictionary-process-section .process-card{
    min-height:0;
    padding:32px 26px;
    border-radius:24px;
    animation:none !important;
    transform:none !important;
    box-shadow:0 12px 34px rgba(6,29,67,.06);
    border:1px solid rgba(23,133,74,.10);
}

.dictionary-process-section .process-card:hover{
    transform:translateY(-6px) !important;
    box-shadow:0 18px 42px rgba(6,29,67,.10);
}

.dictionary-process-section .process-card::before,
.dictionary-process-section .process-card::after{
    display:none;
}

.dictionary-process-section .process-icon{
    width:64px;
    height:64px;
    border-radius:18px;
    margin-bottom:22px;
    font-size:25px;
}

.dictionary-process-section .process-number{
    top:22px;
    right:24px;
    font-size:32px;
}

.dictionary-process-section .process-card h3{
    max-width:100%;
    font-size:25px;
    line-height:1.16;
    letter-spacing:0;
    margin-bottom:14px;
}

.dictionary-process-section .process-card p{
    max-width:100%;
    font-size:15px;
    line-height:1.65;
}

.dictionary-process-section .process-bottom-box{
    margin-top:36px;
    border-radius:28px;
    padding:36px 40px;
}

.dictionary-process-section .process-bottom-box::before{
    opacity:.7;
}

.dictionary-process-section .process-bottom-content h3{
    font-size:34px;
    letter-spacing:0;
}

.dictionary-process-section .process-btn{
    color:var(--primary-green-dark);
    text-decoration:none;
}

@media(max-width:1200px){
    .hero-grid{
        grid-template-columns:1fr;
        gap:42px;
    }

    .hero-image-wrap{
        max-width:720px;
        margin:0 auto;
        padding-right:0;
    }

    .hero-main-image img{
        height:560px;
    }

    .dictionary-process-section .process-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:768px){
    .hero{
        padding:125px 0 72px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:16px;
    }

    .hero-primary-btn,
    .hero-secondary-btn{
        width:100%;
    }

    .hero-stat{
        width:100%;
        min-width:0;
    }

    .hero-main-image img{
        height:420px;
    }

    .hero-experience{
        right:12px;
    }

    .hero-card-bottom{
        position:relative;
        right:auto;
        bottom:auto;
        width:100%;
        margin-top:16px;
    }

    .dictionary-process-section{
        padding:78px 0;
    }

    .dictionary-process-section .process-heading{
        margin-bottom:38px;
    }

    .dictionary-process-section .process-grid{
        grid-template-columns:1fr;
    }

    .dictionary-process-section .process-bottom-box{
        padding:30px 24px;
    }

    .dictionary-process-section .process-bottom-content h3{
        font-size:28px;
    }
}

/* Hero practice card: compact homepage layout */
.hero .hero-image-wrap{
    overflow:visible;
}

.hero .hero-card-bottom{
    right:-8px;
    bottom:28px;
    width:min(300px, 82%);
    padding:18px 20px;
    border-radius:22px;
    box-shadow:0 22px 48px rgba(6,29,67,.14);
}

.hero .hero-stars{
    gap:5px;
    margin-bottom:10px;
    font-size:14px;
}

.hero .hero-card-bottom h3{
    max-width:250px;
    margin-bottom:8px;
    font-size:22px;
    line-height:1.05;
    letter-spacing:0;
    color:var(--primary-green-dark);
}

.hero .hero-card-bottom p{
    max-width:245px;
    margin:0;
    font-size:15px;
    line-height:1.55;
}

@media(max-width:1200px){
    .hero .hero-card-bottom{
        right:18px;
        bottom:24px;
        width:min(310px, 78%);
    }
}

@media(max-width:768px){
    .hero .hero-card-bottom{
        position:relative;
        right:auto;
        bottom:auto;
        width:100%;
        margin-top:16px;
    }

    .hero .hero-card-bottom h3,
    .hero .hero-card-bottom p{
        max-width:100%;
    }
}

/* Match live dictionary homepage hero composition */
.hero{
    padding:170px 0 110px;
    background:
        radial-gradient(circle at top left,rgba(23,133,74,0.15),transparent 30%),
        radial-gradient(circle at 78% 22%,rgba(6,29,67,0.08),transparent 26%),
        radial-gradient(circle at bottom right,rgba(23,133,74,0.12),transparent 30%),
        linear-gradient(180deg,#f7fbf8 0%,#ffffff 100%);
}

.hero-grid{
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    gap:70px;
}

.hero-badge{
    margin-bottom:28px;
}

.hero h1{
    max-width:none;
    font-size:clamp(58px,5.4vw,76px);
    line-height:1;
    font-weight:900;
    letter-spacing:0;
    margin-bottom:28px;
}

.hero h1 span{
    color:var(--primary-green);
    background:none;
    text-decoration:underline;
    text-decoration-color:rgba(0,143,76,0.28);
    text-decoration-thickness:8px;
    text-underline-offset:8px;
}

.hero > .container > div:first-child p,
.hero-grid > div:first-child > p{
    max-width:640px;
    margin-bottom:40px;
    font-size:18px;
    line-height:1.9;
}

.hero-secondary-btn{
    background:var(--soft-red);
    color:var(--accent-red-dark);
    border:1px solid rgba(6,29,67,0.20);
    box-shadow:none;
}

.result-marquee{
    max-width:650px;
    margin-top:28px;
}

.hero-stats{
    margin-top:45px;
    gap:40px;
}

.hero-stat{
    min-width:0;
    padding:0;
    border-radius:0;
    background:transparent;
    border:none;
    box-shadow:none;
}

.hero-image-wrap{
    position:relative;
    padding:0;
    overflow:visible;
}

.hero-main-image{
    border-radius:40px;
    overflow:hidden;
    box-shadow:0 40px 90px rgba(0,0,0,0.12);
}

.hero-main-image img{
    width:100%;
    height:700px;
    object-fit:cover;
    object-position:center center;
    display:block;
}

.hero-experience{
    top:38px;
    right:-49px;
    padding:28px 30px;
    border-radius:28px;
}

.hero-experience strong{
    font-size:42px;
}

.hero .hero-card-bottom{
    right:-30px;
    bottom:-59px;
    width:320px;
    padding:24px;
    border-radius:28px;
    box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

.hero .hero-stars{
    gap:6px;
    margin-bottom:14px;
    font-size:16px;
}

.hero .hero-card-bottom h3{
    max-width:none;
    margin-bottom:14px;
    font-size:28px;
    line-height:1.2;
    color:var(--heading);
}

.hero .hero-card-bottom p{
    max-width:none;
    margin:0;
    font-size:15px;
    line-height:1.8;
}

@media(max-width:1200px){
    .hero-grid{
        grid-template-columns:1fr;
        gap:50px;
    }

    .hero-image-wrap{
        max-width:720px;
        margin:0 auto;
    }

    .hero-main-image img{
        height:600px;
    }

    .hero .hero-card-bottom{
        right:5%;
        bottom:-46px;
        width:min(320px,90%);
    }

    .hero-experience{
        right:-20px;
    }
}

@media(max-width:768px){
    .hero{
        padding:140px 0 80px;
    }

    .hero h1{
        font-size:42px;
        letter-spacing:0;
    }

    .hero-main-image img{
        height:500px;
    }

    .hero .hero-card-bottom{
        position:absolute;
        right:5%;
        bottom:-42px;
        width:90%;
        margin-top:0;
    }

    .hero-experience{
        display:none;
    }
}

/* Fix inherited floating-card top value so practice card keeps natural height */
.hero .hero-floating-card.hero-card-bottom{
    top:auto !important;
    left:auto !important;
    height:auto !important;
    min-height:0 !important;
    align-self:auto;
}

@media(max-width:768px){
    .hero .hero-floating-card.hero-card-bottom{
        top:auto !important;
        bottom:-42px;
    }
}

/* Hero left column: button rhythm and readable stats */
.hero .hero-btns{
    gap:16px;
    margin-top:6px;
    margin-bottom:30px;
}

.hero .hero-primary-btn,
.hero .hero-secondary-btn{
    min-width:196px;
    min-height:56px;
    padding:0 32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.hero .hero-secondary-btn{
    background:#f3fbf6;
    color:var(--primary-green-dark) !important;
    border:1px solid rgba(23,133,74,.20);
}

.hero .result-marquee{
    margin-top:0;
}

.hero .hero-stats{
    margin-top:46px;
    display:flex;
    gap:24px;
    align-items:stretch;
}

.hero .hero-stat{
    min-width:250px;
    padding:16px 20px;
    border-radius:22px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(23,133,74,.12);
    box-shadow:0 14px 34px rgba(6,29,67,.06);
}

.hero .hero-stat-icon{
    flex:0 0 50px;
}

.hero .hero-stat strong{
    color:#2fdc78;
    font-size:32px;
    line-height:1.05;
    font-weight:900;
}

.hero .hero-stat span{
    display:block;
    margin-top:4px;
    color:#617086;
    font-size:14px;
    font-weight:700;
    opacity:1;
}

@media(max-width:768px){
    .hero .hero-btns{
        gap:12px;
        margin-bottom:24px;
    }

    .hero .hero-primary-btn,
    .hero .hero-secondary-btn{
        width:100%;
        min-width:0;
    }

    .hero .hero-stats{
        gap:14px;
        margin-top:34px;
    }

    .hero .hero-stat{
        width:100%;
        min-width:0;
    }
}

/* Study visa process: clean homepage card layout */
.dictionary-process-section{
    padding:96px 0 92px;
    overflow:hidden;
}

.dictionary-process-section .process-heading{
    max-width:820px;
    margin:0 auto 52px;
}

.dictionary-process-section .process-heading h2{
    font-size:clamp(44px,4.8vw,68px);
    line-height:1.08;
    margin-bottom:22px;
}

.dictionary-process-section .process-heading p{
    max-width:760px;
    margin:0 auto;
    font-size:20px;
    line-height:1.75;
}

.dictionary-process-section .process-grid{
    gap:22px;
    align-items:stretch;
    padding-top:0;
}

.dictionary-process-section .process-card{
    position:relative;
    overflow:hidden;
    min-height:212px;
    padding:34px 28px 30px;
    border-radius:24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.dictionary-process-section .process-card.active-process{
    background:linear-gradient(135deg,#17854a 0%,#0d713c 100%);
    color:#fff;
}

.dictionary-process-section .process-icon{
    display:none !important;
}

.dictionary-process-section .process-number{
    position:absolute;
    top:22px;
    right:24px;
    font-size:34px;
    line-height:1;
    font-weight:900;
    color:rgba(23,133,74,.34);
    opacity:1;
    transform:none;
    z-index:1;
}

.dictionary-process-section .active-process .process-number{
    color:rgba(255,255,255,.22);
}

.dictionary-process-section .process-card h3{
    position:relative;
    z-index:2;
    max-width:230px;
    margin:0 0 16px;
    font-size:25px;
    line-height:1.18;
    color:var(--heading);
}

.dictionary-process-section .active-process h3{
    color:#fff;
}

.dictionary-process-section .process-card p{
    position:relative;
    z-index:2;
    max-width:245px;
    margin:0;
    color:#66738a;
    font-size:15.5px;
    line-height:1.62;
    font-weight:500;
}

.dictionary-process-section .active-process p{
    color:rgba(255,255,255,.88);
}

@media(max-width:1200px){
    .dictionary-process-section .process-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .dictionary-process-section .process-card h3,
    .dictionary-process-section .process-card p{
        max-width:100%;
    }
}

@media(max-width:768px){
    .dictionary-process-section{
        padding:76px 0;
    }

    .dictionary-process-section .process-heading{
        margin-bottom:36px;
    }

    .dictionary-process-section .process-heading h2{
        font-size:38px;
    }

    .dictionary-process-section .process-heading p{
        font-size:17px;
    }

    .dictionary-process-section .process-card{
        min-height:auto;
        padding:30px 24px;
    }
}
