/* Pera Gelişim Merkezi - Ana Stil Dosyası */

:root {
    /* Ana Renk */
    --primary: #D32F2F;
    --primary-hover: #B71C1C;
    
    /* İkincil Renk */
    --secondary: #1A237E;
    
    /* Arka Plan */
    --background: #FFFFFF;
    
    /* Yazı Renkleri */
    --text: #212121;
    --text-secondary: #5F6368;
    
    /* Arka Plan ve Kenarlık */
    --bg-light: #F7F9FC;
    --border: #E0E0E0;
}

/* Header Logo Stili */
.navbar-brand img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-light-gray {
    color: var(--text-secondary);
}

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

/* Butonlar */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Header */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.navbar-nav .nav-link {
    color: var(--text);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Hero Alanı */
.hero-section {
    padding: 0;
    position: relative;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Sayaç */
.countdown {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.countdown-box {
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    width: 80px;
    height: 80px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-box .number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-box .text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Slider ayrıntılı stilleri */
.custom-carousel {
    width: 100%;
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.custom-carousel .carousel-item {
    height: 600px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    display: block;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.custom-carousel .carousel-item.active {
    opacity: 1;
    position: relative;
}

/* Resim yüklenmeme sorunu için ek stil */
.custom-carousel .carousel-item[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Karartma kaldırıldı */
    z-index: 1;
}

/* Yazı gösterildiğinde arka plan için */
.custom-carousel .carousel-caption.with-bg {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    text-shadow: none;
}

/* Yazı gösterilmediğinde transparent */
.custom-carousel .carousel-caption {
    text-align: left;
    padding: 40px;
    background-color: transparent; /* Arka plan kaldırıldı */
    border-radius: 5px;
    position: absolute;
    bottom: 80px;
    left: 50px;
    right: auto;
    z-index: 2;
    width: 600px;
    max-width: 90%;
    transform: translateY(0);
    
    /* Yazı okunaklığı için text-shadow eklendi */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.custom-carousel .carousel-caption h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.custom-carousel .carousel-caption p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-carousel .carousel-caption .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-carousel .carousel-control-prev,
.custom-carousel .carousel-control-next {
    z-index: 3;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-carousel .carousel-control-prev:hover,
.custom-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary);
}

.custom-carousel .carousel-control-prev {
    left: 20px;
}

.custom-carousel .carousel-control-next {
    right: 20px;
}

.custom-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.custom-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: #fff;
    opacity: 0.7;
}

.custom-carousel .carousel-indicators button.active {
    opacity: 1;
}

/* Kartlar */
.card {
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Blog */
.blog-card {
    margin-bottom: 30px;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    color: var(--secondary);
    font-weight: 600;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-content img {
    max-width: 100%;
    height: auto;
}

/* Dinamik Sayfa İçeriği */
article {
    font-size: 1.1rem;
    line-height: 1.8;
}

article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

article h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

article p {
    margin-bottom: 1.5rem;
}

article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

article li {
    margin-bottom: 0.5rem;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

/* Başarılar */
.success-story {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
}

.stats-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stats-item .stats-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stats-item .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stats-item .stats-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* İletişim */
.contact-info {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--secondary);
}

.footer-links a:hover {
    padding-left: 5px;
    color: var(--primary) !important;
}

/* Alt footer menü linkleri */
footer p > a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    transition: all 0.3s ease;
}

footer p > a:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: white !important;
}

/* Duyarlı Tasarım */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .custom-carousel .carousel-item {
        height: 400px;
    }
    
    .custom-carousel .carousel-caption {
        left: 20px;
        bottom: 40px;
        width: 80%;
        padding: 20px;
    }
    
    .custom-carousel .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .countdown-box {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .custom-carousel {
        height: 400px;
    }
    
    .custom-carousel .carousel-item {
        height: 400px;
    }
    
    .custom-carousel .carousel-caption {
        left: 15px;
        right: 15px;
        bottom: 20px;
        width: auto;
        padding: 15px;
    }
    
    .custom-carousel .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .custom-carousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .custom-carousel .carousel-control-prev,
    .custom-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .custom-carousel .carousel-indicators {
        bottom: 10px;
    }
    
    .custom-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .countdown-box {
        width: 60px;
        height: 60px;
        margin: 0 5px;
    }
    
    .countdown-box .number {
        font-size: 1.5rem;
    }
    
    .countdown-box .text {
        font-size: 0.8rem;
    }
    
    .custom-carousel .carousel-item {
        height: 350px;
    }
    
    .custom-carousel .carousel-caption {
        max-width: 90%;
        left: 5%;
        bottom: 10%;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    /* Mobil için slider ayarları */
    .custom-carousel {
        height: 280px;
    }
    
    .custom-carousel .carousel-item {
        height: 280px;
        background-size: cover;
        background-position: center center;
    }
    
    .custom-carousel .carousel-item::before {
        background: rgba(0, 0, 0, 0.2); /* Mobilde okunaklılık için hafif karartma */
    }
    
    .custom-carousel .carousel-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px;
        background-color: rgba(0, 0, 0, 0.75);
        text-align: center;
        transform: none;
    }
    
    .custom-carousel .carousel-caption h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .custom-carousel .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
        display: block;
        opacity: 0.9;
    }
    
    .custom-carousel .carousel-caption .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .custom-carousel .carousel-control-prev,
    .custom-carousel .carousel-control-next {
        width: 30px;
        height: 30px;
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .custom-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .custom-carousel .carousel-control-next {
        right: 10px;
    }
    
    .custom-carousel .carousel-indicators {
        bottom: 65px; /* Yazı alanının üstüne çıkar */
    }
    
    .custom-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .countdown-box {
        width: 50px;
        height: 50px;
    }
    
    .countdown-box .number {
        font-size: 1.2rem;
    }
    
    .countdown-box .text {
        font-size: 0.7rem;
    }
}
