/* Global */
:root {
    /* Color */
    --color-white: #ffffff;
    --color-light-white: #eeeeee;
    --color-dark-white: #bdbdbd;
    --color-pink: #fe918d;
    --color-dark-pink: #ff6863;
    --color-dark-grey: #4d4d4d;
    --color-grey: #616161;
    --color-light-grey: #7c7979;
    --color-yellow: #fff7d1;
    --color-orange: #feb546;
    --color-black: #000000;
    --color-pupple: #B52ED8;
    --color-blue: #03e8f9;

    /* Font size */
    --font-large: 48px;
    --font-medium: 28px;
    --font-medium-micro: 24px;
    --font-regular: 18px;
    --font-small: 16px;
    --font-micro: 14px;

    /* Font Weight */
    --weight-bold: 700;
    --weight-semi-bold: 600;
    --weight-regular: 400;

    /* Size */
    --size-border-radius: 4px;

    /* Animation */
    --animation-duration: 300ms;

    /* Background */
    --home-bg-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292' height='292' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%2349474C' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23B52ED8'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");

    /* Divider */
    --divider-single-wave: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"> <path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"></path> </svg>')
}

/* Universal tags */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    cursor: default;
}

a {
    text-decoration: none;
    color: var(--color-white);
}

ul {
    list-style: none;
    padding-left: 0;
}

button {
    background-color: transparent;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Typography */
h1 {
    font-size: var(--font-large);
    font-weight: var(--weight-bold);
    color: var(--color-black);
    margin: 16px 0;
}

h2 {
    font-size: var(--font-medium);
    font-weight: var(--weight-semi-bold);
    color: var(--color-black);
    margin: 8px 0;
}

h3 {
    font-size: var(--font-regular);
    font-weight: var(--font-regular);
    color: var(--color-black);
    margin: 8px 0;
}

p {
    font-size: var(--font-regular);
    font-weight: var(--font-regular);
    color: var(--color-black);
    margin: 4px 0;
}

/* Navbar */
#navbar {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: transparent;
    align-items: center;
    color: var(--color-white);
    padding: 16px;
    transition: all var(--animation-duration) ease-in-out;
    z-index: 999;
}

#navbar.navbar--dark {
    background-color: var(--color-pupple);
    padding: 8px;
}

.navbar__menu {
    display: flex;
}

.navbar__logo {
    display: flex;
    align-items: center;
    font-size: var(--font-medium);
    font-weight: var(--weight-semi-bold);
}

.navbar__logo__img {
    width: 100px;
    height: 64px;
}

.navbar__logo a {
    padding: 0 10px;
}

.navbar__menu__item {
    padding: 8px 12px;
    margin: 0 4px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--size-border-radius);
}

.navbar__menu__item:hover {
    border-color: var(--color-white);
    background-color: var(--color-dark-grey);
}

.navbar__toggle-btn {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 24px;
    color: var(--color-white);
    display: none;
}

/* Home */
#home {
    position: relative;
    background-color: var(--color-black);
    background-image: var(--home-bg-svg);
    padding: 40px;
    padding-top: 120px;
    text-align: center;
}

#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 1.3px);
    height: 61px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    background-color: var(--color-white);
    mask: var(--divider-single-wave);
    -webkit-mask: var(--divider-single-wave);
}

.home__avatar {
    width: 250px;
    height: 250px;
}

.home__title,
.home__description {
    color: var(--color-pupple);
}

.home__description_B {
    display: none;
    color: var(--color-pupple);
}

.home__contact {
    color: var(--color-pupple);
    font-size: var(--font-regular);
    font-weight: var(--weight-bold);
    margin: 24px;
    padding: 8px 12px;
    border: 2px solid var(--color-pupple);
    border-radius: var(--size-border-radius);
}

.home__contact:hover {
    background-color: var(--color-light-white);
}

/* Section common */
.section {
    padding: 50px;
    text-align: center;
    margin: auto;
    padding-top: 60px;
}

.section__container {
    max-width: 1200px;
    margin: auto;
}

/* About */
#about p.sinjintitle_B {
    display: none;
}

.about__majors {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
    margin-bottom: 0;
}

.major__icon {
    background-color: #1b1e26;
    width: 170px;
    height: 170px;
    line-height: 170px;
    font-size: 70px;
    margin: 16px auto; /* 상하 간격을 동일하게 설정 */
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 4px 8px 8px rgba(0, 0, 0, 0.38);
}

.major__icon i {
    transition: all var(--animation-duration) ease;
}

.major__icon:hover i {
    transform: scale(1.2); /* Hover effect: slightly enlarge the icon */
    color: var(--color-pink); /* Change color on hover */
}

.major__title {
    font-size: var(--font-medium-micro);
    font-weight: var(--weight-semi-bold);
}

.major__title,
.major__description {
    color: var(--color-dark-grey);
}

.major__description {
    font-size: var(--font-small);
}

/* Work Page Styles */
.navbar-bg {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--color-black);
    background-image: var(--home-bg-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.navbar-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 61px;
    transform: rotate(180deg);
    background-color: var(--color-white);
    mask: var(--divider-single-wave);
    -webkit-mask: var(--divider-single-wave);
}

/* Breadcrumb */
.breadcrumb {
    width: 100%;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.breadcrumb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb__inner a {
    margin-right: 5px;
    color: #666;
}

.breadcrumb__inner span {
    margin: 0 5px;
}

/* Work Page Layout */
.work-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Left Side Menu */
.work-sidemenu {
    width: 220px;
    border: 1px solid #eee;
    background-color: #fafafa;
}

.work-sidemenu__title {
    background-color: #2b4c7e;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
}

.work-sidemenu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-sidemenu__list li {
    border-bottom: 1px solid #ececec;
    cursor: pointer;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #333;
}

.work-sidemenu__list li.active,
.work-sidemenu__list li:hover {
    background-color: #e0e7f1;
    color: #1a1a1a;
}

/* Right Content Area */
.work-content {
    flex: 1;
    border: 1px solid #eee;
    background-color: #fff;
}

.work-content__inner {
    padding: 20px;
}

.project-category {
    display: none;
}

.project-category.active {
    display: block;
}

/* Project Items */
.project-item h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.project-item hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ccc;
}

.project-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.project-item p {
    line-height: 1.6;
    color: #555;
}

/* Contact Section */
#contact {
    background-color: #B0BEC5;
    padding: 20px 10px;
    text-align: center;
}

.contact__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact__email {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 12px;
}

.contact__links {
    margin-bottom: 15px;
}

.contact__links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    display: inline-block;
    margin: 3px 0;
}

.contact__rights {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.3;
}

/* ===== 레이아웃: 사이드메뉴 + 게시판 ===== */
    .community-container {
      display: flex;
      align-items: flex-start;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
      gap: 20px;
    }

    /* --- 왼쪽 사이드메뉴 --- */
    .community-sidemenu {
      width: 220px;
      border: 1px solid #eee;
      background-color: #fafafa;
    }
    .community-sidemenu__title {
      background-color: #2b4c7e;
      color: #fff;
      padding: 15px 20px;
      font-size: 1.1rem;
      font-weight: bold;
    }
    .community-sidemenu__list {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .community-sidemenu__list li {
      border-bottom: 1px solid #ececec;
      cursor: pointer;
      padding: 12px 20px;
      font-size: 0.95rem;
      color: #333;
    }
    .community-sidemenu__list li.active,
    .community-sidemenu__list li:hover {
      background-color: #e0e7f1;
      color: #1a1a1a;
    }

    /* --- 오른쪽 게시판 컨텐츠 --- */
    .community-content {
      flex: 1;
      border: 1px solid #eee;
      background-color: #fff;
    }
    .community-content__inner {
      padding: 20px;
    }

    /* (기본적으로 숨김, 선택된 탭만 보이도록) */
    .board-category {
      display: none;
    }
    .board-category.active {
      display: block;
    }

    /* --- 공지사항 게시판 스타일 --- */
    .board {
      width: 100%;
      border-collapse: collapse;
    }
    .board th, .board td {
      border-bottom: 1px solid #ddd;
      padding: 12px;
      text-align: left;
    }
    .board th {
      background-color: #f4f4f4;
      font-weight: bold;
    }

    /* 수정 버튼 스타일 */
    .btn-edit {
        display: inline-block;
        padding: 6px 12px;
        font-size: var(--font-small);
        color: white;
        background-color: #0275d8; /* Bootstrap Primary 색상 */
        border: 1px solid #025aa5;
        border-radius: 4px;
        text-align: center;
        transition: 0.3s;
    }

    .btn-edit:hover {
        background-color: #025aa5;
        border-color: #014682;
    }

    /* 삭제 버튼 (btn-del) */
    .btn-del {
        padding: 8px 12px;
        border: 1px solid #d9534f;
        background-color: #d9534f;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        transition: 0.3s;
    }
    .btn-del:hover {
        background-color: #c9302c;
    }
    
    .btn-edit {
        padding: 8px 12px;
        border: 1px solid #337ab7;
        background-color: #337ab7;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        transition: 0.3s;
    }
    .btn-edit:hover {
        background-color: #286090;
    }
    
    .chk-select {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }
    
    #checkAll {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    /* 링크 스타일 조정 */
    .board td a {
        color: var(--color-black);
        background-color: transparent !important;
        display: inline-block;
        width: 100%;
    }
    .board tbody tr:hover {
        background-color: #f0f0f0;
    }

    .board-btn {
      margin-top: 10px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }
    .board-btn button {
      padding: 8px 12px;
      border: 1px solid #2b4c7e;
      background-color: #2b4c7e;
      color: white;
      cursor: pointer;
      border-radius: 4px;
      transition: 0.3s;
    }
    .board-btn button:hover {
      background-color: #1a3a5f;
    }

    /* CLIENT */
    .client-box {
      width: 220px;
      height: 140px;
      background: white;
      display: flex !important; /* 우선순위 설정 */
      flex-direction: column !important; /* 세로 방향 정렬 */
      align-items: center !important;
      justify-content: center !important;
      border-radius: 8px;
      box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .client-box img {
      width: 100% !important; /* 우선순위 설정 */
      height: 80% !important; /* 우선순위 설정 */
      object-fit: cover !important; /* 우선순위 설정 */
      display: block !important; /* 우선순위 설정 */
      margin-bottom: 0 !important; /* project-item img의 영향을 제거 */
    }

    .client-box p {
      font-size: 14px !important; /* 우선순위 설정 */
      font-weight: bold !important; /* 우선순위 설정 */
      color: #333 !important; /* 우선순위 설정 */
      margin: 4px 0 0 0 !important; /* 위쪽 여백 추가 */
    }

    .client-grid {
      display: grid !important; /* 우선순위 설정 */
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; /* 220px 기준 */
      gap: 20px !important;
      margin-top: 20px !important;
      justify-content: center !important; /* 가운데 정렬 */
    }


    /* 반응형 */
    @media (max-width: 768px) {
      .community-container {
        flex-direction: column;
      }
      .community-sidemenu {
        width: 100%;
      }
      .community-content {
        margin-top: 10px;
        width: 100%;
      }
    }

/* Arrow Up Button */
.arrow-up {
    position: fixed;
    right: 30px;
    bottom: 30px;
    border: none;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
}

.arrow-up.visible {
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    :root {
        --font-large: 30px;
        --font-medium: 18px;
        --font-regular: 16px;
        --font-small: 14px;
        --font-micro: 12px;
    }

    .navbar__toggle-btn {
        display: block;
        top: 24px;
        right: 16px;
        font-size: var(--font-medium);
    }

    #navbar {
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--color-pupple);
    }

    #navbar.navbar--dark {
        padding: 16px;
    }

    .navbar__logo__img {
        width: 50px;
        height: 32px;
    }

    .navbar__menu {
        flex-direction: column;
        text-align: center;
        width: 100%;
        display: none;
    }

    .navbar__menu.open {
        display: block;
    }

    .section {
        padding: 16px;
        padding-top: 40px;
    }

    .home__description {
        color: var(--color-pupple);
        display: none;
    }

    .home__description_B {
        color: var(--color-pupple);
        display: block;
    }

    .home__contact {
        font-size: var(--font-micro);
    }

    #about p.sinjintitle_A {
        display: none;
    }

    #about p.sinjintitle_B {
        display: block;
    }

    .about__majors {
        flex-direction: column;
        margin-top: 30px;
        margin-bottom: 0px;
    }

    .major {
        margin-bottom: 30px;
    }

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

    .work-sidemenu {
        width: 100%;
    }

    .work-content {
        margin-top: 10px;
        width: 100%;
    }

    .arrow-up {
        bottom: 16px;
        right: 16px;
        width: 30px;
        height: 30px;
        font-size: 16px;
        line-height: 16px;
    }
}