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

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #333;
    color: #fff;
}

.logo img {
    width: 100px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: url('../images/main_img.png');
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the image fixed during scrolling */
    text-align: left;
    color: #fff;
    padding: 5rem 1rem;
    min-height: 100vh; /* Ensures the section takes up the full height of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 2.5rem;
}

/* Services Section */
#services {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f4f4f4;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service {
    /*
    background: #fff;
    */
    padding: 1rem;
    margin: 1rem;
    flex: 1 1 30%;
    text-align: center;
    /*
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    */
}

.service img {
    width: 100%;
    height: auto;
}

.service h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

/* banner section */
#banner-section {
    background: linear-gradient(to right, #6a5acd, #836fff);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin: 40px 0;
  }
  
  .banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .banner-text {
    font-size: 1.8rem;
    line-height: 1.8;
  }
  
  .banner-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #6a5acd;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .banner-button:hover {
    background-color: #836fff;
    color: #ffffff;
  }

/* info section */
.info-section {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 10px;
    background-color: #00555a;
}

.info-box {
    text-align: center;
    margin: 10px;
}

.info-number {
    display: block;
    font-size: 2.0em;
    font-weight: bold;
    color: #FCFBF4;
}

.info-text {
    display: block;
    font-size: 1.2em;
    color: #FCFBF4;
}

/* FAQ Section New */
#faq {
    background-color: rgba(0, 85, 90, 0.2); /* #00555a의 RGBa = 0,85,90 | 20% = 0.2 */
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column; /* 아이템을 세로로 배치 */
    align-items: center; /* 자식 요소들을 가운데 정렬 */
}

#faq h2 {
    text-align: center; /* 텍스트를 가운데 정렬 */
    width: 100%; /* 섹션 내에서 가로 길이 전체를 차지 */
    margin-bottom: 2rem; /* FAQ 아이템과 간격 추가 */
}

.faq-item-container {
    display: flex;
    flex-wrap: wrap; /* 아이템이 두 줄 이상으로 나열될 수 있도록 허용 */
    justify-content: space-around; /* 아이템 간격을 균등하게 배치 */
    width: 100%;
}

.faq-item {
    width: 46%; /* 두 개의 아이템을 한 줄에 배치 */
    background: #fff;
    padding: 1rem;
    margin: 1rem 0;
    border: 5px solid #ddd;
    box-sizing: border-box; /* 패딩과 테두리를 포함한 크기를 설정 */
}

.faq-item h3 {
    font-size: 1.2rem;
}

/* About Section */
#about {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
}

.map {
    flex: 1;
    text-align: center;
}

.map img {
    width: 100%;
    height: auto;
}

.about-info_l {
    flex: 1;
}

.about-info_r {
    flex: 1;
}

.about-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-info p {
    margin-bottom: 0.5rem;
}

/* 바로가기 */
#social-media-links {
    text-align: center;
    margin: 20px 0;
}
#social-media-links a {
    margin: 0 10px;
    display: inline-block;
}
#social-media-links img {
    width: 40px; /* Adjust size as needed */
    height: auto;
}

/* Footer */
footer {
    padding: 0.5rem;
    background-color: #d3d3d3;
    color: #333;
    font-size: 1em;
    text-align: center;
}

footer p {
    margin: 0.2rem 0;
}


/* 버튼 스타일 */
.btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* 버튼 사이 여백 */
}

.btn:hover {
    background-color: #0056b3;
}

/* 레이어 팝업의 기본 스타일 */
.popup-overlay {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* 교육과정 표 스타일 */
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.course-table thead tr {
    background-color: #00555a;
    color: #ffffff;
    text-align: center;
}

.course-table th,
.course-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
}

.course-table tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.course-table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

/* 카카오톡 채널 버튼 스타일 */
.kakao-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.kakao-button img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* 팝업 스타일 */
#popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px; /* 필요에 따라 조정 가능 */
    padding: 20px;
    background-color: #FCFBF4;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 닫기 버튼 스타일 */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    border: none;
    background: none;
    font-weight: bold;
}

.close-button:hover {
    color: #E2725B;
}

/* 팝업 버튼 컨테이너 스타일 */
#popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px; /* 버튼과 텍스트 사이에 간격 추가 */
}

/* 팝업 버튼 스타일 */
#popup-buttons button {
    padding: 10px 20px; /* 버튼 크기 조정 */
    cursor: pointer;
    border: none;
    background-color: #333;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#popup-buttons button:hover {
    background-color: #E2725B;
}

hr {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 개인정보처리방침 */
#privacy-main {
    margin: 20px;
}
#privacy-content {
    margin-top: 20px;
}

/* 강사 프로필 페이지 */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333; /* You can adjust the color as needed */
}

.profile-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.profile {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.profile h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.profile p {
    margin: 5px 0;
}


/* 소속 선생님 페이지 */
.counselor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 한 줄에 4명 */
    gap: 20px; /* 카드 간격 */
    margin-bottom: 20px;
}

.counselor-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}


/* News */
.tab-btn {
    background-color: #777;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.tab-btn:focus {
    outline: none;
}

.tab-btn.active {
    background-color: #333;
}

/* 프로젝트 박스 스타일링 */
.project-group {
    margin-bottom: 20px;
}
.project-box {
    border: 1px solid #ddd;
    margin: 0 10px 10px 0;
    padding: 10px 10px;
    display: inline-block;
    width: calc(22.5% - 10px); /* 4개씩 가로로 정렬, 마진 조정 */
    vertical-align: top;
}
.project-info {
    line-height: 1.5;
    padding: 10px;
}
.project-info strong {
    font-weight: bold;
}



/* Responsive Design Continued */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #333;
        z-index: 1;
    }

    nav ul li {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #333;
    }

    nav ul li a {
        display: block;
        width: 100%;
    }

    .menu-icon {
        display: block;
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .services-container {
        flex-direction: column;
    }

    .service {
        flex: 1 1 100%;
    }

    .faq-item {
        padding: 1rem;
    }

    form {
        width: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .map,
    .about-info {
        flex: 1 1 100%;
        text-align: center;
    }

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

@media (min-width: 769px) {
    nav ul {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .popup-content {
        width: 95%;
    }

    .course-table {
        font-size: 0.8em;
    }

    .course-table th,
    .course-table td {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    .counselor-grid {
        grid-template-columns: 1fr; /* 아주 작은 화면에서는 한 줄에 1명 */
    }
}