:root {
    --primary-color: #F28B7D;
    /* Salmon/Orange from flyer */
    --secondary-color: #7FC7BD;
    /* Cyan/Turquoise from flyer */
    --accent-color: #F9E28B;
    /* Soft Yellow - keeping as accent */
    --text-color: #4a4a4a;
    /* Dark Grey */
    --bg-color: #ffffff;
    /* Default white */
    --white: #ffffff;

    /* Updated Shadows for flatter look but keeping some depth */
    --clay-shadow-out: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
    /* Claymorphism Shadows */
    --clay-shadow-in: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.7), inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
    --clay-shadow-float: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;

    --border-radius: 30px;
    /* From requirements */
    --transition-speed: 0.3s;
}

/* Flyer Utility Classes */
.bg-orange {
    background-color: var(--primary-color) !important;
    color: var(--white);
}

.bg-white {
    background-color: var(--white) !important;
    color: var(--text-color);
}

.bg-cyan {
    background-color: var(--secondary-color) !important;
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.text-orange {
    color: var(--primary-color);
}

.text-cyan {
    color: var(--secondary-color);
}

.flyer-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .flyer-section {
        padding: 50px 0;
    }
}

.flyer-block {
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 1.25rem;
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-color);
}

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

.header-logo img {
    height: 85px;
    transition: var(--transition-speed);
}

@media (max-width: 768px) {
    .header-logo img {
        height: 60px;
    }

    .clay-header {
        padding: 10px 0;
    }
}

/* Claymorphism Components */
.clay-card {
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: var(--clay-shadow-out);
    padding: 40px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.clay-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clay-shadow-float);
}

.clay-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    background: var(--bg-color);
    box-shadow: var(--clay-shadow-out);
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clay-button:hover {
    box-shadow: var(--clay-shadow-in);
    transform: translateY(2px);
}

.clay-button.clay-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 5px 5px 10px rgba(242, 139, 125, 0.4), -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.clay-button.clay-primary:hover {
    box-shadow: inset 3px 3px 5px rgba(200, 100, 90, 0.3), inset -3px -3px 5px rgba(255, 255, 255, 0.5);
}

/* Flyer Components Responsive */
.flyer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .flyer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flyer-icon {
        font-size: 5rem;
    }
}

.flyer-icon {
    font-size: 8rem;
    text-align: center;
    opacity: 0.8;
}

.flyer-content h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.flyer-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.flyer-content div,
.flyer-content p,
.flyer-content li {
    font-size: 1.35rem;
    line-height: 1.8;
}

.spaced-list li {
    margin-bottom: 0.8rem;
}

.spaced-list li:last-child {
    margin-bottom: 0;
}

/* Footer Update */
.clay-footer {
    background: var(--secondary-color);
    /* Cyan footer */
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
    /* Remove margin as it connects to sections */
    box-shadow: none;
}

.clay-footer h3,
.clay-footer h4,
.clay-footer p,
.clay-footer a,
.clay-footer i {
    color: white !important;
}

.clay-social-btn {
    background: white;
    color: var(--secondary-color);
    box-shadow: none;
}

.clay-social-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Header */
.clay-header {
    background: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-speed);
}

.logo img {
    height: 95px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    align-items: center;
}

.clay-button-sm {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-color);
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    color: var(--text-color);
    transition: 0.3s;
}

/* Floating Agenda Button Styling */
#floating-calendar-target {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transform: scale(1.2);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

#floating-calendar-target:hover {
    transform: scale(1.3);
}

/* Ensure the generated button has a clay look and correct position */
#floating-calendar-target button,
button.qxCTlb {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    z-index: 9999 !important;
    transform: scale(1.3) !important;
    transform-origin: bottom right !important;
    box-shadow: var(--clay-shadow-out) !important;
    border-radius: 50px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 700 !important;
}

#floating-calendar-target button:hover,
button.qxCTlb:hover {
    transform: scale(1.4) !important;
}

/* Hide Google Translate Widget interface but keep it for logic */
#google_translate_element {
    display: none !important;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-left: 10px;
}

.lang-btn {
    color: var(--text-color);
    opacity: 0.6;
    transition: 0.3s;
}

.lang-btn.active {
    color: var(--primary-color);
    opacity: 1;
}

.lang-btn:hover {
    opacity: 1;
}



.clay-button-sm:hover {
    box-shadow: inset 3px 3px 5px #d1d9e6, inset -3px -3px 5px #ffffff;
    color: var(--primary-color);
}


/* Header Actions & CTA */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 4px 4px 10px rgba(242, 139, 125, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 15px rgba(242, 139, 125, 0.4);
}

.header-cta-btn:active {
    transform: translateY(0);
}

.header-cta-btn i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .cta-text {
        display: none;
    }

    .header-cta-btn {
        padding: 12px;
        border-radius: 50%;
    }

    .header-cta-btn i {
        margin: 0;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    background: var(--bg-color);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    transition: 0.3s;
}

.hamburger:active {
    box-shadow: inset 3px 3px 5px #d1d9e6, inset -3px -3px 5px #ffffff;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 8px;
    border-radius: 10px;
    transition: 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--primary-color);
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.hero h1,
.section-title {
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

.logo-3d-container {
    margin-bottom: 30px;
}

.hero-logo {
    max-width: 320px;
    /* Increased from 250px */
    border-radius: 50%;
    /* Stronger 3D effect for hero logo */
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Servicios */
.servicios {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
    color: var(--primary-color);
}

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

.service-card {
    text-align: center;
    border-radius: 40px;
    /* Extra rounded */
}

.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.4);
}

.soft-coral {
    background-color: var(--primary-color);
}

.soft-green {
    background-color: var(--secondary-color);
}

.soft-yellow {
    background-color: var(--accent-color);
    color: #555;
}

/* Info Domicilio */
.clay-section-alt {
    padding: 80px 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    /* Slightly different shadow on colored card */
}

.info-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 50%;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.info-text h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Metodologia */
.metodologia {
    padding: 80px 0;
}

.metodologia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

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

.clay-list li {
    background: var(--bg-color);
    box-shadow: var(--clay-shadow-out);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.2s;
}

.clay-list li:hover {
    transform: translateX(10px);
}

.check-icon {
    background: var(--accent-color);
    color: #555;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Abstract Clay Shapes for Image Placeholder */
.clay-shape-container {
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clay-circle {
    position: absolute;
    border-radius: 50%;
}

.bounce-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50px;
    left: 50px;
    animation: float 6s infinite;
    box-shadow: inset -20px -20px 40px rgba(0, 0, 0, 0.1), 20px 20px 40px rgba(255, 255, 255, 0.4), 10px 10px 30px #d1d9e6;
}

.bounce-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    bottom: 50px;
    right: 50px;
    animation: float 7s infinite reverse;
    box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.1), 15px 15px 30px rgba(255, 255, 255, 0.4), 10px 10px 30px #d1d9e6;
}

.bounce-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1), 10px 10px 20px rgba(255, 255, 255, 0.4), 10px 10px 30px #d1d9e6;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Footer */
/* Footer */
.clay-footer {
    background-color: var(--secondary-color) !important;
    /* Cyan Background */
    color: white !important;
    padding: 60px 0 20px;
    margin-top: 80px;
    box-shadow: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3,
.footer-contact h4,
.footer-contact p,
.footer-contact a {
    color: white !important;
    /* Force white text */
}

.footer-logo h3 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.footer-contact h4 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-contact p,
.footer-contact a {
    font-size: 1.2rem;
    line-height: 1.6;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.clay-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    /* White button */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    /* Cyan icon */
    box-shadow: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.clay-social-btn:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    /* More readable legal text */
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1100px) {
    .clay-header nav {
        flex-direction: row !important;
        justify-content: space-between;
        position: relative;
    }

    .hamburger {
        display: block;
        margin-top: 5px;
        /* Added spacing from top edge */
    }

    .nav-links {
        display: none;
        /* Oculto por defecto */
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 30px 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 30px 30px;
        z-index: 999;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
        /* Visible al activar */
        animation: slideDown 0.3s ease-out forwards;
    }

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

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

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .clay-button-sm {
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .lang-selector {
        justify-content: center;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .metodologia-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .flyer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .flyer-icon {
        margin-top: 30px;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: var(--clay-shadow-out);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clay-shadow-float);
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
}

.news-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0px;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    max-height: 4.5em;
    /* Approximately 3 lines */
}

.news-card.expanded .news-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: 2000px;
    /* Large enough for full content */
    opacity: 1;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s, max-height 0.5s ease;
}

.news-player {
    margin-top: auto;
    width: 100%;
}

.news-player audio {
    width: 100%;
    margin-top: 10px;
    border-radius: 30px;
}

.news-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* Shimmer Loading Effect */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
    min-height: 250px;
    color: transparent !important;
}

@keyframes placeholderShimmer {

    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* Source Badges */
.source-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-podcast {
    background-color: var(--primary-color);
    /* Orange/Salmon */
}

.badge-blog {
    background-color: var(--secondary-color);
    /* Cyan */
}

.badge-google {
    background-color: #4285F4;
}

.badge-pubmed {
    background-color: #336699;
}

.badge-cochrane {
    background-color: #121c26;
}

.badge-local {
    background-color: #ffebcc;
    color: #d35400;
}

.news-card-local {
    border-top: 4px solid #f39c12;
}

/* Text-to-Speech button */
.tts-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    align-self: flex-start;
}

.tts-btn:hover {
    background: var(--secondary-color);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-date {
    margin-bottom: 0;
    /* Override previous margin */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 40px;
    width: 95%;
    max-width: 800px;
    position: relative;
    border-radius: 30px;
    box-shadow: var(--clay-shadow);
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-header-info {
    margin-bottom: 25px;
}

#modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.modal-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.modal-desc {
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed #eee;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.source-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f4f8;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
}

.source-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Game Modal Styles */
.game-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.game-modal-content {
    background-color: var(--white);
    width: 95%;
    height: 90%;
    max-width: 1400px;
    border-radius: 30px;
    position: relative;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-game-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close-game-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.game-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Card Enhancements */
.open-game-btn {
    margin-top: auto;
    width: 100%;
    font-size: 1.1rem;
}

.clay-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.clay-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    min-height: 3em;
}

/* QR Share Section - Static Approach */
.footer-qr-static {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-basis: 100%;
}

.qr-text-label {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
}

.qr-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px);
}

.qr-card img {
    width: 160px;
    height: 160px;
    display: block;
}

@media (max-width: 768px) {
    .qr-card img {
        width: 130px;
        height: 130px;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .game-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .close-game-modal {
        top: 10px;
        right: 10px;
    }
}