tr:nth-child(even) {
    background-color: #f8f8f8;
}

.container {
    position: relative;
    width: 1200px;
    max-width: 100%; /* allow shrinking on smaller screens */
    margin: 0 auto;
}

.header {
    position: relative;
    height: 100px;
    text-align: center;
}

.container2 {
    position: relative;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;              /* enable flexbox */
    align-items: center;        /* vertical centering */
    justify-content: left;    /* horizontal centering */
}

h1 {
	padding-left: 5px;
}

.h1_bg {
    width: 100%;
    height: 60px;              /* fixed banner height */
    object-fit: cover;          /* crop/scale image nicely */
    display: block;
}

.container2 h1 {
    position: absolute;         /* overlay on top of image */
    margin: 0;
    color: white;
    font-family: "Arial", "Microsoft JhengHei";
    font-weight: bold;
    font-size: 2.5rem;
    text-align: left;
}


.hkg_logo {
    position: relative;
    height: 100px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.hk_logo {
    position: relative;
    height: 100px;
    max-width: 100%;
    float: right;
}


.table_div {
    margin: 0;
    position: relative;
}

table {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    border-collapse: collapse;
    border-color: azure;
    box-sizing: border-box;
    border-spacing: 2px;
    page-break-inside: auto;
    width: 100%; /* responsive table */
    max-width: 1060px;
}

table th {
    background-color: #C45206;
    font-family: 'Arial';
    color: white;
    font-size: 120%;
    font-weight: bold;
    text-align: center;
    padding: 5px 10px;
}

table td {
    font-family: 'Arial';
    font-size: 100%;
    text-align: center;
    color: #666;
    padding: 5px 10px;
}

table tr {
    page-break-inside: avoid; 
    page-break-after: auto;
}

h2 {
    border-bottom: 2px solid #C45206;
    color: #C45206;
}

thead { 
    display: table-header-group;
}
tfoot {
    display: table-footer-group;
}

/* Responsive events grid */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* auto-fit adapts */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
}

.event {
    font-size: 28px;
    color: #C45206;
    line-height: 60px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: bold;
    text-decoration: none;
    text-decoration-line: underline;

    display: block;
    text-align: center;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
    transition: background 0.3s ease;
}

.event:hover {
    background: #ffe5d0;
    color: #000;
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .container2 h1 {
        font-size: 1.5rem;
    }
    .event {
        font-size: 20px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
	.container {
		min-width: 380px;
	}
    .container2 h1 {
        font-size: 1.2rem;
    }
    .event {
        font-size: 16px;
        line-height: 32px;
    }
	.hkg_logo {
		height:auto;
	}
}
