* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a5568;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --bg-color: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Info Bar */
.header-top {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-info-item i {
    font-size: 1rem;
    opacity: 0.9;
}

.header-info-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-info-item a:hover {
    opacity: 0.8;
}

.header-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s, opacity 0.3s;
}

.header-social a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Main Navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3182ce 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3182ce 0%, #2d3748 100%);
    transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 0.5rem 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* Mobile Styles for Header */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-content {
        padding: 1rem 0;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-list {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: var(--white);
    padding: 4rem 0;
    animation: fadeIn 1s ease-in;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    width: 120%;
    height: 120%;
    background-image: url('image/hero pc .jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(25px);
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    order: 1;
}

.hero-image {
    order: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    animation: slideInLeft 1.2s ease-out;
}

.hero-warning {
    background-color: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--white);
    animation: slideInLeft 1.4s ease-out;
}

.hero-bonus {
    background-color: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: slideInLeft 1.6s ease-out;
}

.hero-bonus h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-bonus p {
    line-height: 1.8;
}

.btn-primary {
    background-color: var(--white);
    color: var(--accent-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideInLeft 1.8s ease-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 1.8s ease-out;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.hero-image {
    animation: slideInRight 1s ease-out;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-image {
        background-image: url('image/hero mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .hero-image picture,
    .hero-image img {
        display: none;
    }

    .hero {
        padding: 2rem 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .hero::before {
        background-image: url('image/hero mobile.jpg');
        filter: blur(15px);
        opacity: 0.5;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    animation: fadeIn 1s ease-in;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px;
    cursor: pointer;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 100%;
    height: 280px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-card p {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    line-height: 1.8;
    color: #4a5568;
}

/* Carousel Section */
.carousel-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in;
}

.carousel-item {
    display: none;
    padding: 3rem;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-item.active {
    display: block;
}

.carousel-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.carousel-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #4a5568;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.carousel-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: #2c5282;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dot:hover {
    background: linear-gradient(90deg, #a0aec0 0%, #718096 100%);
    transform: scaleY(1.2);
}

.dot.active {
    background: linear-gradient(90deg, var(--accent-color) 0%, #2c5282 100%);
    width: 32px;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

#featureModal .modal-content {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#featureModal .modal-content h2 {
    padding: 1.5rem 2rem 0.5rem;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 0;
}

#featureModal .modal-content p {
    padding: 0 2rem 2rem;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.modal-bonus-info {
    background-color: #e6fffa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #234e52;
    font-weight: 600;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* Cookie Consent */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    z-index: 2500;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background-color: var(--white);
    color: var(--secondary-color);
}

.cookie-btn-accept:hover {
    background-color: #e2e8f0;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn-decline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        min-height: 280px;
        margin-bottom: 0;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.3);
        background-image: url('image/hero mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .hero-image picture,
    .hero-image img {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .hero-warning {
        padding: 0.875rem;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
    }

    .hero-bonus {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-bonus h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .hero-bonus p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .carousel-content {
        padding: 2rem 1.5rem;
    }

    .carousel-controls {
        flex-direction: column;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    /* Table Responsive Styles - Card View */
    .table-section .container,
    .comparison-section .container {
        margin: 0;
        padding: 0 20px;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .table-wrapper {
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }

    .data-table,
    .comparison-table,
    .resource-table {
        display: block;
        width: 100%;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .data-table thead,
    .comparison-table thead,
    .resource-table thead {
        display: none;
    }

    .data-table tbody,
    .comparison-table tbody,
    .resource-table tbody {
        display: block;
        width: 100%;
    }

    .data-table tbody tr,
    .comparison-table tbody tr,
    .resource-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background-color: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .data-table tbody tr:last-child,
    .comparison-table tbody tr:last-child,
    .resource-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .data-table td,
    .comparison-table td,
    .resource-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        font-size: 0.8rem;
        gap: 0.5rem;
        word-break: break-word;
        flex-wrap: wrap;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .data-table td > *,
    .comparison-table td > *,
    .resource-table td > * {
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    .data-table td:last-child,
    .comparison-table td:last-child,
    .resource-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before,
    .resource-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-color);
        flex-shrink: 0;
        width: 35%;
        max-width: 120px;
        font-size: 0.75rem;
    }

    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-color);
        flex-shrink: 0;
        width: 28%;
        max-width: 90px;
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .data-table td:first-child,
    .comparison-table td:first-child,
    .resource-table td:first-child {
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        font-weight: 700;
    }

    .data-table td:first-child::before,
    .comparison-table td:first-child::before,
    .resource-table td:first-child::before {
        display: none;
    }

    .comparison-table td:not(:first-child)::before {
        content: attr(data-label) ':';
        width: 28%;
        max-width: 90px;
        font-size: 0.65rem;
        flex-shrink: 0;
        line-height: 1.2;
    }

    .comparison-table td:not(:first-child) {
        font-size: 0.7rem;
        max-width: 100%;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
    }

    .comparison-table td {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .data-table td:first-child,
    .comparison-table td:first-child,
    .resource-table td:first-child {
        justify-content: flex-start;
    }

    .data-table td:first-child::before,
    .comparison-table td:first-child::before,
    .resource-table td:first-child::before {
        content: '';
    }

    .data-table tbody tr:hover,
    .comparison-table tbody tr:hover,
    .resource-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
}

/* Word Game Section */
.word-game-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.game-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.game-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

.game-description p:last-child {
    margin-bottom: 0;
}

.game-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.word-game-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.score-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    text-align: center;
    margin-bottom: 2rem;
}

.target-word-label {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.target-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.letters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 100px;
}

.letter-tile {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    user-select: none;
}

.letter-tile:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.letter-tile.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
}

.letter-tile.used {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.selected-word {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 12px;
}

.selected-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.selected-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    min-height: 1.5rem;
}

.game-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.game-message.success {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.game-message.error {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.game-message.info {
    color: var(--accent-color);
    background-color: rgba(49, 130, 206, 0.1);
}

@media (max-width: 768px) {
    .word-game-container {
        padding: 1.5rem;
    }

    .game-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .letter-tile {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .target-word {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .selected-text {
        font-size: 1.2rem;
    }
}
