/* Shared Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #a2c67b;
    color: #fff;
    padding: 1rem 2rem;
}
.header-left { max-width: 95%; }
.header-left h1 {
  font-family: var(--header-font);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
}
.header-left h2 {
    font-family: var(--header-font);
    font-size: clamp(2.0rem, 5vw, 3.2rem);
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
  }
.header-left a { color: #fff; text-decoration: none; }
.header-left p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 0.2em 0;
}

/* NAVIGATION */
nav {
    background: #2a2d34;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 0.8rem 2rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(67,67,67,0.06);
    z-index: 2;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}
  nav a {
    color: #f9f9fb;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(1.08rem, 2vw, 1.13rem);
    padding: .3em 0;
    transition: color 0.21s cubic-bezier(0.4,0.08,0.24,1), border-color 0.23s;
    position: relative;
}
  nav a::after {
    content: "";
    display: block;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg,#ba8cf7,#71dac6);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.23s cubic-bezier(.12,.74,.58,1.03);
    border-radius: 2.5px;
}
  nav a:hover,
  nav a:focus {
    color: #66e0a3;
    outline: none;
}
  nav a:hover::after,
  nav a:focus::after {
    width: 100%;
}
  nav a.active,
  nav a[aria-current="page"] {
    color: #ffca6f;
    font-weight: bold;
}
  nav a.active::after,
  nav a[aria-current="page"]::after {
    width: 100%;
    background: linear-gradient(90deg,#eac86f,#c19ffe);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 5rem;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.container p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.container ul {
    font-size: 1.2rem;
    padding-left: 1.5rem;
}

.container ul li {
    margin-bottom: 0.5rem;
}


h1, h2 {
    color: var(--primary-color);
}

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #777;
}

/* Table Style for Schedule */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

th {
    background-color: var(--primary-color);
    color: white;
}

/* FAQ Accordion Styles */
details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

details[open] {
    border-color: #a2c67b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

summary {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    list-style: none; /* Removes default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: "＋";
    color: #a2c67b;
    font-size: 1.2rem;
}

details[open] summary::after {
    content: "－";
}

.faq-content {
    padding: 1rem;
    border-top: 1px solid #eee;
    font-size: 1rem;
    color: #444;
}

.faq-content a {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    nav {
        flex-direction: column; /* This stacks the links vertically */
        gap: 0.5rem;            /* Reduces space between stacked links */
        padding: 1rem 0;        /* Adjusts padding for the vertical stack */
        align-items: center;    /* Keeps links centered */
    }

    nav a {
        display: inline-block;  /* Changed from 'block' to keep the underline effect clean */
        margin: 5px 0;          /* Vertical spacing between links */
        width: auto;            /* Prevents the link from forcing a horizontal overflow */
    }
}