/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Medium screens (e.g. small laptops / large tablets in landscape): slightly tighter nav spacing */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-menu {
        gap: 1.25rem;
        margin-left: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.95rem;
    }
}

/* Backdrop when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 900;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a7e1;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu i {
    font-size: 0.75rem;
}

.dropdown > a i { transition: var(--transition); }

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 26px;
    height: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
    transform-origin: center;
    border-radius: 2px;
}

/* default positions: top / middle / bottom */
.mobile-menu-toggle span:nth-child(1) {
    top: 3px;
}
.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-toggle span:nth-child(3) {
    bottom: 3px;
}

/* Hamburger -> X animation (perfectly centered) */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #00a7e1 100%);
    color: var(--white);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/water-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0;
}

/* IWA Logo Large */
.iwa-logo-large {
    margin-bottom: 2rem;
    display: inline-block;
}

.iwa-text {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5rem;
    margin-bottom: -0.5rem;
}

.iwa-wave {
    height: 8px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    margin-bottom: 0.5rem;
}

.iwa-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
    text-transform: lowercase;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-info {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-date,
.hero-location {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Key Dates Section */
.key-dates-section {
    background-color: var(--bg-light);
}

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

.date-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.date-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.date-card.highlight .date-icon,
.date-card.highlight h3,
.date-card.highlight .date {
    color: var(--white);
}

.date-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.date-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.date-card .date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Topics Section */
.topics-section {
    background-color: var(--white);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.topic-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.topic-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-light);
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.topic-card:hover .topic-number {
    color: var(--secondary-color);
}

.topic-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.topic-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Organizers Section */
.organizers-section {
    background-color: var(--bg-light);
}

.organizer-category {
    margin-bottom: 3rem;
}

.organizer-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.organizer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.organizer-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.organizer-item.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.organizer-item p {
    font-size: 1rem;
    color: var(--text-dark);
}

.organizer-item.highlight p {
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-date {
    margin-top: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-col i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* Responsive Design: use hamburger menu on phones and tablets up to 1024px */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* align just below header */
        left: -100%;
        flex-direction: column;
        /* Softer vertical gradient for mobile menu */
        background: linear-gradient(180deg, #005da8 0%, #006fc5 45%, #00a7e1 100%);
        width: 100%;
        margin: 0;
        text-align: left;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        padding: 0.5rem;
        gap: 0;
        border-radius: 0 0 12px 12px;
        border-top: 1px solid rgba(255,255,255,0.2); /* only top edge to avoid inset effect */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu a { display: block; padding: 0.75rem 1rem; border-radius: 8px; color:#fff; }
    .nav-menu a:hover { background-color: rgba(255,255,255,0.12); color: #fff; }
    .nav-menu a.active { color: #ffe082; font-weight: 600; }

    /* Mobile menu header row */
    .nav-menu .menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem 0.5rem 1rem;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        margin-bottom: 0.25rem;
    }
    .nav-menu .menu-header .menu-close {
        background: none;
        border: none;
        color: rgba(255,255,255,0.85);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
    .nav-menu .menu-header .menu-close:hover {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        display: none;
        padding: 0.25rem 0.25rem 0.5rem 1rem;
        border-radius: 8px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown.active > a i { transform: rotate(180deg); }
    .dropdown-menu a { color:#fff; }
    .dropdown-menu a:hover { background: rgba(255,255,255,0.08); color:#fff; }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .iwa-text {
        font-size: 3rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .highlights-grid,
    .dates-grid,
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

