:root {
    /* Light Mode */
   /* Light Mode */
    --heading_colour: #1B4765;
    --text-color: #38454F;
    --button-text-color: #F8FCFE;
    --darkbluetext: #164562;
    --table-head-bg: #3E8DB4;
    --warmtan: #F2C288;
    --borders: #9FAEB7;

    --categories_button_bg: #3E8DB4;
    --categories_button_bg_hover: #6BB89C;
    --lesson_button_bg: #6BB89C;
    --lesson_button_bg_hover: #3E8DB4;
    --portal_button_bg: #3E8DB4;
    --portal_button_bg_hover: #6BB89C;
    --answer-btn: #3E8DB4;
    --answer-btn-selected: #6BB89C;

    --bg-color: #F6FAFC;
    --sidemenu: #EAF4F9;
    --table-odd:#6BB89C;
    --table-even: #3E8DB4;

    --phras-p: #E8F5E9;
    --phras-a: #E3F2FD;


    --interactive-section:#E1E8EC;

    --cardbg: #f5f7fa;

    --green1:#DCE9E4;
    --green2:#91BAAB;
    --green3:#437e69;
    --green4:#14241F;

    --blue1:#D7E2F2;
    --blue2:#6D9AD5;
    --blue3:#2E5E9E;
    --blue4:#091427;
}

.dark-mode {
    --heading_colour: #D9ECF5;
    --text-color: #F8FCFE;
    --button-text-color: #F8FCFE;
    --darkbluetext: #D9ECF5;
    --table-head-bg: #275E81;
    --warmtan: #BB844B;
    --borders: #576977;

    --categories_button_bg: #275E81;
    --categories_button_bg_hover: #0E4A40;
    --lesson_button_bg: #0E4A40;
    --lesson_button_bg_hover: #275E81;
    --portal_button_bg: #0E4A40;
    --portal_button_bg_hover: #275E81;
    --answer-btn: #275E81;
    --answer-btn-selected: #0E4A40;

    --bg-color: #0D2636;
    --sidemenu: #164562;
    --table-odd:#0E4A40;
    --table-even: #275E81;

    --phras-p: #305737;
    --phras-a: #36536A;

    --interactive-section:#3B3B3B;

}

body {
    overflow-x: hidden;
    background: var(--blue1);
    font-size:1rem;
}
body, input, select, button, table {
    font-family: 'B612', Arial, sans-serif;
    font-size:16px;
}
/* Menu Bar */
/* Menu Container */
.menu-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--bg-color);
    gap: 15px;
    z-index: 1200;
    border-bottom: 2px solid var(--card-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* subtle bottom shadow */
}

/* Portal Button Links */
.portal-button {
    color: var(--primary-text);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #E0E7F0; /* slightly lighter */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.portal-button:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #E0E7F0;/* match .portal-button default */
    min-width: 220px;
    font-weight:bold;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1300;
    overflow: hidden;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: var(--primary-text);
    text-decoration: none;#
    font-weight:bold;
    background-color: #E0E7F0; /* same as normal button */
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.15); /* exactly match .portal-button:hover */
}




.dropdown:hover .dropdown-content {
    display: block;
}


/* Showcase Container */
.showcase-container {
    margin-top: 100px;
    width: 94%;
    max-width: 94%; /* Optional: for nice max width */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background-color: #f5f7fa;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Showcase Cards */
.showcase {
    background: linear-gradient(135deg, #337494, #4596BF);
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%; /* Let it fully fit within the grid cell */
    box-sizing: border-box; /* Ensures padding doesn't cause overflow */
}



.showcase h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
    text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.08);
}

.showcase p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.no-showcase .card-container {
    margin-top: 100px;
}
.showcase-content {
    display: flex;
    align-items: left;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* optional for responsiveness */
    padding: 1rem 2rem;
    padding-left:50px;
}
.showcase-img {
    width: 400px;       /* fixed width */
    height: 250px;      /* fixed height */
    object-fit: cover;  /* crop and fill */
    flex-shrink: 0;
}


.showcase-text {
    flex: 1;
    text-align: left;
    color: var(--primary-text);
}
.showcase-text-center {
padding-top:20px;
    flex: 1;
    text-align: center;
    color: var(--primary-text);
}
@media (max-width: 768px) {
    .showcase-content {
        flex-direction: column;
        text-align: center;
    }

    .showcase-text {
        margin: 1rem 0;
    }
}
.card-container {
    width: 94%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; /* Increased for better spacing */
    padding: 2rem;
    background: #f5f7fa;
    margin: 22px auto;
    border-radius: 8px;
}

.card.card-wide {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .card.card-wide {
        grid-column: span 1;
    }
}
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
    font-size: 1.55rem;
    color: var(--primary-text);
}

.card p {
    color: var(--primary-text);
    font-size: 1.2rem;
}

.card a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.75rem;
}

.card a:hover {
    text-decoration: underline;
}

/* Form Styles */
form {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
    margin: 20px auto;
}
.wide-form form {
    max-width: none;
    width: 96%;
}




label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #0077cc;
}
input[type="text"],
input[type="url"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    border-color: #0077cc;
    outline: none;
}
.alert.success {
    background-color:#f5a623;
    border-left: 4px solid #0077cc;
    padding: 10px 15px;
    margin: 15px 0;
    font-weight: bold;
    color: #f0f4f8;
}
ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

ul li {
    background: #f0f4f8;
    border-left: 5px solid #0077cc;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

ul li:hover {
    background: #e2ebf3;
}

.bluebar {
    background: #f0f4f8;
    border-left: 5px solid #0077cc;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.vfr { color: green; }
.mvfr { color: blue; }
.ifr { color: orange; }
.lifr { color: red; }
.unknown { color: gray; }


.event-block {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-block h3 {
    margin-top: 0;
    color: #0077cc;
}
.event-block h4 {
    margin-top: 0;
    color: #0077cc;
}

.event-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 6px;
}


.event-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 10px;
}

.event-image {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.event-details {
    flex: 1;
}


.calendar-link {
    color: #0077cc;
    font-weight: bold;
    text-decoration: none;
}

.calendar-link:hover {
    text-decoration: underline;
}
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}
table {
    min-width: 100%; /* so scroll only activates when needed */
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

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

tr:nth-child(even) {
    background-color: #f0f4f8; /* Matches your <li> background */
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

th {
    background-color: #0077cc;
    color: white;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 92%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 16px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* optional, lets user adjust height */
    font-family: inherit; /* keeps consistency across fields */
}

input:focus,
select:focus,
textarea:focus {
    border-color: #f5a623;
    box-shadow: 0 0 5px rgba(245, 166, 35, 0.4);
    outline: none;
}

button[type="submit"] {
    background-color: #0077cc;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #d98f04;
}

/* Theme Toggle Button */
button.theme-toggle {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-text);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* Constrain the accordion card */
.card.accordion-card {
    max-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.pooleys-layout {
    font-family: "Segoe UI", sans-serif;
    background: #fff;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    border: 1px solid #ccc;
}

.pooleys-layout h2.ident {
    font-size: 28px;
    margin-bottom: 10px;
}

.pooleys-layout h3 {
    margin-top: 25px;
    color: #004080;
    border-bottom: 1px dotted #ccc;
}

.pooleys-layout pre {
    background-color: #f5f5f5;
    padding: 8px;
    font-size: 17px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.image-block {
    max-width: 100%;
    margin: 10px 0;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-family: 'Material Symbols Outlined';
    vertical-align: middle;
    margin-right: 4px;
}
.runway-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 15px;
}

.runway-table th,
.runway-table td {
    border: 1px solid #ccc;
    padding: 3px 3px;
    text-align: center;
}

.runway-table thead {
    background-color: #f0f0f0;
}

/* Style the toggle */
.accordion-toggle {
    background-color: var(--accent-bg, #ffe9cc);
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
}

/* Style the content */
.accordion-content {
    overflow-y: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0 12px;
}

/* When active */
.accordion-toggle.active + .accordion-content {
    max-height: 180px; /* adjustable scroll height */
}


.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-toggle {
    background-color: var(--accent-bg, #ffe9cc);
    color: var(--primary-text, #333);
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}

.accordion-toggle:hover {
    background-color: #f7dcae;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--box-bg, #fffaf5);
    padding: 0 16px;
}