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

:root {
    --rf-primary: #2971b9;
    --hi5-primary: #d35400;
    --text-main: #1a1a1a;
    --text-muted: #676767;
    --bg-gray: #f9f9f9;
    --white: #ffffff;
    --border: #eeeeee;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; padding: 0; background: var(--bg-gray); color: var(--text-main); 
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Components --- */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 5%; display: flex; justify-content: space-between;
    align-items: center; position: sticky; top: 0; z-index: 1000;
}

.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: inherit; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { opacity: 0.7; }

/* Buttons */
.cta-btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: var(--transition); background: #2b3e50;
color: #ffffff;
font-size: 0.85rem;}
.rf-theme .cta-btn, .rf-theme .search-box button { background: var(--rf-primary); color: #fff; }
.hi5-theme .cta-btn, .hi5-theme .search-box button { background: var(--hi5-primary); color: #fff; }

/* --- Hero Section --- */
.hero { padding: 80px 5% 60px; text-align: center; background: var(--white); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -1px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

/* --- Search UI --- */
.search-box { 
    display: flex; max-width: 800px; margin: 0 auto; gap: 10px; 
    padding: 10px; background: #fff; border: 1px solid #ddd; border-radius: 12px;
}
.search-box input, .search-box select { border: none; padding: 12px; font-size: 1rem; font-family: inherit; outline: none; }
.search-box input { flex-grow: 1; border-right: 1px solid #eee; }
.search-box button { border-radius: 8px; border: none; padding: 0 25px; color: #fff; font-weight: 600; cursor: pointer; }

/* --- Results Grid --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding: 50px 5%; }
.card { background: var(--white); border-radius: 16px; padding: 25px; border: 1px solid #efefef; transition: var(--transition); position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

/* --- Profile Specific --- */
.detail-hero { background: #fff; padding: 60px 5%; border-bottom: 1px solid var(--border); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.meta-item { background: var(--bg-gray); padding: 20px; border-radius: 12px; }
.meta-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; display: block; }
.meta-value { font-size: 1.1rem; font-weight: 600; }

/* --- Star Ratings --- */
.star-rating { color: #f1c40f; font-size: 0.9rem; margin-bottom: 8px; }
.star-rating .empty { color: #ddd; }
.rating-num { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin-left: 5px; }

/* --- Footer --- */
footer { background: var(--white); padding: 80px 5% 40px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { margin-top: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; color: var(--text-main); font-size: 0.95rem; }
.copyright { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }

/* --- Comparison UI --- */
.compare-tray { 
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); 
    background: var(--text-main); color: #fff; padding: 15px 30px; 
    border-radius: 50px; display: none; align-items: center; gap: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 2000;
}

@media (max-width: 768px) {
    .search-box { flex-direction: column; }
    .search-box input { border-right: none; border-bottom: 1px solid #eee; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}/* --- Shared Profile/Program Layout --- */
.profile-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.profile-main { order: 1; }
.profile-sidebar { order: 2; }
/* Hero Section */
.hero-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.badge-tag {
    background: #fff5eb;
    color: var(--hi5-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}
/* Sticky Info Widget */
.info-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.info-row {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-value { font-size: 1rem; font-weight: 600; color: var(--text-main); }

/* Review Metric Bar */
.metric-bar {
    display: flex;
    gap: 15px;
    background: var(--bg-gray);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .profile-container { grid-template-columns: 1fr; margin-top: 20px; }
    .profile-sidebar { order: 1; } 
    .profile-main { order: 2; }
}.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid var(--border);
}

.role-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eee;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-right: 15px;
}.container { max-width: 800px; margin: auto; }
        .section { background: white; padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        h2 { border-bottom: 2px solid #eee; padding-bottom: 10px; color: #2c3e50; }
        .review-item { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
        input[type="password"] { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 6px; }
        .btn { background: #2c3e50; color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; }
        .delete-link { color: #e74c3c; font-size: 0.8rem; text-decoration: none; }
/* Rotary Wrapper */
.rotary-wrapper {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em;
    overflow: hidden;
    vertical-align: top;
    margin-left: 10px;
}

.rotary-list {
    display: flex;
    flex-direction: column;
    animation: rotateWords 10s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.rotary-item {
    height: 1.2em;
    color: var(--accent); /* Midnight Blue for RF, Orange for hi5 */
    white-space: nowrap;
}

@keyframes rotateWords {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.2em); }
    50%, 70% { transform: translateY(-2.4em); }
    75%, 95% { transform: translateY(-3.6em); }
    100% { transform: translateY(0); }
}/* Gallery Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px; /* Generous Swedish "Air" between items */
    padding: 60px 5%;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0; /* Sharp corners for a more architectural look */
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
}

.gallery-card:hover {
    border-color: var(--text-main);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.card-top { flex-grow: 1; }

.card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.gallery-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.stat-box { display: flex; flex-direction: column; }
.stat-label { font-size: 0.6rem; text-transform: uppercase; color: #999; font-weight: 700; }
.stat-value { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }

/* The "Compare" check corner */
.compare-check-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
}

.gallery-card .cta-link {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    letter-spacing: 1px;
}/* --- Compare Page Layout --- */
.compare-wrapper {
    padding: 60px 5%;
    overflow-x: auto; /* Allows horizontal swipe on mobile */
}

.compare-table {
    display: flex;
    gap: 20px;
    min-width: 800px; /* Ensures columns don't squish */
}

/* The Label Column (Sticky on the left) */
.compare-labels {
    width: 200px;
    flex-shrink: 0;
    margin-top: 280px; /* Matches the height of the card top */
}

.label-item {
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

/* The Data Columns */
.compare-column {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.compare-column:hover {
    border-color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.compare-header {
    padding: 30px;
    border-bottom: 2px solid var(--bg-gray);
    height: 280px; /* Fixed height to keep rows aligned */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.compare-data-point {
    height: 60px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.compare-data-point:nth-child(even) {
    background-color: #fafafa;
}/* --- Compare Tray (Swedish Modern) --- */
#compare-tray {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#compare-tray.active {
    bottom: 30px; /* Slides up into view */
}

#tray-count {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tray-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.tray-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Checkbox Styling */
.compare-check-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 5%;
}

.filter-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    height: fit-content;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.pill.active, .pill:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

@media (max-width: 900px) {
    .catalog-container { grid-template-columns: 1fr; }
}