/* Modern Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Rotary Colors */
    --color-rotary-blue: #00246c;
    /* Official Rotary Blue */
    --color-rotary-gold: #fece2f;
    /* Official Rotary Gold */

    /* Modern Palette based on Rotary Colors */
    --color-primary: #00246c;
    --color-primary-dark: #001848;
    --color-primary-light: #335492;
    --color-accent: #fece2f;
    --color-accent-hover: #e5b825;

    /* Neutrals */
    --color-bg-body: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-light: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, #fece2f 0%, #d4aa1e 100%);

    /* Typography */
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    /* Fallback until Google Fonts loaded */
    --font-heading: 'Noto Serif JP', serif;
    /* Planning to use for elegance */

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(254, 206, 47, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-bg-white);
    color: var(--color-bg-white);
    background: transparent;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* Initial Layout Stubs */
header {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    vertical-align: middle;
    transition: transform var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links li a[href="reports.html"] {
    font-weight: 700;
}


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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--color-bg-body);
    color: var(--color-accent);
}

.dropdown-content a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

/* Show dropdown on hover (Desktop) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(254, 206, 47, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }

    .nav-container {
        height: 50px;
        padding: 0;
    }

    .logo {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        font-size: 0.85rem;
        gap: 4px;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .logo img {
        height: 22px;
        flex-shrink: 0;
        width: auto;
    }

    .menu-toggle {
        display: block;
        padding: 0 5px;
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Will be toggled via JS */
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: var(--color-bg-white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

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

    .menu-toggle {
        display: block;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Dropdown - Always Visible */
    .dropdown .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        min-width: 100%;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: var(--color-text-muted);
    }

    .dropdown-content a:hover {
        background-color: transparent;
        color: var(--color-accent);
    }

    /* Hide the carets on mobile if desired, or keep them */
    .dropdown>a>i {
        display: none;
    }
}

/* Reports Page Specific */
.report-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-left: 5px solid var(--color-primary);
    overflow: hidden;
    height: 100%;
}

.report-card a {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1.2rem;
    height: 100%;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: #f0f7ff;
}

.report-icon {
    font-size: 2.8rem;
    color: #e74c3c;
    /* PDF Red */
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-info {
    flex: 1;
}

.report-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1.35rem;
    color: var(--color-primary);
    font-weight: 700;
    transition: var(--transition-fast);
}

.report-card:hover .report-info h4 {
    color: var(--color-primary-light);
}

.report-date {
    display: block;
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.report-action {
    color: var(--color-primary);
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all var(--transition-normal);
}

.report-card:hover .report-action {
    opacity: 1;
    transform: translateX(5px);
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(0, 36, 108, 0.7), rgba(0, 36, 108, 0.5)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 10rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 4.5rem;
    /* Significant increase for visibility */
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
    color: white;
    /* Ensure it stays white */
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Footer Styles */
#main-footer a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#main-footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

#main-footer a::after {
    content: '\f08e';
    /* Font Awesome external-link icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

#main-footer a:hover::after {
    opacity: 1;
}

/* Activity Cards */
.activity-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-primary);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.activity-card .image-wrapper {
    height: 200px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.activity-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.activity-card h4 {
    margin-bottom: 1rem;
}

.activity-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.activity-card .read-more {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
}

.activity-card .read-more:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}