body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Adding border to logo container */
.logo-container {
    text-align: center;
    margin: 0;
    padding: 0px; /* Optional padding around the logo */
    border: 5px solid #333; /* Border for the logo */
    border-bottom: none; /* Seamless connection with the page border */
}

/* Adding a seamless border around the page container */
.page-container {
    max-width: 810px; /* You can adjust this value */
    margin: 0 auto; /* Center the page container */
    padding: 0 px; /* Optional padding for inside spacing */
    border: 20px solid #333; /* Border for the page */
    border-top: none; /* Seamless connection with the logo border */
}

.logo {
    max-width: 100%;
    height: auto;
}

.nav-bar {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 10px 0;
}

.nav-bar li {
    list-style: none;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-bar a:hover {
    color: #f1c40f;
}

.content {
    margin: 20px auto;
    width: 100%; /* Make sure content stretches to fill container */
}

.section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.box {
    background-color: #fff;
    padding: 20px;
    border: 2px solid #ccc;
    text-align: center;
    width: 45%;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.box-content {
    font-size: 24px;
    font-weight: bold;
}

/* Ensure the entire box acts as a link */
.box a {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    text-decoration: none;
    color: #333;
}

.box:hover {
    border-color: #f1c40f;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    max-width: 810px; /* Ensure footer has the same width as the page container */
    margin: 0 auto; /* Center the footer */
}

/* Cost Structure Section */
.cost-structure {
    margin: 50px 0;
    text-align: center;
}

.cost-tier, .family-plan {
    display: flex;
    justify-content: space-around;
    margin: 20px auto;
    max-width: 1000px;
}

/* FREE box - Soft bronze background */
.tier:nth-child(1) {
    background-color: #cd7f32; /* Soft bronze color */
    border: 1px solid #a97142; /* Darker bronze for the border */
    color: white;
}

/* TIER 1 box - Silver background */
.tier:nth-child(2) {
    background-color: #c0c0c0; /* Silver color */
    border: 1px solid #a8a8a8; /* Darker silver for the border */
    color: black;
}

/* TIER 2 box - Soft gold background */
.tier:nth-child(3) {
    background-color: #ffd700; /* Soft gold color */
    border: 1px solid #b8860b; /* Darker gold for the border */
    color: black;
}

.tier {
    padding: 20px;
    border-radius: 8px;
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tier h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.tier p {
    margin: 10px 0;
    font-size: 1.2em;
    text-align: left;
}

.tier ul {
    list-style: none;
    padding: 0;
}

.tier ul li {
    margin-bottom: 5px;
}

.discount {
    color: black; /* Black text for all backgrounds */
    font-weight: bold; /* Make the text bold */
    text-decoration: underline; /* Underline the text */
}

.family-plan {
    margin-top: 40px;
}

/* Add background images to subjects */
#eiken {
    background-image: url('assets/images/eiken.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#juken {
    background-image: url('assets/images/juken.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#flashcards {
    background-image: url('assets/images/abcflashcards.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#ort {
    background-image: url('assets/images/ORT.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#koenglishstudio {
    background-image: url('assets/images/koenglishlogo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#news {
    background-image: url('assets/images/koenglishlogo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Ensures text is readable over the image */
}

#math {
    background-image: url('assets/images/math.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

#english {
    background-image: url('assets/images/english.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

#science {
    background-image: url('assets/images/science.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

#japanese {
    background-image: url('assets/images/japanese.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

#socialstudies {
    background-image: url('assets/images/socialstudies.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

#tests {
    background-image: url('assets/images/tests.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Makes sure text is readable on the image */
}

/* Center the Subjects header */
h2 {
    text-align: center;
}
