/* ==================================
   Base Reset & Variables
   ================================== */
:root {
    --primary-color: #d32f2f; /* Classic Red, change to match your WP theme */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #eaeaea;
    --font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #b71c1c; }

.mt-30 { margin-top: 30px; }

/* ==================================
   Header & Navigation (Transparent Overlay)
   ================================== */
.site-header {
    background-color: transparent; /* Makes the background invisible */
    border-bottom: none;           /* Removes the grey line */
    padding: 20px 0;
    
    position: absolute;            /* This pulls the header on top of the image */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo a {
    color: #ffffff;
}

.site-logo h1 {
    font-size: 28px;
    margin-bottom: 2px;
    color: #ffffff; /* Changed logo text to white */
}

.site-logo span {
    font-size: 13px;
    color: #dddddd; /* Changed subtitle to light grey */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #ffffff; /* Changed menu links to white */
    font-weight: 600;
    font-size: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Adds a tiny shadow to make text pop */
}

.site-nav a:hover {
    color: var(--primary-color);
}


/* ==================================
   Hero Section
   ================================== */
.hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Increased top padding from 100px to 180px so text sits below the menu */
    padding: 180px 0 100px 0; 
    
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* Make the text white so it is readable against the image */
.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff; /* Changed to white */
}

.hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 15px auto;
    color: #eeeeee; /* Changed to light gray/white */
}

/* ==================================
   Main Layouts & Sections
   ================================== */
.section { padding: 60px 0; }
.bg-light { background-color: var(--light-bg); }
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    align-items: center;
}

/* ==================================
   Cards & Galleries
   ================================== */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.card-content { padding: 25px; }
.card-content h3 { font-size: 18px; margin-bottom: 15px; }
.card-content p { font-size: 14px; margin-bottom: 20px; color: #555; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}
.btn:hover { background-color: #b71c1c; }

/* Featured Event (Dragon boat) */
.featured-event { display: flex; flex-wrap: wrap; }
.featured-event img { flex: 1 1 40%; object-fit: cover; }
.featured-event .card-content { flex: 1 1 60%; }

/* Layout container */
.featured-event-2 {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap; /* Stacks image and text vertically on mobile devices */
}

/* Image takes 1/3 of the row */
.featured-event-2 > img {
    flex: 1;
    max-width: 33.33%;
    min-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* Content area takes 2/3 of the row */
.featured-event-2 .card-content {
    flex: 2;
    min-width: 300px;
}

/* Button style under paragraphs */
.featured-event-2 .btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background-color: #c53030;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.featured-event-2 .btn:hover {
    background-color: #9b2c2c;
}


/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    padding: 15px;
    background: #fff;
}

.gallery-caption .tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.gallery-caption p { font-size: 14px; margin: 0; font-weight: bold;}

/* ==================================
   Footer
   ================================== */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-nav { margin-bottom: 20px; }
.footer-nav a {
    color: #ddd;
    margin: 0 10px;
    font-size: 14px;
}
.footer-nav a:hover { color: #fff; }
.site-footer p { font-size: 13px; }

/* ==================================
   Responsive (Mobile) Rules
   ================================== */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .site-nav ul { margin-top: 15px; justify-content: center; }
    .featured-event { flex-direction: column; }
    .two-col { grid-template-columns: 1fr; }
    .site-logo img {
        height: 45px !important; /* Reduces header height on small screens */
    }
}

