/* 
 * 2026CNCC Symposium Website Styles - Refined Academic Theme
 * Palette: Oxford Blue (#002147), Metallic Gold (#D4AF37), Cool Gray (#F4F4F4), White (#FFFFFF)
 */

:root {
    --primary-color: #006400;
    /* Dark Green (Forest Green) - replacing Oxford Blue */
    /* Deep Green */
    --secondary-color: #8FBC8F;
    /* Dark Sea Green - replacing Gold/Metallic */
    /* Soft Light Green */
    --accent-color: #2E8B57;
    /* Sea Green - replacing Lighter Blue */
    /* Fresh Green Accent */
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #ffffff;
    --bg-light: #F0FFF0;
    /* Honeydew - very light green tint */
    --bg-white: #ffffff;


    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Smooth page load transition */

/* Distinct Ampersand Font - Basic Sans-Serif */
@font-face {
    font-family: 'AmpersandFont';
    src: local('Arial'), local('Helvetica'), local('Verdana'), sans-serif;
    unicode-range: U+0026;
}

body {
    font-family: 'AmpersandFont', var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    /* Increased line-height for cleaner reading */
    /* Increased for readability */
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.6s ease-out;
    /* Smooth page load transition */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    /* Increased from 30px for stronger effect */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smoother, longer easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Directional Reveals */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for children if needed */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Enhanced Visuals: Background Patterns */
.bg-light {
    background-color: var(--bg-light);
    background-image: radial-gradient(#e0f2f1 1px, transparent 1px);
    /* Polka dot pattern */
    background-size: 20px 20px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.bg-white-textured {
    background-color: #fff;
    /* Removed textured pattern */
}

/* Typography & Spacing Refinements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Specific increase for Overview cards */
.overview-grid .info-card p,
.overview-grid .info-card .highlight-text {
    font-size: 1.25rem;
    /* Increased size */
}

.overview-grid .info-card .venue-name {
    font-size: 1.4rem;
    /* Even larger for venue name */
    font-weight: bold;
    color: var(--text-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 5rem auto 4rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #eac14d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-payment {
    background-color: #fbffe4;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-payment:hover {
    background-color: #eef5c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* Force separation between Logo/Title and Menu */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between logo and text */
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Increased size */
    width: auto;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    max-width: 300px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .logo span {
        display: none;
        /* Hide long text on mobile, keep logo */
    }
}

.nav-links {
    display: flex;
    gap: 1.2rem; /* Reduced from 2rem to save space and prevent overlap */
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    /* Prevent "Stay & Venue" from breaking lines */
}

.nav-links a:not(.highlight-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:not(.highlight-link)::hover::after {
    width: 100%;
}

.highlight-link {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-size: 0.9rem !important;
}

.highlight-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    /* changed from height: 90vh to min-height: 100vh to prevent cutoff */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 140px 0 60px;
    /* Added padding to prevent overlapping with fixed navbar */
    background-color: #1a1a1a;
}

/* Placeholder pattern for background */
.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use user-provided image with a dark overlay for text readability */
    background:
        linear-gradient(rgba(0, 50, 0, 0.7), rgba(0, 30, 0, 0.8)),
        /* Dark Green Tint Overlay */
        url('assets/홈페이지 대표사진.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette effect */
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin: 0 auto;
}

/* Memorial Popup Banner Styling */
.memorial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-popup {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 3.5rem 3rem;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    color: var(--text-light);
    animation: fadeInUp 0.5s ease-out;
}

.memorial-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--secondary-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.memorial-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.memorial-close-btn:hover {
    color: #fff;
}

.memorial-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memorial-photo-popup {
    width: 280px;
    height: 420px;
    object-fit: cover;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    background-color: #111;
}

.memorial-headline-popup {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.memorial-body-popup {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.memorial-schedule-popup {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    text-align: left;
    color: #ccc;
    width: 100%;
}

.memorial-schedule-popup li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    padding-left: 14px;
    position: relative;
}

.memorial-schedule-popup li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.memorial-schedule-popup strong {
    color: var(--text-light);
}

.memorial-actions {
    margin-top: 1.5rem;
}

.memorial-today-btn {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    padding: 6px 12px;
    border: 1px solid #555;
    color: #aaa;
}

.memorial-today-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* Revised Hero Typography */
.hero-title-main {
    font-family: 'Times New Roman', serif;
    font-size: 3.5rem;
    /* Slightly reduced from 3.8 to be less overwhelming */
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    /* Softer shadow */
    letter-spacing: 0.5px;
}

.hero-subtitle-sub {
    font-family: var(--font-body);
    /* Switch to Sans-Serif (Lato) for cleaner look */
    font-weight: 400;
    /* Lighter weight */
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.2rem;
    }

    .hero-subtitle-sub {
        font-size: 1.4rem;
    }
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

.hero-detail-item i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.hero-detail-item span {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.35rem;
    /* Increased further */
    letter-spacing: 0.5px;
    color: #ffffff;
    /* Explicitly white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* stronger contrast */
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-actions .btn {
    min-width: 220px;
    /* Fixed width for equal button sizes */
    text-align: center;
}

/* Page Header (Subpages) - Mobile Only */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
    }
}

/* General Layout */
.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

/* Greetings */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Global Paragraph Style for Consistency */
.section p,
.text-block p,
.info-card p,
.Program-day p,
.download-card p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    /* Standardized size for all pages */
    color: var(--text-medium);
    line-height: 1.8;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 2rem 0;
    line-height: 1.4;
    text-align: center;
    /* Centered green text */
}

/* Specific increase for Overview cards */
.overview-grid .info-card p,
.overview-grid .info-card .highlight-text {
    font-size: 1.25rem;
    /* Increased size */
}

.overview-grid .info-card .venue-name {
    font-size: 1.4rem;
    /* Even larger for venue name */
    font-weight: bold;
    color: var(--text-dark);
}

.text-block .lead {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 300;
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.welcome-logo {
    flex: 0 0 300px;
    /* Increased from 200px */
    text-align: center;
}

.welcome-logo img {
    width: 100%;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
    }

    .welcome-logo {
        margin-bottom: 2rem;
        flex: 0 0 auto;
        width: 200px;
        /* Increased from 150px */
    }
}

/* Signatures Section */
.signatures {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    text-align: right;
}

.profile-signature {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align group to right */
    gap: 30px;
    text-align: right;
}

.profile-img {
    order: 2;
    /* Move image to the right of text */
}

.profile-info {
    order: 1;
    /* Text on the left */
}

.profile-img img {
    width: 180px;
    /* Increased size */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    border-radius: var(--radius-sm);
    /* Standard rounded corners, not circle */
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .profile-signature {
        flex-direction: column-reverse;
        /* Put image on top on mobile if needed, or keeping it side-by-side */
        align-items: center;
        text-align: center;
    }
}

/* Committee Styling Update */
.section-header-small {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-header-small h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.separator-small {
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.vip-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.vip-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    width: 300px;
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s;
    position: relative;
    /* Flex column for bottom alignment of role */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vip-card.chair {
    border-color: var(--secondary-color);
    /* Gold */
    background: linear-gradient(to bottom, #fff, #fdfbf7);
}

.vip-card.vice-chair {
    border-color: #888;
    /* Silver/Gray */
    width: 280px;
}

.vip-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.vip-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    /* Fixed height for alignment */
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.vip-affil {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    /* Fixed height for alignment */
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.vip-role {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-top: auto;
    /* Push to bottom */
}

/* Advisers Grid */
.committee-group-section {
    margin-bottom: 4rem;
}

.group-title {
    font-size: 1.8rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.adviser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.member-card strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.member-card span {
    font-size: 0.9rem;
    color: #666;
}

/* Clean List for Organization Committee */
.org-list-container {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.clean-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem 2rem;
}

.clean-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.clean-list li strong {
    color: var(--text-dark);
}

.clean-list li span {
    color: #777;
    font-size: 0.9rem;
    text-align: right;
}

@media (max-width: 768px) {
    .clean-list {
        grid-template-columns: 1fr;
    }
}


/* Country Split Grid */
.country-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.country-column {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--radius-md);
    border-top: 4px solid #ddd;
}

.country-heading {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.column-flag {
    width: 60px;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-name {
    font-weight: 700;
}

.clean-list-simple {
    list-style: none;
}

.clean-list-simple li {
    margin-bottom: 1rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.clean-list-simple li strong {
    color: var(--text-dark);
    font-size: 1.15rem;
    /* Increased to match paragraph text */
}

.clean-list-simple li span {
    color: #666;
    font-size: 1rem;
    /* Increased from 0.9rem */
}

/* History Intro Section with Watermark Background */
.history-intro-section {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 8rem;
    min-height: 55vw; /* Approximately 16:9 ratio based on screen width */
    max-height: 80vh; /* Prevent it from being too huge on ultra-wide screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-intro-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/history_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6; 
    z-index: 0; 
}

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.badge-flag {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.country-badge.korea {
    background-color: #003478;
    /* KR Blue */
}

.country-badge.japan {
    background-color: #BC002D;
    /* JP Red */
}

/* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.logo-item {
    text-align: center;
    max-width: 200px;
}

.logo-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    transition: filter 0.3s ease;
    /* Only transition filter */
    /* Removed transform/scale to prevent flickering completely */
}

.logo-item img:hover {
    filter: brightness(1.1);
    /* Subtle brightness increase instead of scaling */
    /* transform: scale(1.05); REMOVED */
}

.logo-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .country-split-grid {
        grid-template-columns: 1fr;
    }
}


.info-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.map-container {
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #ddd;
}
/* History Alternating Timeline */
.history-timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.history-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-event {
    padding: 0 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 1rem;
}

.timeline-event.left-side {
    left: 0;
    text-align: right;
}

.timeline-event.right-side {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 3px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.timeline-marker img.timeline-flag {
    width: 32px;
    height: auto;
    border-radius: 2px;
}

.left-side .timeline-marker {
    right: -25px;
}

.right-side .timeline-marker {
    left: -25px;
}

.timeline-content {
    padding: 2rem;
    background-color: #fff;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-event.korea .timeline-content {
    border-top-color: #003478; /* KR Blue */
}

.timeline-event.japan .timeline-content {
    border-top-color: #BC002D; /* JP Red */
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-event h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.timeline-location {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem !important;
}

.timeline-photo {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.timeline-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Timeline Responsive for Mobile */
@media (max-width: 768px) {
    .history-timeline::after {
        left: 31px; 
    }
    
    .timeline-event {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }
    
    .timeline-event.left-side, .timeline-event.right-side {
        left: 0;
    }
    
    .left-side .timeline-marker, .right-side .timeline-marker {
        left: 6px; 
    }
}

/* Timeline/Key Dates - Clean Vertical Look */
.timeline-clean {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-row {
    display: flex;
    padding-bottom: 3rem;
}

.timeline-row:last-child {
    padding-bottom: 0;
}

.date-col {
    flex: 0 0 150px;
    text-align: right;
    padding-right: 30px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding-top: 5px;
}

.marker-col {
    flex: 0 0 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PDF Container Styles */
.pdf-container {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.pdf-item {
    flex: 1;
    /* Equal width */
    min-width: 300px;
    /* Minimum width before wrapping */
}

.pdf-item h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-item iframe {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    background: #f9f9f9;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    background: #fff;
    z-index: 1;
}

.dot.filled {
    background: var(--secondary-color);
}

.line {
    width: 2px;
    height: 100%;
    background: #e0e0e0;
    position: absolute;
    top: 20px;
}

.content-col {
    flex: 1;
    padding-left: 30px;
    padding-top: 2px;
}

.content-col h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 5px;
}

.action-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Downloads Card */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.d-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.download-card p {
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #004d00;
    /* Darker Green for Footer */
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.org-name {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    line-height: 1.6;
    max-width: 300px;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 15px;
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-list a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.signatures {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .text-block p {
        text-align: left;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .timeline-row {
        flex-direction: column;
    }

    .date-col {
        text-align: left;
        padding-bottom: 10px;
        padding-left: 50px;
        font-size: 1.3rem;
        /* Increased font size for date */
    }

    .content-col h3 {
        font-size: 1.15rem;
        /* Decreased font size for content title */
    }

    .marker-col {
        position: absolute;
        left: 0;
        height: 100%;
    }
}

/* Program Page Styles */
.Program-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.Program-day {
    background: #fff;
    border-left: 5px solid var(--secondary-color);
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Program-day:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.Program-day h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    /* Adjusted size */
    color: var(--primary-color);
}

.Program-day p {
    font-size: 1.2rem;
    /* Adjusted size */
    color: var(--text-dark);
    font-weight: 500;
}

.alert-box {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
    color: #0d47a1;
    padding: 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.alert-box i {
    font-size: 2rem;
}

/* Accent Text Colors */
.text-accent-red {
    color: #c0392b !important;
    /* Harmonious Red (lighter than pure red, darker than pink) */
}

.font-times {
    font-family: 'Times New Roman', serif !important;
}

/* Submission Page Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 280px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Mobile Optimization */
/* Mobile Optimization */
html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: block;
        position: relative;
        /* relative required for z-index to work */
        z-index: 1002;
        /* Higher than menu */
        cursor: pointer;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: -150%;
        right: 0;
        height: auto;
        min-height: 50vh;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: top 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        padding-bottom: 20px;
        z-index: 1001;
        /* Above navbar, below toggle */
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    /* Hero Section */
    .hero-title-main {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .hero-subtitle-sub {
        font-size: 1.2rem !important;
        letter-spacing: 1px;
    }

    .hero-tagline {
        font-size: 1.1rem !important;
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-detail-item span {
        font-size: 1.1rem !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Section Padding */
    .section {
        padding: 4rem 0 !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    /* Grids & Flex Containers */
    .overview-grid,
    .download-grid,
    .adviser-grid,
    .clean-list,
    .contact-list,
    .footer-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .vip-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .vip-card,
    .member-card,
    .download-card {
        width: 100% !important;
        max-width: 350px !important;
    }

    /* Footer */
    .footer-row {
        text-align: center;
        gap: 2rem;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .org-name {
        margin: 0 auto;
        text-align: center;
    }

    .contact-list {
        padding: 0;
        margin: 0 auto;
    }

    .contact-list li {
        justify-content: center;
        text-align: center;
    }

    /* Welcome Message */
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-logo {
        margin-bottom: 1.5rem;
    }

    .signatures {
        text-align: center;
    }

    .profile-signature {
        justify-content: center;
    }

    /* Memorial Popup Mobile Adjustments */
    .memorial-popup {
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }
    
    .memorial-photo-popup {
        width: 160px;
        height: 240px;
        margin-bottom: 1rem;
    }
    
    .memorial-headline-popup {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .memorial-body-popup {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .memorial-schedule-popup {
        font-size: 0.85rem;
    }
    
    .memorial-schedule-popup li {
        margin-bottom: 0.3rem;
    }
}

/* D-Day Badge Styles */
.nav-dday-item {
    display: flex;
    align-items: center;
    margin-left: 60px; /* Reduced from 120px to prevent pushing menu into logo */
}

.dday-badge {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700; 
    font-family: var(--font-heading);
    font-size: 1.2rem; 
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 30px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.dday-badge:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .nav-dday-item {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
    
    .dday-badge {
        font-size: 1.1rem;
        padding: 5px 15px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content li a {
    color: var(--text-dark, #333);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-content li a:hover,
.dropdown-content li a.active {
    background-color: var(--bg-light, #f4f4f4);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* For mobile menu adjusting */
@media (max-width: 768px) {
    .dropdown-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 0;
        left: 0;
        transform: none;
        padding-top: 10px;
    }
    .dropdown-content li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    .dropdown-content li a {
        padding: 8px 16px;
        font-size: 1rem;
    }
}

/* Mobile Optimizations for Layout */
@media (max-width: 768px) {
    .section-divider {
        margin: 3rem auto 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }

    .transport-table th, .transport-table td, 
    .hotel-table th, .hotel-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .transport-table {
        min-width: 600px; /* Overrides inline styles if we used class instead of inline, but inline styles win. We will rely on overflow-x auto. */
    }
}

/* Smooth scrolling for horizontal tables */
.overflow-x-wrapper, div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
}
