/* ==========================================================================
   STYLES.CSS - Main Stylesheet
   Author: Sean Deloddere
   
   Table of Contents:
   1.  GLOBAL & RESET
   2.  LAYOUT & TYPOGRAPHY
   3.  NAVIGATION
   4.  HEADER
   5.  FOOTER
   6.  HOME PAGE
   7.  WORK EXPERIENCE PAGE
   8.  EDUCATION PAGE
   9.  CERTIFICATIONS PAGE (Carousel)
   10. VOLUNTEERING PAGE
   11. BLOG PAGE
   12. FACTLE GAME
   13. MODAL & UTILITIES
   ========================================================================== */


/* ==========================================================================
   1. GLOBAL & RESET
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f4;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none;
}


/* ==========================================================================
   2. LAYOUT & TYPOGRAPHY
   ========================================================================== */

main {
    flex: 1;
    padding: 20px;
}

h1 {
    margin-top: 60px;
    text-align: center;
}

.content {
    display: block;
    overflow: hidden;
    padding: 0 10px;
}

.text {
    margin-bottom: 20px;
}

/* Collapsible Sections */
.collapsible {
    cursor: pointer;
    padding: 10px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    background-color: #ccc;
    margin-bottom: 5px;
}

/* Three Columns Section */
.three-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px auto;
    max-width: 1400px;
}

.column {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
}

.column h3 {
    color: #007acc;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2em;
}

.column ul {
    list-style-type: none;
    padding-left: 10%;
}

.column ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.column ul li::before {
    content: "\2713";
    margin-right: 10px;
    color: #007acc;
    font-weight: bold;
    position: relative;
    top: -3px;
}

.roles ul li,
.areas ul li {
    font-size: 1.3em;
    margin-bottom: 1.1em;
}

.competences {
    display: flex;
    flex-wrap: wrap;
}

.competences ul {
    width: 45%;
    padding-left: 20px;
    box-sizing: border-box;
}


/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */

nav {
    background-color: #232323;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    padding: 3px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: clamp(23px, 4vw, 25px);
}

.nav-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 4px 15px;
    display: block;
    font-size: clamp(1em, 1.1vw, 1.1em);
}

.nav-menu li a:hover {
    background-color: #575757;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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


/* ==========================================================================
   4. HEADER
   ========================================================================== */

header {
    background-color: #b3eefd;
    text-align: center;
    padding: 5px 0;
    margin-bottom: 5px;
}


/* ==========================================================================
   5. FOOTER
   ========================================================================== */

footer {
    background-color: #232323;
    padding: 2px 0;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-info {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
    margin: 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin-left: 2px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    margin: 0 2px;
}

.social-link img {
    height: 30px;
    width: auto;
    margin-top: 2px;
}

#footer-placeholder {
    margin-top: auto;
}


/* ==========================================================================
   6. HOME PAGE
   ========================================================================== */


/* ==========================================================================
   7. WORK EXPERIENCE PAGE
   ========================================================================== */

/* Work Intro Section */
.work-intro {
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 1400px;
}

.work-intro h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.work-intro .intro-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.work-intro img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.work-intro p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: left;
    display: block;
}

/* Work History Section */
.work-history {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    max-width: 1400px;
}

.work-history h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.job {
    margin-bottom: 80px;
}

.job h3 {
    color: #007acc;
    margin-bottom: 10px;
    font-size: 1.5em;
    border-bottom: 2px solid #007acc;
    padding-bottom: 5px;
}

/* Project Cards */
.project {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.project p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.project p strong {
    color: #007acc;
}

.project-keywords {
    margin-top: 30px;
    padding: 10px;
    background-color: #e6f7ff;
    border-radius: 8px;
    border: 1px solid #007acc;
    color: #ffffff;
    font-style: normal;
}

.project-keywords strong {
    display: block;
    margin-bottom: 5px;
    color: #007acc;
}

.project-keywords span {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background-color: #007accc6;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   8. EDUCATION PAGE
   ========================================================================== */

.education-timeline {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.edu-entry {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007acc;
}

.university-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.edu-header-content {
    flex-grow: 1;
}

.edu-header h2 {
    color: #007acc;
    margin: 0;
    font-size: 1.8em;
}

.edu-date {
    color: #666;
    font-weight: 500;
    font-size: 0.9em;
}

.edu-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.edu-grade {
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
}

.edu-program {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.edu-details ul {
    list-style-type: none;
    padding-left: 0;
}

.edu-details ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.edu-details ul li::before {
    content: "→";
    color: #007acc;
    position: absolute;
    left: 0;
}

.highlight-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.highlight-courses li {
    background-color: #f0f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    color: #007acc;
    font-weight: 500;
}

.certificate-link {
    display: inline-block;
    margin-top: 15px;
    color: #007acc;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #007acc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.certificate-link:hover {
    background-color: #007acc;
    color: white;
}

/* Recognition Highlight */
.recognition-highlight {
    background: linear-gradient(135deg, #f0f7ff, #e6f3ff);
    border-left: 4px solid #007acc;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recognition-highlight .award-icon {
    font-size: 24px;
}

.recognition-highlight p {
    margin: 0;
    line-height: 1.6;
}

.recognition-highlight a {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-left: 5px;
}

.recognition-highlight a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   9. CERTIFICATIONS PAGE (Carousel)
   ========================================================================== */

.cert-carousels {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 20px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.cert-carousel-group {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: hidden;
}

.carousel-group-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.carousel-group-header img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.carousel-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-shrink: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-slide.active img {
    transform: scale(1.02);
}

.carousel-arrow {
    background-color: #007acc;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background-color: #005a9c;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: #007acc;
    transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
    background-color: #bbb;
}

.carousel-info-panel {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    min-height: 200px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    transition: opacity 0.3s ease;
}

.carousel-info-panel .info-title {
    color: #007acc;
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.carousel-info-panel .info-date {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.carousel-info-panel .info-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.carousel-info-panel .info-link {
    display: inline-block;
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid #007acc;
    border-radius: 25px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.carousel-info-panel .info-link:hover {
    background-color: #007acc;
    color: white;
}

.carousel-info-panel .info-link.hidden {
    display: none;
}


/* ==========================================================================
   10. VOLUNTEERING PAGE
   ========================================================================== */

.volunteer-section {
    margin: 4rem auto;
    padding: 0 1rem;
    max-width: 1400px;
}

.volunteer-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.description {
    flex: 0.6;
}

.gallery {
    flex: 1.4;
}

.splide__slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Volunteer Intro Section */
.volunteer-intro {
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 1400px;
}

.volunteer-intro h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.volunteer-intro .intro-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.volunteer-intro .intro-content img {
    width: 400px;
    border-radius: 10%;
    flex-shrink: 0;
}

.volunteer-intro img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

.volunteer-intro p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

/* Links Section */
.links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.links p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links a {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #005c99;
    text-decoration: underline;
}


/* ==========================================================================
   11. BLOG PAGE
   ========================================================================== */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.blog-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.blog-metadata {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.blog-post h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.blog-post a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post a:hover {
    opacity: 0.8;
}

/* Post Header */
.post-header {
    margin: 2rem 0;
    text-align: left;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-header h1 {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-header .subtitle {
    font-size: 1.5em;
    color: #666;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
    color: #757575;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.post-meta time {
    margin-right: 1em;
}

.reading-time {
    color: #888;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: #292929;
}

.post-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-separator {
    color: #757575;
}

/* Post Intro */
.post-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Hero Image */
.hero-image {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin: 0 0 2rem 0;
    border-radius: 8px;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Typing Animation */
.typing {
    position: absolute;
    top: 36%;
    left: 17%;
    transform: translateY(-50%);
    width: 20ch;
    animation: typing 8s steps(20) infinite, blink 0.5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
    color: black;
    text-align: left;
}

@keyframes typing {
    0% { width: 0; }
    20% { width: 20ch; }
    80% { width: 20ch; }
    100% { width: 0; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Key Questions */
.key-questions {
    margin: 1.5em 0;
}

.key-questions ol {
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-emphasis);
}

.key-questions li {
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    color: #222;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content pre {
    background: #f6f8fa;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.post-content code {
    font-family: 'Consolas', 'Monaco', monospace;
}

.post-content figure {
    margin: 2em 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-content figcaption {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5em;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.subtle-highlight {
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    padding: 10px;
    margin: 10px 0;
}

/* Post Conclusion */
.post-conclusion {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

/* Post Tags */
.post-tags {
    margin-top: 2em;
}

.post-tags .tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.3em 0.8em;
    margin-right: 0.5em;
    border-radius: 15px;
    color: #666;
    font-size: 0.9em;
}

/* Post Appendix */
.post-appendix {
    margin-top: 3rem;
    font-size: 0.9em;
    color: #666;
}

.post-appendix h2 {
    font-size: 1.5em;
    margin-bottom: 1rem;
}

.post-appendix h3 {
    color: #007acc;
    margin: 1.5em 0 0.8em;
}

.post-appendix ul {
    list-style: none;
    padding-left: 0;
}

.post-appendix li {
    margin-bottom: 0.8em;
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.post-appendix input[type="checkbox"] {
    margin-top: 0.3em;
}

.post-appendix input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #666;
}

/* Feedback Styles */
.feedback-title {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 1rem;
}

.feedback-content {
    margin-left: 1rem;
}

.feedback-content h4 {
    font-size: 1em;
    color: #555;
    margin: 1rem 0 0.5rem 0;
}

.feedback-content ul {
    margin-bottom: 1rem;
}

.feedback-content li {
    margin-bottom: 0.3rem;
    font-size: 0.85em;
}

.feedback-legend {
    margin-bottom: 1rem;
    font-size: 0.85em;
    color: #666;
}

.feedback-legend span {
    margin-right: 1.5rem;
}

.post-script {
    font-size: 0.9em;
}

/* Methodology/Feature Grid */
.methodology-intro {
    margin-bottom: 3rem;
}

.approach-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.approach h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.feature-grid figure {
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    height: fit-content;
}

.feature-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.feature-grid p {
    margin: 0;
    align-self: center;
}

.note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Mobile Issue Container */
.mobile-issue-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.mobile-issue {
    flex-shrink: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    width: 200px;
}

.mobile-issue img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-issue figcaption {
    padding: 1rem;
    text-align: center;
    background: #f8f8f8;
    font-size: 0.9rem;
    color: #666;
}

/* Metrics */
.metrics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.metric {
    margin-bottom: 1rem;
}

.metric h4 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.metrics-score {
    margin: 2rem 0;
    text-align: center;
}

.metrics-score img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.metrics-score figcaption {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5em;
    padding: 0.5em;
}

/* Image Text Container */
.image-text-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.image-column {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    flex: 0 0 50%;
}

.text-column {
    flex: 1;
    margin-top: 0;
}

.text-column p {
    margin-top: 0;
    margin-bottom: 0;
}

.blog-image {
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   12. FACTLE GAME
   ========================================================================== */

/* --- Game container --- */
#game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px 40px;
    position: relative;
}

/* --- Header --- */
.factle-header {
    text-align: center;
    position: relative;
    padding-top: 8px;
}

.factle-title {
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 60px;
    margin-bottom: 4px;
    color: #232323;
}

.factle-description {
    text-align: center;
    color: #787c7e;
    font-size: 0.95em;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.factle-help-btn {
    position: absolute;
    top: 68px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #878a8c;
    background: transparent;
    color: #878a8c;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.factle-help-btn:hover {
    border-color: #232323;
    color: #232323;
}

/* --- Help modal --- */
.factle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.factle-modal.active {
    display: flex;
}

.factle-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.factle-modal-content h2 {
    margin-top: 0;
    font-size: 1.4em;
    color: #232323;
}

.factle-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #878a8c;
    line-height: 1;
}

.factle-help-colors {
    margin: 20px 0;
}

.factle-help-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: #555;
}

.factle-help-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    color: #fff;
}

.factle-help-note {
    font-size: 0.85em;
    color: #787c7e;
    margin-bottom: 0;
}

/* --- Question --- */
#question {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.15em;
    font-weight: 600;
    color: #232323;
    line-height: 1.4;
    padding: 0 8px;
}

/* --- Grid --- */
.grid-container {
    width: 100%;
    margin: 0 auto 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.grid {
    display: grid;
    grid-template-columns: 24px repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.grid-header-row {
    margin-bottom: 8px;
}

.grid-header {
    color: #878a8c;
    font-weight: 600;
    font-size: 0.75em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-label {
    display: block;
}

.attempt-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #878a8c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-row .feedback {
    border-color: #878a8c;
}

/* --- Feedback cells (grid tiles) --- */
.feedback {
    aspect-ratio: auto;
    min-height: 40px;
    padding: 4px 3px;
    font-size: 0.72em;
    font-weight: 600;
    color: #232323;
    background-color: #fff;
    border: 2px solid #d3d6da;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    line-height: 1.2;
}

.feedback.filled {
    border-color: #878a8c;
    animation: popIn 0.1s ease;
}

@keyframes popIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Tile reveal animation */
.feedback.reveal {
    animation: flipIn 0.4s ease forwards;
}

@keyframes flipIn {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Tile colors */
.tile-correct {
    background-color: #6aaa64 !important;
    border-color: #6aaa64 !important;
    color: #fff !important;
}

.tile-present {
    background-color: #c9b458 !important;
    border-color: #c9b458 !important;
    color: #fff !important;
}

.tile-absent {
    background-color: #787c7e !important;
    border-color: #787c7e !important;
    color: #fff !important;
}

/* Shake animation for invalid guess */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-4px); }
    30%, 70% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* --- Toast notification --- */
.factle-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #232323;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.factle-toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- Options (answer tiles) --- */
.options-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 12px auto;
    width: 100%;
    transition: opacity 0.4s ease;
}

.option {
    padding: 8px 4px;
    min-height: 42px;
    font-size: 0.72em;
    font-weight: 500;
    background-color: #e2e4e6;
    border: none;
    color: #232323;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
    user-select: none;
}

.option:hover {
    background-color: #d0d2d4;
    transform: translateY(-1px);
}

.option:active {
    transform: translateY(1px);
}

.option.selected {
    background-color: #007acc;
    color: #fff;
    transform: scale(0.97);
}

/* Option feedback colors */
.option.tile-correct {
    background-color: #6aaa64;
    color: #fff;
    cursor: default;
}

.option.tile-present {
    background-color: #c9b458;
    color: #fff;
}

.option.tile-absent {
    background-color: #787c7e;
    color: #fff;
    opacity: 0.6;
    cursor: default;
}

/* --- Buttons --- */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: opacity 0.4s ease;
}

.game-button {
    padding: 12px 24px;
    font-size: 0.9em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.btn-backspace {
    background-color: #e2e4e6;
    color: #232323;
}

.btn-backspace:hover {
    background-color: #d0d2d4;
}

.btn-guess {
    background-color: #007acc;
    color: #fff;
    min-width: 100px;
    justify-content: center;
}

.btn-guess:hover {
    background-color: #005fa3;
}

.game-button:active {
    transform: translateY(1px);
}

/* --- Fade animations --- */
.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Game results --- */
#game-results {
    text-align: center;
    padding: 24px 16px;
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-message {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 16px;
}

.result-win {
    color: #6aaa64;
}

.result-lose {
    color: #787c7e;
}

#game-results h3 {
    margin: 16px 0 8px;
    font-size: 0.95em;
    color: #878a8c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.correct-answers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.correct-answers-list li {
    padding: 8px 16px;
    margin: 4px 0;
    background: #f7f7f7;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    color: #232323;
    display: inline-block;
    min-width: 200px;
}

.answer-rank {
    font-weight: 700;
    color: #007acc;
    margin-right: 4px;
}

.source-link {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #007acc;
    text-decoration: none;
    border: 2px solid #007acc;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.2s;
    margin: 4px 8px;
}

.source-link:hover {
    background: #007acc;
    color: #fff;
}

.share-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #6aaa64;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px 8px;
    letter-spacing: 0.02em;
}

.share-btn:hover {
    background: #5a9a54;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    #game-container {
        padding: 0 8px 24px;
    }
    
    .factle-title {
        font-size: 1.6em;
    }

    .factle-help-btn {
        top: 64px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .grid {
        gap: 3px;
        grid-template-columns: 18px repeat(5, 1fr);
    }

    .feedback {
        min-height: 34px;
        font-size: 0.65em;
        padding: 3px 2px;
    }

    .option {
        min-height: 36px;
        font-size: 0.65em;
        padding: 6px 3px;
    }

    .options-container {
        gap: 3px;
    }

    .game-button {
        padding: 10px 16px;
        font-size: 0.85em;
    }

    .correct-answers-list li {
        min-width: 160px;
        font-size: 0.85em;
    }
}


/* ==========================================================================
   13. MODAL & UTILITIES
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.certificate-container {
    text-align: center;
}

.certificate-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.download-link {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* Desktop/Mobile Toggle */
.desktop-only {
    display: none;
}

.mobile-only {
    display: inline;
}

.cert-instruction {
    text-align: center;
    margin: 4rem auto 1rem;
    color: #666;
}


/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    
    /* Navigation */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px;
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 60px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .nav-menu li a {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        font-size: 1em;
    }

    /* Three Columns */
    .three-columns {
        flex-direction: column;
        gap: 20px;
        padding: 0px;
        width: 100%;
        margin: 0px auto;
    }

    .column {
        width: 100%;
        margin: 0 auto;
        padding: 0px;
    }

    .roles ul li,
    .areas ul li {
        font-size: 1.2em;
    }

    .competences ul {
        width: 100%;
    }

    /* Work Intro */
    .work-intro {
        padding: 20px;
    }
    
    .work-intro .intro-content {
        flex-direction: column;
        align-items: center;
    }
    
    .work-intro img {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    /* Education */
    .edu-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .university-logo {
        width: 50px;
        height: 50px;
    }

    .edu-entry {
        padding: 15px;
    }

    .highlight-courses {
        justify-content: center;
    }
    
    .edu-header h2 {
        font-size: 1.5em;
    }

    /* Carousel */
    .cert-carousels {
        padding: 15px;
        gap: 2rem;
        margin-top: 50px;
    }

    .cert-carousel-group {
        padding: 1.25rem;
    }

    .carousel-layout {
        flex-direction: column;
    }

    .carousel-group-header img {
        height: 35px;
    }

    .carousel-wrapper {
        gap: 0.5rem;
    }

    .carousel-info-panel {
        max-width: 100%;
        min-width: unset;
        text-align: center;
        padding: 1.25rem;
        min-height: 160px;
    }

    .carousel-info-panel .info-link {
        align-self: center;
    }

    .carousel-info-panel .info-title {
        font-size: 1rem;
    }

    .carousel-info-panel .info-description {
        font-size: 0.85rem;
    }

    .carousel-track-container {
        width: 180px;
        height: 180px;
    }

    .carousel-slide {
        min-width: 180px;
        height: 180px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    /* Volunteering */
    .content-wrapper {
        flex-direction: column;
    }

    .volunteer-intro {
        padding: 20px 15px;
    }
    
    .volunteer-intro .intro-content {
        flex-direction: column;
        align-items: center;
    }
    
    .volunteer-intro .intro-content img {
        width: 200px;
        margin-bottom: 20px;
    }

    .volunteer-intro p {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 15px;
    }

    /* Blog */
    .blog-post {
        margin: 40px auto;
    }

    .blog-post h1 {
        font-size: 2em;
    }

    .post-intro {
        padding: 1rem;
        font-size: 1.1em;
    }

    .post-content {
        padding: 1rem;
    }
    
    .subtle-highlight {
        padding: 1rem;
    }

    .typing {
        font-size: 2vw;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid figure {
        margin-bottom: 1rem;
    }

    .mobile-issue-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-issue {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .metrics {
        gap: 1.5rem;
    }
    
    .metric h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .image-column {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .text-column {
        flex: 0 0 100%;
        margin-top: 10px;
    }

    /* Desktop/Mobile Toggle */
    .desktop-only {
        display: inline;
    }
    .mobile-only {
        display: none;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    
    /* Carousel */
    .cert-carousels {
        padding: 10px;
        margin-top: 45px;
    }

    .cert-carousel-group {
        padding: 1rem;
        border-radius: 10px;
    }

    .carousel-track-container {
        width: 150px;
        height: 150px;
    }

    .carousel-slide {
        min-width: 150px;
        height: 150px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-info-panel {
        padding: 1rem;
        min-height: 140px;
    }

    .carousel-info-panel .info-title {
        font-size: 0.95rem;
    }

    .carousel-info-panel .info-date {
        font-size: 0.85rem;
    }

    .carousel-info-panel .info-description {
        font-size: 0.8rem;
    }

    .carousel-info-panel .info-link {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
}

/* Factle Game - Small screens */
@media (max-width: 450px) {
    .option, .feedback {
        min-height: 30px;
        width: calc((100% - 1px));
        font-size: 7px;
        margin: 0.25px;
        padding: 3px 2px;
    }
    .grid-header, .attempt-label {
        font-size: 7px;
    }
    .grid {
        grid-template-columns: 6px repeat(5, 1fr);
        gap: 0.25px;
    }
    .options-container {
        gap: 0.25px;
        margin-top: 2px;
    }
    .attempt-label {
        line-height: 20px;
    }
    .game-button {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Factle Game - Very small screens */
@media (max-width: 320px) {
    .option, .feedback {
        min-height: 24px;
        font-size: 7px;
        padding: 2px 1px;
    }
    .grid-header, .attempt-label {
        font-size: 6px;
    }
    .attempt-label {
        line-height: 18px;
    }
}

/* Desktop - Toggle visibility */
@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
    .mobile-only {
        display: none;
    }
}
