/* ASSİM — Tailwind companion styles (no build step) */

html { scroll-behavior: smooth; }

/* Rich text from CMS */
.prose-assim h1, .prose-assim h2, .prose-assim h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0b2422;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.prose-assim p { margin-bottom: 1em; line-height: 1.75; color: #374151; }
.prose-assim ul, .prose-assim ol { margin: 1em 0; padding-left: 1.5em; }
.prose-assim img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.prose-assim a { color: #22756b; text-decoration: underline; }
.prose-assim a:hover { color: #e85d2a; }

/* Form inputs — shared across başvuru formları */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-input:focus {
    outline: none;
    border-color: #2d9185;
    box-shadow: 0 0 0 3px rgba(45, 145, 133, 0.15);
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #e85d2a 0%, #d44a1a 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(232, 93, 42, 0.4);
}

/* Başvuru tabloları */
.form-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.form-table td, .form-table th {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.form-table tr:first-child td { background: #f0f9f8; }

/* Horizontal scroll snap */
.snap-x-mandatory { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.snap-start { scroll-snap-align: start; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Hero slider */
#hero-slider {
    position: relative;
    height: 320px;
    min-height: 320px;
    border-radius: 1rem;
    overflow: hidden;
}
@media (min-width: 640px) {
    #hero-slider {
        height: 400px;
        min-height: 400px;
    }
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.hero-slide.is-current {
    display: block;
    z-index: 1;
}

#hero-slider .hero-slide > div:first-child {
    background-size: cover;
    background-position: center;
}

#hero-slider .hero-slide > div:last-child {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ASSİM Etkinlik Haberleri — Swiper */
.etkinlik-haberleri-swiper {
    overflow: hidden;
    padding-bottom: 2.75rem;
}
.etkinlik-haberleri-swiper .swiper-slide {
    height: auto;
}
.etkinlik-haberleri-swiper__pagination {
    bottom: 0 !important;
}
.etkinlik-haberleri-swiper .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: #2d9185;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.etkinlik-haberleri-swiper .swiper-pagination-bullet-active {
    background: #e85d2a;
    opacity: 1;
    transform: scale(1.15);
}
@media (min-width: 640px) {
    .etkinlik-haberleri-swiper {
        padding-bottom: 2.25rem;
    }
}

.etkinlik-haberleri-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef2f1;
    box-shadow: 0 4px 24px -4px rgba(11, 36, 34, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.etkinlik-haberleri-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(11, 36, 34, 0.14);
}

.etkinlik-haberleri-card__img {
    position: relative;
    height: 11rem;
    background-size: cover;
    background-position: center;
    background-color: #d9f0ed;
}
.etkinlik-haberleri-card__date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e5e57;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
}

.etkinlik-haberleri-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.25rem 1.25rem;
}
.etkinlik-haberleri-card__title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #193f3b;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.etkinlik-haberleri-card:hover .etkinlik-haberleri-card__title { color: #22756b; }

.etkinlik-haberleri-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Anasayfa hizmet duvarı (yedek — asıl stiller Index.cshtml içinde) */
.assim-services__wall.hide-scrollbar::-webkit-scrollbar { display: none; }
.assim-services__wall.hide-scrollbar { scrollbar-width: none; }

/* Mobile nav */
#mobile-nav.open { transform: translateX(0); }
#mobile-nav { transform: translateX(100%); }

/* Pagination (X.PagedList) */
.pagination { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.pagination a { background: #f0f9f8; color: #22756b; transition: background 0.2s; }
.pagination a:hover { background: #2d9185; color: #fff; }
.pagination .active span { background: #22756b; color: #fff; }

/* FullCalendar overrides */
#div_etk_takv .fc-toolbar h2 { font-family: 'Outfit', sans-serif; font-weight: 700; }
#div_etk_takv .fc-event { background: #2d9185; border-color: #22756b; }
