/* Font imports */
@font-face {
    font-family: 'DM Sans';
    src: url('../font/DMSans40pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../font/DMSans40pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables */
:root {
    --header-height: 106px;
    --text-color: #222;
    --light-text-color: #666;
    --primary-color: #04b778;
    --secondary-color: #f8f9fa;
    --border-color: #e9ecef;
}

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

main {
    margin-top: -2.5rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    padding-top: 106px;
    font-size: 16px;
}

/* Typography */
p, li, ul, ol, .organizer-list, .affiliation {
    font-weight: 400;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 30px;
}

p {
    margin-bottom: 15px;
    color: var(--light-text-color);
}

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

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: rgba(248, 249, 250, 0.86);
}

/* Header */
header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
    padding: 18px 0;
}

header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: max-height 0.3s;
}

nav a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
    padding: 8px 16px;
    border-radius: 6px;
}

nav a.active,
nav a:focus {
    background: #f2f2f2;
    color: #222;
}

nav a:hover {
    color: var(--primary-color);
    background: #f7f7f7;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: 18px;
    z-index: 2001;
}

.hamburger span {
    height: 4px;
    width: 28px;
    background: #222;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height));
    padding-bottom: 60px;
    text-align: center;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Hero Visual Container - Side by Side Layout */
.hero-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    /* margin-top: -3rem; */
    flex-wrap: wrap;
}

/* Analog Clock Background */
.analog-clock-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
}

/* Workshop Screenshot Styles */
.workshop-screenshot-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px; /* Match the scaled clock height (200px * 1.2) */
}

.workshop-screenshot-link {
    display: block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.workshop-screenshot-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.workshop-screenshot {
    max-width: 320px;
    max-height: 250px; /* Slightly less than container height for padding */
    height: auto;
    width: auto;
    opacity: 0.8;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain; /* Ensure the image scales properly */
}

.workshop-screenshot:hover {
    opacity: 1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-visual-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .workshop-screenshot {
        max-width: 250px;
    }
}

.analog-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(2.5);
}

.clock-face {
    width: 400px;
    height: 400px;
    border: 12px solid var(--text-color);
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.clock-center {
    width: 24px;
    height: 24px;
    background: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hour-hand, .minute-hand, .second-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

.hour-hand {
    width: 12px;
    height: 120px;
    background: var(--text-color);
    transform: translateX(-50%) rotate(0deg);
    z-index: 8;
}

.minute-hand {
    width: 8px;
    height: 160px;
    background: var(--text-color);
    transform: translateX(-50%) rotate(0deg);
    z-index: 9;
}

.second-hand {
    width: 4px;
    height: 180px;
    background: #74FBD3;
    transform: translateX(-50%) rotate(0deg);
    z-index: 10;
}

.clock-number {
    position: absolute;
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-color);
}

.clock-12 {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.clock-3 {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.clock-6 {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.clock-9 {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.hero h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-text-color);
    /* margin-top: 10px; */
    margin-bottom: 30px;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 40px auto;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--secondary-color);
    max-width: 700px;
    text-align: left;
}

/* Highlight Effect */
.highlight {
    font-weight: bolder;
    background: linear-gradient(104deg, rgba(116, 251, 211,0) 0.9%, rgba(116, 251, 211,1.25) 2.4%, rgba(116, 251, 211,0.5) 5.8%, rgba(116, 251, 211,0.1) 93%, rgba(116, 251, 211,0.7) 96%, rgba(116, 251, 211,0) 98%), linear-gradient(183deg, rgba(116, 251, 211,0) 0%, rgba(116, 251, 211,0.3) 7.9%, rgba(116, 251, 211,0) 15%);
    padding-right: 15px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    margin: 0;
    border-radius: 7.5px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #74FBD3;
    color: #222;
    padding: 15px 30px;
    border-radius: 80px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    /* border: 7px solid #74FBD3; */
    position: relative;
    overflow: visible;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'DM Sans';
    font-style: normal;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 16px 0 rgba(54, 109, 54, 0.122);
}

.cta-button:hover {
    background-color: #04A777;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

/* Rotating Dots Animation */
.cta-button .rotating-dots {
    pointer-events: none;
    position: absolute;
    top: -14px;
    left: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    z-index: 2;
    display: block;
}

.cta-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px #fff, 0 0 0 0 #fff;
    animation: flash 1s infinite alternate;
}

.cta-dot.dot1 {
    animation: rotate-dot-circular-1 2.5s linear infinite, flash 1s infinite alternate;
}

.cta-dot.dot2 {
    animation: rotate-dot-circular-2 2.5s linear infinite, flash 1s infinite alternate;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

.schedule-table th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

.schedule-table td:first-child {
    width: 15%;
    font-weight: 500;
}

.phase-header {
    background-color: #cffff073;
    font-weight: 700;
}

.activity-title {
    /* font-style: italic; */
    font-weight: 600;
    /* text-decoration: underline; */
}

/* Call for Participants */
.cfp-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cfp-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--light-text-color);
}

.cfp-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.cfp-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cfp-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--light-text-color);
}

/* Organizer Grid */
.organizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 30px;
    padding: 0;
}

.organizer-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.organizer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.organizer-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.organizer-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    background: #f8f9fa;
    border: 3px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.organizer-card:hover .organizer-profile-image {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.organizer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.organizer-name {
    transition: color 0.2s ease;
}

.organizer-card:hover .organizer-name {
    color: var(--primary-color);
}

.organizer-affiliations {
    margin-top: 0.5rem;
}

.organizer-affiliation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 0.3rem;
}

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

.affiliation-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.organizer-card:hover .affiliation-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Responsive adjustments for organizer grid */
@media (max-width: 768px) {
    .organizer-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .organizer-profile-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .organizer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #FFFFFF;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    color: #FFFFFF;
    margin-bottom: 10px;
}

footer a {
    color: #FFFFFF;
    font-weight: 500;
}

/* Animations */
@keyframes rotate-dot-circular-1 {
    0%   { left: 50%; top: 0%; }
    12.5% { left: 85%; top: 15%; }
    25%  { left: 100%; top: 50%; }
    37.5% { left: 85%; top: 85%; }
    50%  { left: 50%; top: 100%; }
    62.5% { left: 15%; top: 85%; }
    75%  { left: 0%; top: 50%; }
    87.5% { left: 15%; top: 15%; }
    100% { left: 50%; top: 0%; }
}

@keyframes rotate-dot-circular-2 {
    0%   { left: 50%; top: 100%; }
    12.5% { left: 15%; top: 85%; }
    25%  { left: 0%; top: 50%; }
    37.5% { left: 15%; top: 15%; }
    50%  { left: 50%; top: 0%; }
    62.5% { left: 85%; top: 15%; }
    75%  { left: 100%; top: 50%; }
    87.5% { left: 85%; top: 85%; }
    100% { left: 50%; top: 100%; }
}

@keyframes flash {
    0% { filter: brightness(1); }
    100% { filter: brightness(2.5); }
}

/* Media Queries */
@media (max-width: 900px) {
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        width: 100%;
        padding: 0 8vw;
    }

    .logo {
        text-align: left;
        margin-bottom: 0;
        font-size: 1.1rem;
        padding: 0;
    }

    nav {
        flex: 1 1 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .hamburger {
        display: flex;
        margin-left: 12px;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        background: #fff;
        width: 100vw;
        max-width: 100vw;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 0 0 10px 10px;
        transition: max-height 0.3s, box-shadow 0.3s;
        z-index: 2000;
        margin: 0;
        padding: 0;
    }

    nav ul.open {
        max-height: 400px;
        padding: 10px 0 18px 0;
        box-shadow: 0 4px 16px 0 rgba(0,0,0,0.07);
    }

    nav ul li {
        width: 100%;
        text-align: right;
        padding: 0 24px;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .organizer-list { column-count: 1; }
    header.container { flex-direction: column; height: auto; padding: 10px; }
    nav ul { justify-content: center; width: 100%; padding-top: 10px; }
    html { scroll-padding-top: 110px; }
    .container { padding-left: 8vw; padding-right: 8vw; }
}

/* New classes for extracted inline styles */
.header-container {
    width: 100%;
    max-width: 100vw;
}

.logo-subtitle {
    color: #888;
}

.highlight-bold {
    font-weight: bold;
    color: black !important;
}

.cta-button-inline {
    color: black !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-secondary {
    color: rgb(62, 62, 62);
}

.image-fallback {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
}


