@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
    color: #243642;
    background-image: url("../img/bg.png");
    font-family: "Lato", sans-serif;
}
.btn-danger {
    background-color: #2C7865;
    border-color: #2C7865;
}
.btn-danger:hover {
    background-color: #EB8317;
    border-color: #EB8317;
}
.btn-danger:focus {
    background-color: #EB8317 !important;
    border-color: #EB8317 !important;
}
.btn-outline-danger {
    border-color: #2C7865;
    color: #2C7865;
}
.btn-outline-danger:hover {
    background-color: #2C7865;
    border-color: #2C7865;
}
.btn-outline-danger:focus {
    background-color: #EB8317 !important;
    border-color: #EB8317 !important;
}

/* Topbar */
.topbar {
    background-color: #E7F0DC;
    height: 50px;
    padding-top: 6px;
}
.topbar .nav-link {
    color: #243642;
}
.topbar .nav-link:hover {
    color: #2C7865;
}

/* Navbar */
.navbar .navbar-brand img {
    height: 70px;
}
.navbar .dropdown-menu {
    padding: 0;
}
.navbar .nav-link {
    padding-right: 20px !important;
}
.navbar .nav-link:hover {
    color: #EB8317;
}
.navbar .dropdown-item {
    padding: 12px 40px !important;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    position: relative;
}
.navbar .dropdown-item i {
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    position: absolute;
    left: 5px;
}
.navbar .dropdown-item:hover i {
    opacity: 1;
    transform: translateX(15px);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #2C7865;
    color: #fff;
    border-radius: 3px;
}
.navbar .dropdown-item.active {
    background-color: #2C7865;
    color: #fff;
}
.navbar-right .dropdown-toggle::after {
    display: none;
}
.navbar-right .dropdown-menu {
    width: 250px;
    left: -160px;
}
.navbar-right .card {
    background-color: #F2F2F7;
    border: 0;
}
.navbar-right .login {
    color: #243642;
    text-decoration: none;
}
.navbar-right .login:hover {
    color: #2C7865;
}
.navbar-toggler {
    border: none !important;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler .toggler-icon {
    width: 30px;
    height: 2px;
    background-color: #333;
    display: block;
    transition: all 0.3s;
    margin: 6px 0;
}
.navbar-toggler.active .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggler.active .toggler-icon:nth-child(2) {
    opacity: 0;
}
.navbar-toggler.active .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Carausel */
#carausel .carousel {
    height: 81vh;
    overflow: hidden;
    position: relative; 
}
.carousel img {
    object-fit: cover;
    object-position: center center;
    height: 100% ;
    width: 100%; 
}
.carousel-control-prev {
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: #2C7865;
    width: 25px;
    height: 150px;
    border-radius: 0 5px 5px 0;
}
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: #2C7865;
    width: 25px;
    height: 150px;
    border-radius: 5px 0 0 5px;
}

/* bağış kategori */
#donation-title .card img {
    height: 70px;
    width: 70px;
}
#donation-title .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 180px;
    background-color: #E7F0DC;
    transition: transform 0.3s ease;
}
#donation-title .row {
    margin-top: -50px;
}
#donation-title .row a {
    text-decoration: none;
}
#donation-title .card:hover {
    transform: translateY(-10px);
    background-color: #ffffff;
}

/* Blog */
#home-blog img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}
#home-blog .card img {
    position: relative;
}
#home-blog .date-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 240, 220, 0.8); 
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Home Projects */
#home-projects .carousel-item {
    height: 50vh;
    overflow: hidden;
    position: relative;
    background-color: #E7F0DC;
  }

  #home-projects .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  #home-projects .carousel-indicators button {
    background-color: #fff;
}
  #home-projects .carousel-indicators .active {
    background-color: #243642;
}

/* home donate */
#home-donate .card img {
    height: 100px;
    object-fit: cover;
    object-position: center center;
    position: relative;
}
#home-donate .Subject-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 240, 220, 0.8); 
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Slogan */
#home-slogan .card {
    position: relative;
}
#home-slogan img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: center center;
}
#home-slogan .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(231, 240, 220, 0.8);
    z-index: 0;
}
#home-slogan .slogan-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; 
}

/* Footer */
#footer {
    background-color: #E7F0DC;
    color: #243642;
}
#footer .nav .nav-link {
    color: #2C7865;
}
#footer .nav .nav-link:hover {
    color: #243642;
}

/* Page */
#page-title {
    position: relative;
    height: 110px;
    background-image: url("../img/slogan.jpg");
    background-repeat: no-repeat;
    background-size: cover; 
    color: #E7F0DC;
}
#page-title .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}
#page-title .container {
    position: relative;
    z-index: 2;
}
#page-title .breadcrumb-item a {
    color: #EB8317;
    text-decoration: none;
}
#page-title .breadcrumb-item {
    color: #E7F0DC;
}
#page .card {
    background-color: #E7F0DC;
}
.accordion-button:not(.collapsed) {
    background-color: #E7F0DC;
}
.accordion-button {
    height: 70px;
}
.accordion-button:focus {
    box-shadow: none;    
}
.accordion-item:first-of-type>.accordion-header .accordion-button {
    color: #243642 !important;
}
.accordion-item img {
    max-height: 20px;
}
#page .nav .nav-link {
    color: #243642;
}
#page .nav .nav-item {
    border-bottom: 1px solid #fff;
}
#page .nav .nav-link:hover {
    background-color: #2C7865;
    color: #E7F0DC;
}
#page .blog img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}
#page .blog .card img {
    position: relative;
}
#page .blog .date-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 240, 220, 0.8); 
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}
#page .gallery img {
    height: 250px;
    width: auto !important;
    object-fit: cover;
}
.form-control:focus {
    box-shadow: none;
    border-color: #e9ecef;
}
#page .donate .card {
    background-color: #fff;
}
#page .donate .card img {
    height: 150px;
    object-fit: cover;
    object-position: center center;
    position: relative;
}
#page .donate .Subject-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 240, 220, 0.8); 
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}




















/* Mobil*/
@media (max-width: 768px) {
    .carousel-control-prev {
        height: 80px;
    }
    .carousel-control-next {
        height: 80px;
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: 0.3s ease-in-out;
        padding: 1rem;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    .navbar-collapse.show {
        right: 0;
    }
    .navbar-toggler {
        z-index: 1001;
    }
    .navbar-nav {
        margin-top: 70px;
        flex: 1;
    }
    .navbar-right {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        flex-direction: column !important;
        gap: 10px;
    }
    .navbar-right .login {
        width: 100%;
        text-align: center;
        padding: 8px;
        margin: 0 !important;
        border: 1px solid #eee;
        border-radius: 5px;
    }
    .navbar-right .dropdown {
        width: 100%;
        margin: 0 !important;
    }
    .navbar-right .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .navbar-right .btn-danger {
        width: 100%;
    }
    .navbar-right .dropdown-menu {
        width: 100%;
        position: static !important;
        box-shadow: none;
        border: 1px solid #eee;
        transform: none !important;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .overlay.show {
        display: block;
    }
    /* Dropdown menülerin mobilde görünümü */
    .navbar .dropdown-menu {
        border: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    .navbar .dropdown-item {
        padding-left: 2rem !important;
    }
    .navbar-toggler {
        position: relative;
        z-index: 1001;
        margin-right: 15px;
    }
    .navbar-collapse.show + .navbar-toggler .toggler-icon:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }  
    .navbar-collapse.show + .navbar-toggler .toggler-icon:nth-child(2) {
        opacity: 0;
    }
    .navbar-collapse.show + .navbar-toggler .toggler-icon:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    #carausel .carousel {
        height: 32vh;
    }
    #home-projects .carousel-item {
        height: auto !important;
      }
  
      #home-projects .col-md-7 .carousel-item img {
        height: auto !important;
        max-height: 60vh;
      }
  
      #home-projects .carousel-item .col-md-5 {
        padding: 2rem !important;
      }
      #page .gallery img {
        height: 100px;
    }
}

