@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Noto+Sans+KR:wght@100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.navbar{
    height: 70px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: black;
}
.navbar .logo {
    flex: 1;
    margin-left: 20px;
}
.navbar .logo-image {
    height: 80px; 
    width: 120px;
    display: block;
}
.navbar .nav-links {
    display: flex;
    margin-right: 20px;
    gap: 20px;
}
.navbar .nav-links a{
    font-size: 1.2rem;
}
.navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.navbar .nav-link:hover {
    color: #ad1010; 
    text-decoration: underline;
}

body {
    font-family: "Merriweather", sans-serif;
    background-color: #e9ecef; 
    min-height: 100vh;
}
main {
    margin: 20px auto;
     padding: 20px;
}
header {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 15px;
}
header h1 {
    font-size: 1.6rem; 
    color: #333;
    margin-bottom: 20px; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); 
    font-weight: bold; 
    letter-spacing: 1px; 
    text-transform: capitalize; 
    position: relative; 
}

header h1::after {
    content: '';
    display: block;
    width: 100px;  
    height: 4px; 
    background-color: #ad1010; 
    margin: 10px auto 0; 
    border-radius: 5px; 
}

h1 {
    margin: 0;
    font-size: 24px; 
}
.container {
    max-width: 1000px;
    margin: auto;
}

.item, .item-reverse {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: #ffffff; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s; 
}

.item:hover, .item-reverse:hover {
    transform: translateY(-5px); 
}

.item-reverse {
    flex-direction: row-reverse;
}

.image {
    flex: 1;
    max-width: 250px;
    width: 250px;     /* Set a fixed width for uniformity */
    height: 150px;    /* Set a fixed height */
    border-radius: 10px;
    margin-right: 20px;
    object-fit: cover;
}

.content {
    flex: 1;
}

.right-align .content {
    text-align: right;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #27292b; 
}

h2 {
    margin: 0 0 10px;
    color: #27292b; 
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    line-height: 1.6; 
    color: #373a3d; 
}





footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px; 
}
footer p{
    font-size: 1.1rem;
}
footer .social-links{
  margin-right: 10px;
  display: flex;
}
.social-links a {
    margin-left: 10px;
}
footer .social-links img{
  max-width: 25px;
  opacity: 0.8;
  transition: 0.3s;
}









@media (max-width: 768px) {
    .navbar {
        flex-direction: row; 
        height: auto;
        padding: 2px;
    }

    .navbar .nav-links .nav-link {
        font-size: 16px;
    }

    .navbar .nav-links {
        flex-direction: row; 
        margin-right: 5px;
        gap: 10px; 
    }

    header {
        text-align: center; 
    }

    header h1 {
        font-size: 1.4rem; 
        margin: 0; 
        padding: 0 10px; 
    }

    .container {
        padding: 0 10px; 
    }

    main {
        margin-bottom: 50px;
    }

    .item {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }

    .content {
        text-align: center;
    }

    .right-align .content {
        text-align: center;
    }

    .item-reverse {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }

    .image {
        max-width: 100%; 
        width: auto; 
        height: auto; 
        margin: 0 0 10px; 
    }

    footer {
        flex-direction: column; 
        align-items: center;
    }

    footer p {
        font-size: 0.8rem;
    }

    footer .social-links {
        margin-left: auto;
    }
}


@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem; 
    }

    .image {
        height: 120px; 
    }

    .content h2 {
        font-size: 1.2rem; 
    }

    .item {
        margin-bottom: 20px; 
    }
}