body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: #faf8f6;
}
header {
    background: url('topimage.jpg') center/cover no-repeat;
    color: #fff;
    min-height: 60vh;
    position: relative;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4vw;
    background: rgba(0,0,0,0.6);
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover {
    color: #ffd700;
}
.hero {
    text-align: center;
    margin-top: 1vh;
    padding: 0.2rem 0rem;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    margin-top: 2rem; /* or adjust this number until it looks perfect to you */
}

.highlight-box {
  font-size: 1.3rem;
  margin-bottom: 0rem;
  margin-top: 10rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn {
    background: #ffd700;
    color: #222;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
section {
    padding: 4rem 8vw;
    background: #fff;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.class-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.class-card {
    flex: 1 1 200px;
    background: #faf8f6;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: auto;
}
input, textarea {
    padding: 0.7rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
}
button[type="submit"] {
    background: #222;
    color: #fff;
    border: none;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #ffd700;
    color: #222;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-radius: 0 0 12px 12px;
}

/* Welcome section (Home page) */


.welcome-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 3rem 8vw;
    margin: 2rem auto;
    max-width: 1100px;
}
.welcome-content {
    flex: 1 1 50%;
}

.welcome-image-carousel {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
  width: 100%;
  height: 320px;         /* Set a fixed height for the image area */
  overflow: hidden;      /* Hide overflow for cropping */
}

.welcome-image-carousel img {
  width: 100%;           /* Or set width: auto; if you want full height only */
  height: 100%;
  object-fit: cover;     /* This crops edges to fill the space */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: opacity 0.5s;
}

.blinking-banner {
    width: 100%;
    background: #ffd700;
    color: #222;
    font-weight: bold;
    text-align: center;
    padding: 1rem 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: blink 1.2s steps(2, start) infinite;
}

.blinking-banner a {
    color: #0077cc;
    text-decoration: underline;
}

@keyframes blink {
    50% { opacity: 0.2; }
}


/* Board of Members section */
.board-section {
    padding: 2.5rem 0;
    text-align: center;
}
.board-members {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.board-member {
    background: #faf8f6;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 1.5rem;
    flex: 1 1 250px;
    max-width: 300px;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;    /* <-- Change this from 'row' to 'column' */
    align-items: center;
    justify-content: flex-start; /* Optional: aligns items to the top */
    min-width: 220px;
    text-align: center;           /* Center text for all, or keep only in .member-info if you want */
}

.member-info {
    text-align: left;
    flex: 1;
}
.board-member img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 0;              /* Remove left margin */
    margin-bottom: 1rem;         /* Space below the image */
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: block;
}
.board-member h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}
.board-member p {
    font-size: 0.97rem;
    color: #555;
    margin: 0;
}

/* Responsive rules */
@media (max-width: 900px) {
    .welcome-section {
        flex-direction: column;
        padding: 2rem 4vw;
    }
    .welcome-image-carousel {
        margin-top: 1.5rem;
    }
    .board-members {
        flex-direction: column;
        align-items: center;
    }
    .board-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: unset;
        max-width: 100%;
    }
    .board-member img {
        margin-left: 0;
        margin-top: 1rem;
    }
    .member-info {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .class-list {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    header, section {
        padding: 2rem 3vw;
    }
}

.two-column-section {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.column-left, .column-right {
    flex: 1;
}

.competition-list {
    list-style: disc inside;
    padding-left: 1rem;
}

.competition-list li {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.competition-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competition-gallery img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.competition-caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .two-column-section {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    .competition-gallery img {
        max-width: 100%;
    }
}
