/* style.css */
:root {
    --primary: #cc0000;      /* University of Ljubljana Red */
    --dark: #222;            /* Dark Text */
    --light: #f8f9fa;        /* Light Background */
    --text: #444;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; line-height: 1.6; color: var(--text); background-color: #fff; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: #800; text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { color: var(--dark); margin-top: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; flex: 1; }

/* HEADER */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--dark); font-weight: 300; }

nav ul { display: flex; gap: 20px; }
nav a { color: #555; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
nav a:hover { color: var(--primary); text-decoration: none; }

/* HERO SECTION (Home Page Banner) */
.hero {
    /* We use a linear gradient overlay to make the text readable over the image */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('https://vcdn.bergfex.at/images/resized/4b/5282ac92bc55fa4b_c8a59b6b09d1e7b5@2x.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a parallax effect */
    color: white;
    text-align: center;
    padding: 160px 20px;
    position: relative;
}

.hero h1 { 
    color: white; 
    font-size: 4rem; 
    margin: 0; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.7); /* Strong shadow for readability */
}

.hero-sub { 
    color: #f1f1f1; 
    font-size: 1.5rem; 
    margin-top: 10px; 
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); 
}

.hero-date {
    margin-top: 30px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    background: rgba(204, 0, 0, 0.9); /* Red semi-transparent background box */
    color: white;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* PAGE HEADERS (For subpages) */
/* Keep your existing .page-header as the base */
/* Keep your existing base style */
.page-header { 
    background: #f4f4f4; 
    padding: 40px 20px; 
    text-align: center; 
    border-bottom: 1px solid #ddd; 
    position: relative; /* Required for the blur effect */
    overflow: hidden;    /* Keeps the blur from bleeding out */
}

/* Specific class for the blurred banner */
.page-header.cfp-banner .venue-image .program-banner .registration-banner {
    padding: 100px 20px; /* Taller banner */
    background: #222;    /* Fallback color */
    border-bottom: none;
}

/* The background layer that gets blurred */
.page-header.cfp-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* YOUR IMAGE HERE */
    background-image: url('https://www.visitljubljana.com/assets/Fototeka/velika-planina-ana-pogacar__FillWzUwMCwzMzBd.jpg'); 
    
    background-size: cover;
    background-position: center;
    
    /* Strong Blur and Dark Tint */
    filter: blur(8px) brightness(0.6); 
    transform: scale(1.1); /* Prevents white edges caused by blur */
    z-index: 1;
}

/* Make sure the text stays on top and pops */
.page-header.cfp-banner h1 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    
    /* High contrast text shadow for "Pop" */
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

/* Make sure the text stays on top and pops */
.page-header.venue-image h1 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    
    /* High contrast text shadow for "Pop" */
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

/* The background layer that gets blurred */
.page-header.venue-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* YOUR IMAGE HERE */
    background-image: url('https://www.visitljubljana.com/assets/Fototeka/planina-polje-tomo-jesenicnik__FillWzUwMCwzMzBd.jpg'); 
    
    background-size: cover;
    background-position: center;
    
    /* Strong Blur and Dark Tint */
    filter: blur(8px) brightness(0.6); 
    transform: scale(1.1); /* Prevents white edges caused by blur */
    z-index: 1;
}

/* Make sure the text stays on top and pops */
.page-header.program-banner h1 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    
    /* High contrast text shadow for "Pop" */
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

/* The background layer that gets blurred */
.page-header.program-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* YOUR IMAGE HERE */
    background-image: url('https://www.visitljubljana.com/assets/Foto-mreza-izbor/Grintovec-2019-Jaka-Ivancic__FillWzUwMCwzMzBd.jpg'); 
    
    background-size: cover;
    background-position: center;
    
    /* Strong Blur and Dark Tint */
    filter: blur(8px) brightness(0.6); 
    transform: scale(1.1); /* Prevents white edges caused by blur */
    z-index: 1;
}

/* Make sure the text stays on top and pops */
.page-header.registration-banner h1 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    
    /* High contrast text shadow for "Pop" */
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

/* The background layer that gets blurred */
.page-header.registration-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* YOUR IMAGE HERE */
    background-image: url('https://www.visitljubljana.com/assets/Fototeka/Zupanova-jama-2019-Staderzen-1__FillWzUwMCwzMzBd.jpg'); 
    
    background-size: cover;
    background-position: center;
    
    /* Strong Blur and Dark Tint */
    filter: blur(8px) brightness(0.6); 
    transform: scale(1.1); /* Prevents white edges caused by blur */
    z-index: 1;
}



/* BUTTONS */
.btn { display: inline-block; background: var(--primary); color: white; padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.btn:hover { background: #a00; color: white; text-decoration: none; }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f8f8; font-weight: 700; }
.highlight-row { background: #fff5f5; color: var(--primary); font-weight: bold; }

/* CARDS & GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 20px; border: 1px solid #eee; border-radius: 8px; border-top: 4px solid var(--primary); }

/* IMAGES */
.venue-img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

/* FOOTER */
footer { background: var(--dark); color: #aaa; text-align: center; padding: 30px 20px; font-size: 0.9rem; margin-top: auto; }


  .program-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .program-day {
            background: #fff;
            border-radius: 8px;
            padding: 25px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            border-top: 5px solid #cc0000;
        }

        .program-day h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #222;
            text-align: center;
        }

        .schedule-item {
            display: grid;
            grid-template-columns: 90px 1fr;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            font-size: 0.95rem;
        }

        .schedule-item:last-child {
            border-bottom: none;
        }

        .time {
            font-weight: bold;
            color: #cc0000;
            white-space: nowrap;
        }

        .event {
            color: #333;
        }

     /* ---------- KEYNOTE SECTION ---------- */

.keynotes {
    margin-top: 40px;
}

/* GRID: controls how many keynote CARDS per row */
.keynote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
    gap: 25px;
    margin-top: 30px;
}

/* Card itself */
.keynote-card {
    display: grid;
    grid-template-columns: 90px 1fr; /* photo | content */
    gap: 15px;
    align-items: start;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Photo box */
.keynote-photo {
    width: 90px;
    height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    border-radius: 4px;
}

/* Make images fill the photo box and use cover to preserve aspect */
.keynote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Larger photo variant for specific cards */
.keynote-photo.large {
    width: 100px;
    height: 150px;
}

/* Text cleanup */
.keynote-info h3 {
    margin: 0 0 5px;
    font-size: 1.05rem;
}

.keynote-info .affiliation {
    font-size: 0.85rem;
    color: #666;
}

.keynote-info .title {
    margin: 8px 0 6px;
}

.keynote-info .abstract {
    font-size: 0.9rem;
    color: #555;
}

@media (max-width: 1024px) {
    .keynote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .schedule-item {
                grid-template-columns: 1fr;
            }
            .time {
                font-size: 0.9rem;}
       .keynote-grid {
        grid-template-columns: 1fr;
    }

    .keynote-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .keynote-photo {
        margin: 0 auto;
    }
}