/**
 * Özel Yön Akademi Dershanesi - Kurumsal tema
 * Kartlar, kutular, ikonlar, hover efektleri, responsive
 */

:root {
    --theme-color: #2563eb;
    --theme-hover: #1d4ed8;
    --theme-light: rgba(37, 99, 235, 0.08);
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----- Header ----- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.logo:hover { color: var(--theme-color); }

.logo img { max-height: 50px; width: auto; display: block; }
.logo-text { white-space: nowrap; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.25rem;
    border-radius: var(--radius);
    color: var(--text);
}

.nav-toggle:hover {
    background: var(--bg-soft);
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.main-nav a {
    display: block;
    padding: 0.55rem 0.85rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--theme-light);
    color: var(--theme-color);
}

/* ----- Main ----- */
.main-content { min-height: calc(100vh - 140px); }

/* ----- Hero (full-width with image) ----- */
.hero-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-soft) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,250,252,0.88) 100%);
    z-index: 0;
}

.hero-banner .container { position: relative; z-index: 1; }

.hero-banner h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.hero-banner .hero-sub {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ----- Section blocks ----- */
.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: var(--bg-soft);
}

.section--theme {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-hover) 100%);
    color: #fff;
}

.section--theme .section-title,
.section--theme .text-muted { color: rgba(255,255,255,0.95); }
.section--theme .text-muted { opacity: 0.9; }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 600px;
}

.text-muted { color: var(--text-muted); }

/* ----- Icon feature cards (staggered hover) ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-color);
}

.feature-card .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--theme-light);
    color: var(--theme-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: background var(--transition), color var(--transition);
}

.feature-card:hover .icon-wrap {
    background: var(--theme-color);
    color: #fff;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----- Stats strip ----- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-box:nth-child(odd):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-box:nth-child(even):hover {
    transform: translateY(4px);
    box-shadow: var(--shadow-md);
}

.stat-box .stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1.2;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ----- Program / content cards (with image) ----- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:nth-child(1):hover { transform: translateY(-4px) rotate(-0.5deg); }
.card:nth-child(2):hover { transform: translateY(-4px) rotate(0.5deg); }
.card:nth-child(3):hover { transform: translateY(-4px) rotate(-0.5deg); }

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-color);
}

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-img-wrap .card-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: var(--theme-color);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.5rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    transition: gap var(--transition), color var(--transition);
}

.card .card-link:hover {
    gap: 0.6rem;
    color: var(--theme-hover);
}

/* ----- Icon-only cards (no image) ----- */
.icon-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.icon-card:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}

.icon-card .icon-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--theme-light);
    color: var(--theme-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background var(--transition), color var(--transition);
}

.icon-card:hover .icon-wrap {
    background: var(--theme-color);
    color: #fff;
}

.icon-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 600; }
.icon-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ----- Content box ----- */
.content-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.content-box p { margin: 0 0 1rem; }
.content-box p:last-child { margin-bottom: 0; }

/* ----- Program list (enhanced) ----- */
.program-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.program-list li {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--theme-color);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.program-list li:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--theme-hover);
}

.program-list li .program-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--theme-light);
    color: var(--theme-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.program-list h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 600; }
.program-list p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* ----- News cards ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:nth-child(odd):hover { transform: translateY(-4px); }
.news-card:nth-child(even):hover { transform: translateY(4px); }

.news-card:hover { box-shadow: var(--shadow-hover); }

.news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-img {
    height: 180px;
    background: var(--bg-alt);
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 1.25rem; }

.news-card-date {
    font-size: 0.85rem;
    color: var(--theme-color);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.news-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
}

.news-card:hover .news-card-title { color: var(--theme-color); }

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: background var(--transition);
}

.news-list li:hover { background: var(--bg-soft); }

.news-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.news-list a:hover { color: var(--theme-color); }

.news-list .news-date { font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
.news-list .news-title { font-weight: 600; }

/* ----- Gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:nth-child(3n+1):hover { transform: scale(1.02) rotate(-1deg); }
.gallery-item:nth-child(3n+2):hover { transform: scale(1.02); }
.gallery-item:nth-child(3n+3):hover { transform: scale(1.02) rotate(1deg); }

.gallery-item:hover { box-shadow: var(--shadow-hover); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ----- Contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--theme-light);
    color: var(--theme-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.contact-info-card strong { display: block; margin-bottom: 0.25rem; }
.contact-info-card span { color: var(--text-muted); font-size: 0.95rem; }

.contact-form-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ----- Forms ----- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--theme-light);
}

.form-group textarea { min-height: 130px; resize: vertical; }
.form-error { color: #dc2626; font-size: 0.875rem; margin-top: 0.25rem; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--theme-color);
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.btn:hover {
    background: var(--theme-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--theme-color) !important;
    border: 2px solid var(--theme-color);
}

.btn-outline:hover {
    background: var(--theme-color);
    color: #fff !important;
}

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }

/* ----- CTA block ----- */
.cta-block {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cta-block h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.cta-block p { margin: 0 0 1.25rem; color: var(--text-muted); }
.cta-block .btn { margin: 0 0.25rem; }

/* ----- Footer ----- */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.85);
    padding: 2rem 1rem;
    margin-top: 0;
    text-align: center;
}

.footer-text { margin: 0; font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.9); }

/* ----- News detail ----- */
.news-detail img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* ----- Page title bar ----- */
.page-title-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-bottom: 0;
}

.page-title-bar .section-title { margin-bottom: 0; }
.page-title-bar .section-subtitle { margin-bottom: 0; }

/* ----- About split layout ----- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-split img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .about-split { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.is-open { max-height: 400px; }
    .main-nav ul { flex-direction: column; padding: 0.5rem; }
    .main-nav a { padding: 0.75rem; }
    .hero-banner { min-height: 360px; padding: 2rem 1rem; }
    .section { padding: 2.5rem 0; }
    .stats-strip { grid-template-columns: 1fr; gap: 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .program-list li { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-banner .hero-buttons { flex-direction: column; }
}
