

:root {
    --primary-color: #13547a;
    --secondary-color: #80d0c7;
    --accent-color: #ffd166;
    --text-color: #333333;
    --light-text-color: #ffffff;
    --background-color: #f8f9fa;
    --hover-color: #0f4461;
    --button-color: #1dc078;
    --button-hover-color: #1aa66e;
}

body {
    font-family: "Noto Sans KR", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}


.main-swiper-container {
    width: 100%;
    height: 100%;
}
.main-swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #12172b;
}

.swiper-slide {
    width: auto;
    flex-shrink: 0;
}

.main-slide-content {
    display: flex;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}
.carousel-content {
    flex: 1;
    color: #fff;
    padding-right: 40px;
}
.carousel-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}
.carousel-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}
.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #12172b;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}
.btn-primary:hover {
    background-color: #e6e6e6;
}
.carousel-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.carousel-image img {
    max-width: 100%;
    height: auto;
}
.swiper-button-prev, .swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
}
.swiper-button-prev {
    left: 50px;
}
.swiper-button-next {
    right: 50px;
}
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 24px;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.swiper-controller {
    position: absolute;
    right: 50px;
    bottom: 30px;
    display: flex;
    align-items: center;
    z-index: 10;
}
.swiper-progress {
    width: 100px;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    margin-right: 20px;
}
.swiper-progress-bar {
    height: 100%;
    background-color: #fff;
    width: 0;
}
.swiper-play-pause {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .main-slide-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .carousel-content, .carousel-image {
        padding: 20px 0;
    }
    .carousel-content h2 {
        font-size: 32px;
    }
    .carousel-content p {
        font-size: 16px;
    }
    .swiper-button-prev, .swiper-button-next {
        display: none;
    }
    .swiper-controller {
        right: 20px;
    }
}

/* Search Section Styles */
.search-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

.search-title {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-search {
    border: none;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50px;
    padding: 15px 25px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-tags {
    margin-top: 20px;
}

.search-tag {
    display: inline-block;
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border: solid 1px var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    cursor: pointer;
}

/* Category Section Styles */
.category-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.category-card {
    background-color: var(--light-text-color);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.course-list {
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
}

.course-list li {
    margin-bottom: 15px;
}

.course-list a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    align-items: center;
    transition: all 0.3s;
}

.course-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
}

.course-info h5 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.course-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Notice and FAQ Section Styles */
.notice-faq-section {
    background-color: var(--background-color);
}

.notice-wrapper, .faq-wrapper {
    background-color: var(--light-text-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.notice-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    border-bottom: 1px solid #eee;
}

.notice-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.notice-link:hover {
    background-color: rgba(19, 84, 122, 0.05);
}

.notice-category {
    flex: 0 0 60px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(19, 84, 122, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

.notice-text {
    flex: 1;
    margin: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-date {
    flex: 0 0 80px;
    font-size: 0.8rem;
    color: #777;
    text-align: right;
}

.faq-wrapper {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-title {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
}

.accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.accordion-button:not(.collapsed) {
    color: #0056b3;
    background-color: #e7f1ff;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0,86,179,0.25);
}

.accordion-body {
    background-color: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}




/* Responsive Styles */

@media (max-width: 576px) {
    .search-tag {
        margin: 5px;
    }

    .course-card {
        flex: 0 0 150px;
    }
}

/* Responsive Styles */

@media (max-width: 768px) {
		
    .course-card {
			margin : 0 auto;
       width: 80%;
    }
}

.course-reviews-section .card {
        transition: transform 0.3s;
    }
    .course-reviews-section .card:hover {
        transform: translateY(-5px);
    }
    .star-rating {
        color: #ffc107;
    }
    

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
    
/* Course Card Styles */
.free-courses {
    background-color: #f8f9fa;
    padding: 48px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.courses-swiper-container {
    position: relative;
    padding: 0 40px;
    width: 100%;
    overflow: hidden;
}

.course-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.course-image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.course-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-price {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.sale-price {
    color: #e74c3c;
}

.course-org {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.course-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.course-icons i {
    font-size: 14px;
    margin-right: 5px;
}

.popular-badge, .sale-badge {
    position: absolute;
    top: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.popular-badge {
    left: 10px;
    background-color: #3498db;
}

.sale-badge {
    right: 10px;
    background-color: #e74c3c;
}

.course-hover-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    transition: bottom 0.3s ease;
}

.course-card:hover .course-hover-info {
    bottom: 0;
}

.hover-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.2);
}

/* Swiper Navigation Buttons */
.courses-button-prev,
.courses-button-next,
.recom-courses-button-prev,
.recom-courses-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.courses-button-prev,
.recom-courses-button-prev {
    left: 0;
}

.courses-button-next,
.recom-courses-button-next {
    right: 0;
}

.courses-button-prev i,
.courses-button-next i,
.recom-courses-button-prev i,
.recom-courses-button-next i {
    color: #333;
    font-size: 18px;
}
@media (max-width: 768px) {
    .courses-button-prev {
        left: -10px;
    }
    .courses-button-next {
        right: -10px;
    }
}

.recom-courses-button-prev,
.recom-courses-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.recom-courses-button-prev {
    left: 0;
}

.recom-courses-button-next {
    right: 0;
}

.recom-courses-button-prev i,
.recom-courses-button-next i {
    color: #333;
    font-size: 18px;
}


.student-reviews-section {
    background-color: #f8f9fa;
}
.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
}
.highlight {
    color: #00c471;
}
.subtitle {
    color: #495057;
    font-size: 1rem;
}

.reviews-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}
.review-text {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.review-author {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.review-course {
    color: #00c471;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}
.review-comment {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0;
}


@media (max-width: 768px) {
		
    .courses-button-prev {
        left: -10px;
    }
    .courses-button-next {
        right: -10px;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid currentColor;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .courses-swiper-container {
        padding: 0 20px;
    }
    .recom-courses-button-prev {
        left: 0;
    }
    .recom-courses-button-next {
        right: 0;
    }
}