* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.main-content {
    min-height: calc(100vh - 200px);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.test-cards {
    padding: 4rem 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* 태블릿 & 모바일 반응형 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .test-container {
        padding: 1rem;
    }
    
    .question-section {
        padding: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* 모바일 전용 (480px 이하) */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .card h3 {
        font-size: 1.4rem;
    }
    
    .test-module-card {
        padding: 2rem 1rem;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.card p {
    color: #666;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem !important;
}

/* ê³¼ì¸ë¬¸ì ì¹´ë í¹ë³ ì¤íì¼ */
.tutoring-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 3px solid #fbbf24;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.tutoring-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

.tutoring-card h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tutoring-card p {
    color: white;
    opacity: 0.95;
}

.tutoring-card .btn-primary {
    background: white;
    color: #f59e0b;
    font-weight: 700;
}

.tutoring-card .btn-primary:hover {
    background: #fffbeb;
    transform: scale(1.1);
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.about-section {
    padding: 4rem 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #667eea;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.info-card p {
    color: #666;
}

.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.test-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.test-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.test-header h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
    margin: 1rem 0;
}

.question-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.option.selected {
    border-color: #667eea;
    background: #e8ebff;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.word-count {
    text-align: right;
    color: #666;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.result-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.score-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.score-display h2 {
    font-size: 3rem;
    margin: 1rem 0;
}

.explanation {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #667eea;
}

.correct {
    color: #22c55e;
    font-weight: bold;
}

.incorrect {
    color: #ef4444;
    font-weight: bold;
}

.audio-player {
    width: 100%;
    margin: 1rem 0;
}

.passage {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.passage h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fee;
    border-radius: 8px;
    margin: 1rem 0;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-feedback {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #667eea;
}

.ai-feedback h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.feedback-section {
    margin: 1.5rem 0;
}

.feedback-section h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feedback-section p {
    color: #666;
    line-height: 1.6;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.score-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.score-item .score {
    font-size: 2rem;
    font-weight: bold;
    color: #764ba2;
}

input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.admin-section {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #e0e0e0;
}

.admin-section h4 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.admin-section h5 {
    color: #333;
    margin: 1.5rem 0 1rem;
}

.admin-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.admin-question-item {
    margin-bottom: 1rem;
}

 
 / *   Ó¸Ò  $±D¾¬tÇXÁ  ¼¼Ò  * / 
 . p a r t - n a v - b t n   { 
         f l e x :   1 ; 
         m i n - w i d t h :   2 0 0 p x ; 
         p a d d i n g :   1 r e m ; 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r :   2 p x   s o l i d   # e 0 e 0 e 0 ; 
         b o r d e r - r a d i u s :   8 p x ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 3 s ; 
         t e x t - a l i g n :   l e f t ; 
 } 
 
 . p a r t - n a v - b t n : h o v e r   { 
         b o r d e r - c o l o r :   # 6 6 7 e e a ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   0   4 p x   8 p x   r g b a ( 1 0 2 ,   1 2 6 ,   2 3 4 ,   0 . 2 ) ; 
 } 
 
 . p a r t - n a v - b t n . a c t i v e   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 6 7 e e a   0 % ,   # 7 6 4 b a 2   1 0 0 % ) ; 
         b o r d e r - c o l o r :   # 6 6 7 e e a ; 
         c o l o r :   w h i t e ; 
 } 
 
 . p a r t - n a v - b t n   s t r o n g   { 
         d i s p l a y :   b l o c k ; 
         f o n t - s i z e :   1 . 1 r e m ; 
         m a r g i n - b o t t o m :   0 . 3 r e m ; 
 } 
 
 . p a r t - p r o g r e s s   { 
         d i s p l a y :   b l o c k ; 
         f o n t - s i z e :   0 . 9 r e m ; 
         o p a c i t y :   0 . 8 ; 
 } 
 
 / *   8»È  \Ô  ¤ÂÀÐ|Ç  * / 
 . q u e s t i o n - t a b l e   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r - c o l l a p s e :   c o l l a p s e ; 
         m a r g i n :   1 . 5 r e m   0 ; 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   8 p x ; 
         o v e r f l o w :   h i d d e n ; 
         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; 
 } 
 
 . q u e s t i o n - t a b l e   t h   { 
         b a c k g r o u n d :   # 6 6 7 e e a ; 
         c o l o r :   w h i t e ; 
         p a d d i n g :   1 r e m ; 
         t e x t - a l i g n :   l e f t ; 
         f o n t - w e i g h t :   6 0 0 ; 
 } 
 
 . q u e s t i o n - t a b l e   t d   { 
         p a d d i n g :   1 r e m ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   # e 0 e 0 e 0 ; 
 } 
 
 . q u e s t i o n - t a b l e   t r : l a s t - c h i l d   t d   { 
         b o r d e r - b o t t o m :   n o n e ; 
 } 
 
 . q u e s t i o n - t a b l e   i n p u t [ t y p e = ' t e x t ' ]   { 
         w i d t h :   1 0 0 % ; 
         p a d d i n g :   0 . 5 r e m ; 
         b o r d e r :   2 p x   s o l i d   # e 0 e 0 e 0 ; 
         b o r d e r - r a d i u s :   4 p x ; 
 } 
 
 . q u e s t i o n - t a b l e   i n p u t [ t y p e = ' t e x t ' ] : f o c u s   { 
         b o r d e r - c o l o r :   # 6 6 7 e e a ; 
         o u t l i n e :   n o n e ; 
 } 
 
 / *   Ó¸ÒÄ¼  l­½ Á  * / 
 . p a r t - d i v i d e r   { 
         m a r g i n :   3 r e m   0 ; 
         p a d d i n g :   1 r e m   0 ; 
         b o r d e r - t o p :   3 p x   s o l i d   # 6 6 7 e e a ; 
 } 
 
 . p a r t - t i t l e   { 
         f o n t - s i z e :   1 . 5 r e m ; 
         c o l o r :   # 6 6 7 e e a ; 
         f o n t - w e i g h t :   6 0 0 ; 
         m a r g i n - b o t t o m :   0 . 5 r e m ; 
 } 
 
 . p a r t - s u b t i t l e   { 
         c o l o r :   # 6 6 6 ; 
         f o n t - s i z e :   0 . 9 5 r e m ; 
 } 
 
 
 
 
 / *   ¬¹ð½  ÓtÇÀÉ  ¼¼Ò  ¤ÂÀÐ|Ç  * / 
 . r e v i e w - b t n   { 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 . r e v i e w - b t n : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
 } 
 
 . r e v i e w - b t n : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 / *   Õ°¹¸Ò©Æ  ¤ÂÀÐ|Ç  * / 
 @ m e d i a   p r i n t   { 
         . n a v b a r ,   . f o o t e r ,   . b t n ,   . r e v i e w - b t n   { 
                 d i s p l a y :   n o n e   ! i m p o r t a n t ; 
         } 
         
         b o d y   { 
                 b a c k g r o u n d :   w h i t e ; 
         } 
 } 
 
 
 
 
 / *   L o c a t e   ¼¼Ò  XÕtÇ|·tÇ¸Ò  `ÅÈ²TºtÇXÁ  * / 
 . l o c a t e - h i g h l i g h t   { 
         a n i m a t i o n :   h i g h l i g h t - p u l s e   1 s   e a s e - i n - o u t   3 ; 
         b o x - s h a d o w :   0   0   2 0 p x   r g b a ( 2 4 5 ,   1 5 8 ,   1 1 ,   0 . 6 )   ! i m p o r t a n t ; 
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 @ k e y f r a m e s   h i g h l i g h t - p u l s e   { 
         0 % ,   1 0 0 %   { 
                 b a c k g r o u n d :   # f e f 3 c 7 ; 
                 b o r d e r - l e f t - c o l o r :   # f 5 9 e 0 b ; 
         } 
         5 0 %   { 
                 b a c k g r o u n d :   # f c d 3 4 d ; 
                 b o r d e r - l e f t - c o l o r :   # d 9 7 7 0 6 ; 
         } 
 } 
 
 
 
/* ½ÃÇè À¯Çü ¼±ÅÃ ¹öÆ° */
.test-type-btn {
    padding: 1.5rem 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.test-type-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.test-type-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.test-type-btn.active:hover {
    background: white;
    transform: translateY(-2px);
}

/* ½ÃÇè À¯Çü ¼±ÅÃ Ä«µå */
.test-module-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.test-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.test-module-card h3 {
    margin: 0;
}

.test-module-card p {
    margin: 0.5rem 0;
}
