/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #333;
}

/* --- Header & Layout --- */
header {
    background: #003366;
    color: white;
    padding: 1px;
    text-align: center;
    position: relative; /* Required for the absolute spinner to position correctly */
    min-height: 80px;   /* Ensures the blue bar doesn't collapse */
}

/* Ensure the content stays below the nav bar */
.header-body-content {
    display: flex;
    align-items: center; /* Vertically centers logo/text */
    justify-content: space-between; /* Puts logo on one side, director on other */
    padding: 1px;
    clear: both; 
}

/* --- Navigation & Links --- */
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

#director-photo {
    display: block;
    width: 100px !important;
    height: auto !important;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Content & Hero --- */
.hero {
    background: #0055a5;
    color: white;
    padding: 40px;
    text-align: center;
}

.content-wrapper {
    width: 70%;
    margin: 0 auto;
    padding: 20px 0;
}

.content {
    padding: 20px 40px;
}

.service-list li {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-left: 5px solid #003366;
    list-style: none;
}

/* --- Contact Form --- */
#contactForm {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    justify-content: center; 
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    max-width: 100%; /* Better for mobile */
    width: 400px;
    height: 150px;
}

#emailText {
    margin-bottom: 24px;
}

/* --- Loading States & Spinners --- */

/* 1. The Header Hourglass Logic */
.header-spinner {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    display: none !important; /* Hidden by default */
}

/* Only show when the parent header has the disabled class */
.header-disabled .header-spinner {
    display: inline-block !important;
}

/* Disable interactions when loading */
.header-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait;
}

/* 2. Full Page Overlay Spinner (if used) */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #0078ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Footer --- */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/*HEADER*/
.header-layout {
    width: auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.header-layout td {
    vertical-align: top;
    padding: 10px;
}

/* LEFT COLUMN */
.col-left {
    text-align: left;
}

.logo-main {
    width: 120px;
    display: block;
    margin-bottom: 10px;
    height: auto;

}

.director-photo {
    width: 100px;
    display: block;
    margin-top: 10px;
}

/* MIDDLE COLUMN */
.col-middle {
    width: 100%;
    text-align: center;
}

/* MENU ON ONE LINE */
.main-menu {
    white-space: nowrap;      /* forces single line */
    background: #003366;

}

.main-menu a {
    display: inline-block;
    padding: 12px 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* RIGHT COLUMN */
.col-right {
    text-align: center;
}
/*..Languages...*/

@media (max-width: 480px) {
    .lang-select {
        width: 100%;
    }
}

.lang-select {
    width: 100px;
    overflow-y: auto;
    background: #003366;
    color: #ffffff;
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Scrollbar for WebKit browsers (Chrome, Edge, Safari) */
.lang-select::-webkit-scrollbar {
    width: 10px;              /* scrollbar width */
}

.lang-select::-webkit-scrollbar-track {
    background: #002244;      /* track colour */
    border-radius: 10px;
}

.lang-select::-webkit-scrollbar-thumb {
    background: #FFD700;      /* scrollbar thumb colour */
    border-radius: 10px;
    border: 2px solid #002244; /* creates a nice inset effect */
}

.lang-select::-webkit-scrollbar-thumb:hover {
    background: #ffea80;      /* lighter gold on hover */
}

