/*
Theme Name: Caritas Sofia
Theme URI: https://example.com/
Author: Sizin Adınız
Author URI: https://example.com/
Description: Caritas Sofia için özel olarak tasarlanmış WordPress teması.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: my-theme
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, bootstrap, responsive
*/
/* WordPress varsayılan stillerini sıfırlama */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
/* Sayfa ana içeriği /
/ Bu seçici, WordPress'in eklediği stilleri ezmek için daha spesifiktir */

body {
      font-family: "Sofia Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
	line-height: 1;
  font-size: 14px;
  background-color: #ffffff !important;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*/Reset Css Area End*/
/* Body ve WordPress wrapper'ları kesin beyaz yap */
body,
html,
.site,
#page,
#content,
.wp-site-blocks {
  background-color: white !important;
  background-image: none !important; /* bazen tema arka plan görseli atıyor */
}
/*Navbar Section*/
@import url('https://fonts.cdnfonts.com/css/sofia');
/* Veya kendi hosting'ine .woff & .woff2 dosyalarını yükleyip şöyle kullanabilirsin: */
@font-face {
  font-family: 'Sofia';
  src: url('sofia.woff2') format('woff2'),
       url('sofia.woff') format('woff');
}
.hero-section h1,p{
    font-family: 'Arial', sans-serif;
    font-weight:bold;

}

/* Normalde padding yok */
.navbar {

  transition: padding 0.3s ease;
}

/* Scroll başlayınca eklenecek class */
.navbar.scrolled {
  padding-top: 27px;
}

.navbar-brand img {
  height: 7vh;
  object-fit: contain;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /*  */
}

/* Ana içerik için genel bir kapsayıcıya z-index ataması */
.main-content-wrapper {
    background-color: white !important;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}
/* Sayfa ana içeriği */
#primary.site-main {
background-color: white !important;
padding: 20px 0;
position: relative;
z-index: 2;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.hero-section > div {
    position: relative;
    z-index: 2;
}
.eu-logo {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 30vh;
  height: 7vh; 
  z-index: 10;
}
@media (max-width: 320px) {
.navbar-brand img {
  height: 4vh;
  object-fit: contain;
}
}
@media (max-width: 768px) {
  .eu-logo {
    max-width: 100px;
    top: 0px;
    right: 0px;
  }
}
@media (max-width: 768px) {
  .hero-section p {
    font-size: 1rem;
  
  }
  .hero-section h1 {
    font-size: 1.7rem;
  
  }
}
 .word-space {
            word-spacing: 0.3em; /* Varsayılan boşluğa 0.5em ek boşluk */
        }

    /*Card Section*/
   .counter {
      font-size: 40px;
      font-weight: bold;
      color: white;
      width: 100px;
      text-align: center;
      margin: 10px;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in {
      opacity: 1;
      transform: translateY(0);
    }
        .stats-card {
            color: white;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
            height: 150px; /* Fixed height for uniformity */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .stats-card.red {
            background-color: #ad0b1b;
        }

    
        .stats-card h2 {
            font-size: 3em;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .stats-card p {
            font-size: 1em;
            margin-bottom: 0;
        }

        .text-content-block {
            background-color: #f8f9fa; /* Light background for the text block, adjust if needed */
            padding: 30px;
            border-left: 5px solid #dc3545; /* Red border on the left */
        }

        .text-content-block h3 {
            color: #333;
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .text-content-block p {
            color: #555;
            line-height: 1.6;
        }

            @media (max-width: 768px) {
            .text-content-block {
                        font-size: 14px;
                        word-break: break-word;
                        white-space: normal;
                        padding: 8px;
                        max-width: 100%;
                        box-sizing: border-box;
                    }

                            .text-content-block h3 {
                                font-size: 18px;
                            }
            }
        
      /*Care Section*/
      .care-section {
            
            background-color: #ffffff; /* White background for this section */
            margin-top: 30px; /* Space from the previous section */
            border-radius: 8px; /* Slightly rounded corners for the section container */
            box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Subtle shadow */
        }

        .care-section h2 {
            text-align: center;
             padding-top: 40px;
            margin-bottom: 20px;
            font-size: 3rem;
            font-weight: lighter;
            color: #252525;
             font-family: "Sofia Sans", sans-serif;    
        }

        .care-card {
            margin: 1rem;
            border: 3px solid #ddd;
            border-radius: 8px;
            overflow: hidden; /* Ensures image corners match card corners */
            margin-bottom: 30px;
            text-align: center;
            position: relative;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transitions */
            height: 300px; /* Fixed height for uniformity */
            display: flex;
            flex-direction: column;
            justify-content: flex-end; /* Align content to the bottom */
        }

        .care-card:hover {
            transform: translateY(-5px); /* Lift effect on hover */
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

        .care-card-img {
            width: 100%;
            height: 100%; /* Fill the entire card */
            object-fit: cover; /* Cover the area, cropping if necessary */
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1; /* Below overlay */
        }

        .care-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(220, 53, 69, 0.7); /* Red overlay with transparency */
            z-index: 2; /* Above image */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            padding: 20px;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease-in-out; /* Smooth fade in */
        }

        .care-card:hover .care-card-overlay {
            opacity: 1; /* Show on hover */
        }

        .care-card-title {
            position: absolute;
            bottom: 40px; /* Adjust as needed for initial position */
            left: 0;
            right: 0;
            z-index: 3; /* Above overlay when hidden, but still visible */
            color: white; /* Initial text color */
            font-weight: bold;
            font-size: 1.25rem;
            background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background for readability */
            padding: 10px 0;
            opacity: 1; /* Always visible */
            transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
        }

        .care-card:hover .care-card-title {
            opacity: 0; /* Hide on hover when overlay appears */
            /* Or simply move it up and be covered by overlay */
        }


        .care-card-btn {
            background-color: white; /* White button */
            color: #dc3545; /* Red text */
            border: none;
            padding: 8px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        }

        .care-card-btn:hover {
            background-color: #f0f0f0;
            color: #c82333;
        }

        body.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/*ENTERPRİSE*/

.social-enterprise-section {
            background-color: #ffffff5e; /* Bu bölümün beyaz arka planı */
            margin-top: 30px; /* Önceki bölümden boşluk */
            border-radius: 8px; /* Hafif yuvarlak köşeler */
            box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Hafif gölge */
        }

        .social-enterprise-section h2 {
             text-align: center;
             padding-top: 20px;
            margin-bottom: 20px;
            font-size: 2rem;
            font-weight: lighter;
            color: #252525;
             font-family: "Headland One", serif;    
            
        }

        .enterprise-card {
          background-color: rgb(218, 218, 218);
            border: 1px solid #ddd; /* İnce kenarlık */
            border-radius: 8px; /* Yuvarlak köşeler */
            overflow: hidden; /* Resmin köşeleri kartın köşeleriyle uyumlu olsun */
            margin-bottom: 30px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* Hafif gölge */
            /* Kartın içi beyaz */
            display: flex;
            flex-direction: column;
            width:100%; /* İçeriği dikey olarak sırala */
            height: 100%;
            cursor: pointer; /* Tüm kartların eşit yükseklikte olmasını sağlar */
        }

        .enterprise-card-header {
            padding: 15px 20px;
            margin-bottom: 10px;
            background-color: rgb(218, 214, 214); /* Başlık arka planı hafif gri */
            font-size: 1.5rem;
            font-weight: 300;
            text-align: center;
            color: #040404; /* Başlığı ortaya hizala */
        }

        .enterprise-card-img-container {
            width: 100%;
            height: 55vh; /* Resmin yüksekliğini kontrol edin */
            overflow: hidden;
        }

        .enterprise-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Resmi kutuyu dolduracak şekilde sığdırır */
            display: block; /* Altındaki boşluğu kaldırır */
        }

        .enterprise-card-body {
            padding: 20px;
            flex-grow: 1; /* Metin alanının kalan boşluğu doldurmasını sağlar */
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Metni ve varsa butonu aralıklı yerleştir */
        }

        .enterprise-card-body p {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 0;
             font-weight: lighter;
            color: #252525;
             font-family: "Headland One", serif
        }

.enterprise-card {
    transition: transform 0.3s ease-in-out;
}

.enterprise-card:hover {
    transform: scale(1.05); /* Hover'da hafif büyüt */
}

        /*Card Slider Section*/
            .container-cards {
            display: flex;
            flex-wrap: wrap; /* Kartların taşması durumunda bir alt satıra geçmesini sağlar */
            justify-content: space-between; /* Alanı kartlar arasında yayar */
            }
   .card {
      flex: 1 1 calc(25% - 20px); /* Dört kart için alan ayarı, margin dahil */
     margin: 10px;
      /* Kartlar arasında boşluk bırakır */
    box-sizing: border-box; 
      width: 100%; /* Kartın yatay boyutu */
      height: 100%; /* Kartın yüksekliği */
      transition: transform 0.2s; /* Animasyon için geçiş süresi */
      cursor: pointer;
    }
    
    .card:hover {
      transform: scale(1.05);
       /* Hover sırasında büyütme efekti */
    }
      @media (max-width: 768px) {
          .card:hover {
      transform: scale(1.02);
       /* Hover sırasında büyütme efekti */
    }
}

    .card-img-top {
      height: 100%; /* Resmin yüksekliği */
      object-fit: cover;
    }

    .page { display: none; }
    .page.active { display: flex; flex-wrap: wrap; justify-content: center; }
    .mb-4 { margin-bottom: 1.5rem; }
    .pagination-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 10px;
    }
    .card-description {
      height: 13vh; /* Açıklama yüksekliği */
      overflow: hidden; /* İçeriğin taşmasını önlemek için */
    }
    .card-footer {
      background: none; /* Arka planı yok et */
      border-top: none; /* Üst sınırı kaldır */
      text-align: right; /* Metni sağa hizala */
    }
    @media (min-width: 768px) and (max-width: 992px) {
  .container-cards.card {
    flex: 1 1 calc(50% - 20px);  /* İki kart yan yana */
  }
}
 @media (max-width: 768px) {
  .container-cards.card {
    flex: 1 1 100%; /* Kartlar tam genişlik alır */
  }
}
@media (min-width: 992px) and (max-width: 1200px) {
  .container-cards.card {
    flex: 1 1 calc(33.33% - 20px); /* Üç kart yan yana */
  }
}
@media (min-width: 1200px) {
  .container-cards.card{
   flex: 1 1 calc(25% - 20px);/* Dört kart yan yana */
  }
}
    .pagination-btn.active {
      font-weight: bold;
      background-color: #0d6efd;
      color: white;
    }
    
    /*E-Mail Section*/
     .form-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 70%;
            text-align: center;
        }
        @media (max-width: 768px) {
  .form-container {
    width:  100%; /* Kartlar tam genişlik alır */
  }
}
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }
        input[type="email"] {
            width: calc(100% - 20px); /* Adjust for padding */
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box; /* Include padding in element's total width and height */
        }
        input[type="email"].error {
            border-color: #e74c3c; /* Red border for error */
        }
        .error-message {
            color: #e74c3c; /* Red text for error message */
            font-size: 0.9em;
            margin-top: 5px;
            display: block; /* Ensure it's on its own line */
        }
       .form-container button {
            background-color: #007bff; /* Blue button */
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            width: 100%; /* Full width button */
        }
        button:hover {
            background-color: #0056b3;
        }
        .logo-text {
            margin-top: 5px;
        }
      .ort{
         font-family: Arial, sans-serif;
            display: flex;
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
            min-height: 10vh; /* Full viewport height */
            padding-bottom: 5vh;
            padding-top: 5vh;
            background-color: #f4f4f4;
            
      }
      .logo-text img
    {
            padding: 10px;
            width: 45%;
      }
        /*FOOTER-TOP SECTİON*/
.main-footer {
            background-color:#b01116; /* Kırmızı arka plan */
            color: white; /* Beyaz metin */
            padding: 50px 0; /* Üstten ve alttan boşluk */
            font-size: 0.95rem; /* Metin boyutu */
        }

        .footer-logo {
            max-width: 120px; /* Logoyu küçült */
            height: auto;
            margin-bottom: 20px;
        }

        .footer-heading {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: white; /* Başlıklar da beyaz */
        }

        .footer-list {
            list-style: none; /* Liste işaretçilerini kaldır */
            padding: 0;
            margin: 0;
        }

        .footer-list li {
            margin-bottom: 10px;
        }

        .footer-list a {
            color: white; /* Linkler beyaz */
            text-decoration: none; /* Alt çizgiyi kaldır */
            transition: color 0.2s ease-in-out;
        }

        .footer-list a:hover {
            color: rgba(255, 255, 255, 0.8); /* Hover'da hafif şeffaflık */
        }

        .footer-copyright {
            margin-top: 30px;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.2); /* Üstte hafif bir çizgi */
            padding-top: 20px;
            font-size: 0.85rem;
        }

        .footer-social-icons {
            margin-top: 20px;
            /* Sosyal medya ikonları eklemek isterseniz buraya stil ekleyebilirsiniz */
        }
        .footer-social-icons a {
            color: white;
            font-size: 1.5rem;
            margin-right: 15px;
        }

        /* İletişim bilgileri için ikonlar */
        .contact-info li {
            display: flex;
            align-items: flex-start; /* Metin birden fazla satırsa ikonu üste hizala */
        }

        .contact-info li i {
            margin-right: 10px;
            font-size: 1.1rem;
            margin-top: 3px; /* Metinle dikey hizalama için küçük ayar */
        }
.headland-one-regular {
  font-family: "Headland One", serif;
  font-weight: 400;
  font-style: normal;
}

        /* CONTACT SECTİON*/
         .hero-section-contact img {
            width: 100%;
             height: 330px; /* Belirlenen yükseklik */
            object-fit: cover;
            object-position: bottom;/* Oranları koruyarak alanı doldur */
            display: block;
        }
       .intro-section-contact {
            padding: 2rem 0;
           
      
        }
        .years-box {
             /* Bootstrap primary color */
            color: rgb(0, 0, 0);
            /* İç boşluğu biraz azalttım */
            border-radius: 8px;
            /* Flexbox kullanarak içeriği ortalama */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 150px; /* Örnek sabit genişlik */
            height: 150px; /* Örnek sabit yükseklik */
            margin: 0 auto; /* Yatayda ortalama */
        }
     
        .years-box h1 {
            font-size: 4rem; /* Font boyutunu biraz küçülttüm */
            font-weight: lighter;
            margin-bottom: 0; /* Boşluk bırakmadım */
            line-height: 1; /* Satır yüksekliğini ayarladım */
        }
        .years-box p {
            font-size: 1.4rem; /* Font boyutunu biraz küçülttüm */
            margin-top: 5px; /* Başlıkla arasında küçük bir boşluk */
            font-weight: lighter;
            margin-bottom: 0;
            line-height: 1;
        }
        .intro-text h2 {
            font-size: 2.2rem; /* Başlık font boyutunu ayarladım */
            font-weight: lighter;
            line-height:1.6;
            margin-bottom: 15px;
            color: #343a40; /* Koyu gri */
        }
        .intro-text p {
            font-size: 1.4rem;
            font-weight: lighter;
            line-height: 1.6;
            color: #6c757d; /* Açık gri */
        }
        .text-column {
                    font-size: 1.2rem;
            font-weight: lighter;
            line-height: 2;
            color: #6c757d;
                }
                .section-title {
            font-size: 2.2rem; /* Başlık font boyutunu ayarladım */
            font-weight: lighter;
            line-height:1.6;
            margin-bottom: 15px;
            color: #343a40;
                }
      .section-padding {
            padding: 1rem 0;
            padding-right: 5rem;
        }
        .card-custom {
            position: relative;
            overflow: hidden;
            margin-bottom: 50px; /* Kartlar arasında boşluk */
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .card-custom img {
            width: 100%;
            height: 20rem; /* Kart görsel yüksekliği */
            object-fit: cover;
            display: block;
           box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.5);
        }
        .card-overlay {
            position: absolute;
            top: 0; /* Üstten başla */
            left: 0;
            width: 100%;
            height: 100%; /* Tüm kartı kapla */
            background-color: rgba(0, 0, 0, 0.3); /* Yarı şeffaf siyah overlay */
            color: white;
            padding: 10px;
            font-size: 1.1rem;
            font-weight: lighter;
            padding-bottom: 50px;
            display: flex;
            flex-direction: column; /* İçeriği ortalamak için flexbox */
            justify-content: end; /* Yatayda ortala */
            align-items: start; 
            transition: background-color 1s cubic-bezier(0.4,0.0,0.2,1);
              
        }
       .card-custom:hover .card-overlay {
            background-color: rgba(187, 32, 48, 0.85);
            
        }
  #yearsCounter {
    font-size: 3rem; /* Sayının daha büyük görünmesini sağlar */
    font-weight: bold;
    color: #BB2030; /* Karitas'ın kırmızı rengine benzer bir renk */
    display: inline-block; /* Genişlik ve yükseklik gibi özellikler için */
    transition: color 0.3s ease; /* Renk değişimi için animasyon */
}

        .overlay-arrow {
            font-size: 4rem;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none; /* Ok üzerine tıklanmasın */
        }
         .card-custom:hover .overlay-arrow {
            opacity: 1;
            transform: translateY(0);
        }
        

        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .text-column, .image-grid {
                margin-bottom: 30px;
                margin-left: 20px;
            }
            
            .section-title {
                font-size: 2rem;
                text-align: center;
            }
            .text-column p {
                text-align: center;
            }
        }
        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .years-box {
                margin-bottom: 30px; /* Mobil görünümde altına boşluk */
                width: 120px; /* Mobil için daha küçük boyut */
                height: 120px;
            }
            .years-box h1 {
                font-size: 3.5rem;
            }
            .years-box p {
                font-size: 1rem;
            }
            .intro-text {
                text-align: center; /* Mobil görünümde metni ortalama */
            }
            .intro-text h2 {
                font-size: 1.8rem;
            }
        }

        /*ACCORDİON MANAGEMENT*/
    .accordion {
      max-width: 60rem;
      margin: auto;
    }

    .accordion-item {
      background: #f9f9f9;
      border-radius: 8px;
      margin-bottom: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      overflow: hidden;
      transition: box-shadow 0.3s;
    }

    .accordion-item:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }

    .accordion-header {
      cursor: pointer;
      display: flex;
      align-items: center;
      font-size: 16px;
      font-weight: 500;
      color: #333;
      background: #ffffff;
      padding: 14px 18px;
      border: none;
      width: 100%;
      text-align: left;
      transition: background 0.3s;
    }


    .accordion-header.active::before {
      transform: rotate(90deg);
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease, padding 0.3s ease;
      background: #fff;
      padding: 0 18px;
    }

    .accordion-content.open {
      padding: 10px 18px 16px;
    }

    .accordion-content a {
      display: block;
      color: #c60000;
      text-decoration: none;
      margin-bottom: 8px;
      font-size: 15px;
    }

    .accordion-content a:hover {
      text-decoration: underline;
    }




    /*HOBNHN SECTİON*/


/* Genel Ayarlar ve Bölüm Başlığı */
/* Genel Ayarlar ve Bölüm Başlığı */
.section-news {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.section-titles { /* Başlık class'ını s ile değiştirmiştiniz, güncelledim */
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 500;
}

/* Her Bir Haber Öğesi */
.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* pseudo-element bağlantısı için gerekli */
    cursor: pointer; /* Tıklanabilir olduğunu belirtmek için imleç */
}

/* Haber öğesinin tamamını tıklanabilir hale getiren pseudo-element */
.news-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Diğer içeriklerin üzerine çıkmasını sağlar */
    /* Bağlantı hedefi: Başlıkta veya "read-more" linkinde tanımlanan URL'yi kullanır. */
    /* JavaScript ile dinamik olarak atanabilir veya rel="bookmark" kullanılabilir. */
    /* Basit bir yaklaşımla, sadece görsel bir overlay yapıp JavaScript ile yönlendirebiliriz. */
}


.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.news-item:last-child {
    margin-bottom: 0;
}

/* Resim Thumbnail */
.news-thumbnail {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 25px; /* col-md-6 içindeki boşluk */
    box-shadow: 3px 3px 10px rgba(0,0,0,0.25);
}

/* Haber Başlığı */
.news-title {
    font-size: 1.8rem;
    color: #BB2030;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Haber başlık linkini stilize et */
.news-title-link {
    text-decoration: none; /* Alt çizgiyi kaldır */
    color: inherit; /* Üst elementten rengi miras al */
    display: block; /* Tam başlık alanını tıklanabilir yap */
}
.news-title-link:hover .news-title {
    color: #8a1727; /* Hover'da başlık rengini değiştir */
}


/* Haber Meta Bilgisi (Tarih, Kategori) */
.news-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 18px;
}

/* Haber Özeti */
.news-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

/* Devamını Oku Bağlantısı */
.read-more {
    display: inline-block;
    color: #BB2030;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; /* Z-index'in çalışması için gerekli */
    z-index: 2; /* Diğer içeriğin üzerinde kalmasını sağlar */
    text-decoration: none;
}

.read-more:hover {
    color: #8a1727;
    text-decoration: underline;
    transform: translateX(5px);
}

/* Her Haber Öğesi arasındaki Ayırıcı Çizgi (hr) için Stil */
.news-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px -25px; /* Haber öğesinin içindeki padding kadar negatif margin ile genişletme */
    width: auto;
    clear: both;
}

/* Responsive Düzenlemeler */
@media (max-width: 767.98px) {
    .section-news {
        padding: 20px 15px;
    }
    .section-titles {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    .news-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin-bottom: 30px;
    }
    .news-thumbnail {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 90%;
        height: auto;
    }
    .news-title {
        font-size: 1.5rem;
    }
    .news-meta {
        font-size: 0.9rem;
    }
    .news-summary {
        font-size: 1rem;
    }
    .read-more {
        font-size: 1rem;
    }
    .news-separator {
        margin: 30px -20px;
    }
}

/* Tablet Görünümleri (768px ile 991.98px arası) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-news {
        padding: 30px 20px;
    }
    .section-titles {
        font-size: 2.5rem;
    }
    .news-item {
        padding: 20px;
    }
    .news-thumbnail {
        height: 180px;
        margin-right: 20px;
    }
    .news-title {
        font-size: 1.6rem;
    }
    .news-summary {
        font-size: 1.05rem;
    }
    .news-separator {
        margin: 35px -20px;
    }
}

/*News-1Details*/
.news-detail-page {
    padding: 60px 0; /* Sayfanın üst ve alt boşluğunu artır */
    max-width: 960px; /* İçerik genişliğini sınırlar */
    margin: 0 auto; /* Ortalar */
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Hafif bir gölge ekle */
    border-radius: 8px; /* Köşeleri yuvarla */
}

/* Başlık Stilleri */
.detail-title {
    font-size: 2.8rem; /* Haber başlığı boyutu */
    color: #2c3e50; /* Koyu gri */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.detail-meta {
    font-size: 1rem;
    color: #7f8c8d; /* Açık gri */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ana Görsel Stilleri */
.detail-main-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out; /* Görsel yüklenirken solma animasyonu */
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 10px;
}

/* İçerik Alanı Stilleri */
.detail-content {
    font-size: 1.1rem;
    color: #444;
    text-align: justify; /* Metni yasla */
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 25px;
}

.detail-content h3 {
    font-size: 1.6rem;
    color: #34495e;
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 2px solid #BB2030; /* Alt çizgi */
    padding-bottom: 10px;
}

.detail-content ul {
    list-style: disc; /* Noktalı liste */
    margin-left: 20px;
    margin-bottom: 25px;
}

.detail-content ul li {
    margin-bottom: 10px;
}

.detail-content ul li strong {
    color: #2c3e50;
}


/* Sosyal Medya Paylaşım Butonları */
.share-buttons {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.share-buttons span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-right: 15px;
    vertical-align: middle;
}

.btn-social {
    display: inline-flex; /* Icon ve metni hizala */
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px; /* Yuvarlak butonlar */
    margin: 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-social i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-facebook {
    background-color: #3b5998;
    color: white;
}
.btn-facebook:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
}

.btn-twitter {
    background-color: #00acee;
    color: white;
}
.btn-twitter:hover {
    background-color: #0084b4;
    transform: translateY(-2px);
}

.btn-linkedin {
    background-color: #0e76a8;
    color: white;
}
.btn-linkedin:hover {
    background-color: #0a6692;
    transform: translateY(-2px);
}


/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Ayarlamalar */
@media (max-width: 767.98px) {
    .news-detail-page {
        padding: 30px 15px;
    }
    .detail-title {
        font-size: 2rem;
    }
    .detail-meta {
        font-size: 0.85rem;
    }
    .detail-content {
        font-size: 1rem;
    }
    .detail-content h3 {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-social {
        margin: 10px 0;
        width: 80%; /* Mobil görünümde butonları tam genişlik yap */
    }
}
.project-logos {
    text-align: center; /* Logoları ortala */
    margin-top: 50px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* Üstünde ince bir çizgi */
    display: flex; /* Logoları flexbox ile hizala */
    justify-content: center; /* Yatayda ortala */
    align-items: center; /* Dikeyde ortala */
    flex-wrap: wrap; /* Küçük ekranlarda alta geçmelerini sağla */
    gap: 30px; /* Logolar arasında boşluk */
}

.project-logo {
    /* Proje logoları için genel boyutlandırma */
    height: 80px; /* Sabit yükseklik vererek hepsinin aynı boyutta görünmesini sağla */
    width: auto; /* En boy oranını koru */
    max-width: 150px; /* Her bir logonun maksimum genişliği (örnek) */
    object-fit: contain; /* Resmi oranlarını bozmadan sığdır */
    margin: 0; /* Flexbox gap kullandığımız için margin'i sıfırla */
    transition: transform 0.3s ease; /* Hover efekti için */
}

.project-logo:hover {
    transform: scale(1.05); /* Hover'da hafif büyüt */
}


/* Responsive Düzenlemeler (Mobil Cihazlar İçin) */
@media (max-width: 767.98px) {
    /* Ana logo için mobil ayarlamalar */
    .main-logo {
        width: 90px; /* Mobil için daha küçük ana logo */
    }
    .logo-text {
        font-size: 1.2rem;
    }

    /* Proje logoları için mobil ayarlamalar */
    .project-logos {
        gap: 20px; /* Mobil için boşluğu azalt */
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .project-logo {
        height: 60px; /* Mobil için daha küçük proje logoları */
        max-width: 100px;
    }
}

/* Tablet Görünümleri */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Ana logo için tablet ayarlamaları */
    .main-logo {
        width: 100px;
    }
    .logo-text {
        font-size: 1.3rem;
    }

    /* Proje logoları için tablet ayarlamaları */
    .project-logo {
        height: 70px;
        max-width: 120px;
    }
}
/* Haber Detay İçindeki Görsel Galerisi */
.image-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-item {
    padding: 10px; /* Her resim arasında boşluk bırakır */
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: 300px; /* Resim yüksekliği büyütüldü - İhtiyaca göre ayarla */
    object-fit: cover; /* Resmi en boy oranını korurken kapsayıcıyı doldurur */
    border-radius: 8px; /* Köşeleri yuvarla */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover efekti için */
}

.gallery-image:hover {
    transform: scale(1.03); /* Hover'da hafif büyüt */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Hover'da gölge belirginleşir */
}

.gallery-caption {
    font-size: 0.95rem; /* Resim altı yazı boyutu */
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* Responsive Düzenlemeler (Galeri İçin) */
@media (max-width: 767.98px) {
    .gallery-item {
        padding: 8px;
    }
    .gallery-image {
        height: 220px; /* Mobil için resim yüksekliği */
    }
    .gallery-caption {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-image {
        height: 250px; /* Tabletler için resim yüksekliği */
    }
}


/*PUBLICITIONS SECTION*/
.publications-section_1 {
    padding: 60px 0; /* Padding artırıldı */
    background-color: #f7f7f7; /* Daha açık, hafif bir arka plan rengi */
    margin-top: 30px;
    border-radius: 12px; /* Daha belirgin köşeler */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Daha belirgin gölge */
    overflow: hidden; /* İçerik taşmasını engellemek için */
}
.publications-section_1 h2 {
    text-align: center;
    margin-bottom: 50px; /* Başlık altındaki boşluk artırıldı */
    font-size: 2.9rem; /* Başlık boyutu artırıldı */
    font-weight: 700; /* Daha kalın başlık */
    color: #333;
    position: relative;
    padding-bottom: 15px;
}
.publications-section_1 h2::after { /* Başlık altına çizgi efekti */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #dc3545; /* Kırmızı çizgi */
    border-radius: 2px;
}

.publication-item_1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Padding artırıldı */
    border: 1px solid #e0e0e0; /* Hafif gri kenarlık */
    border-radius: 10px; /* Yuvarlak köşeler */
    margin-bottom: 18px; /* Öğeler arası boşluk */
    background-color: #ffffff; /* Beyaz arka plan */
    box-shadow: 0 4px 12px rgba(0,0,0,0.07); /* Yumuşak gölge */
    transition: all 0.3s ease-in-out; /* Tüm geçişlere animasyon */
    cursor: pointer; /* Fare imleci el olsun */
}
.publication-item_1:last-child {
    margin-bottom: 0;
}
.publication-item_1:hover {
    transform: translateY(-7px); /* Yukarı kalkma efekti */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Gölge büyümesi */
    border-color: #dc3545; /* Kenarlık rengi hover'da kırmızı olsun */
}

.publication-text_1 {
    flex-grow: 1;
    margin-right: 15px; /* Buton ile metin arasında daha fazla boşluk */
}
.publication-text_1 h5 {
    font-size: 1.25rem; /* Başlık boyutu artırıldı */
    font-weight: 700; /* Daha kalın başlık */
    color: #343a40; /* Koyu gri */
    margin-bottom: 8px; /* Alt boşluk artırıldı */
}
.publication-text_1 p {
    font-size: 0.8rem; /* Açıklama metni boyutu */
    color: #666; /* Daha açık gri */
    margin-bottom: 0;
    margin-left: ;
}

.btn-outline-red-custom_1 {
    border: 2px solid #dc3545; /* Daha kalın kenarlık */
    color: #dc3545;
    background-color: transparent;
    padding: 10px 22px; /* Buton padding'i artırıldı */
    border-radius: 30px; /* Daha yuvarlak buton */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    display: flex; /* İçindeki metin ve ikon için flexbox */
    align-items: center; /* İçeriği dikeyde ortala */
    gap: 8px; /* Metin ve ikon arasına boşluk */
}
.btn-outline-red-custom_1:hover {
    background-color: #dc3545;
    color: white;
    transform: translateX(5px); /* Hover'da hafif sağa kayma */
}
.btn-outline-red-custom_1 .fa-arrow-right { /* Ok ikonunun stili */
    font-size: 1rem;
    transition: transform 0.3s ease-in-out;
}
.btn-outline-red-custom_1:hover .fa-arrow-right {
    transform: translateX(3px); /* Ok ikonunun hover'da hafif sağa kayması */
}



/*PROJECTS SECTION*/
.care-section_2 {
    padding: 80px 0; /* Padding artırıldı */
    background-color: #f7f7f7; /* Hafif gri arka plan */
    margin-top: 40px;
    border-radius: 15px; /* Yuvarlak köşeler */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Yumuşak gölge */
    overflow: hidden;
}
.care-section_2 h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}
.care-section_2 h2::after { /* Başlık altına kırmızı çizgi efekti */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #dc3545;
    border-radius: 3px;
}

.care-card_2 {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    cursor: pointer;
    /* Başlangıçta kırmızı gölge ve beyaz yazı */
    background-color: #dc3545; /* Kırmızı arka plan */
    color: white; /* Beyaz metin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Başlangıç gölgesi */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    height: 320px; /* Kart yüksekliği */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* İçeriği alta hizala */
}
.care-card_2:hover {
    transform: translateY(-10px); /* Yukarı kalkma efekti */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* Gölge büyümesi */
}
.text123{
   font-size:2.1rem;
   font-weight:700;
   margin-bottom:1.2rem;
   letter-spacing:0.5px;
}
.text1234{
    font-size:1.09rem;
    line-height:1.7;
    color:#444;
    max-width:700px;
    margin:0 auto 2.2rem auto;
    text-align:center;
    font-weight:400;"
}
/* Resim, başlangıçta gizli ve hafif büyütülmüş */
.care-card-img_2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0; /* Başlangıçta gizli */
    transform: scale(1.1); /* Başlangıçta hafif büyütülmüş */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.care-card_2:hover .care-card-img_2 {
    opacity: 1; /* Hover'da görünür */
    transform: scale(1.05); /* Hover'da hafif küçülerek zoom-out efekti */
}

/* Overlay (Hover'da ortaya çıkan kırmızı katman) */
.care-card-overlay_2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.85); /* Kırmızı overlay */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 30px;
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.4s ease-out;
}
.care-card_2:hover .care-card-overlay_2 {
    opacity: 1; /* Hover'da görünür */
}
.care-card-overlay_2 h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Başlık (İlk durumda görünen, hover'da kaybolan) */
.care-card-title_2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3; /* Overlay'in üzerinde, resmin altında */
    color: white; /* Beyaz metin */
    font-weight: bold;
    font-size: 1.4rem;
    /* Arka planı kaldırıldı, kartın kendi kırmızı rengi kullanılacak */
    padding: 15px 0;
    opacity: 1; /* Başlangıçta görünür */
    transition: opacity 0.4s ease-out;
    text-align: center;
    width: 100%;
}
.care-card_2:hover .care-card-title_2 {
    opacity: 0; /* Hover'da başlığı gizle */
}

/* Overlay içindeki buton */
.care-card-btn_2 {
    background-color: #ffffff; /* Beyaz buton */
    color: #dc3545; /* Kırmızı yazı */
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.care-card-btn_2:hover {
    background-color: #c82333; /* Kırmızıya döner */
    color: white; /* Yazı beyaz olur */
    transform: scale(1.05); /* Hafif büyür */
}

/* --- PROFESSIONAL PROJECT CARDS UPGRADE --- */
.care-card_2 {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.care-card_2:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(173,11,27,0.18), 0 2px 8px rgba(0,0,0,0.10);
}
.care-card-img_2 {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: filter 0.3s;
}
.care-card_2:hover .care-card-img_2 {
  filter: brightness(0.85) blur(1px);
}
.care-card-overlay_2 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(173,11,27,0.10) 0%, rgba(0,0,0,0.18) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  padding: 32px 16px 16px 16px;
  z-index: 2;
}
.care-card_2:hover .care-card-overlay_2 {
  opacity: 1;
}
.care-card-overlay_2 h4 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin-bottom: 18px;
  text-align: center;
}
.care-card-title_2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ad0b1b;
  text-align: center;
  margin: 18px 0 10px 0;
  letter-spacing: 0.5px;
}
.care-card-btn_2 {
  background: #ad0b1b;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(173,11,27,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.care-card-btn_2:hover {
  background: #fff;
  color: #ad0b1b;
  border: 1.5px solid #ad0b1b;
  box-shadow: 0 4px 16px rgba(173,11,27,0.18);
}
@media (max-width: 991px) {
  .care-card-img_2 {
    height: 180px;
  }
  .care-card_2 {
    min-height: 320px;
  }
}
@media (max-width: 575px) {
  .care-card-img_2 {
    height: 140px;
  }
  .care-card_2 {
    min-height: 220px;
  }
}
/* --- END PROFESSIONAL PROJECT CARDS UPGRADE --- */

/* --- FIX: Project cards images always visible except on hover --- */
.care-card-img_2 {
  filter: none !important;
  opacity: 1 !important;
}
.care-card_2:not(:hover) .care-card-img_2 {
  filter: none !important;
  opacity: 1 !important;
}
.care-card-overlay_2 {
  opacity: 0;
  pointer-events: none;
}
.care-card_2:hover .care-card-overlay_2 {
  opacity: 1;
  pointer-events: auto;
}
/* --- END FIX --- */

/* EMERALD LOGO düzeni */
.emerald-logos-left img {
  max-height: 70px;
  width: auto;
  margin-bottom: 0;
}
.emerald-main-logo {
  max-height: 120px;
  width: auto;
  margin-left: 32px;
}
@media (max-width: 991.98px) {
  .emerald-section.emerald-logo {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .emerald-logos-left {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
  }
  .emerald-logo-right {
    width: auto;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    min-width: unset !important;
  }
  .emerald-logos-left img, .emerald-main-logo {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    max-width: 32vw;
    height: auto;
  }
}
@media (max-width: 575.98px) {
  .emerald-section.emerald-logo {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .emerald-logos-left {
    flex-direction: row !important;
    justify-content: center !important;
    width: 100%;
    gap: 4vw !important;
    margin-bottom: 0 !important;
  }
  .emerald-logo-right {
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    margin-left: 0 !important;
    min-width: unset !important;
    flex-direction: column !important;
  }
  .emerald-main-logo {
    max-width: 90vw !important;
    max-height: 32vw !important;
    margin: 12px auto 0 auto !important;
    display: block;
  }
  .emerald-logos-left img {
    max-width: 36vw;
    height: auto;
  }
}

/* Проекти Bölümü */
.projects-section {
  background: #fff;
}
.projects-title {
  font-size: 2rem;
  font-weight: 700;
  color: #234;
  text-align: center;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.project-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 1.08rem;
  color: #234;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  display: inline-block;
  min-width: 210px;
  text-align: center;
}
.project-box:hover {
  background: #b01116;
  color: #fff;
  box-shadow: 0 4px 16px rgba(176,17,22,0.12);
}
@media (max-width: 991.98px) {
  .projects-grid {
    gap: 12px;
  }
  .project-box {
    min-width: 160px;
    font-size: 1rem;
    padding: 14px 10px;
  }
}
@media (max-width: 575.98px) {
  .projects-title {
    font-size: 1.3rem;
    text-align: center;
  }
  .projects-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .project-box {
    width: 100%;
    min-width: unset;
    font-size: 0.98rem;
    padding: 12px 6px;
  }
}

@media (max-width: 767.98px) {
  .main-footer .row {
    display: flex;
    flex-direction: column !important;
    gap: 0;
  }
  .main-footer [class^="col-"] {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 30px !important;
    text-align: center !important;
  }
  .main-footer .footer-logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .main-footer .footer-heading {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .main-footer .footer-list {
    padding-left: 0;
    margin-bottom: 10px;
  }
  .main-footer .footer-list li {
    justify-content: center;
  }
}

/*details*/
     .page3-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero3 {
      position: relative;
      background-image: url('images/DSC_2314-scaled.jpg');
      background-size: cover;
      background-position: center;
      height: 350px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero3::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text3 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero3 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content3 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 0.95rem;
      animation: fadeIn 1.8s ease-in;
    }

    .content3 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content3 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }

    .content3 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    @media (max-width: 768px) {
      .content3 {
        font-size: 0.9rem;
      }

      .hero3 h1 {
        font-size: 1.8rem;
      }

      .content3 h3 {
        font-size: 1.05rem;
      }
    }
      .page4-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero4 {
      position: relative;
      background-image: url('images/viber_изображение_2022-08-29_18-22-23-377.jpg');
      background-size: cover;
      background-position: center;
      height: 350px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero4::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text4 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero4 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content4 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }

    .content4 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content4 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }

    .content4 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    @media (max-width: 768px) {
      .content4 {
        font-size: 11px;
      }

      .hero4 h1 {
        font-size: 1.8rem;
      }

      .content4 h3 {
        font-size: 1.05rem;
      }
    }

    .content4 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content4 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content4 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content4 {
        font-size: 11px;
      }
      .content4 ul li {
        font-size: 0.98em;
      }
    }
     .page5-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero5 {
      position: relative;
      background-image: url('images/People-with-disabilities-target-group-cover-2.jpg');
      background-size: cover;
      background-position: center;
      height: 350px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero5::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text5 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero5 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content5 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }

    .content5 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content5 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }

    .content5 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    @media (max-width: 768px) {
      .content5 {
        font-size: 11px;
      }

      .hero5 h1 {
        font-size: 1.8rem;
      }

      .content5 h3 {
        font-size: 1.05rem;
      }
    }

    .content5 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content5 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content5 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content5 {
        font-size: 11px;
      }
      .content5 ul li {
        font-size: 0.98em;
      }
    }

        .page6-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero6 {
      position: relative;
      background-image: url('images/Elderly-people-target-group-cover.jpg');
      background-size: cover;
      background-position: center;
      height: 370px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero6::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text6 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero6 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content6 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }
       .content6 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    .content6 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content6 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }


    @media (max-width: 768px) {
      .content6 {
        font-size: 11px;
      }

      .hero6 h1 {
        font-size: 1.8rem;
      }

      .content6 h3 {
        font-size: 1.05rem;
      }
    }

    .content6 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content6 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content6 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content6 {
        font-size: 11px;
      }
      .content6 ul li {
        font-size: 0.98em;
      }
    }
     .page7-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero7 {
      position: relative;
      background-image: url('images/Sofia\ 6.JPG');
      background-size: cover;
      background-position: center;
      height: 370px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero7::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text7 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero7 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content7 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }
       .content7 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    .content7 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content7 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }


    @media (max-width: 768px) {
      .content7 {
        font-size: 11px;
      }

      .hero7 h1 {
        font-size: 1.8rem;
      }

      .content7 h3 {
        font-size: 1.05rem;
      }
    }

    .content7 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content7 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content7 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content7 {
        font-size: 11px;
      }
      .content7 ul li {
        font-size: 0.98em;
      }
    }



       .page8-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero8 {
      position: relative;
      background-image: url('images/People-with-disabilities-target-group-cover-1.jpg');
      background-size: cover;
      background-position: center;
      height: 370px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero8::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text8 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero8 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content8 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }
    .content8 h1{
      font-size: 1.0rem;
    }
       .content8 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    .content8 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content8 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }


    @media (max-width: 768px) {
      .content8 {
        font-size: 11px;
      }

      .hero8 h1 {
        font-size: 1.8rem;
      }

      .content8 h3 {
        font-size: 1.05rem;
      }
    }

    .content8 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content8 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content8 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content8 {
        font-size: 11px;
      }
      .content8 ul li {
        font-size: 0.98em;
      }
    }
       .page9-wrapper {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #1a1a1a;
      line-height: 1.7;
      animation: fadeIn 1.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .hero9 {
      position: relative;
      background-image: url('images/Volunteers-target-group-cover.jpg');
      background-size: cover;
      background-position: center;
      height: 370px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

    .hero9::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
    }

    .hero-text9 {
      position: relative;
      z-index: 1;
      animation: fadeIn 1.6s ease-in;
    }

    .hero9 h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin: 0;
    }

    .content9 {
      max-width: 920px;
      margin: 50px auto;
      padding: 0 24px;
      font-size: 13px;
      animation: fadeIn 1.8s ease-in;
    }
    .content9 h1{
      font-size: 1.0rem;
    }
       .content9 h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-top: 2em;
      margin-bottom: 0.8em;
      color: #2a2a2a;
      padding-left: 12px;
      border-left: 4px solid #c20000;
      background-color: #fafafa;
    }

    .content9 em {
      display: block;
      margin-bottom: 1em;
      color: #555;
      font-style: italic;
    }

    .content9 p {
      margin-bottom: 1.5em;
      text-align: justify;
    }


    @media (max-width: 768px) {
      .content9 {
        font-size: 11px;
      }

      .hero9 h1 {
        font-size: 1.8rem;
      }

      .content9 h3 {
        font-size: 1.05rem;
      }
    }

    .content9 ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 1.5em;
    }
    .content9 ul li {
      position: relative;
      padding-left: 1.8em;
      margin-bottom: 0.7em;
      font-size: 1em;
      line-height: 1.6;
      background: none;
    }
    .content9 ul li::before {
      content: "\2022";
      position: absolute;
      left: 0.2em;
      top: 0.1em;
      color: #ad0b1b;
      font-size: 1.2em;
      font-weight: bold;
      line-height: 1;
    }
    @media (max-width: 768px) {
      body {
        font-size: 12px;
      }
      .content9 {
        font-size: 11px;
      }
      .content9 ul li {
        font-size: 0.98em;
      }
    }
/* --- Social Enterprise Modern Card Fix: Enhanced Professional Look --- */
.enterprise-card-modern,
.enterprise-card-modern-img {
  cursor: pointer;
}
.enterprise-card-modern {
  background: linear-gradient(180deg, #fff 80%, #fbeaec 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(173,11,27,0.10), 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  min-height: 340px;
  overflow: hidden;
  margin: 10px 0;
  border: 1.5px solid #f3e9eb;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: fadeInCard 0.7s cubic-bezier(.4,2,.6,1);
}
.enterprise-card-modern:hover {
  box-shadow: 0 16px 48px rgba(173,11,27,0.18), 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.035);
}
.enterprise-card-modern-img {
  width: 100%;
  height: 210px;
  background: #f3e9eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  position: relative;
}
.enterprise-card-modern-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.enterprise-card-modern-accent {
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #ad0b1b 0%, #fbeaec 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}
.enterprise-card-modern-body {
  flex: 1 1 0%;
  padding: 32px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
}
.enterprise-card-modern-body h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ad0b1b;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.enterprise-card-modern-body p {
  font-size: 1.13rem;
  color: #222;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.8;
  font-weight: 500;
}
@media (max-width: 991.98px) {
  .enterprise-card-modern {
    max-width: 100%;
    min-height: unset;
    margin: 16px 0;
  }
  .enterprise-card-modern-img {
    height: 150px;
  }
  .enterprise-card-modern-body {
    padding: 18px 10px 18px 10px;
  }
  .enterprise-card-modern-body h3 {
    font-size: 1.18rem;
  }
  .enterprise-card-modern-body p {
    font-size: 0.98rem;
  }
}
@media (max-width: 575.98px) {
  .enterprise-card-modern {
    max-width: 100%;
    margin: 8px 0;
    min-height: unset;
  }
  .enterprise-card-modern-img {
    height: 90px;
  }
  .enterprise-card-modern-body {
    padding: 8px 4px 8px 4px;
  }
  .enterprise-card-modern-body h3 {
    font-size: 1rem;
  }
  .enterprise-card-modern-body p {
    font-size: 0.89rem;
  }
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Лични истории (Personal Stories) Card Professional & Compact Style --- */
.custom-story-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(173,11,27,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  border: 1.2px solid #f3e9eb;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  margin-bottom: 18px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  animation: fadeInCard 0.7s cubic-bezier(.4,2,.6,1);
}
.custom-story-card:hover {
  box-shadow: 0 10px 32px rgba(173,11,27,0.16), 0 4px 12px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.025);
}
.custom-story-card .card-img-top {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: #f3e9eb;
  margin-bottom: 0;
}
.custom-story-card .story-accent {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ad0b1b 0%, #fbeaec 100%);
  margin-bottom: 0;
}
.custom-story-card .card-body {
  padding: 18px 12px 10px 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
}
.custom-story-card .card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ad0b1b;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.custom-story-card .card-description {
  font-size: 0.97rem;
  color: #222;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.custom-story-card .card-footer {
  background: none;
  border-top: none;
  text-align: right;
  font-size: 0.89rem;
  color: #888;
  padding: 8px 12px 8px 12px;
}
@media (max-width: 991.98px) {
  .custom-story-card {
    min-height: 260px;
  }
  .custom-story-card .card-img-top {
    height: 110px;
  }
  .custom-story-card .card-body {
    padding: 10px 6px 6px 6px;
  }
  .custom-story-card .card-title {
    font-size: 0.98rem;
  }
  .custom-story-card .card-description {
    font-size: 0.89rem;
  }
}
@media (max-width: 575.98px) {
  .custom-story-card {
    min-height: 180px;
  }
  .custom-story-card .card-img-top {
    height: 70px;
  }
  .custom-story-card .card-body {
    padding: 6px 2px 4px 2px;
  }
  .custom-story-card .card-title {
    font-size: 0.89rem;
  }
  .custom-story-card .card-description {
    font-size: 0.8rem;
  }
}
@media (max-width: 991.98px) {
  .custom-story-card .card-img-top {
    height: 170px;
  }
}
@media (max-width: 575.98px) {
  .custom-story-card .card-img-top {
    height: 120px;
  }
}

/* --- Update for Лични истории: Smaller Card, Bigger Image --- */
.custom-story-card {
  min-height: 220px;
}
.custom-story-card .card-body {
  padding: 10px 8px 6px 8px;
}
.custom-story-card .card-img-top {
  height: 180px;
}
@media (max-width: 991.98px) {
  .custom-story-card {
    min-height: 150px;
  }
  .custom-story-card .card-img-top {
    height: 140px;
  }
}
@media (max-width: 575.98px) {
  .custom-story-card {
    min-height: 100px;
  }
  .custom-story-card .card-img-top {
    height: 100px;
  }
}

.custom-story-card {
  min-height: 140px;
}
.custom-story-card .card-body {
  padding: 6px 4px 4px 4px;
}
@media (max-width: 991.98px) {
  .custom-story-card {
    min-height: 90px;
  }
}
@media (max-width: 575.98px) {
  .custom-story-card {
    min-height: 60px;
  }
}

@media (max-width: 991.98px) {
  .custom-story-card {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}
@media (max-width: 575.98px) {
  .custom-story-card {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (max-width: 575.98px) {
  .custom-story-card .card-title {
    font-size: 0.75rem;
    word-break: break-word;
  }
  .custom-story-card .card-description {
    font-size: 0.7rem;
    word-break: break-word;
  }
}

@media (max-width: 575.98px) {
  .lead.mt-3.word-space {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .lead.mt-3.word-space {
    font-size: 0.82rem;
    word-break: break-word;
    white-space: normal;
  }
}

@media (max-width: 991.98px) {
  .text-content-block p {
    font-size: 1rem;
  }
}
@media (max-width: 575.98px) {
  .text-content-block p {
    font-size: 0.85rem;
  }
}
@media (max-width: 991.98px) {
  .text-content-block p {
    font-size: 0.92rem;
  }
}
@media (max-width: 575.98px) {
  .text-content-block p {
    font-size: 0.72rem;
  }
}


   .emerald-header {
      background-color: #c20000;
      color: white;
      padding: 2rem 1rem;
      text-align: center;
      margin-bottom: 2rem;
    }
    .emerald-logo img {
      max-height: 60px;
      margin: 0.5rem;
    }
    .emerald-section {
      max-width: 860px;
      margin: auto;
      padding: 0 1rem;
      font-size: 1rem;
    }
    .emerald-section p {
      text-align: justify;
    }
    .emerald-section ul {
      padding-left: 1.5rem;
    }

/* --- EMERALD PAGE PROFESSIONAL TEXT & LOGO UPGRADE --- */
.emerald-section {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #222;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
.emerald-section p {
  font-size: 1.13rem;
  color: #222;
  margin-bottom: 1.2rem;
  text-align: justify;
}
.emerald-section h5 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ad0b1b;
  margin-top: 2.2rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}
.emerald-section ol {
  font-size: 1.08rem;
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.emerald-section li {
  margin-bottom: 0.5rem;
}
.emerald-main-logo {
  max-height: 180px !important;
  width: auto;
}
@media (max-width: 991.98px) {
  .emerald-section {
    font-size: 1rem;
  }
  .emerald-section p {
    font-size: 0.98rem;
  }
  .emerald-section h5 {
    font-size: 1.05rem;
  }
  .emerald-section ol {
    font-size: 0.95rem;
  }
  .emerald-main-logo {
    max-height: 120px !important;
  }
}
@media (max-width: 575.98px) {
  .emerald-section {
    font-size: 0.74rem;
    padding: 0 2px;
  }
  .emerald-section p {
    font-size: 0.72rem;
  }
  .emerald-section h5 {
    font-size: 0.8rem;
  }
  .emerald-section ol {
    font-size: 0.7rem;
  }
  .emerald-main-logo {
    max-height: 80px !important;
  }
}

.emerald-section.emerald-logo {
  gap: 8px !important;
}
.emerald-logo-right {
  min-width: unset !important;
  margin-left: 0 !important;
}

/* --- Ukraine Support Section Professional Style --- */
.ukraine-support-section {
  background: linear-gradient(135deg, #f8f9fa 60%, #e9f0fb 100%);
  border-radius: 18px;
  padding: 2.5rem 0 2rem 0;
}
.ukraine-support-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(173,11,27,0.10), 0 2px 8px rgba(0,0,0,0.08);
  border: 1.5px solid #e3e3e3;
  border-top: 6px solid #ad0b1b;
  padding: 2.2rem 2rem 1.5rem 2rem;
  margin-bottom: 0;
  min-height: 100%;
  transition: box-shadow 0.22s, transform 0.22s;
}
.ukraine-support-box:hover {
  box-shadow: 0 12px 36px rgba(173,11,27,0.16), 0 6px 18px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.018);
}
.ukraine-support-box h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ad0b1b;
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.ukraine-support-box h6 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ad0b1b;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}
.ukraine-support-box ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.ukraine-support-box li {
  margin-bottom: 0.5rem;
  font-size: 1.01rem;
  color: #222;
  line-height: 1.7;
}
.ukraine-support-box a {
  color: #0d6efd;
  text-decoration: underline;
  word-break: break-all;
  font-weight: 500;
  transition: color 0.18s;
}
.ukraine-support-box a:hover {
  color: #ad0b1b;
}
.ukraine-support-box .text-muted {
  font-size: 0.97rem;
  color: #888 !important;
}
@media (max-width: 991.98px) {
  .ukraine-support-section {
    padding: 1.2rem 0 1rem 0;
    border-radius: 12px;
  }
  .ukraine-support-box {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 12px;
  }
  .ukraine-support-box h4 {
    font-size: 1.08rem;
  }
  .ukraine-support-box h6 {
    font-size: 0.95rem;
  }
  .ukraine-support-box li {
    font-size: 0.92rem;
  }
}
@media (max-width: 575.98px) {
  .ukraine-support-section {
    padding: 0.5rem 0 0.5rem 0;
    border-radius: 8px;
  }
  .ukraine-support-box {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    border-radius: 8px;
  }
  .ukraine-support-box h4 {
    font-size: 0.92rem;
  }
  .ukraine-support-box h6 {
    font-size: 0.82rem;
  }
  .ukraine-support-box li {
    font-size: 0.81rem;
  }
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
  }
  .navbar, .container-fluid {
    overflow-x: hidden !important;
  }
  .navbar .btn.btn-danger {
    font-size: 0.90rem !important;
    padding: 2px 8px !important;
    margin-bottom: 2px !important;
    min-width: 90px !important;
    width: auto !important;
    display: inline-block !important;
    line-height: 1.1 !important;
  }
}

/* Последни новини kartı için özel stiller */
.section-titles3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #ad0b1b;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.news-item3 {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(173,11,27,0.07);
  overflow: hidden;
  margin: 0 auto 1.1rem auto;
  max-width: 650px;
  align-items: stretch;
  min-height: 90px;
  display: flex;
}
.news-content-col3 {
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-title3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ad0b1b;
  margin-bottom: 0.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.news-meta3 {
  font-size: 0.74rem;
  color: #ad0b1b;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.news-summary3 {
  font-size: 0.81rem;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-family: 'Montserrat', Arial, sans-serif;
}
.read-more3 {
  font-size: 0.8rem;
  color: #0a3d62;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.read-more3:hover {
  color: #ad0b1b;
}
@media (max-width: 768px) {
  .news-item3 {
    flex-direction: column;
    max-width: 98vw;
    min-height: unset;
    margin-left: auto;
    margin-right: auto;
  }
  .news-content-col3 {
    padding: 0.6rem;
  }
}

.news-item3:hover {
  cursor: pointer;
}

@media (max-width: 1024px) {
  .news-item3 {
    flex-direction: column;
    width: 95vw;
    max-width: 98vw;
    min-height: unset;
    margin: 0 auto 1.1rem auto;
    justify-content: center;
    align-items: center;
  }
  .news-content-col3 {
    padding: 0.6rem;
  }
}

.project-box {
  font-size: 0.92rem;
  padding: 10px 14px;
  min-width: 140px;
}
@media (max-width: 991.98px) {
  .project-box {
    min-width: 110px;
    font-size: 0.88rem;
    padding: 8px 6px;
  }
}
@media (max-width: 575.98px) {
  .project-box {
    width: 100%;
    min-width: unset;
    font-size: 0.85rem;
    padding: 7px 3px;
  }
}

.container-fluid4, .container-fluid4 h1, .container-fluid4 h2, .container-fluid4 h3, .container-fluid4 h4, .container-fluid4 h5, .container-fluid4 h6, .container-fluid4 p, .container-fluid4 ul, .container-fluid4 li {
  font-size: 0.82rem !important;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232323;
  line-height: 1.7;
}
.container-fluid4 h1 {
  font-size: 0.89rem !important;

  font-weight: 500;
  color: #232323;
  margin-top: 1.2em;
  margin-bottom: 0.7em;
}
.container-fluid4 h2 {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: #ad0b1b;
  margin-top: 1em;
  margin-bottom: 0.6em;
}
.container-fluid4 h3, .container-fluid4 h4, .container-fluid4 h5, .container-fluid4 h6 {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #ad0b1b;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
}
.container-fluid4 ul {
  list-style: none;
  margin-bottom: 1.2em;
}
.container-fluid4 ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
  font-size: 0.92em;
  line-height: 1.7;
}
.container-fluid4 ul li::before {
  content: "\2022";
  position: absolute;
  left: 0.1em;
  top: 0.1em;
  color: #ad0b1b;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1;
}
.container-fluid4 p {
  margin-bottom: 0.9em;
  color: #b01116;

}
@media (max-width: 768px) {
  .container-fluid4, .container-fluid4 h1, .container-fluid4 h2, .container-fluid4 h3, .container-fluid4 h4, .container-fluid4 h5, .container-fluid4 h6, .container-fluid4 p, .container-fluid4 ul, .container-fluid4 li {
    font-size: 0.7rem !important;
  }
  .container-fluid4 h1 {
    font-size: 0.98rem !important;
  }
  .container-fluid4 h2 {
    font-size: 0.89rem !important;
  }
}

.container-fluid4 .emerald-header h1 {
  font-size: 1.45rem !important;
  color: #fff !important;
  font-weight: 800;
  /* background: linear-gradient(90deg, #b01116 60%, #ad0b1b 100%); */
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  margin-bottom: 1.2em;
  margin-top: 1.2em;
  display: inline-block;

}
@media (max-width: 768px) {
  .container-fluid4 .emerald-header h1 {
    font-size: 1.08rem !important;
    padding: 10px 12px;
  }
}

.project-box-disabled {
  background: #fcf8f3;
  border-radius: 16px;
  padding: 18px 14px;
  font-size: 1.08rem;
  color: #b01116;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: inline-block;
  min-width: 180px;
  max-width: 270px;
  text-align: left;
  margin-bottom: 18px;
  transition: box-shadow 0.25s, background 0.25s, transform 0.18s;
}
.project-box-disabled:hover {
  background: #fff6ed;
  box-shadow: 0 6px 24px rgba(176,17,22,0.13);
  transform: translateY(-4px) scale(1.035);
  cursor: pointer;
}
.project-box-disabled img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin-bottom: 10px !important;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: filter 0.22s;
}
.project-box-disabled:hover img {
  filter: brightness(1.08) saturate(1.1);
}

.blagovest-image-wrapper {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  background: #f8f9fa;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(176,17,22,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 18px auto;
}
@media (max-width: 991.98px) {
  .blagovest-image-wrapper {
    max-width: 90vw;
    aspect-ratio: 16/10;
    border-radius: 14px;
  }
}
@media (max-width: 575.98px) {
  .blagovest-image-wrapper {
    max-width: 98vw;
    aspect-ratio: 16/12;
    border-radius: 10px;
  }
}
.blagovest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: filter 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}
.blagovest-image:hover {
  filter: brightness(1.07) saturate(1.08);
  box-shadow: 0 8px 32px rgba(176,17,22,0.13);
}

.blagovest-float-img {
  width: 180px;
  max-width: 220px;
  min-width: 120px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(176,17,22,0.10);
  object-fit: cover;
  background: #f8f9fa;
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.22s, filter 0.22s;
}
.blagovest-float-img:hover {
  box-shadow: 0 8px 32px rgba(176,17,22,0.13);
  filter: brightness(1.07) saturate(1.08);
}
@media (max-width: 767.98px) {
  .blagovest-float-img {
    float: none !important;
    display: block;
    margin: 0 auto 1rem auto;
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
}

.blagovest-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(176,17,22,0.10);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 18px;
  border: none;
}
.blagovest-card-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f8f9fa;
  display: block;
}
@media (max-width: 767.98px) {
  .blagovest-card {
    padding: 14px 4px;
    border-radius: 12px;
    max-width: 100%;
  }
  .blagovest-card-img {
    border-radius: 10px;
    max-height: 180px;
  }
}


.karisto-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background-color: #fff;
}

.karisto-tabmenu {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 24px;
  width: 100%;
  max-width: 700px;
}

.karisto-tabitem {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.karisto-tabitem:hover {
  color: #a50000;
}

.karisto-tabitem.active {
  color: #a50000;
  border-bottom: 3px solid #a50000;
}

.karisto-card {
  max-width: 700px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  text-align: center;
}

.karisto-title {
  color: #a50000;
  margin-bottom: 16px;
}

.karisto-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}

.karisto-text {
  font-weight: lighter;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}
.karisto-text2 {
  font-weight: lighter;
  font-size: 20px;
  color: #333;
  line-height: 1.6;
}
.karisto-menu {
  max-width: 1200px;
  width: 100%;
  padding: 24px;
}

.karisto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}


.karisto-cardbox {
  background: #fffefc;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.karisto-cardbox:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.karisto-cardbox img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.karisto-label {
  display: inline-block;
  background: #e34234;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.karisto-cardbox h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  color: #770202;
}

.karisto-cardbox p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.karisto-price {
  font-weight: bold;
  color: #a50000;
  font-size: 1.6rem;
  margin-top: 30px;
}

/* Responsive Karisto Menu Grid */
@media (max-width: 991px) {
  .karisto-grid {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }
  .karisto-cardbox {
    flex: 0 0 48%;
    max-width: 48%;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .karisto-grid {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .karisto-cardbox {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- Karisto Menu Card Professional Styling --- */
.karisto-cardbox {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 420px;
}
.karisto-cardbox:hover {
  box-shadow: 0 8px 32px rgba(173,11,27,0.18);
  transform: translateY(-4px) scale(1.03);
}
.karisto-cardbox img {
  width: 100%;
  max-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.karisto-cardbox h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 10px 0 6px 0;
  text-align: center;
}
.karisto-cardbox p {
  font-size: 1rem;
  color: #444;
  text-align: center;
  margin-bottom: 10px;
}
.karisto-label {
  background: #ad0b1b;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 2px 12px;
  margin-bottom: 8px;
  display: inline-block;
}
.karisto-price, .karisto-cardbox h2.mt-2 {
  text-align: center;
}

/* --- Karisto Menu Card Uniform Size --- */
.karisto-cardbox {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 480px;
  min-height: 480px;
  max-height: 480px;
}
@media (max-width: 991px) {
  .karisto-cardbox {
    width: 48vw;
    min-width: 48vw;
    max-width: 48vw;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }
}
@media (max-width: 600px) {
  .karisto-cardbox {
    width: 96vw;
    min-width: 96vw;
    max-width: 96vw;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
  }
}

.scaled-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
 .alignt h1{
  font-size:0.9rem;
 }

.card .scaled-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}




/*VOLUNTEER SECTİON*/

.custom-participate-section {
      max-width: 1100px;
      margin: 60px auto 0 auto;
      padding: 0 16px 40px 16px;
      text-align: center;
    }
    .custom-participate-section h1 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1.2rem;
      color: #222;
    }
    .custom-participate-section p {
      font-size: 1.15rem;
      color: #444;
      margin-bottom: 2.5rem;
      line-height: 1.7;
    }
    .custom-participate-cards {
      display: flex;
      gap: 32px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .custom-participate-card {
      background: #fff;
      border: 1.5px solid #eee;
      border-radius: 16px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      padding: 32px 28px 28px 28px;
      max-width: 320px;
      min-width: 260px;
      flex: 1 1 260px;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 24px;
    }
    .custom-participate-card h2 {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 0.7rem;
      color: #b8001c;
    }
    .custom-participate-card p {
      font-size: 1rem;
      color: #444;
      margin-bottom: 1.5rem;
      min-height: 48px;
    }
    .custom-participate-btn {
      background: #b8001c;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 0.7rem 2.2rem;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      box-shadow: 0 2px 8px rgba(184,0,28,0.08);
      text-decoration: none;
      display: inline-block;
    }
    .custom-participate-btn:hover {
      background: #a00018;
      color: #fff;
      text-decoration: none;
    }
    @media (max-width: 900px) {
      .custom-participate-cards {
        flex-direction: column;
        align-items: center;
      }
      .custom-participate-card {
        max-width: 100%;
        width: 100%;
      }
    }
    .volunteer-section {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.07);
      padding:  2.5rem 2.5rem 2.5rem;
     
      margin-bottom: 3rem;
    }
    .volunteer-section h1 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1.2rem;
      color: #b8001c;
      letter-spacing: 0.5px;
    }
    .volunteer-section p {
      font-size: 1.15rem;
      line-height: 1.7;
      font-weight: lighter;
      margin-bottom: 2.2rem;
      color: #444;
    }
    .volunteer-image {
      max-width: 800px;
      width: 100%;
      border-radius: 18px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.09);
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
      object-fit: cover;
    }
    @media (max-width: 991px) {
      .volunteer-section {
        padding: 2rem 1rem;
      }
      .volunteer-image {
        max-width: 600px;
        margin-top: 1rem;
      }
    }
    @media (max-width: 767px) {
      .volunteer-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 1.2rem 0.5rem;
      }
      .volunteer-section h1 {
        font-size: 2rem;
      }
      .volunteer-image {
        max-width: 400px;
      }
    }
    /* Young Caritas Section */
    .youngcaritas-section {
      max-width: 1200px;
      margin: 60px auto 0 auto;
      padding: 0 16px 40px 16px;
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    }
    .youngcaritas-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 32px;
    }
    .youngcaritas-img-col {
      flex: 1 1 340px;
      display: flex;
      justify-content: center;
      align-items: center;
      min-width: 260px;
    }
    .youngcaritas-img {
      max-width: 420px;
      width: 100%;
      border-radius: 24px;
      box-shadow: 0 4px 24px rgba(37,99,235,0.10);
      background: #f8f9fa;
      padding: 18px;
      object-fit: contain;
    }
    .youngcaritas-content-col {
      flex: 1 1 380px;
      min-width: 260px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 0 10px;
    }
    .youngcaritas-content-col h1 {
       margin-top: 1rem;
        font-size: 2.2rem;
      font-weight: 700;
      color: #b8001c;
      margin-bottom: 1.1rem;
      letter-spacing: 0.5px;
    }
    .youngcaritas-content-col p {
      font-size: 1.13rem;
      font-weight: lighter;
      color: #333;
      line-height: 1.8;
      margin-bottom: 2.1rem;
    }
    .youngcaritas-content-col .btn-danger {
      padding: 0.85rem 2.5rem;
      font-size: 1.18rem;
      font-weight: 700;
      border-radius: 30px;
      box-shadow: 0 2px 12px rgba(184,0,28,0.10);
      transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    }
    .youngcaritas-content-col .btn-danger:hover {
      background: #a00018;
      color: #fff;
      box-shadow: 0 4px 24px rgba(184,0,28,0.18);
      transform: translateY(-2px) scale(1.03);
    }
    @media (max-width: 991px) {
      .youngcaritas-row {
        flex-direction: column;
        gap: 18px;
      }
      .youngcaritas-img {
        max-width: 320px;
      }
      .youngcaritas-content-col h1 {
        font-size: 1.5rem;
      }
    }
    @media (max-width: 600px) {
      .youngcaritas-section {
        padding: 0 2px 24px 2px;
      }
      .youngcaritas-img {
        max-width: 180px;
        padding: 8px;
      }
      .youngcaritas-content-col p {
        font-size: 1rem;
      }
    }
    .volunteer-accordion-wrapper {
      max-width: 600px;
      margin: 0 auto 2rem auto;
      padding: 0 8px;
    }
    .volunteer-accordion-item {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      margin-bottom: 16px;
      border: 1.5px solid #e5e7eb;
      overflow: hidden;
    }
    .volunteer-accordion-header {
      width: 100%;
      background: linear-gradient(90deg, #b8001c 0%, #e74c3c 100%);
      color: #fff;
      font-size: 1.1rem;
      font-weight: 700;
      padding: 1rem 1.2rem;
      border: none;
      outline: none;
      cursor: pointer;
      text-align: left;
      border-radius: 12px 12px 0 0;
      transition: background 0.2s, color 0.2s;
      letter-spacing: 0.2px;
      display: block;
    }
    .volunteer-accordion-header.active,
    .volunteer-accordion-header:focus {
      background: linear-gradient(90deg, #a00018 0%, #b8001c 100%);
      color: #fff;
    }
    .volunteer-accordion-content {
      max-height: 0;
      overflow: hidden;
      background: #fafbfc;
      color: #222;
      font-size: 1rem;
      padding: 0 1.2rem;
      border-top: 1px solid #eee;
      flex-direction: column;
      gap: 0.7rem;
      transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.2s;
      display: flex;
    }
    .volunteer-accordion-content.open {
      /* max-height burada JS ile atanacak */
      padding: 1rem 1.2rem;
    }
    .volunteer-accordion-content a {
      color: #b8001c;
      text-decoration: none;
      font-weight: 500;
      border-bottom: 1px dashed #b8001c33;
      padding-bottom: 2px;
      transition: color 0.2s, border-bottom 0.2s;
    }
    .volunteer-accordion-content a:hover {
      color: #e74c3c;
      border-bottom: 1px solid #e74c3c;
    }
    @media (max-width: 600px) {
      .volunteer-accordion-wrapper {
        max-width: 100vw;
        padding: 0 2vw;
      }
      .volunteer-accordion-header {
        font-size: 0.98rem;
        padding: 0.8rem 0.7rem;
        border-radius: 10px 10px 0 0;
      }
      .volunteer-accordion-content,
      .volunteer-accordion-content.open {
        font-size: 0.95rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
      }
    }

.arrow-anim {
  transition: transform 0.3s;
}
.arrow-anim.open {
  transform: rotate(90deg);
}

.collapse2 {
  opacity: 0;
  transform: translateY(-10px);
  transition: height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s, transform 0.4s;
}
.collapse.show {
  opacity: 1;
  transform: translateY(0);
}

/* Numaralı bilgi kutuları için profesyonel stil */
.info-step-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #b80000;
  background: #f5eaea;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px 0 rgba(184,0,0,0.07);
}
.info-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.info-step-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 340px;
}
.info-step-col .btn {
  margin-top: 10px;
}
@media (max-width: 991px) {
  .info-step-number { font-size: 2.2rem; width: 54px; height: 54px; }
  .info-step-title { font-size: 1.1rem; }
  .info-step-desc { font-size: 0.98rem; }
}

.info-step-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-height: 480px;
  height: 100%;
  justify-content: flex-start;
}
@media (max-width: 991px) {
  .info-step-col { min-height: 380px; }
}
.info-step-desc {
  margin-bottom: 12px;
}
.info-step-col .btn {
  margin-top: 10px;
  align-self: center;
}
    .navbar .nav-link,
.navbar .dropdown-item {
  color: #212529 !important; /* Bootstrap'ın default koyu rengi */
}

.navbar .btn-danger {
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .donation-hero-mobile {
    padding: 24px 10px !important;
  }
  .donation-hero-mobile h1 {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    line-height: 1.1 !important;
  }
  .donation-hero-mobile p {
    font-size: 0.95rem !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }
  .donation-hero-mobile .btn {
    font-size: 0.95rem !important;
    padding: 8px 18px !important;
  }
}

   .contact-main-wrapper4 {
      padding: 40px 0;
    }

    .contact-card4 {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
      padding: 36px 32px;
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      max-width: 960px;
      margin: 0 auto;
    }

    .contact-info-col4, .contact-form-col4 {
      flex: 1 1 300px;
    }

    .contact-info-col4 {
      border-right: 1px solid #eee;
      padding-right: 24px;
    }

    .contact-form-col4 {
      padding-left: 24px;
    }

    .contact-info-col4 h2 {
      color: #ad0b1b;
      font-weight: 700;
      font-size: 1.6rem;
    }

    .contact-details4 {
      font-size: 1rem;
      color: #222;
      margin-bottom: 14px;
    }

    .contact-details4 a {
      color: #ad0b1b;
      word-break: break-word;
      text-decoration: underline;
    }

    .contact-form-col4 form .form-control {
      margin-bottom: 22px;
      font-size: 1rem;
    }

    .contact-form-col4 form label {
      font-weight: 600;
      margin-bottom: 6px;
    }

 

    .contact-boxes4 {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
    }

    .contact-box4 {
      background: #f5f5f5;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.07);
      padding: 20px;
      flex: 1 1 260px;
      max-width: 320px;
    }

    .accordion-button {
      display: flex;
      align-items: center;
    }

    .arrow-anim {
      display: inline-block;
      transition: transform 0.3s ease;
      width: 1em;
    }

    @media (max-width: 768px) {
      .contact-info-col4, .contact-form-col4 {
        flex: 1 1 100%;
        border: none;
        padding: 0 !important;
      }
    }



/* Senin okun için stil ve dönüş efekti */
.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .arrow-icon {
  transform: rotate(90deg);
}
.accordion-button::after {
  display: none !important;
}



    .page-title4 {
      font-size: 2rem;
      font-weight: 600;
      margin-bottom: 2rem;
      border-bottom: 2px solid #e0e0e0;
      padding-bottom: 0.5rem;
    }
    .procedure-item4 {
      border-left: 4px solid #c8102e;
      padding-left: 1rem;
      margin-bottom: 1.5rem;
    }
    .procedure-item4 a {
      font-size: 1.1rem;
      color: #c8102e;
      text-decoration: none;
      font-weight: 500;
    }
    .procedure-item4 a:hover {
      text-decoration: underline;
    }
    .procedure-date4 {
      font-size: 0.9rem;
      color: #666;
      margin-top: 0.25rem;
    }



    .container5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.card5 {
  width: 250px;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  text-align: center;
  transition: transform 0.2s ease;
}

.card5:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.title5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.card5 p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.btn5 {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #c8102e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn5:hover {
  background-color: #a00b24;
  text-decoration: none;
  color: #fff;
}

.card5 h5 {
  color: #1a1a1a;
}



.contact-form6 {
  max-width: 600px;
  margin: 0 auto;
}

.form-group6 {
  display: flex;
  flex-direction: column;
}

.form-label6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

.form-control6 {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control6:focus {
  border-color: #c8102e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.submit-btn6 {
  background-color: #c8102e;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn6:hover {
  background-color: #a00b24;
}
.care-card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.care-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.care-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.care-card-overlay {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 2;
}

.care-card-title {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  z-index: 2;
}

.care-card-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #fff;
  color: #000;
  border-radius: 4px;
  font-weight: 500;
  z-index: 2;
  position: relative;
}

.care-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.care-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 300px; /* Sabit bir yükseklik belirleyerek kartların eşit olmasını sağlar */
    display: flex; /* İçeriği esnek bir şekilde düzenlemek için */
    align-items: flex-end; /* İçeriği dikeyde en alta hizalar */
}

.care-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.care-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi, oranını bozmadan kartı kaplayacak şekilde ayarlar */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Başlık ve Butonların Bulunduğu Konteyner */
.care-card-content {
    position: relative;
    z-index: 3; /* Resmin ve overlay'in üzerinde olması için */
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); /* Metin için yumuşak bir gradyan arka plan */
    transition: background 0.3s ease-in-out;
}

.care-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Buton ve Hover Efektleri */
.care-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #dc3545;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.care-card-btn:hover {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.05);
}

/* OVERLAY İÇİN YENİ BİR YAPI */
/* Bu yapı, overlay ve başlığı birlikte yöneterek mobil uyumu artırır. */
.care-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.care-card-overlay h4 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Kartın üzerine gelince overlay görünür hale gelir */
.care-card:hover .care-card-overlay {
    opacity: 1;
}

/* Mobil Cihazlar İçin Medya Sorgusu (Örnek) */
@media (max-width: 768px) {
    .care-card {
        height: 250px; /* Mobil için kart yüksekliğini düşür */
    }
    .care-card-title {
        font-size: 1.2rem;
    }
    .care-card-overlay h4 {
        font-size: 1.4rem;
    }
    .care-card-content {
        padding: 15px;
    }
}

.care-section_2 {
    padding: 80px 0;
    background-color: #f7f7f7;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.care-section_2 h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}
.care-section_2 h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #dc3545;
    border-radius: 3px;
}

/* Tüm kartı kapsayan link */
.card-full-link_2 {
    position: absolute; /* Kartı tamamen kaplaması için */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Diğer overlay ve başlıkların üzerine çıkarak tıklanabilir olmasını sağlar */
    display: flex; /* İçindeki öğeleri hizalamak için (gerekirse) */
    flex-direction: column; /* İçindeki öğelerin dikeyde sıralanması için */
    justify-content: flex-end; /* Başlığın alta hizalanması için */
    text-decoration: none; /* Alt çizgiyi kaldır */
    color: inherit; /* Metin rengini miras al */
}

.care-card_2 {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    text-align: center;
    position: relative; /* İçindeki absolute elemanlar için referans noktası */
    cursor: pointer;
    background-color: #dc3545; /* Kırmızı arka plan */
    color: white; /* Beyaz metin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    height: 320px; /* Kartlar için sabit yükseklik */
    /* display: flex; ve flex-direction: column; justify-content: flex-end; kaldırıldı, 
       çünkü a etiketi artık tüm kartı kapladığı için o stil a etiketine taşındı. */
}
.care-card_2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.care-card-img_2 {
    width: 100%;
    height: 100%; /* Kartın yüksekliğini doldur */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Linkin altında kalmalı */
    opacity: 0; /* Başlangıçta gizli */
    transform: scale(1.1);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.care-card_2:hover .care-card-img_2 {
    opacity: 1;
    transform: scale(1.05);
}

.care-card-overlay_2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.85);
    z-index: 2; /* Linkin altında, resmin üzerinde kalmalı */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 30px;
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.4s ease-out;
}
.care-card_2:hover .care-card-overlay_2 {
    opacity: 1;
}
.care-card-overlay_2 h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Başlık (İlk durumda görünen, hover'da kaybolan) */
.care-card-title_2 { /* care-card-bottom-title yerine bu sınıf kullanılıyor */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3; /* Linkin altında, overlay'in üzerinde kalmalı */
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 15px 0;
    opacity: 1;
    transition: opacity 0.4s ease-out;
    text-align: center;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.) 0%, rgba(0,0,0,0) 50%);
}
.care-card_2:hover .care-card-title_2 {
    opacity: 0;
}

/* Overlay içindeki buton */
.care-card-btn_2 {
    /* Bu butonun z-index'i önemli, çünkü kendisi overlay içinde.
       Link zaten her şeyi kapsadığı için bu butonun z-index'i artık çok kritik değil. */
    background-color: #ffffff;
    color: #dc3545;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none; /* Link içindeki butonun alt çizgisini kaldır */
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
    /* Eğer bu butonun tıklanabilir olması gerekiyorsa, a etiketi üzerine bir tıklama olayını
       engelleyen veya kendi olayını tetikleyen JavaScript gerekebilir.
       Ancak şu anki yapıda tüm kart zaten bir link. */
}
.care-card-btn_2:hover {
    background-color: #c82333;
    color: white;

}

/* Mobil Cihazlar İçin Ekstra Düzenlemeler */
@media (max-width: 768px) {
    .care-section_2 {
        padding: 40px 0;
    }
    .care-section_2 h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .care-card_2 {
        height: 280px; /* Mobil için kart yüksekliği ayarı */
    }
    .care-card-overlay_2 h4 {
        font-size: 1.5rem;
    }
    .care-card-title_2 {
        font-size: 1.2rem;
        padding: 10px 0;
    }
    .care-card-btn_2 {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


  @media (max-width: 320px) {
    .navbar .nav-link,
    .navbar .btn {
      font-size: 0.9rem !important; /* Daha küçük metin */
    }
    .navbar-brand img {
      max-width: 120px; /* Logo biraz küçülsün */
    }
  }
  @media (max-width: 320px) {
  .dropdown-menu a {
    white-space: normal; /* satır kırılmasına izin ver */
    font-size: 0.85rem;   /* biraz küçült */
  }
}
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
 @media (max-width: 320px) {
    .navbar .nav-link,
    .navbar .btn {
      font-size: 0.9rem !important;
    }
    .navbar-brand img {
      max-width: 120px;
    }
    .dropdown-menu a {
      white-space: normal; /* uzun yazılar satır kırar */
      font-size: 0.85rem;
    }
  }

/* Admin bar varsa header üstüne binmesin */
body.admin-bar .sticky-top {
    margin-top: 32px; /* admin bar yüksekliği varsayılan */
}

/* Küçük ekranlarda admin bar yüksekliği farklı olabilir */
@media screen and (max-width: 782px) {
    body.admin-bar .sticky-top {
        margin-top: 46px;
    }
}
.news-summary {
    font-size: 16px; /* Yazı boyutu */
    color: #6c757d; /* Yazı rengi */
    line-height: 1.6; /* Satır yüksekliği */
    margin-top: 10px; /* Üst boşluk */
    margin-bottom: 10px; /* Alt boşluk */
}

/* Küçük ekranlar için düzenleme */
@media (max-width: 767.98px) {
    .news-summary {
        font-size: 14px; /* Mobil için yazı boyutunu küçültme */
    }
}
/* Tekil proje sayfası wrapper */
.project-detail-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 15px;

.sofia-sans-<uniquifier> {
  font-family: "Sofia Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/* Admin bar açıkken sticky-top navbar'ı aşağı kaydır */
body.admin-bar .sticky-top {
  top: 32px !important; /* Masaüstü */
}

@media screen and (max-width: 782px) {
  body.admin-bar .sticky-top {
    top: 46px !important; /* Mobil admin bar */
  }
}
body.admin-bar .sticky-top {
  z-index: 9998 !important; /* admin bar'ın (9999) altında kalsın */
}
/* Navbar yüksekliğini tanımla */
:root {
  --navbar-height: 70px; /* kendi navbar yüksekliğine göre ayarla */
}

/* Admin bar yokken: sadece navbar yüksekliği kadar boşluk bırak */
body {
  padding-top: var(--navbar-height);
}

/* Admin bar varken: admin bar + navbar yüksekliği */
body.admin-bar {
  padding-top: calc(var(--navbar-height) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(var(--navbar-height) + 46px);
  }
}
