/* 
   Theme: Selfy (Recreation)
   Colors: Yellow (#FFC107), Light Grey (#F2F2F2), Dark Grey (#333333), White (#FFFFFF)
   Fonts: Montserrat (Headings), Open Sans (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary-color: #FFC107;
    /* Warm Yellow */
    --bg-grey: #F2F2F2;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1100px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Header */
.header {
    background-color: var(--bg-grey);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #E0E0E0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);

}

.desktop-nav a:hover {
    color: var(--primary-color);
}

/* Highlighted menu item (Pill) */
.desktop-nav li.highlight a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
}

.desktop-nav li.highlight a:hover {
    background-color: #E0A800;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
}

.mobile-nav {
    display: none;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-grey);
    padding: 80px 0 0;
    /* No bottom padding, image sits on bottom */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    padding-bottom: 80px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.hero-quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 14px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-image img {
    max-height: 500px;
    object-fit: contain;
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '.';
    color: var(--primary-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 16px;
}

/* Stats / Metrics */
.metrics-section {
    background-color: var(--white);
    padding-bottom: 80px;
    border-bottom: 1px solid #EEE;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.metric-item {
    padding: 20px;
}

.metric-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.metric-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 12px;

    color: var(--text-light);
    letter-spacing: 1px;
}

/* Two Column: Nutshell & Skills */
.profile-skills-section {
    background-color: var(--white);
    padding: 80px 0;
}

.profile-skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.nutshell-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nutshell-avatar {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    /* Square with slight radius */
    object-fit: cover;
}

.column-title {
    font-size: 24px;
    margin-bottom: 0;
}

.column-title::after {
    content: '.';
    color: var(--primary-color);
}

.nutshell-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.simple-list {
    list-style: none;
    margin-bottom: 1rem;
}

.simple-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 14px;
    color: var(--text-light);
}

.simple-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Skills Bars */
.skill-bar-item {
    margin-bottom: 20px;
}

.skill-bar-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.skill-track {
    width: 100%;
    height: 25px;
    background-color: var(--bg-grey);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 11px;
    color: var(--white);
    font-weight: 700;
}

/* Storytelling */
.storytelling-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #EEE;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-light);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text-dark);
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-grey);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.story-summary {
    background-color: #FAFAFA;
    padding: 2rem;
    border: 1px solid #EEE;
    margin: 2rem 0;
}

.story-summary ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* Gallery */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-grey);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 12px;
    line-height: 1.4;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--bg-grey);
    border-radius: 4px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.testimonial-card cite {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);

}

/* Services */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #EEE;
}

.services-list-simple {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.service-item-simple {
    padding: 10px 25px;
    background-color: var(--bg-grey);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.service-item-simple:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Education */
.education-section {
    padding: 80px 0;
    background-color: var(--bg-grey);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.edu-card {
    background-color: var(--white);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
}

.edu-school {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.edu-awards {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

/* Publications & Portfolio */
.pub-portfolio-section {
    padding: 80px 0;
    background-color: var(--white);
}

.pub-portfolio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Final CTA */
.final-cta-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.final-cta-section h2 {
    color: var(--white);
    font-size: 32px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.final-cta-section p {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

/* Footer */
.footer {
    background-color: var(--bg-grey);
    padding: 60px 0 20px;
    color: var(--text-light);
    font-size: 13px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-recent-posts li {
    margin-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 10px;
}

.footer-recent-pics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.footer-recent-pics img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid #DDD;
    padding-top: 20px;
    font-size: 11px;

}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;

    font-size: 12px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #E0A800;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 14px;
    background-color: var(--text-dark);
}

.btn-lg:hover {
    background-color: #000;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-container,
    .profile-skills-container,
    .metrics-grid,
    .footer-container,
    .pub-portfolio-container,
    .education-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 32px;
        /* Smaller font on mobile */
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile for metrics */
    }

    /* Mobile Nav Styles */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        /* Flexible box layout */
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav ul {
        list-style: none;
        text-align: center;
    }

    .mobile-nav li {
        margin: 20px 0;
    }

    .mobile-nav a {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-dark);
    }

    .mobile-nav a:hover {
        color: var(--primary-color);
    }

    /* Spacing Adjustments */
    .hero-section,
    .about-section,
    .metrics-section,
    .profile-skills-section,
    .storytelling-section,
    .gallery-section,
    .testimonials-section,
    .services-section,
    .education-section,
    .pub-portfolio-section,
    .certifications-section {
        padding: 40px 0;
        /* Reduced padding */
    }

    .section-title {
        font-size: 28px;
    }

    /* Carousel Certifications Mobile Fix */
    .cert-card {
        padding: 20px;
        /* Reduced vertical padding */
    }

    .cert-card h3 {
        font-size: 18px;
    }

    .cert-controls {
        gap: 10px;
    }

    .cert-prev-btn,
    .cert-next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Image sizing fixes */
    .story-inserted-image {
        max-width: 100%;
    }
}

.story-inserted-image {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story-image-container {
    max-width: 800px;
    margin: 2rem auto;
}

.story-inserted-image {
    margin: 0;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story-inserted-image:hover {
    transform: none;
}

.story-caption {
    display: block;
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    margin-top: 10px;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dark);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.story-caption.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.story-content.story-collapsed {
    max-height: 500px;
}

.story-content.story-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}


/* Testimonial Carousel */
.testimonial-slider {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 20px;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--bg-grey);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-slide cite {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Controls */
.testimonial-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.testimonial-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.testimonial-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
}

@keyframes fadeEffect {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.gallery-caption {
    max-height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #333;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Video Carousel */
.video-carousel-container {
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.video-carousel {
    max-width: 800px;
    margin: 30px auto 0;
    position: relative;
    padding-bottom: 30px;
}

.video-slide {
    display: none;
    animation: fadeEffect 1s;
}

.video-slide.active {
    display: block;
}

/* 16:9 Aspect Ratio Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Controls */
.video-controls {
    text-align: center;
    margin-top: 20px;
}

.video-prev-btn,
.video-next-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    margin: 0 10px;
}

.video-prev-btn:hover,
.video-next-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.video-dots {
    text-align: center;
    margin-top: 15px;
}

.video-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.video-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Certifications Section */
.certifications-section {
    background-color: #222;
    /* Darker background for better contrast */
    color: var(--white);
    padding: 80px 0;
}

.certifications-section .section-title {
    color: var(--white);
    margin-bottom: 40px;
}

.cert-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    /* Removed overflow: hidden to allow shadow/elements to breathe, managed by track */
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal swipe in JS */
}

.cert-track {
    position: relative;
    min-height: 350px;
    /* Minimum height to prevent collapse during load */
    /* Remove display: flex to depend on stacking */
}

.cert-slide {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    z-index: 1;
}

.cert-slide.active {
    opacity: 1;
    position: relative;
    visibility: visible;
    z-index: 2;
}

.cert-card {
    background-color: rgba(255, 255, 255, 0.08);
    /* Slightly more transparent */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 12px;
    /* Softer corners */
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Premium shadow */
}

.cert-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cert-org {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: #EEE;
}

.cert-place {
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    /* Improved readability */
    margin-bottom: 25px;
}

.cert-competencies h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding-bottom: 5px;
}

.cert-competencies ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.cert-competencies li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #E0E0E0;
    line-height: 1.5;
}

.cert-competencies li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
    top: 2px;
    /* Adjusted for alignment */
}

/* Cert Controls */
.cert-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cert-prev-btn,
.cert-next-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    /* Larger targets */
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cert-prev-btn:hover,
.cert-next-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.cert-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.cert-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.cert-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Skills Column Updates */
.skill-category {
    margin-bottom: 25px;
}

.skill-category h4 {
    font-size: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.skill-list-compact {
    list-style: none;
    padding-left: 0;
}

.skill-list-compact li {
    font-size: 14px;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.skill-list-compact li::before {
    content: '›';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    top: 0px;
}

/* Languages */
.languages-block h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.languages-list {
    list-style: none;
    padding: 0;
}

.languages-list li {
    font-size: 15px;
    margin-bottom: 10px;
    border-bottom: 1px dotted #E0E0E0;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.languages-list li strong {
    color: var(--text-dark);
}

/* Language Switcher */
.language-switcher {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.language-switcher a {
    color: var(--text-light);
    text-decoration: none;
}

.language-switcher a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Admin Access Link */
.admin-access {
    text-align: center;
    margin-top: 5px;
    opacity: 1;
    transition: color 0.3s ease;
    color: var(--text-light);
    font-size: 14px; /* Increased slightly for visibility */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-access:hover {
    color: var(--primary-color);
}

.language-switcher strong {
    color: var(--text-dark);
    cursor: default;
}

/* FINAL MOBILE OVERRIDES (Must be at the end) */
@media (max-width: 768px) {
    .cert-carousel {
        margin-top: 20px;
    }

    .cert-card {
        padding: 25px !important;
        /* Force override */
    }

    .cert-card h3 {
        font-size: 18px !important;
    }

    .cert-place {
        margin-bottom: 15px;
    }

    .cert-controls {
        margin-top: 30px;
        gap: 15px;
    }

    .cert-prev-btn,
    .cert-next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .certifications-section {
        padding: 50px 0;
    }
}