/* ===============================
   Body & Footer Styling (Dedicated)
   =============================== */

/* Restore Default Font Size */
body {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.6;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
html[lang="en"] body {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.6;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
html[lang="vi"] body {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.6;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
html[lang="kr"] body {
    margin: 0;
    font-size: 20px !important;
    line-height: 1.6;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
html[lang="zh"] body {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.6;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
/* Language Fonts */
:lang(en) {
    font-family: 'Arial','Times New Roman','sans-serif';
}
:lang(ko) {
    font-family: 'YDIYMjO150', 'Arial', 'sans-serif';
}
/* Chinese (Simplified & Traditional 공통) */
:lang(zh) {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 19px;
    line-height: 1.7;
}

/* Vietnamese */
:lang(vi) {
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 19px;
    line-height: 1.65;
}

/* ===============================
   Layout
   =============================== */

.content-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 30px 20px;
}

.background-div {
    width: 100%;
    height: 400px;
    background-image: url('https://www.stjohngrace.com/images/church.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.content-left {
    width: 75%;
}

.content-right {
    width: 25%;
    margin-left: 3%;
    display: block;
}

/* Home & Contact Single Column */
body.page-home .content-container,
body.page-contact .content-container {
    display: block;
}
body.page-home .content-left,
body.page-contact .content-left {
    width: 100%;
}
body.page-home .content-right,
body.page-contact .content-right {
    display: none;
}

/* ===============================
   Lists & Links
   =============================== */

li {
    margin-left: 20px;
}

.checkmark-list {
    margin-left: -15px;
    list-style-type: disc;
}

.checkmark-list li::marker {
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

a[href^="mailto:"],
a[href^="tel:"] {
    text-decoration: none !important;
    color: inherit;
}

.phone-number,
.email-address {
    font-weight: bold;
}

/* ===============================
   Sections
   =============================== */

section {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 30px 20px;
}

section:first-of-type {
    margin-top: 20px;
}

h3, h4 {
    margin-top: 30px;
}

.hero {
    width: 100%;
    margin: 0 0 -40px 0;
    padding: 0;
}

/* ===============================
   Application Form Containers
   =============================== */

.application-container-title {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.application-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-size: 20px;
}
/* ===============================
   Buttons
   =============================== */

input[type="button"],
input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 14px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

/* ===============================
   TABLE
   =============================== */

table {
    max-width: 1200px;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

th, td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

th {
    background: #2C3E50;
    color: white;
}

/* ===============================
   Footer
   =============================== */

.footer {
    background: #000000;
    color: white;
    width: 100%;
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

.column {
    flex: 1;
}

/* ===============================
   FORM FIELD UNIFY (FINAL OVERRIDE)
   ★ 핵심 수정 부분
   =============================== */

.application-container input,
.application-container select,
.application-container textarea {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    font-size: 20px;
    border: 2px solid #000;
    border-radius: 5px;
    background-color: white;
    color: black;
    box-sizing: border-box;
}

/* textarea exception */
.application-container textarea {
    height: auto;
}

/* ===== Form Alignment Fix (Multi-language Safe) ===== */

.content-left form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}
.lang-links {
    white-space: nowrap;
    text-align: center;
    margin-bottom: 20px;
}

.content-left form input,
.content-left form textarea,
.content-left form select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 20px;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1200px) {
    .main-container,
    section {
        width: 95%;
    }
    .content-left {
        width: 95%;
    }
    .content-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-left {
        width: 90%;
    }
    .content-right {
        display: none;
    }
    .column {
        width: 100%;
    }
    section {
        width: 90%;
        padding: 15px;
    }
    .footer {
        padding: 30px 0;
    }
}
