/* =====================================================
   GRACE ACADEMY v0.95
   PUBLIC PAGE STYLE

   공통 헤더·로고·햄버거·내비게이션·푸터는
   common.css에서만 관리합니다.
===================================================== */

/* HERO */

.hero{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
    text-align:center;
}

.hero-image{
    width:100%;
    border-radius:14px;
    box-shadow:var(--shadow);
}

.hero-text{
    margin-top:25px;
}

.hero-text h2{
    margin-top:15px;
    font-size:34px;
    color:var(--primary);
}

.core-values{
    color:var(--accent);
    font-size:18px;
    font-weight:bold;
    letter-spacing:4px;
}

/* MAIN */

.container h2{
    color:var(--primary);
    margin-bottom:28px;
    text-align:center;
    font-size:var(--font-title);
}

.container h3{
    margin:35px 0 18px;
    color:var(--primary);
    text-align:center;
    font-size:var(--font-subtitle);
}

.container img{
    width:100%;
    max-width:700px;
    display:block;
    margin:25px auto;
    border-radius:10px;
}

.container p{
    margin:16px 0;
    text-align:center;
}



/* ADMISSION */

.admission-section{
    margin:50px 0;
    padding:35px;
    background:white;
    border-radius:12px;
    box-shadow:var(--shadow);
    text-align:center;
}

.admission-section h3{
    margin-bottom:15px;
}

.admission-section p{
    margin-bottom:20px;
}

/* POINT */

.point{
    color:var(--primary);
    font-weight:bold;
}


/* SCHOOL LIFE */

.page-intro{
    text-align:center;
}

.life-section{
    margin:50px 0;
}

.life-list{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
    margin-top:25px;
}

.life-card{
    padding:25px 18px;
    border-radius:12px;
    background:var(--white);
    box-shadow:var(--shadow);
    text-align:center;
    transition:.3s;
}

.life-card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}


.life-card span{
    display:block;
    font-size:32px;
    margin-bottom:10px;
}

.life-card h4{
    color:var(--primary);
    margin-bottom:8px;
}

.life-card p{
    font-size:15px;
    color:#555;
}

.gallery-section{
    margin:50px 0;
}

.section-desc{
    text-align:center;
    color:#555;
    margin-bottom:25px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
}

.gallery-item{
    background:var(--white);
    border-radius:12px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
}

.gallery-item:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}

.gallery-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    margin:0;
    border-radius:0;
}

.gallery-item h4{
    color:var(--primary);
    margin:18px 18px 6px;
}

.gallery-item p{
    margin:0 18px 20px;
    font-size:15px;
    color:#555;
    text-align:left;
}

.login-guide{
    margin-top:50px;
    padding:35px 20px;
    background:var(--white);
    border-radius:12px;
    box-shadow:var(--shadow);
    text-align:center;
}


/* LOGIN */

.login-wrap{
    max-width:380px;
    margin:80px auto;
    padding:30px;
    background:white;
    border-radius:12px;
    box-shadow:var(--shadow);
    text-align:center;
}

.login-wrap h1,
.login-wrap h2{
    margin-bottom:25px;
    color:var(--primary);
}

.login-text{
    font-size:15px;
    color:#555;
    margin-bottom:20px;
}

.login-wrap input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:6px;
}

.login-wrap button{
    width:100%;
    padding:12px;
    border:none;
    background:var(--primary);
    color:white;
    border-radius:6px;
    cursor:pointer;
    margin-top:15px;
}

.login-wrap button:hover{
    background:var(--primary-dark);
}
/* =====================================================
   CURRICULUM
===================================================== */

/* -------------------------
   Hero
------------------------- */

.curriculum-hero{
    text-align:center;
}

.curriculum-hero img{
    display:block;
    width:100%;
    max-width:850px;
    height:420px;
    margin:25px auto;
    object-fit:cover;
    border-radius:16px;
    box-shadow:var(--shadow);
}

.curriculum-hero > p{
    max-width:680px;
    margin:28px auto 0;
    color:var(--text-soft);
    font-size:17px;
    line-height:1.9;
    text-align:center;
    word-break:keep-all;
    overflow-wrap:normal;
}

/* -------------------------
   Intro
------------------------- */

.curriculum-intro{
    position:relative;
    max-width:680px;
    margin:0 auto 80px;
    padding:44px 48px;
    overflow:hidden;
    border:1px solid rgba(11,79,70,.09);
    border-radius:18px;
    background:var(--white);
    box-shadow:var(--shadow-soft);
    text-align:left;
}

.curriculum-intro::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
}

.curriculum-intro h3{
    margin:0 0 8px;
    text-align:center;
}

.curriculum-subtitle{
    margin:8px 0 30px;
    color:#8a918e;
    font-size:13px;
    font-weight:500;
    line-height:1.7;
    letter-spacing:.12em;
    text-align:center;
    text-transform:uppercase;
    word-break:keep-all;
}

.curriculum-intro p{
    margin:0;
    color:var(--text-soft);
    font-size:16px;
    line-height:2;
    text-align:left;
    word-break:keep-all;
    overflow-wrap:normal;
}

.curriculum-intro p + p{
    margin-top:20px;
}

/* -------------------------
   Program Heading
------------------------- */

.curriculum-program{
    margin:100px 0;
}

.curriculum-program-heading{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:34px;
    padding-bottom:20px;
    border-bottom:1px solid rgba(11,79,70,.14);
}

.curriculum-number{
    display:flex;
    justify-content:center;
    align-items:center;
    flex:0 0 62px;
    width:62px;
    height:62px;
    border-radius:50%;
    background:var(--primary);
    color:var(--accent);
    font-size:23px;
    font-weight:900;
    line-height:1;
    box-shadow:0 8px 18px rgba(11,79,70,.18);
}

.curriculum-category{
    margin:0 0 3px;
    color:#818885;
    font-size:12px;
    font-weight:800;
    line-height:1.4;
    letter-spacing:2px;
    text-align:left;
}

.curriculum-program-heading h3{
    margin:0;
    color:var(--primary);
    font-size:28px;
    text-align:left;
}

/* -------------------------
   Content Row
------------------------- */

.curriculum-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    gap:30px;
    margin-top:30px;
}

.curriculum-row.reverse .curriculum-media{
    grid-column:2;
    grid-row:1;
}

.curriculum-row.reverse .curriculum-card{
    grid-column:1;
    grid-row:1;
}

/* -------------------------
   Media
------------------------- */

.curriculum-media{
    min-width:0;
    margin:0;
    overflow:hidden;
    border-radius:18px;
    box-shadow:var(--shadow-soft);
}

.curriculum-media img{
    display:block;
    width:100%;
    max-width:none;
    height:100%;
    min-height:340px;
    margin:0;
    object-fit:cover;
    border-radius:0;
    transition:
        transform .65s cubic-bezier(.22,1,.36,1),
        filter .4s ease;
}

.curriculum-row:hover .curriculum-media img{
    transform:scale(1.045);
}

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

.curriculum-card{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
    min-height:340px;
    padding:42px 40px;
    border:1px solid rgba(11,79,70,.09);
    border-radius:18px;
    background:var(--white);
    box-shadow:var(--shadow-soft);
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.curriculum-card::before{
    content:"";
    position:absolute;
    top:34px;
    left:0;
    width:4px;
    height:54px;
    border-radius:0 4px 4px 0;
    background:var(--accent);
}

.curriculum-row:hover .curriculum-card{
    transform:translateY(-5px);
    border-color:rgba(11,79,70,.18);
    box-shadow:var(--shadow-hover);
}

.curriculum-card-label{
    display:inline-block;
    align-self:flex-start;
    margin-bottom:12px;
    padding:6px 11px;
    border-radius:999px;
    background:rgba(11,79,70,.08);
    color:var(--primary);
    font-size:13px;
    font-weight:800;
}

.curriculum-card h4{
    margin:0 0 18px;
    color:var(--primary);
    font-size:23px;
    line-height:1.45;
    word-break:keep-all;
}

.curriculum-card p{
    margin:0;
    color:var(--text-soft);
    font-size:16px;
    line-height:1.85;
    text-align:left;
    word-break:keep-all;
    overflow-wrap:normal;
}

.curriculum-card p + p{
    margin-top:18px;
}

.curriculum-message{
    margin-top:26px !important;
    padding-top:20px;
    border-top:1px solid rgba(11,79,70,.12);
    color:var(--primary) !important;
    font-size:20px !important;
    font-weight:800;
    letter-spacing:.04em;
}

/* -------------------------
   Gallery
------------------------- */

.curriculum-grid-section{
    margin:90px 0 50px;
}

.curriculum-gallery{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-top:28px;
}

.curriculum-gallery img{
    display:block;
    width:100%;
    max-width:none;
    height:210px;
    margin:0;
    object-fit:cover;
    border-radius:14px;
    box-shadow:var(--shadow-soft);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.curriculum-gallery img:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}

/* ABOUT */
.church-link{

    color:var(--primary);
    font-weight:700;
    text-decoration:none;
    transition:.25s ease;

}

.church-link:hover{

    color:var(--primary);
    text-decoration:underline;

}
.about-hero{
    text-align:center;
}

.about-hero img{
    width:100%;
    max-width:600px;
    height:auto;
    object-fit:contain;
    border-radius:14px;
    box-shadow:var(--shadow);
}

.about-slogan{
    margin-top:25px;
    font-size:30px;
    font-weight:bold;
    color:var(--primary);
}

.about-sub-slogan{
    font-size:20px;
    color:#555;
}

.about-intro{
    max-width:800px;
    margin:0 auto 55px;
    padding:35px;
    background:var(--white);
    border-radius:12px;
    box-shadow:var(--shadow);
    text-align:center;
}

.about-feature{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
    align-items:center;
    margin:60px 0;
}

.about-feature.reverse{
    direction:rtl;
}

.about-feature.reverse .about-text{
    direction:ltr;
}

.about-feature img{
    width:100%;
    height:320px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:var(--shadow);
    margin:0;
}

.about-text{
    background:var(--white);
    padding:35px;
    border-radius:12px;
    box-shadow:var(--shadow);
}

.about-text span{
    color:var(--accent);
    font-size:22px;
    font-weight:bold;
    letter-spacing:2px;
}

.about-text h3{
    text-align:left;
    margin:10px 0 15px;
}

.about-text p{
    text-align:left;
    color:#555;
}

/* STAR VISION */

.about-star{
    margin:70px 0;
}

.star-heading{
    max-width:760px;
    margin:0 auto 34px;
    text-align:center;
}

.star-label{
    display:inline-block;
    margin-bottom:10px;
    color:var(--accent);
    font-size:14px;
    font-weight:800;
    letter-spacing:3px;
}

.star-heading h3{
    margin:0 0 14px;
    color:var(--primary);
    font-size:30px;
}

.star-heading p{
    margin:0;
    color:#5b625f;
    font-size:16px;
    line-height:1.8;
}

.star-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.star-card-community{
    grid-column:1 / -1;
    width:calc((100% - 24px) / 2);
    justify-self:center;
}

.star-card{
    position:relative;
    overflow:hidden;
    min-height:250px;
    padding:30px;
    background:var(--white);
    border:1px solid rgba(11,79,70,.10);
    border-radius:16px;
    box-shadow:var(--shadow-soft);
    transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.star-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
}

.star-card::after{
    content:"";
    position:absolute;
    right:-36px;
    bottom:-46px;
    width:150px;
    height:150px;
    border-radius:50%;
    background:rgba(11,79,70,.045);
    pointer-events:none;
}

.star-card:hover{
    transform:translateY(-5px);
    border-color:rgba(11,79,70,.22);
    box-shadow:var(--shadow-hover);
}

.star-card-header{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:22px;
}

.star-letter{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 58px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:var(--primary);
    color:var(--accent);
    font-size:29px;
    font-weight:900;
    line-height:1;
    box-shadow:0 7px 16px rgba(11,79,70,.18);
}

.star-card h4{
    margin:0;
    color:var(--primary);
    font-size:24px;
}

.star-card .star-english{
    min-height:52px;
    margin:0 0 18px;
    color:#7a817e;
    font-size:14px;
    font-weight:600;
    line-height:1.55;
    text-align:left;
}

.star-card .star-korean{
    position:relative;
    margin:0;
    padding-top:18px;
    color:#27322f;
    font-size:18px;
    font-weight:700;
    line-height:1.6;
    text-align:left;
}

.star-card .star-korean::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:42px;
    height:2px;
    background:var(--accent);
}

.about-info{
    margin:60px 0 20px;
}

.info-box{
    max-width:760px;
    margin:25px auto 0;
    background:var(--white);
    padding:30px;
    border-radius:12px;
    box-shadow:var(--shadow);
}

.info-box p{
    text-align:left;
    margin:12px 0;
}
.info-row{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:18px;
    margin:14px 0;
    text-align:left;
}

.info-row strong{
    color:#222;
}

.info-row span{
    color:#333;
}
.info-box a{
    color:var(--primary);
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}

.info-box a:hover{
    text-decoration:underline;
    color:var(--primary-dark);
}




/* RESPONSIVE */

@media(max-width:768px){

   
    .hero-text h2{
        font-size:26px;
    }


    .container h2{
        font-size:28px;
    }

    .container h3{
        font-size:22px;
    }

    
    .life-list{
        grid-template-columns:1fr;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .gallery-item img{
        height:240px;
    }
    /* -------------------------
       Curriculum
    ------------------------- */

    .curriculum-hero img{
        height:260px;
    }

    .curriculum-hero > p{
        margin-top:22px;
        font-size:15px;
        line-height:1.8;
    }

    .curriculum-intro{
        margin-bottom:65px;
        padding:34px 24px;
    }

    .curriculum-intro h3{
        margin-bottom:6px;
    }

    .curriculum-subtitle{
        margin:6px 0 24px;
        font-size:11px;
        letter-spacing:.08em;
    }

    .curriculum-intro p{
        font-size:15px;
        line-height:2;
    }

    .curriculum-program{
        margin:76px 0;
    }

    .curriculum-program-heading{
        gap:14px;
        margin-bottom:24px;
        padding-bottom:16px;
    }

    .curriculum-number{
        flex-basis:52px;
        width:52px;
        height:52px;
        font-size:19px;
    }

    .curriculum-program-heading h3{
        font-size:24px;
    }

    .curriculum-category{
        font-size:10px;
        letter-spacing:1.5px;
    }

    .curriculum-row,
    .curriculum-row.reverse{
        grid-template-columns:1fr;
        gap:0;
        margin-top:24px;
    }

    .curriculum-row.reverse .curriculum-media,
    .curriculum-row.reverse .curriculum-card{
        grid-column:auto;
        grid-row:auto;
    }

    .curriculum-media{
        border-radius:16px 16px 0 0;
    }

    .curriculum-media img{
        height:250px;
        min-height:0;
    }

    .curriculum-card{
        min-height:0;
        padding:32px 24px 34px;
        border-top:0;
        border-radius:0 0 16px 16px;
    }

    .curriculum-card::before{
        top:28px;
        height:46px;
    }

    .curriculum-card h4{
        font-size:21px;
    }

    .curriculum-card p{
        font-size:15px;
        line-height:1.8;
    }

    .curriculum-message{
        font-size:18px !important;
    }

    .curriculum-gallery{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .curriculum-gallery img{
        height:170px;
    }

    
        .about-hero img{
        height:260px;
    }

    .about-slogan{
        font-size:24px;
    }

    .about-sub-slogan{
        font-size:17px;
    }

    .about-intro{
        padding:25px 20px;
    }

    .about-feature,
    .about-feature.reverse{
        grid-template-columns:1fr;
        direction:ltr;
    }

    .about-feature img{
        height:240px;
    }

    .about-text,
    .info-box{
        padding:25px 20px;
    }

    .star-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .star-card-community{
        grid-column:auto;
        width:100%;
    }

    .star-heading{
        margin-bottom:26px;
    }

    .star-heading h3{
        font-size:26px;
    }

    .star-heading p{
        font-size:15px;
    }

    .star-card{
        min-height:0;
        padding:26px 22px;
    }

    .star-card .star-english{
        min-height:0;
    }

    .info-row{
        grid-template-columns:1fr;
        gap:4px;
        margin:18px 0;
    }
    

}
/* =====================================================
   SCROLL REVEAL ANIMATION
===================================================== */

.reveal{
    opacity:0;
    transform:translateY(34px);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.22, 1, .36, 1);
    will-change:opacity, transform;
}

.reveal.from-left{
    transform:translateX(-42px);
}

.reveal.from-right{
    transform:translateX(42px);
}

.reveal.is-visible{
    opacity:1;
    transform:translate(0, 0);
}

/* STAR 카드 순차 등장 */

.star-card.reveal:nth-child(1){
    transition-delay:.05s;
}

.star-card.reveal:nth-child(2){
    transition-delay:.17s;
}

.star-card.reveal:nth-child(3){
    transition-delay:.29s;
}

.star-card.reveal:nth-child(4){
    transition-delay:.41s;
}

.star-card.reveal:nth-child(5){
    transition-delay:.53s;
}

/* 등장 이후 카드 움직임 */

.star-card.is-visible{
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.22, 1, .36, 1),
        box-shadow .3s ease,
        border-color .3s ease;
}

.star-card.is-visible:hover{
    transform:translateY(-8px);
}

/* 글자에 은은한 강조 */

.star-card.is-visible .star-letter{
    animation:star-letter-pop .65s cubic-bezier(.22, 1, .36, 1) both;
}

.star-card:nth-child(1) .star-letter{
    animation-delay:.2s;
}

.star-card:nth-child(2) .star-letter{
    animation-delay:.32s;
}

.star-card:nth-child(3) .star-letter{
    animation-delay:.44s;
}

.star-card:nth-child(4) .star-letter{
    animation-delay:.56s;
}

.star-card:nth-child(5) .star-letter{
    animation-delay:.68s;
}

@keyframes star-letter-pop{
    0%{
        transform:scale(.72) rotate(-8deg);
        opacity:0;
    }

    70%{
        transform:scale(1.08) rotate(2deg);
    }

    100%{
        transform:scale(1) rotate(0);
        opacity:1;
    }
}

/* 접근성: 모션 감소 설정 대응 */

@media(prefers-reduced-motion:reduce){

    .reveal,
    .reveal.from-left,
    .reveal.from-right{
        opacity:1;
        transform:none;
        transition:none;
    }

    .star-card.is-visible .star-letter{
        animation:none;
    }

}
/* =====================================================
   PAGE ANIMATION
===================================================== */

.about-intro.reveal{

    transition:
        opacity 2.1s ease,
        transform 1.15s cubic-bezier(.22,1,.36,1);

}
/* Curriculum Intro */

.curriculum-intro.reveal{

    transition:
        opacity 1.15s ease,
        transform 1.15s cubic-bezier(.22,1,.36,1);

}

/* Gallery 순차 등장 */

.curriculum-gallery img.reveal:nth-child(1){
    transition-delay:.08s;
}

.curriculum-gallery img.reveal:nth-child(2){
    transition-delay:.18s;
}

.curriculum-gallery img.reveal:nth-child(3){
    transition-delay:.28s;
}

.curriculum-gallery img.reveal:nth-child(4){
    transition-delay:.38s;
}
