:root {
    --primary-bg: #d5e9d5;
    /* clean white base */
    --secondary-bg: #dffce1;
    /* pale green background */
    --accent-bg: #7bde7b;
    /* very subtle off-white green */

    --text-primary: #1a1a1a;
    /* near black */
    --text-secondary: #4a4a4a;
    --text-muted: #6e7c6e;
    /* gray-green accent */

    --highlight: #4caf50;
    /* vibrant green (like material design) */
    --highlight-secondary: #81c784;
    /* soft leafy green */
    --highlight-tertiary: #2e7d32;
    /* deeper forest green */

    --card-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(129, 199, 132, 0.3);

    --shadow: rgba(76, 175, 80, 0.15);
    --shadow-light: rgba(129, 199, 132, 0.08);
    --shadow-medium: rgba(76, 175, 80, 0.12);

    --gradient-primary: linear-gradient(135deg, #4caf50 0%, #4caf50 50%, #4caf50 100%);
    --gradient-secondary: linear-gradient(135deg, #4caf50 0%, #4caf50 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 245, 233, 0.7) 100%);
    --gradient-hover: linear-gradient(135deg, #a5d6a7 0%, #4caf50 100%);

    /* --gradient-primary: linear-gradient(135deg, #81c784 0%, #4caf50 50%, #2e7d32 100%);
    --gradient-secondary: linear-gradient(135deg, #ace7ae 0%, #81c784 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 245, 233, 0.7) 100%);
    --gradient-hover: linear-gradient(135deg, #a5d6a7 0%, #4caf50 100%); */
}

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

/* Ensure emojis render with their native colors */
.welcome-title,
.page-title,
.section-title,
.language-flag,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Prevent text gradients from affecting emojis */
.emoji {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: initial !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-variant-emoji: emoji !important;
    text-rendering: auto !important;
    font-feature-settings: normal !important;
    display: inline !important;
    /* Force emoji rendering with native colors */
    -webkit-font-feature-settings: "liga" off !important;
    font-feature-settings: "liga" off !important;
}

/* Ensure gradient headings don't affect emoji children */
.welcome-title .emoji,
.page-title .emoji,
.section-title .emoji {
    background: transparent !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    background-attachment: fixed;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    font-weight: 400;
    scroll-behavior: smooth;
    letter-spacing: 0.025em;

}

/* Fix number spacing issues */
.phone-number,
.date-time,
.highlight-text {
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums;
}

/* Style superscript asterisk for gender-inclusive language */
sup {
    color: var(--text-primary);
    font-weight: inherit;
}

/* Prevent awkward line breaks on mobile */
@media (max-width: 480px) {
    .phone-number {
        white-space: nowrap;
    }

    .date-time {
        white-space: nowrap;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 90, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(243, 156, 18, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome/Language Selection Page */
.welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.welcome-title {
    font-size: 3.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
    position: relative;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-hover);
    border-radius: 2px;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 560px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.language-selection {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.language-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--shadow-light), 0 2px 8px rgba(230, 126, 34, 0.1);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.language-btn:hover::before {
    left: 100%;
}

.language-btn:hover {
    border-color: var(--highlight);
    box-shadow: 0 12px 40px var(--shadow), 0 4px 16px rgba(230, 126, 34, 0.2);
    background: var(--gradient-card);
    transform: translateY(-4px) scale(1.02);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.language-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Content Pages */
.content-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--highlight);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-hover);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px var(--shadow-light), 0 2px 8px rgba(230, 126, 34, 0.08);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    opacity: 0.3;
}


.section-title {
    font-size: 2rem;
    font-weight: 600;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--highlight);
    border-radius: 1px;
    opacity: 0.6;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.section-content strong {
    color: var(--highlight);
    font-weight: 600;
}

/* Image Layouts */
.image-text-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.image-text-layout img {
    width: 100%;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 12px 40px var(--shadow-medium), 0 4px 16px rgba(230, 126, 34, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
    margin: 0 auto;
}

.image-text-layout img:hover {
    box-shadow: 0 16px 50px var(--shadow-medium), 0 6px 20px rgba(230, 126, 34, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 40px var(--shadow-medium), 0 4px 16px rgba(230, 126, 34, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
    margin: 0 auto;
}

.image-gallery img:hover {
    box-shadow: 0 16px 50px var(--shadow-medium), 0 6px 20px rgba(230, 126, 34, 0.2);
    transform: translateY(-4px) scale(1.02);
}

/* Universal hover animation for ALL images */
img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 50px var(--shadow-medium), 0 6px 20px rgba(230, 126, 34, 0.2);
}

/* Info Cards */
.info-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow-light), 0 2px 8px rgba(230, 126, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-hover);
    opacity: 0.6;
}


.info-card h3 {
    color: var(--highlight);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.info-card .highlight-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-card-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px var(--shadow), 0 2px 8px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 12px 35px var(--shadow), 0 4px 16px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 126, 34, 0.1), transparent);
    transition: left 0.6s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: 0 8px 25px var(--shadow), 0 2px 8px rgba(230, 126, 34, 0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Thesis Links Grid */
.thesis-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.thesis-link {
    color: var(--highlight);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.thesis-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--highlight);
    box-shadow: 0 4px 15px var(--shadow);
    color: var(--highlight-secondary);
}

/* Special Highlight Text */
.special-highlight {
    font-size: 1.2rem;
    color: var(--highlight);
    font-weight: 500;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Party Section */
.party-details {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.party-details p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* About Groningen */
.groningen-info {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid var(--highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--highlight);
}

.groningen-info h3 {
    color: var(--highlight);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.groningen-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.groningen-layout img {
    width: 100%;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 32px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
}

.groningen-layout img:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Footer Navigation */
.page-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid var(--border);
    margin-top: 4rem;
}




/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .welcome-container {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .language-selection {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .language-btn {
        min-width: 280px;
        padding: 2.5rem 2rem;
    }

    .language-flag {
        font-size: 2.5rem;
    }

    .language-name {
        font-size: 1.4rem;
    }

    .language-desc {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .content-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .section-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .image-text-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .image-text-layout img {
        min-width: auto;
        max-width: 100%;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .info-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

    .info-card .highlight-text {
        font-size: 1.1rem;
    }

    .highlighted {
        color: var(--highlight);
        font-weight: bold;
        /* makes it pop */
    }

    /* Make thesis title smaller on mobile */
    .content-section h3[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }

    .info-card-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }

    .groningen-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .groningen-layout img {
        min-width: auto;
        max-width: 100%;
    }

    .groningen-info {
        padding: 1.5rem;
    }

    .party-details {
        padding: 1.5rem;
    }

    .thesis-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .welcome-container {
        padding: 1rem;
    }

    .welcome-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .welcome-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .language-btn {
        padding: 2rem 1.5rem;
        min-width: 260px;
    }

    .language-flag {
        font-size: 2.2rem;
    }

    .language-name {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
    }

    .section-content p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .info-card {
        padding: 1.5rem 1rem;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .info-card .highlight-text {
        font-size: 0.95rem;
    }

    /* Make date-time text even smaller on mobile */
    .date-time {
        font-size: 0.9rem !important;
    }

    /* Make thesis title smaller on mobile - more specific selector */
    .content-section h3[style*="font-size: 1.8rem"] {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 260px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .groningen-info {
        padding: 1.2rem;
    }

    .party-details {
        padding: 1.2rem;
    }

    .thesis-links {
        grid-template-columns: 1fr;
    }

    .special-highlight {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .welcome-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .language-btn {
        min-width: 240px;
        padding: 1.8rem 1.2rem;
    }

    .content-section {
        padding: 1.2rem 0.8rem;
    }

    .info-card {
        padding: 1.2rem 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 240px;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Hyperlinks: green bold */
a {
    color: var(--highlight);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: var(--highlight-secondary);
    text-decoration: underline;
}

/* Unnumbered lists: indented */
ul {
    text-align: left;
    padding-left: 2rem;
    list-style-type: disc;
}

/* Tables: full width of parent div */
table {
    width: 100%;
    border-collapse: collapse;
}