:root {
    --itg-blue: #0d3b66;
    --itg-orange: #eb681e;
    --itg-light: #f8f9fb;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    background: #fff;
}

.text-itg-blue { color: var(--itg-blue) !important; }
.text-itg-orange { color: var(--itg-orange) !important; }
.bg-itg-blue { background-color: var(--itg-blue) !important; }
.bg-itg-orange { background-color: var(--itg-orange) !important; }

.btn-itg {
    background-color: var(--itg-orange);
    border-color: var(--itg-orange);
    color: #fff;
}
.btn-itg:hover {
    background-color: #c8551a;
    border-color: #c8551a;
    color: #fff;
}

.btn-outline-itg {
    border-color: var(--itg-orange);
    color: var(--itg-orange);
}
.btn-outline-itg:hover {
    background: var(--itg-orange);
    color: #fff;
}

/* Navbar */
.navbar-itg {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(13, 59, 102, 0.08);
}
.navbar-itg .navbar-brand,
.navbar-itg .navbar-brand span {
    color: var(--itg-blue) !important;
}
.navbar-itg .nav-link {
    color: var(--itg-blue) !important;
    font-weight: 500;
    padding: .75rem 1rem !important;
    transition: color .15s;
}
.navbar-itg .nav-link:hover {
    color: var(--itg-orange) !important;
}
.navbar-itg .navbar-toggler {
    color: var(--itg-blue);
    border-color: rgba(13, 59, 102, 0.2);
}
.navbar-itg .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230d3b66' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-itg .navbar-social a {
    color: var(--itg-blue);
    font-size: 1.25rem;
    transition: color .15s;
    line-height: 1;
    display: inline-flex;
}
.navbar-itg .navbar-social a:hover {
    color: var(--itg-orange);
}
.navbar-itg .dropdown-menu {
    border-radius: 4px;
    border: 1px solid rgba(13, 59, 102, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.navbar-itg .dropdown-menu .dropdown-item {
    color: var(--itg-blue);
}
.navbar-itg .dropdown-menu .dropdown-item:hover,
.navbar-itg .dropdown-menu .dropdown-item:focus {
    background: var(--itg-light);
    color: var(--itg-orange);
}

/* Hero Slider (carousel) */
.hero-slider .carousel-item {
    position: relative;
}
.hero-slider .hero-slide-img {
    width: 100%;
    height: 560px;
    background-size: cover;
    background-position: center;
    background-color: var(--itg-blue);
}
.hero-slider .hero-caption {
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 60%, transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1rem 2.5rem;
}
.hero-slider .hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-slider .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
    opacity: 0.7;
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
}
@media (max-width: 768px) {
    .hero-slider .hero-slide-img { height: 320px; }
    .hero-slider .hero-title { font-size: 1.5rem; }
    .hero-slider .hero-subtitle { font-size: 0.95rem; }
}

/* Hero (eski sade hali — kullanılmıyor, ileride gerekirse hazır) */
.hero {
    background: linear-gradient(135deg, var(--itg-blue) 0%, #1e5b8f 100%);
    color: #fff;
    padding: 8rem 0 6rem;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.25rem;
    opacity: .9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    color: var(--itg-blue);
    font-weight: 700;
    margin-bottom: .5rem;
}
.section-title .lead {
    color: #6c757d;
}

.bg-light-itg { background: var(--itg-light); }

/* Stat cards */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-card .num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--itg-orange);
    line-height: 1;
}
.stat-card .label {
    font-size: 1rem;
    color: var(--itg-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: .5rem;
}

/* Group card */
.group-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: inherit;
}
.group-card .icon {
    font-size: 3rem;
    color: var(--itg-orange);
    margin-bottom: 1rem;
}

/* Event card */
.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow .2s;
    height: 100%;
    background: #fff;
}
.event-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.event-card .img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}
.event-card .body { padding: 1.25rem; }
.event-card .date {
    color: var(--itg-orange);
    font-weight: 600;
    font-size: .9rem;
}

/* Bootstrap'te yerleşik 5'li grid yok — özel: lg ve üstünde 1/5 genişlik */
@media (min-width: 992px) {
    .col-lg-1of5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* --------- Mobil iyileştirmeler --------- */
@media (max-width: 575.98px) {
    /* Section padding mobilde daha az */
    .section { padding: 2rem 0; }
    .section-title { margin-bottom: 1.5rem; }
    .section-title h2 { font-size: 1.4rem; }
    .section-title .lead { font-size: 0.95rem; }

    /* Page hero (alt sayfa banner'ı) */
    .page-hero { padding: 2rem 0 1.5rem; margin-bottom: 1.5rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero .breadcrumb { font-size: 0.8rem; }

    /* Member card mobilde sıkışmasın */
    .member-card { padding: 0.75rem !important; }
    .member-card .name { font-size: 0.85rem; line-height: 1.2; }
    .member-card .role { font-size: 0.75rem; }
    .member-card img { width: 70px !important; height: 70px !important; }
    .member-card .rounded-circle.bg-light { width: 70px !important; height: 70px !important; }
    .member-card .rounded-circle.bg-light i { font-size: 1.75rem !important; }

    /* Rol rozetleri mobilde küçük */
    .role-badge { font-size: 0.55rem; padding: 1px 5px; }

    /* Stat card mobilde küçült */
    .stat-card { padding: 1.25rem 0.5rem; }
    .stat-card .num { font-size: 2rem; }
    .stat-card .label { font-size: 0.75rem; letter-spacing: 0.5px; }

    /* Event card daha düşük */
    .event-card .img { height: 140px; }
    .event-card .body { padding: 0.75rem; }
    .event-card .date { font-size: 0.8rem; }

    /* Group card biraz daha sıkışık */
    .group-card { padding: 1rem !important; }
    .group-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .group-card h6 { font-size: 0.85rem; }

    /* Prose mobilde daha okunaklı */
    .prose { font-size: 0.95rem; line-height: 1.65; }

    /* Footer mobil */
    .footer { padding: 1rem 0; text-align: center; }
    .footer .d-flex { justify-content: center !important; gap: 0.5rem; }
    .footer .d-flex > div { width: 100%; }
}

/* Tablet ek ayarlar */
@media (min-width: 576px) and (max-width: 991.98px) {
    .stat-card .num { font-size: 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
}

/* Lightbox close mobilde daha büyük */
@media (max-width: 576px) {
    .gallery-modal .gallery-close { width: 36px; height: 36px; padding: 0.5rem; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.25rem; }
    .gallery-stage { min-height: 60vh; }
    .gallery-stage img { max-height: 75vh; }
}

/* Tabloları mobilde yatay kaydırılabilir yap (zaten table-responsive kullanılıyor ama yedek) */
@media (max-width: 575.98px) {
    table { font-size: 0.85rem; }
}

/* Role badges (yönetim sayfası kartı sağ üstünde) */
.role-badge-stack {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    z-index: 2;
    max-width: 90%;
}
.role-badge {
    display: inline-block;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Member card */
.member-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    height: 100%;
}
.member-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--itg-light);
    margin-bottom: 1rem;
}
.member-card .name {
    font-weight: 600;
    color: var(--itg-blue);
    margin-bottom: .25rem;
}
.member-card .role {
    color: var(--itg-orange);
    font-size: .9rem;
}

/* Sponsor logos */
.sponsor-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: .7;
    transition: all .2s;
}
.sponsor-logo:hover {
    filter: none;
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--itg-blue);
    color: #fff;
    padding: 1.25rem 0;
    margin-top: 4rem;
}
.footer a {
    color: #fff;
    text-decoration: none;
}
.footer a:hover { color: var(--itg-orange); }
.footer .footer-version {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Galeri lightbox */
.gallery-modal .modal-dialog { max-width: 95vw; }
.gallery-modal .gallery-close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 10;
    opacity: 0.85;
    filter: invert(1) grayscale(1) brightness(2);
}
.gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.gallery-stage img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.45);
    background: #000;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.gallery-nav:hover { background: var(--itg-orange); }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }
@media (max-width: 576px) {
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--itg-blue) 0%, #1e5b8f 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}
.page-hero h1 { font-weight: 700; }

/* Breadcrumb on dark hero */
.page-hero .breadcrumb { background: transparent; padding: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb .active { color: #fff; }

/* Content prose */
.prose { line-height: 1.75; font-size: 1.05rem; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
.prose h2, .prose h3 { color: var(--itg-blue); margin-top: 2rem; }
.prose a { color: var(--itg-orange); }

@media (max-width: 768px) {
    .hero { padding: 5rem 0 4rem; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 3rem 0; }
}
