.footer {
    background: var(--selcuk-footer-gradient, linear-gradient(180deg, #0f172a 0%, #0a1120 100%));
    color: #838eb3;
    /* Logo üst boşluğu azaltıldı */
    padding: 1.25rem 0 0 0;
    --bs-focus-ring-color: transparent;
    --bs-focus-ring-shadow: none;
}

.footer .container {
    max-width: 1200px;
}

/* Alt satır tam genişlik */
.footer-main-fluid {
    max-width: 100%;
}

.footer-logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

/* Logo üstte ortada — üst/alt boşluk az */
.footer-logo-wrapper--top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.footer-logo-wrapper--top .footer-logo {
    padding-top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    max-width: 110px;
    padding-top:9%;
    height: auto;
    transition: transform 0.3s ease;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer .info-card {
    box-shadow: none !important;
    filter: none !important;
    background-image: none !important;
}

.footer .info-card::before,
.footer .info-card::after {
    content: none !important;
}

/* Kampüs + Rektörlük santral aynı sütunda alt alta — stack ile sütun REKTÖRLÜK kartı ile aynı yüksekliğe uzar */
.footer-phone-col {
    min-height: 0;
}
.footer-phone-stack {
    width: 100%;
    min-height: 0;
}
.footer-phone-stack .footer-phone-card {
    width: 100%;
}
@media (min-width: 768px) {
    .footer-main-columns .footer-phone-stack {
        flex: 1 1 auto;
        align-items: stretch;
    }
    /* İlk kart (Kampüs / TIP) içerik kadar — üst hizada kalır; ikinci kart kalan alanı doldurur */
    .footer-main-columns .footer-phone-stack .footer-phone-card:first-child {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .footer-main-columns .footer-phone-stack .footer-phone-card:not(:first-child) {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    /*
     * Kampüs + Rektörlük eşit yükseklik: flex'te :first-child (0 0 auto) baskın geliyordu.
     * Grid 1fr 1fr ile iki satır zorunlu eşit; kartlar hücreyi doldurur.
     */
    .footer-main-columns .footer-phone-stack--equal-pair {
        display: grid !important;
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr;
        gap: 1rem; /* Bootstrap gap-3 */
        flex: 1 1 auto;
        min-height: 0;
        align-content: stretch;
    }
    .footer-main-columns .footer-phone-stack--equal-pair .footer-phone-card {
        flex: none !important;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-self: stretch;
    }
    /* Grid hücresinde içerik üstte, numaralar altta yayılmasın */
    .footer-main-columns .footer-phone-stack--equal-pair .footer-phone-card .phone-numbers {
        flex: 0 0 auto;
    }
    /* TIP + boş slot: boş hücrede kart kabuğu yerine sadece alan (grid satırı korunur) */
    .footer-main-columns .footer-phone-stack--equal-pair .footer-phone-card--empty {
        flex: none !important;
        height: 100%;
        min-height: 0;
    }
    .footer-main-columns .footer-phone-stack .footer-phone-card .phone-numbers {
        flex: 1 1 auto;
    }
    /* TIP stack içindeki boş kart: rektörlük santral ile aynı flex payı, görünmez kabuk */
    .footer-main-columns .footer-phone-stack .footer-phone-card--empty {
        flex: 1 1 0;
        min-height: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }
    .footer-main-columns .footer-phone-stack .footer-phone-card--empty::before,
    .footer-main-columns .footer-phone-stack .footer-phone-card--empty::after {
        content: none !important;
    }
}

/* col-2 + col-4 + col-2×3 grid — dar sütunlar için telefon kartı sıkıştırma */
.footer-main-columns--grid-2-4-2 .footer-phone-card {
    padding: 0.75rem 0.5rem;
}
.footer-main-columns--grid-2-4-2 .footer-phone-card .contact-title {
    font-size: 0.95rem;
}
.footer-main-columns--grid-2-4-2 .footer-phone-card .phone-item a {
    font-size: 0.9rem;
}

/* Satır düzeninde kartlar sütun genişliğini doldurur */
.footer-main-columns .info-card {
    max-width: none;
    margin: 0;
    height: 100%;
}

/* Mobilde numara kartları içerik kadar; md+ sol stack içindeki kartlar flex ile alanı paylaşır */
.footer-main-columns .footer-phone-card {
    height: auto;
    min-height: 0;
    align-self: stretch;
}
@media (max-width: 767.98px) {
    .footer-main-columns .footer-phone-card {
        align-self: flex-start;
    }
    /* TIP altındaki boş slot mobilde ekstra boşluk vermesin (d-flex !important ile ezilmesin diye !important) */
    .footer-phone-stack .footer-phone-card--empty {
        display: none !important;
    }
    /* Mobilde grid kalksın; TIP tek kart içerik kadar */
    .footer-main-columns .footer-phone-stack--equal-pair {
        display: flex !important;
        flex-direction: column;
    }
    .footer-main-columns .footer-phone-stack--equal-pair .footer-phone-card:not(.footer-phone-card--empty) {
        height: auto;
        flex: 0 0 auto;
    }
}

/* col-md-2 dar santral kartları — başlık ve ikon ölçüsü */
.footer-phone-card {
    padding: 1rem 0.75rem;
}

.footer-phone-card .contact-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.footer-phone-card .phone-numbers {
    gap: 0.5rem;
}

.footer-phone-card .phone-item {
    flex-wrap: wrap;
}

.footer-phone-card .phone-item a {
    font-size: 0.95rem;
    word-break: break-all;
}

.footer-phone-card .contact-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    margin-right: 6px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .footer-phone-card .contact-title {
        font-size: 1.05rem;
    }
    .footer-phone-card {
        padding: 1.25rem 1.5rem;
    }
}


    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .info-card:focus-within {
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .info-card a:hover,
    .info-card a:focus,
    .info-card a:focus-visible,
    .info-card a:active {
        color: inherit;
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .info-card button:hover,
    .info-card button:focus,
    .info-card button:focus-visible,
    .info-card button:active {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-info a,
.address-info a:focus,
.address-info a:focus-visible,
.address-info a:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.info-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-title {
    color: var(--selcuk-footer-accent, var(--selcuk-yellow));
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Rektörlük başlığı — KAMPÜS SANTRAL / TIP / REKTÖRLÜK SANTRAL ile aynı punto ve stil */
.footer-rektorluk-card .info-title {
    color: #ffc90d;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.footer-main-columns--grid-2-4-2 .footer-rektorluk-card .info-title {
    /* Dar sütunlardaki .contact-title ile aynı (0.95rem) */
    font-size: 0.95rem;
}

/* Contact Icon Styles */
.contact-icon {
    background-color: var(--selcuk-blue);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}


/* Phone Styles */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.phone-item {
    display: flex;
    align-items: center;
}

    .phone-item a {
        color: #838eb3;
        text-decoration: none;
        transition: color 0.3s ease;
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .phone-item a:focus,
    .phone-item a:focus-visible,
    .phone-item a:active {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .phone-item:hover a {
        color: white;
    }

    .phone-item:hover .contact-icon {
        transform: scale(1.1);
    }

/* KEP Info */
.kep-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: var(--selcuk-footer-accent, var(--selcuk-yellow));
    font-weight: 500;
    font-size: 1rem;
}

.info-text {
    color: white;
    font-size: 1rem;
}

/* Rektörlük adres ve gövde metni */
.footer .address-info {
    font-size: 1.05rem;
    line-height: 1.55;
}

/* Social Media Section */
.footer-social {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    width: 100%;
}

.footer-social-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
    position: absolute;
    right: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

    .social-link:hover {
        transform: translateY(-3px);
        background: var(--selcuk-yellow, #ffc90d);
    }

    .social-link:hover i {
        color: #2c3e50;
    }

    .social-link:focus,
    .social-link:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .social-link:focus-visible {
        background: var(--selcuk-yellow, #ffc90d);
    }

    .social-link:focus-visible i {
        color: #2c3e50;
    }

    .social-link i {
        font-size: 1.3rem;
        color: white;
        transition: color 0.3s ease;
    }

.footer-copyright {
    flex: 1 1 auto;
    text-align: center;
    color: #838eb3;
    font-size: 1rem;
    width: 100%;
}

.footer *:focus,
.footer *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.footer a:focus,
.footer a:focus-visible,
.footer button:focus,
.footer button:focus-visible,
.footer [tabindex]:focus,
.footer [tabindex]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.footer .info-card:focus,
.footer .info-card:focus-within {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.03);
}

.footer * {
    -webkit-tap-highlight-color: transparent;
}

.footer .info-card,
.footer .info-card * {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Prevent Bootstrap warning focus glow inside footer */
.footer .btn:focus,
.footer .btn:focus-visible,
.footer .btn:active,
.footer .btn-warning:focus,
.footer .btn-warning:focus-visible,
.footer .btn-warning:active,
.footer .btn-outline-warning:focus,
.footer .btn-outline-warning:focus-visible,
.footer .btn-outline-warning:active,
.footer .form-control:focus,
.footer .form-select:focus,
.footer .form-check-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-logo {
        max-width: 150px;
    }

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

    .kep-info {
        justify-content: center;
    }

    .phone-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 1rem;
    }

    .info-title {
        font-size: 1.2rem;
    }

    /* Rektörlük kartı mobilde de santral başlıklarıyla aynı boyutta kalsın */
    .footer-rektorluk-card .info-title {
        font-size: 1.05rem;
    }

    .social-link span {
        display: none;
    }

    .footer-social-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-links {
        justify-content: center;
        position: static;
        order: 2;
    }

    .footer-copyright {
        order: 1;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        max-width: 120px;
    }

    .info-card {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link i {
        font-size: 1.1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-main {
    animation: fadeIn 0.5s ease-out;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--sn-primary, var(--selcuk-blue));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--sn-primary, var(--selcuk-blue));
}.back-to-top:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
