/* ==========================================================================
   1. FONTS & RESET / GLOBALS
   ========================================================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #ffffff;
}

html * {
    font-family: Arial, Helvetica, sans-serif;
}

/* Update h1 and add h2 font sizes globally */
h1 {
    text-align: center;
    font-size: 22px; /* Adjust to your preferred size */
}

h2 {
	text-align: center;
    font-size: 18px; /* Adjust to your preferred size */
}

/* Table layout setup */
table {
    border-collapse: collapse;    /* Merges borders into clean single lines */
}

/* Light grey, thin borders */
table, th, td {
    border: 1px solid #e0e0e0;    /* 1px = thin line, #e0e0e0 = soft light grey */
}

/* Padding to give content room to breathe */
th, td {
    padding: 8px 12px;
}

img.center {
    display: block;
    margin: 0 auto;
}

.clearfix::after,
.row::after {
    content: "";
    clear: both;
    display: table;
}

.column1.middle1 {
    line-height: 1.3; /* Reduces line spacing (default was 1.6) */
}

/* Ensure parent spans 100% width and acts as a flex container */
.tab-button-container {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    box-sizing: border-box;
    gap: 2px; /* Small optional space between buttons */
}

/* Force each tab button to grow equally to fill 100% width */
.tab-button-container > button,
.tab-button-container > .tablink {
    flex: 1 1 0px !important; /* Forces equal width distribution */
    width: 100% !important;
    max-width: 100% !important;
    display: block !important; /* Overrides inline-block from W3.CSS */
    
    /* Text formatting so long names fit cleanly */
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 8px 4px !important;
    box-sizing: border-box !important;
}

/* Global link underline style */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & LAYOUT GRID SYSTEM
   ========================================================================== */
/* Header Banner Columns */
.column1 {
    float: left;
    padding: 10px;
}

.left1 { width: 10%; }
.middle1 { width: 75%; }
.right1 { width: 15%; }

/* Two Unequal Columns Layout (Main Body) */
.column {
    float: left;
    padding: 10px;
    min-height: 800px;
    transition: width 0.3s ease;
}

.left { width: 14%; }
.middle { width: 84%; }

/* Header Banner Titles */
.banner-title-hi {
    color: orange;
    font-size: 24px;
    font-weight: bold;
}

.banner-title-en {
    color: CornflowerBlue;
    font-size: 24px;
    font-weight: bold;
}

.banner-title-sub {
    color: green;
    font-size: 16px;
    font-weight: bold;
}

/* ==========================================================================
   3. NAVIGATION & W3 OVERRIDES
   ========================================================================== */
.w3-bar {
    background-color: #AFCDEF !important;
}

.w3-button {
    font-weight: bold;
}

.nav-btn-home {
    background-color: #DEF9AC !important;
    border-right: 1px solid #000000;
}

.nav-btn-bordered {
    border-right: 1px solid #000000;
}

/* ==========================================================================
   4. SLIDESHOW / BANNER CAROUSEL
   ========================================================================== */
.mySlides {
    display: none;
}

.w3-left, 
.w3-right, 
.w3-badge {
    cursor: pointer;
}

.w3-badge {
    height: 13px;
    width: 13px;
    padding: 0;
}

/* ==========================================================================
   5. BREADCRUMBS
   ========================================================================== */
ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    background-color: #AFCDEF;
    margin: 0;
}

ul.breadcrumb li {
    display: inline;
    font-size: 14px;
}

ul.breadcrumb li+li:before {
    padding: 8px;
    color: #000000;
    content: "/\00a0";
}

ul.breadcrumb li a {
    color: #0275d8;
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
}

/* ==========================================================================
   6. EVENT GALLERY CARDS & GRID
   ========================================================================== */
.gallery-wrapper {
    background-color: #ffffff;
    padding: 20px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px; /* Optional: widen container to comfortably fit 4 cards */
    margin: 0 auto;
}

.gallery-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: #eef2f7;
    max-height: 310px;
    overflow: hidden;
}

.card-images-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.card-images-grid img:hover {
    opacity: 0.85;
}

.more-photos-wrapper {
    position: relative;
    cursor: pointer;
}

.more-photos-wrapper img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.more-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.more-photos-wrapper:hover .more-badge {
    background: rgba(0, 0, 0, 0.75);
}

.card-caption {
    padding: 16px;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    flex-grow: 1;
}

/* ==========================================================================
   7. LIGHTBOX MODAL & NAVIGATION ARROWS
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal img {
    max-width: 80%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev, 
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-prev:hover, 
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    color: #ccc;
    margin-top: 15px;
    font-size: 15px;
    letter-spacing: 1px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footbar {
    overflow: hidden;
    background-color: #333333;
    background-image: url('../images/footer black.jpg');
    bottom: 0;
    width: 100%;
}

.footbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 8px 8px;
    text-decoration: none;
    font-size: 13px;
}

.footbar a:hover {
    background-color: #111111;
    color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 768px) {
    .column1.left1, 
    .column1.middle1, 
    .column1.right1,
    .column.left, 
    .column.middle {
        width: 100%;
        float: none;
    }

    .column1.left1 img,
    .column1.right1 img {
        float: none !important;
        margin: 0 auto;
        display: block;
    }

    .footbar a {
        float: none;
        display: block;
        text-align: center;
    }
}

/* ==========================================================================
   10. PRINT STYLES
   ========================================================================== */
@media print {
    /* Paste the contents of your old css/print.css here */
}

@media print {
    /* Paste the contents of your old css/print_1.css here */
}