/* --- CSS CUSTOM PROPERTIES --- */
:root {
    --murdum: #61232a;
    --gul-kurusu: #aa817d;
    --krema: #e7d8c4;
    --metin-koyu: #2b2525;
    --font: 'Plus Jakarta Sans', sans-serif;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 15.5px;
}

body {
    font-family: var(--font);
    color: var(--metin-koyu);
    background-color: var(--krema);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- PAPER TEXTURE (CSS fallback + image overlay) --- */
.paper-texture,
.motivation-paper,
.faq-container-paper {
    position: relative;
    background-image: url('kagit.png');
    background-size: cover;
    background-position: center;
    background-color: #f5f0e8;
}

/* --- FIXED HEADER / NAVBAR --- */
.main-header {
    background-color: var(--krema);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--krema);
    margin-left: -70px;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

/* --- NAVIGATION LINKS --- */
.main-nav {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--krema);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.35s ease-in-out;
    z-index: 999;
}

.main-nav.open {
    left: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.nav-link {
    color: var(--murdum);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 4px 0;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--murdum);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--murdum);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- HEADER ACTIONS --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.language-switcher {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--murdum);
    color: var(--murdum);
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 34px;
    height: 34px;
}

.lang-btn:hover {
    background-color: var(--murdum);
    color: var(--krema);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    padding: 6px 0;
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-opt {
    display: block;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--murdum);
    transition: all 0.2s;
}

.lang-opt:hover,
.lang-opt.active {
    color: var(--murdum);
    background-color: rgba(97, 35, 42, 0.06);
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--murdum);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- MOTIVATION HERO --- */
.motivation-hero {
    margin-top: var(--nav-height);
    background-color: var(--krema);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.motivation-paper {
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 2px 6px 24px rgba(0, 0, 0, 0.07);
    max-width: 760px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.paper-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--murdum);
    display: block;
    margin-bottom: 18px;
}

.hero-quote {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--murdum);
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.65rem;
    color: var(--murdum);
    margin-bottom: 28px;
    font-weight: 700;
}

.section-text {
    font-size: 1rem;
}

.alt-bg {
    background-color: #e0d2be;
}

.text-block {
    max-width: 800px;
}

/* --- VISION CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vision-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.vision-card h3 {
    font-size: 1.1rem;
    color: var(--murdum);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.vision-en {
    font-weight: 400;
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: 2px;
}

.vision-card p {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.65;
}

/* --- PARTNERS --- */
.partners-section {
    background-color: var(--krema);
}

.partners-wrapper {
    background-image: url('kagit.png');
    background-size: cover;
    background-position: center;
    background-color: #f5f0e8;
    border-radius: 14px;
    padding: 40px 100px 80px 160px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    min-height: 240px;
}

.partner-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.logo-top-left {
    top: 16px;
    left: 16px;
}

.logo-bottom-right {
    bottom: 16px;
    right: 16px;
}

.partners-content {
    text-align: justify;
    font-size: 1rem;
    color: #333;
    line-height: 1.75;
    background: rgba(255, 255, 255, 0.88);
    padding: 24px 28px;
    border-radius: 8px;
    max-width: 90%;
}

/* --- FAQ ACCORDION --- */
.faq-section {
    background-color: var(--krema);
}

.faq-container-paper {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(97, 35, 42, 0.12);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--murdum);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-family: var(--font);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--murdum);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--murdum);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 4px 0 14px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.faq-answer p:first-child {
    padding-top: 0;
}

/* --- APPLY SECTION --- */
.apply-section {
    background-color: var(--murdum);
    color: #fff;
}

.apply-section .section-title {
    color: var(--krema);
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 32px;
}

.apply-block h3 {
    color: var(--krema);
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.apply-block p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

.full-width {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.06);
    padding: 28px 24px;
    border-radius: 10px;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 36px;
    background-color: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: var(--font);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
}

/* --- CONTACT / SOCIAL CARDS --- */
.contact-section {
    background-color: #8b6b67;
    color: #fff;
}

.contact-section .section-title {
    color: var(--krema);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.social-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 28px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.social-card:hover {
    background: var(--krema);
    transform: translateY(-3px);
}

.social-card:hover .social-title {
    color: var(--murdum);
}

.social-card:hover .social-btn {
    background: var(--murdum);
    color: #fff;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    transition: color 0.3s;
}

.social-btn {
    font-size: 0.8rem;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gul-kurusu);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* --- FOOTER --- */
.main-footer {
    background: #1f1a1a;
    color: var(--krema);
    padding: 24px 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-link {
    color: var(--krema);
    text-decoration: underline;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
}

/* --- EVENTS CARDS --- */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-card-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.event-card-btn:hover {
    background: rgba(97, 35, 42, 0.04);
}

.event-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--murdum);
    text-align: left;
}

.event-card-icon {
    font-size: 1.4rem;
    color: var(--murdum);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
    line-height: 1;
}

.event-card.open .event-card-icon {
    transform: rotate(45deg);
}

.event-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.event-card.open .event-card-body {
    max-height: 2000px;
}

.event-card-img-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 0 2px 2px;
    background: #e0d2be;
}

.event-card-img {
    width: 100%;
    aspect-ratio: 16 / 12;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* 2+ cards side by side */
@media screen and (min-width: 769px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .event-card-btn {
        padding: 16px 18px;
    }
    .event-card-title {
        font-size: 1rem;
    }
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* --- RATE / STAR RATING --- */
.rate-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 12px;
    cursor: pointer;
}

.star {
    font-size: 2.5rem;
    color: #ccc;
    transition: color 0.2s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.star.active,
.star.hovered {
    color: #f5b342;
}

.star:active {
    transform: scale(0.88);
}

.rate-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
}

.rate-fields {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-input,
.rate-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.rate-input:focus,
.rate-textarea:focus {
    border-color: var(--murdum);
}

.rate-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-rate {
    padding: 12px 32px;
    background: var(--murdum);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.3s;
    align-self: center;
}

.btn-rate:hover {
    background: #7a2e37;
}

/* =================== */
/* ANIMATIONS & EFFECTS */
/* =================== */

/* Floating pulse on the motivation paper */
@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.motivation-paper {
    animation: softFloat 4s ease-in-out infinite;
}

/* Gentle glow pulse for the paper tag */
@keyframes glowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.paper-tag {
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Vision card hover lift */
.vision-card {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease;
}

.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Social card hover */
.social-card {
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.social-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* FAQ question hover */
.faq-question {
    transition: color 0.25s ease, padding-left 0.3s ease;
}

.faq-question:hover {
    padding-left: 6px;
}

.faq-question::after {
    transition: transform 0.4s ease, color 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg) scale(1.2);
}

/* Nav link underline animation */
.nav-link::after {
    transition: width 0.4s cubic-bezier(0.2, 0, 0, 1);
}

/* Language dropdown smoother */
.lang-dropdown {
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* WhatsApp button pulse */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

.btn-whatsapp {
    animation: subtlePulse 2.5s ease-in-out infinite;
}

.btn-whatsapp:hover {
    animation: none;
}

/* Section title entrance */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--murdum);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 90px;
}

/* =================== */
/* RESPONSIVE DESIGN   */
/* =================== */

/* Tablet landscape */
@media screen and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .social-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partners-wrapper {
        padding: 30px 30px 60px 30px;
        text-align: center;
    }

    .logo-top-left,
    .logo-bottom-right {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin: 0 12px 20px;
    }

    .partners-content {
        padding: 20px 18px;
        text-align: left;
        max-width: 100%;
    }
}

/* Tablet portrait & large phones */
@media screen and (max-width: 768px) {
    .logo-link {
        margin-left: -12px;
        width: 60px;
        height: 60px;
    }

    .hero-quote {
        font-size: 1.35rem;
    }

    .motivation-paper {
        padding: 36px 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .grid-3,
    .apply-grid,
    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .faq-container-paper {
        padding: 24px 20px;
    }

    .partners-wrapper {
        padding: 24px 20px;
    }

    .apply-grid {
        gap: 24px;
    }

    .social-links-grid {
        gap: 14px;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .motivation-hero {
        padding: 60px 16px;
        min-height: 60vh;
    }

    .hero-quote {
        font-size: 1.2rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .vision-card {
        padding: 20px 16px;
    }

    .social-card {
        padding: 20px 12px;
    }
}
