/* Mind Care Course Styles (Light Theme) */
:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --secondary-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-sub: #666666;
    --border-color: #dddddd;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

/* Navigation */
.back-nav {
    margin-bottom: 30px;
}

.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.back-nav a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.course-intro {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.course-desc {
    color: var(--text-sub);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Course Sections */
.course-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title i {
    color: var(--primary-color);
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.tool-card:hover .card-icon {
    background: var(--primary-color);
    color: white !important;
}

.card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-arrow {
    margin-top: auto;
    text-align: right;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.tool-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

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