﻿:root {
    --primary-color: #87ffdf;
    --secondary-color: #5bdeb9;
    --light-color: #f4f4f4;
    --dark-color: #0bd1b3;
    --header-bg: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    *::-webkit-scrollbar {
        background: rgba(0,0,0,0.1);
        width: 8px; /* vertical scrollbar width */
        height: 8px; /* horizontal scrollbar height */
    }

    *::-webkit-scrollbar-track {
        background: none;
        border-radius: 8px;
    }

    *::-webkit-scrollbar-thumb {
        background-color: darkcyan; /* thumb color */
        border-radius: 8px;
        border: 2px solid rgba(0,0,0,0); /* spacing around thumb */
    }

        *::-webkit-scrollbar-thumb:hover {
            background-color: var(--dark-color); /* hover effect */
        }

html {
    font-size: clamp(12px, 2vw, 16px);
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    background-image: url('../images/background-image.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9); /* adjust opacity for more/less fog */
        z-index: -1;
    }

    body > * {
        position: relative;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

header {
    background: var(--header-bg);
    color: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    header h1 {
        margin: 0;
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        font-weight: 600;
    }

    header p {
        margin: 0.5rem 0 0;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        font-weight: 300;
    }

nav a.nav-link {
    color: #fff;
    margin: 0 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

    nav a.nav-link:hover {
        transform: scale(1.1);
        color: var(--secondary-color);
    }

nav .admin-btn {
    background-color: #fff;
    border-style: none;
    color: var(--dark-color);
    margin: 0 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

    nav .admin-btn:hover {
        transform: scale(1.1);
        color: var(--secondary-color);
    }

    nav .admin-btn:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    nav .admin-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

    nav .admin-btn:active {
        outline: none !important;
        box-shadow: none !important;
    }

@media (max-width: 768px) {
    nav a.nav-link,
    nav .admin-btn {
        display: block;
        margin: 8px 0; /* stack links vertically inside collapse */
    }
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-logo {
    width: 50px; /* small like a coin */
    height: 50px; /* keep square for circular effect */
    border-radius: 50%; /* make it circular */
    object-fit: cover; /* crop image if necessary */
    cursor: pointer; /* indicate clickable */
    transition: transform 0.3s ease-in-out;
}

    .navbar-logo:hover {
        transform: scale(1.2); /* subtle zoom on hover */
    }


#imageModal {
    display: none;
    position: fixed;
    z-index: 1050; /* above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

    #imageModal .modal-content {
        max-width: 300px;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-style: double;
    }

    #imageModal .close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
    }

.left-nav {
    gap: 1rem; /* space between logo and profile */
    flex-shrink: 0; /* prevent shrinking on smaller screens */
}

.navbar-nav {
    flex-direction: row;
    align-items: center;
    padding-right: 2rem;
}

.navbar-collapse.show .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    gap: 0.5rem;
}

    .navbar-collapse.show .navbar-nav .nav-link,
    .navbar-collapse.show .navbar-nav .admin-btn {
        display: block; /* simpler, only stack text if needed */
        width: 100%;
        padding: 0.5rem 1rem;
        margin: 0;
        white-space: normal;
        text-align: left;
    }

.profile {
    display: flex;
    flex-direction: column; /* stack each <p> */
    justify-content: center;
    margin-right: 20px; /* spacing between profile and navbar links */
    line-height: 1.2;
}

    .profile p {
        white-space: nowrap;
        margin: 0;
        line-height: 1.2;
        font-weight: bold;
    }


#loginModal .form-control:focus {
    box-shadow: 0 0 0 2px var(--dark-color) !important;
    border-color: var(--dark-color) !important;
}

.container-fluid {
    width: 95%;
    /*max-width: 1200px;*/
    margin: 10px auto;
}

.wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 2rem;
    gap: 2rem;
}

.intro {
    flex: 1;
    background-color: transparent;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px; /* optional: limit width for readability */
}

    .intro h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--dark-color);
    }

    .intro h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--dark-color);
    }

    .intro p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--dark-color);
    }

@media (max-width: 768px) {
    .wrapper {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }

    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .profile img {
            max-width: 100px;
            width: 100%;
            height: auto;
            object-fit: cover;
            border-style: double;
        }

    .intro {
        flex: 1;
        background-color: transparent;
        padding: 4rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .intro h2 {
            max-width: 90%;
            font-size: 2.5rem;
            line-height: 1.4;
            text-align: center;
            /*margin-bottom: 1rem;*/
            margin: 0 auto 1rem;
        }

        .intro h3 {
            max-width: 90%;
            font-size: 1.8rem;
            line-height: 1.4;
            text-align: center;
            /*margin-bottom: 1rem;*/
            margin: 0 auto 1rem;
        }

        .intro p {
            max-width: 90%;
            font-size: 1rem;
            line-height: 1.6;
            margin: 0 auto;
            text-align: center;
        }
}

section {
    margin-bottom: 40px;
}

    section h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
    }

.card {
    background: none;
    border-style: none;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

    .card ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

        .card ul li {
            background-color: whitesmoke;
            border-radius: 8px;
            margin: 10px auto;
            padding: 10px;
            max-width: 400px;
            transition: transform 0.3s ease-in-out;
        }

            .card ul li:hover {
                border: 2px solid var(--secondary-color);
                transform: translateY(-5px);
            }

    .card p {
        font-size: 1rem;
        margin: 10px 0;
    }

.specialities {
    background-color: none;
}

.specialities-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}

    .specialities-list li {
        text-align: center;
        cursor: pointer;
    }

        .specialities-list li a {
            text-decoration: none; /* remove underline */
            color: inherit; /* ensure it inherits text color from span */
        }

            .specialities-list li a:hover {
                text-decoration: none; /* keep it removed on hover */
            }

            .specialities-list li a > span {
                color: var(--dark-color);
                font-weight: bold;
                display: block;
                margin-top: 8px;
            }

            .specialities-list li a:hover > span {
                /*color: darkgreen;*/
            }

        .specialities-list li img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 5px;
        }

.bullets {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 44px;
    padding: 20px;
}

    .bullets li {
        display: flex;
        align-items: center;
        gap: 10px; /* spacing between icon and text */
        margin-bottom: 10px;
        font-size: 1.1rem;
        white-space: nowrap;
    }

.arrow-icon {
    width: 25px;
    height: 25px;
    background-color: var(--dark-color);
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.add-speciality {
    padding: 0.75rem 1rem;
    overflow: hidden; /* keep li inside container */
    max-width: 180px; /* optional, adjust for your layout */
    text-align: center;
}

    .add-speciality a {
        align-items: center;
        justify-content: center;
        text-decoration: none;
        width: 100%;
        height: 100%;
    }

.cross-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid #87ffdf;
    border-radius: 8px;
    color: #87ffdf;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.add-speciality span {
    display: block;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}

.add-speciality:hover .cross-icon {
    background-color: #87ffdf;
    color: black;
    transform: rotate(90deg);
}


.speciality-page {
    padding: 15px;
    padding-bottom: 100px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: darkgrey;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

    .modal-content #modal-Title {
        color: var(--dark-color)
    }

    .modal-content h3 {
        color: var(--secondary-color)
    }

/* Close button */
.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

/*Keşfet->*/
.discover {
    background-color: #0bd1b3 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    border-style: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease-in-out !important;
}

    .discover:hover,
    .discover:focus {
        cursor: pointer !important;
        transform: scale(1.05) !important;
    }

.contact-info {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
}

.contact-card {
    flex: 1 1 250px;
    background: whitesmoke;
    border: 2px solid #87ffdf;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .contact-card i {
        font-size: 1.8rem;
        color: #0bd1b3;
        margin-bottom: 0.5rem;
    }

    .contact-card strong {
        display: block;
        font-size: 1.1rem;
        color: #0bd1b3;
        margin-bottom: 0.3rem;
    }

    .contact-card p {
        font-size: 1rem;
        color: #333;
        margin: 0;
    }

@media(max-width: 400px) {

    .navbar-collapse {
        display: flex !important;
        flex-direction: column !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s ease-out;
    }

        .navbar-collapse.show {
            max-height: 500px;
        }

    .bullets {
        padding: 30px;
        grid-template-columns: 1fr;
    }

    #about {
        padding: 20px;
        border-radius: 8px;
    }

    .specialities-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

        .specialities-list li {
            width: 120px;
            height: 120px;
            text-align: center;
            padding: 8px;
            font-size: 0.9rem !important;
        }

            .specialities-list li img {
                max-width: 50px;
            }

    .card h2 {
        font-size: 1.4rem;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgba(0,0,0,0.4);
        justify-content: center; /* horizontal center */
        align-items: center; /* vertical center */
        padding: 10px;
    }

    /* Modal content box */
    .modal-content {
        background-color: darkgrey;
        margin: 0 auto;
        padding: 15px;
        border: 1px solid #888;
        width: 95%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 8px;
        position: relative;
        word-wrap: break-word;
        white-space: normal;
        font-size: 1.65rem !important;
        line-height: 1.4;
    }

        .modal-content #modal-Title {
            font-size: 1.95rem !important;
            margin-bottom: .5rem;
            color: var(--dark-color)
        }

        .modal-content h3 {
            font-size: 1.80rem !important;
            margin: .4rem 0 !important;
            color: var(--secondary-color)
        }

        .modal-content::-webkit-scrollbar {
            background: none;
            width: 8px; /* vertical scrollbar width */
            height: 8px; /* horizontal scrollbar height */
        }

        .modal-content::-webkit-scrollbar-track {
            background: none;
            border-radius: 0 8px 8px 0;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background-color: var(--secondary-color); /* thumb color */
            border-radius: 0 8px 8px 0;
            border: 2px solid rgba(0,0,0,0); /* spacing around thumb */
        }

            .modal-content::-webkit-scrollbar-thumb:hover {
                background-color: var(--dark-color); /* hover effect */
            }

    /* Close button */
    .close {
        color: white;
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
    }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

    .gallery img {
        width: calc(50% - 20px);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
    }

        .gallery img:hover {
            transform: scale(1.02);
        }

.gallery-img {
    width: 100%;
    height: 300px; /* force same resolution */
    object-fit: cover; /* crop instead of stretch */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

@media (max-width: 768px) {
    .gallery-img {
        max-height: 80px;
    }

    .card.d-flex.flex-row {
        flex-direction: column;
        gap: 1rem;
    }

        .card.d-flex.flex-row .w-50 {
            width: 100% !important;
        }
}

@media (max-width: 480px) {
    .navbar-collapse.show .ms-auto {
        margin-left: 0 !important;
    }
}

.responsive-map {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

    .responsive-map iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

footer {
    background: var(--header-bg);
    color: #fff;
    text-align: center;
    padding: 0rem;
    font-size: 0.9rem;
    margin-top: auto;
}

#footer-text {
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        margin: 0 10px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-in.show {
        opacity: 1;
        transform: translateY(0);
    }
