@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

@font-face {
    font-family: 'Ralesha';
    src: url('/fonts/ralesha.otf') format('opentype'),
         url('/fonts/ralesha.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- General Styles --- */
:root {
    --color-primary: #21345B;
    --color-secondary: #E6ECF4;
    --color-accent: #CCC38F;
    --color-secondary-1: #759ED3;
    --color-contrast: #081825;
    --color-text: #1b2230;
    --color-light-text: #445069;
    --color-background: #ffffff;
    --font-brand: 'Ralesha', 'Montserrat', serif;
    --font-heading: 'Ralesha', 'Montserrat', serif;
    --font-body: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

a {
    color: var(--color-secondary-1);
    text-decoration: none;
    transition: color 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a:hover {
    color: var(--color-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-1));
    color: #fff;
    box-shadow: 0 6px 16px rgba(33, 52, 91, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(33, 52, 91, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary-1);
    border: 1px solid var(--color-secondary-1);
}

.btn-secondary:hover {
    background: var(--color-secondary-1);
    color: #fff;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--color-contrast);
    box-shadow: 0 2px 16px rgba(8,24,37,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover { transform: translateY(-1px); }
.logo-img {
    display: block;
    height: clamp(40px, 4vw, 56px);
    width: auto;
    transform-origin: center;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 12px rgba(33, 52, 91, 0.35));
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: #c9d3e6;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary-1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a.active, .nav-links a:hover {
    color: #fff;
}

.nav-links a.active::after, .nav-links a:hover::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8,24,37,0.5), rgba(8,24,37,0.5));
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

.hero-content .subtext {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e2e8f0;
}

/* --- Highlights Section --- */
.highlights {
    padding: 4rem 0;
    background-color: var(--color-secondary);
}

.highlights .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
}
.highlight .icon { display: flex; justify-content: center; align-items: center; }
.highlight {
    background: #fff;
    border: 1px solid rgba(33,52,91,0.15);
    border-radius: var(--border-radius);
    padding: 1.25rem 1rem;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(33, 52, 91, 0.12);
}

.highlight .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}
.highlight .icon svg { display: block; color: var(--color-accent); }

.highlight h3 {
    font-size: 1.5rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-contrast);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--color-accent);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #fff;
    margin-left: 1rem;
}

.social-links a:hover {
    color: var(--color-accent);
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .highlights .container { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-contrast);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .subtext { font-size: 1rem; }
}

/* --- Page Specific --- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-1));
    padding: 3rem 0;
    text-align: center;
    color: #fff;
}
.page-header .container { position: relative; }
.page-header .container::before,
.page-header .container::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 80px;
    height: 32px;
    color: var(--color-accent);
}
.page-header .container::before {
    left: 8px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 32'%3E%3Cpath d='M6 22c20-2 28-10 34-16 5-5 12-6 16-2 4 4 2 10-4 12-9 3-17-6-9-12' fill='none' stroke='%23CCC38F' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M64 18c12 6 24 8 58 8' fill='none' stroke='%23CCC38F' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='23' cy='18' r='3' fill='%23CCC38F'/%3E%3C/svg%3E");
}
.page-header .container::after {
    right: 8px;
    transform: scaleX(-1);
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 32'%3E%3Cpath d='M6 22c20-2 28-10 34-16 5-5 12-6 16-2 4 4 2 10-4 12-9 3-17-6-9-12' fill='none' stroke='%23CCC38F' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M64 18c12 6 24 8 58 8' fill='none' stroke='%23CCC38F' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='23' cy='18' r='3' fill='%23CCC38F'/%3E%3C/svg%3E");
}

.page-header h1 {
    font-size: 2.5rem;
}

.content-section {
    padding: 4rem 0;
}

.content-section .container {
    max-width: 900px;
}

/* About Page */
.about-story, .about-mission {
    margin-bottom: 3rem;
}

/* Community Page */
.testimonials {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}
.testimonial-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.testimonial {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}
.testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial cite {
    font-weight: 600;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Events Page */
.event-list {
    display: grid;
    gap: 2rem;
}
.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}
.event-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

/* Resources Page */
.resource-category {
    margin-bottom: 3rem;
}
.resource-list li {
    margin-bottom: 0.5rem;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.5rem;
}

/* Join & Contact Pages */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    position: relative;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

.community-guidelines {
    margin-top: 2rem;
}

/* Ensure footer sticks to bottom */
main { flex: 1; }

/* Typography brand enforcement */
h1 { font-family: var(--font-brand); font-weight: 400; }
h2, h3, h4, h5, h6 { font-family: var(--font-body); }

/* Decorative Burmese Kanote Accents */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.28;
}
.hero::before {
    top: 18px;
    left: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none'><path d='M10 80c35-10 50-35 55-55 2-10 15-15 25-5 10 10 5 23-5 25-20 5-45 20-55 55' stroke='%23CCC38F' stroke-width='3' stroke-linecap='round'/><path d='M35 35c8 8 18 8 26 0' stroke='%23759ED3' stroke-width='2' stroke-linecap='round'/></svg>");
}
.hero::after {
    right: 18px;
    bottom: 18px;
    transform: scaleX(-1);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none'><path d='M10 80c35-10 50-35 55-55 2-10 15-15 25-5 10 10 5 23-5 25-20 5-45 20-55 55' stroke='%23CCC38F' stroke-width='3' stroke-linecap='round'/><path d='M35 35c8 8 18 8 26 0' stroke='%23759ED3' stroke-width='2' stroke-linecap='round'/></svg>");
}
.form-container::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'><path d='M4 30c12-3 17-12 19-19 1-4 5-5 8-2 3 3 1 7-2 8-7 2-16 7-19 19' stroke='%23CCC38F' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    opacity: 0.6;
}
