/* GenSign Workshop - Custom Styles */
/* Theme colors inspired by sign language and accessibility */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7B68EE;
    --accent-color: #FF6B6B;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

/* Hero Section with Sign Language Theme */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.35) 0%, rgba(123, 104, 238, 0.35) 100%),
                url('../images/banner.jpg') center/cover no-repeat;
    opacity: 0.95;
    z-index: -1;
}

#header.alt {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.35) 0%, rgba(123, 104, 238, 0.35) 100%),
                url('../images/banner.jpg') center/cover no-repeat;
    color: white;
}

#header.alt h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Topic Cards - Visual Representation of Research Areas */
.topic-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

/* Center the last card when there's an odd number of cards */
.topic-cards > .topic-card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 600px;
    justify-self: center;
}

.topic-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid var(--primary-color);
    /* padding: top right bottom left (shorthand) */
    /* 1em top, 2em left/right, 1.2em bottom */
    padding: 0.2em 2em 1.2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.topic-card:nth-child(1) { border-left-color: #4A90E2; }
.topic-card:nth-child(2) { border-left-color: #7B68EE; }
.topic-card:nth-child(3) { border-left-color: #50C878; }
.topic-card:nth-child(4) { border-left-color: #FF6B6B; }
.topic-card:nth-child(5) { border-left-color: #FFA500; }

.topic-card h3 {
    color: var(--text-dark);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.2em;
    font-weight: 600;
}

.topic-card p {
    color: var(--text-light);
    line-height: 1.4;
    font-size: 0.95em;
    margin: 0;
}

/* Call for Papers - dual card layout */
.cfp-tracks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2em;
    margin-top: 1em;
}

.cfp-card {
    background: #f3f7ff;
    border-radius: 10px;
    padding: 1.2em 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cfp-card h3 {
    margin-top: 0;
    margin-bottom: 0.6em;
    font-size: 1.2em;
}

.cfp-card p {
    margin: 0.5em 0 0.8em;
    font-size: 0.95em;
}

.cfp-card ul {
    margin: 0.5em 0 0.8em;
    padding-left: 1.2em;
}

.cfp-card h4 {
    margin: 0.8em 0 0.5em;
    font-size: 1em;
}

.cfp-intro-lead {
    margin: 0.8em auto 0.3em;
    text-align: center;
}

.cfp-intro {
    list-style: disc;
    padding-left: 1.2em;
    margin: 0.4em auto 0.8em;
    max-width: 900px;
    text-align: left;
    width: fit-content;
    list-style-position: outside;
}

section#callforpapers .cfp-intro {
    padding-left: 1.2em;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(2.8em);
}

@media screen and (max-width: 900px) {
    .cfp-tracks {
        grid-template-columns: 1fr;
    }
}

/* Speaker Cards Enhancement */
.features li {
    transition: transform 0.3s ease;
}

.features li:hover {
    transform: scale(1.05);
}

.image.avatar img {
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Organizer avatars */
.organizer-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1em;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Speaker cards */
.speaker-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.speaker-avatar {
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-avatar {
    transform: scale(1.05);
}

/* Organizer names */
#organizers h3 {
    font-size: 1em;
}

/* Schedule Table Enhancement */
.alt tbody tr {
    transition: background-color 0.3s ease;
}

.alt tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.alt thead {
    background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%);
    color: white;
}

.alt th {
    padding: 1em;
    font-weight: 600;
}

/* Key Dates Styling */
.key-dates {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 0;
}

.key-dates li {
    padding: 0.6em 1em;
    margin: 0.3em 0;
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.key-dates li:hover {
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.15) 0%, rgba(123, 104, 238, 0.1) 100%);
    transform: translateX(5px);
}

.key-dates strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Icon Bullets Enhancement */
.icon-bullets {
    list-style: none;
    padding-left: 0;
}

.icon-bullets li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 1em;
}

.icon-bullets li:before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Button Styling */
.button.primary {
    background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%);
    border: none;
    transition: all 0.3s ease;
}

.button.primary:hover {
    background: linear-gradient(135deg, #3a7ac2 0%, #6b58de 100%);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Section Headers */
header.major {
    text-align: center;
}

.major h2 {
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5em;
    display: inline-block;
}

/* Spotlight Section Enhancement */
.spotlight .content h3 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

/* Center the Overview note under the title */
.overview-note {
    text-align: center;
    margin: 0.4em auto 1.5em;
}

/* Footer Styling */
#footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #b2bec3;
    padding: 1.5em 2em !important;
    margin-top: 2em !important;
}

#footer section {
    margin: 0 auto 0.5em !important;
    padding: 0.5em 1em !important;
    text-align: center;
}

#footer h2 {
    color: white;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

#footer p {
    margin: 0.3em 0;
    font-size: 0.9em;
}

#footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

#footer .icons {
    margin-top: 0.5em !important;
    gap: 1em !important;
}

#footer .icons a {
    border-color: var(--primary-color);
    width: 2em !important;
    height: 2em !important;
}

#footer .icons a:hover {
    background: var(--primary-color);
    color: white;
}

#footer .copyright {
    margin-top: 1em !important;
    padding-top: 1em !important;
    font-size: 0.85em;
    border-top: 1px solid #444;
}

/* Accessibility Features */
.accessibility-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 4px;
}

.accessibility-note strong {
    color: #856404;
}

/* Responsive Design Enhancements */
@media screen and (max-width: 768px) {
    .topic-cards {
        grid-template-columns: 1fr;
    }
    
    #header.alt h1 {
        font-size: 2em;
    }
    
    .features {
        display: block;
    }
    
    .features li {
        margin-bottom: 2em;
    }
    
    /* Organizers grid mobile - single column */
    .organizers-grid {
        grid-template-columns: 1fr !important;
        gap: 1em !important;
    }
    
    /* Speakers grid mobile - single column */
    .speakers-grid {
        grid-template-columns: 1fr !important;
        gap: 1em !important;
    }
    
    /* Speakers list mobile - vertical layout */
    .speakers-list .speaker-card {
        flex-direction: column !important;
    }
    
    .speakers-list .speaker-card > div {
        text-align: left !important;
    }
    
    .speakers-list .speaker-avatar {
        margin: 0 auto !important;
    }
}

/* Animation for Page Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main section {
    animation: fadeInUp 0.8s ease-out;
}

/* Navigation Enhancement */
#nav ul li a.active {
    border-bottom: 3px solid var(--primary-color);
}

#nav ul li a:hover {
    color: var(--primary-color);
}

/* Diversity & Inclusion Badge */
.diversity-badge {
    display: inline-block;
    padding: 0.5em 1em;
    background: linear-gradient(135deg, #50C878 0%, #3AA65B 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin: 0.5em 0.5em 0.5em 0;
}

/* Special Highlight for Community Engagement */
.community-highlight {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.1) 0%, rgba(58, 166, 91, 0.1) 100%);
    border: 2px solid #50C878;
    padding: 1.5em;
    border-radius: 8px;
    margin: 2em 0;
}

.community-highlight h3 {
    color: #3AA65B;
    margin-top: 0;
}

