/* Swiss Learning Guide - Creative Review Platform Design */

:root {
    --primary: #1a202c;
    --secondary: #2d3748;
    --accent: #3182ce;
    --accent-hover: #2c5282;
    --text: #2d3748;
    --text-light: #4a5568;
    --text-dark: #1a202c;
    --bg: #f7fafc;
    --bg-card: #ffffff;
    --bg-alt: #edf2f7;
    --border: #cbd5e0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg);
    font-size: 18px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-bottom: 2px solid rgba(255,255,255,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1.05rem;
    white-space: nowrap;
    font-weight: 500;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav a.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    margin-bottom: 4rem;
    text-align: center;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.page-header p {
    font-size: 1.35rem;
    color: var(--text-light);
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.9;
    margin: 3rem auto 4rem;
    max-width: 900px;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.intro-text p {
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
}

/* Review Cards */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-alt);
}

.review-category {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e2e8f0 100%);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.review-title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.review-description {
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.9;
    flex-grow: 1;
    font-size: 1.1rem;
}

.review-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

/* List Layout */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.reviews-list .review-card {
    flex-direction: row;
    padding: 3rem;
    gap: 3rem;
}

.reviews-list .review-image {
    width: 350px;
    height: 250px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.reviews-list .review-content {
    flex: 1;
}

/* Tile Layout */
.reviews-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.reviews-tiles .review-card {
    padding: 2.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 0.85rem;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.footer-section a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.9;
}

.contact-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Contact info in footer (dark background) */
.footer .contact-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

.footer .contact-info strong {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 20px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
    background: var(--bg-card);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-group .error {
    color: #e53e3e;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group input:invalid:not(:placeholder-shown) ~ .error,
.form-group textarea:invalid:not(:placeholder-shown) ~ .error {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.3rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
}

.btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    padding: 1.1rem 3rem;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: none;
    border-top: 3px solid var(--accent);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-minimal {
    background: var(--bg-alt);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-minimal:hover {
    background: var(--border);
}

/* Text Content Styles - Beautiful Typography */
.content-text {
    max-width: 950px;
    margin: 0 auto 4rem;
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text);
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.content-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 20px 0 0 20px;
}

.content-text::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
    border-radius: 0 20px 0 40px;
    opacity: 0.3;
}

.content-text h2 {
    font-size: 2.25rem;
    margin: 0 0 2rem 0;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.3;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent);
    position: relative;
    padding-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, transparent 100%);
    padding-top: 1rem;
    padding-left: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 12px 12px 0 0;
}

.content-text h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem 0;
    color: var(--text-dark);
    font-weight: 700;
    padding-left: 1.5rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 2px;
}

.content-text p {
    margin-bottom: 1.75rem;
    text-align: justify;
    text-justify: inter-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-text p:first-of-type {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-text p:first-of-type::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 2px;
}

.content-text ul {
    margin: 2rem 0 2rem 2.5rem;
    line-height: 2.2;
    list-style: none;
    padding-left: 0;
}

.content-text li {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    color: var(--text);
    padding-left: 2rem;
    position: relative;
    line-height: 1.9;
}

.content-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.content-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    padding: 0 2px;
}

.content-text a:hover {
    border-bottom-color: var(--accent);
    background: rgba(49, 130, 206, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
        border-top: 2px solid rgba(255,255,255,0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    .nav.show {
        max-height: 800px;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .nav a {
        width: 100%;
        text-align: left;
        padding: 0.85rem 1rem;
        font-size: 1.1rem;
    }

    .header-container {
        padding: 0 1.5rem;
        position: relative;
    }

    .main-content {
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }

    .page-header p {
        font-size: 1.2rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding: 0 1rem;
    }

    .intro-text {
        font-size: 1.15rem;
        padding: 2rem 1.5rem;
        margin: 2rem auto 3rem;
    }

    .reviews-container,
    .reviews-tiles {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reviews-list .review-card {
        flex-direction: column;
        padding: 2rem;
    }

    .reviews-list .review-image {
        width: 100%;
        height: 240px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions button {
        flex: 1;
    }

    .form-container {
        padding: 2.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-text {
        font-size: 1.1rem;
        padding: 2rem 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .content-text h2 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding-left: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-right: 1rem;
    }
    
    .content-text h3 {
        font-size: clamp(1.3rem, 4vw, 1.5rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-left: 1rem;
    }
    
    .content-text h3::before {
        width: 3px;
        height: 20px;
        left: 0;
    }
    
    .content-text p:first-of-type {
        font-size: 1.15rem;
        padding-left: 1rem;
    }
    
    .content-text p:first-of-type::before {
        left: 0;
    }
    
    .content-text::before {
        width: 4px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .btn {
        width: 100%;
    }

    .review-card {
        padding: 2rem 1.5rem;
    }

    .intro-text {
        padding: 1.5rem;
    }
}
