/*
 * ICIAP 2025 Workshop Website Stylesheet
 * --------------------------------------
 * This file contains the main styles for the static conference website.
 * Sections are commented for clarity and maintainability.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ========== General Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.7;
    color: #232946;
    background-color: #f4f6fb;
    font-size: 18px;
}

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

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #232946;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.3rem;
}

p, ul, li {
    margin-bottom: 20px;
}

ul {
    margin-left: 24px;
}

.note {
    margin-top: 30px;
    padding: 15px;
    background-color: #f0f4f8;
    border-left: 4px solid #0c4da2;
    border-radius: 3px;
}

/* ========== Header Styles ========== */
header {
    /* box-shadow: 0 2px 16px rgba(35, 41, 70, 0.08); */
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* height: 60px; */
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    position: relative;
    float: right;
    margin-top: 18px;
    margin-right: 20px;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #b8c1ec;
    margin: 5px 0;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.top-bar {
    background: linear-gradient(90deg, #232946 60%, #eebbc3 100%);
    /* height: 60px; Adjusted to match header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 20px; */
}

.logo {
    float: left;
    padding: 10px 0;
}

.logo h1 {
    font-size: 1.3rem;
    color: #eebbc3;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.logo h2 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #b8c1ec;
    margin-top: -3px;
    letter-spacing: 1px;
}

nav {
    float: right;
    position: relative;
    transform: translateY(50%);
    min-width: 600px;
}

nav ul {
    list-style: none;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 18px;
}

nav ul li a {
    text-decoration: none;
    color: #b8c1ec;
    font-weight: 600;
    padding: 6px 12px; /* More compact nav links */
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

nav ul li a:hover, nav ul li a.active {
    background: #eebbc3;
    color: #232946;
}

/* ========== Hero Section Styles ========== */
.hero {
    background: linear-gradient(rgba(35, 41, 70, 0.7), rgba(238, 187, 195, 0.3)), url('../images/sapienza.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 60px 0 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(35, 41, 70, 0.08);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(35, 41, 70, 0.45);
    padding: 18px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(35, 41, 70, 0.10);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #eebbc3;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #eebbc3 60%, #b8c1ec 100%);
    color: #232946;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 20px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(35, 41, 70, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: #232946;
    color: #eebbc3;
    box-shadow: 0 4px 16px rgba(35, 41, 70, 0.15);
}

/* ========== Section Styles ========== */
section {
    padding: 64px 0 56px 0;
    border-bottom: 1px solid #e3e6f0;
    background: #f4f6fb;
}

/* ========== Where to Find Us Section ========== */
.where-to-find-us {
    background: linear-gradient(90deg, #eebbc3 10%, #b8c1ec 90%);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(35, 41, 70, 0.10);
    margin: 40px 0 0 0;
    padding: 40px 0 32px 0;
}
.where-to-find-us h2 {
    color: #232946;
    margin-bottom: 18px;
    font-size: 1.5rem;
}
.where-to-find-us p {
    color: #232946;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(35, 41, 70, 0.07);
    margin-bottom: 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #232946;
}

/* ========== Card Styles (for boxes, speakers, etc.) ========== */
.date-item, .committee-member, .attraction-item, .info-box, .session, .speaker-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(35, 41, 70, 0.08);
    padding: 24px 20px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.date-item:hover, .committee-member:hover, .attraction-item:hover, .speaker-card:hover {
    box-shadow: 0 8px 32px rgba(35, 41, 70, 0.13);
    transform: translateY(-4px) scale(1.02);
}

/* ========== Important Dates Section ========== */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.date-item h3 {
    font-size: 1.1rem;
    color: #232946;
}

.date-item p {
    font-weight: bold;
    color: #e63946;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ========== Footer Styles ========== */
footer {
    background: linear-gradient(90deg, #232946 60%, #eebbc3 100%);
    color: #fff;
    padding: 60px 0 24px 0;
    border-radius: 32px 32px 0 0;
    margin-top: 48px;
}

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

.footer-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links a {
    display: inline-block;
    color: #eebbc3;
    margin-right: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #b8c1ec;
    color: #b8c1ec;
    font-size: 1rem;
}

/* ========== Responsive Styles ========== */
@media screen and (max-width: 1100px) {
    .container {
        width: 98%;
        padding: 0 8px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    nav {
        float:right
    }
}

@media screen and (max-width: 950px) {
    header {
        /* height: auto;
        min-height: 110px; */
        padding: 0;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 5px;
        padding: 10px 0 0 0;
    }
    
    nav {
        min-width: 100%;
        text-align: center;
        margin-bottom: 10px;
        transform: none;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0 0 0;
        z-index: 100;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    nav ul.show {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 60px 0;
    }
    .hero-content {
        padding: 18px 8px;
    }
    .dates-grid {
        gap: 18px;
    }
}

@media screen and (max-width: 600px) {
    nav ul li {
        /* display: block; */
        margin: 10px 0;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero h3 {
        font-size: 1.1rem;
    }
    section {
        padding: 32px 0 24px 0;
    }
}