/* ==========================================
   İŞ ORTAKLARI SAYFASI - GRUP ZEMİNLERİ VE LOGO
   ========================================== */

.partners-page {
    background-color: #000;
    color: #fff;
    padding-top: 100px;
    font-family: Arial, sans-serif;
}

.partners-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}

/* Üst Hero Bölümü */
.partners-hero {
    text-align: center;
    margin-bottom: 40px;
    background: #0d0d0d;
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
}

.partners-hero h1 {
    color: #c9a45c;
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-hero p {
    color: #aaa;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
}

/* Kategori Bölümü ve Başlıkları (Renkli Zeminler) */
.category-section {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(201, 164, 92, 0.2);
}

/* 1. Güvenlik Sistemleri - Mavi Zemin Tonu */
.cat-security {
    background: linear-gradient(135deg, #0d1b2a 0%, #050b14 100%);
}

/* 2. Akıllı Ev Sistemleri - Mor Zemin Tonu */
.cat-smarthome {
    background: linear-gradient(135deg, #1e1b4b 0%, #09061a 100%);
}

/* 3. Yangın Algılama Sistemleri - Kırmızı Zemin Tonu */
.cat-fire {
    background: linear-gradient(135deg, #2b0d0d 0%, #120404 100%);
}

/* 4. Tarım, Hayvancılık & Aydınlatma - Yeşil Zemin Tonu */
.cat-agri-light {
    background: linear-gradient(135deg, #062e1e 0%, #02120b 100%);
}

.category-title {
    color: #c9a45c;
    font-size: 19px;
    border-bottom: 1px solid rgba(201, 164, 92, 0.4);
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kartların Grid Yapısı */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Partner Kartı (Yükseklik Esnekliği Sağlandı) */
.partner-card {
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid rgba(201, 164, 92, 0.25);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    height: 100%;
}

.partner-card:hover {
    border-color: #c9a45c;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 164, 92, 0.2);
    background: #121212;
}

/* LOGO KUTUSU VE GÖRSELİ */
.partner-logo-box {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    flex-shrink: 0;
}

.partner-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.partner-fallback {
    color: #000;
    margin: 0;
    font-size: 18px;
}

.partner-note {
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    display: block;
    word-break: break-word;
}

.partner-action {
    color: #c9a45c;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
    margin-top: auto;
}

.partner-card:hover .partner-action {
    color: #e6bd6f;
    letter-spacing: 0.5px;
}

/* ==========================================
   MODAL (POPUP) STİLLERİ
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0d0d0d;
    border: 1px solid #c9a45c;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #c9a45c;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-logo-box {
    width: 120px;
    height: 50px;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.modal-cat-badge {
    display: inline-block;
    background: rgba(201, 164, 92, 0.15);
    color: #c9a45c;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.modal-body h3 {
    color: #c9a45c;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.modal-body h3.margin-top {
    margin-top: 20px;
}

.modal-body p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 6px;
    color: #ddd;
    font-size: 13px;
    margin-bottom: 8px;
}

.partner-card:focus-visible {
    outline: 2px solid #c9a45c;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .partners-container { padding: 115px 15px 45px; }
    .partners-hero { padding: 28px 18px; }
    .category-section { padding: 20px 14px; }
    .partners-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 25px 18px; }
    .modal-header { align-items: flex-start; padding-right: 25px; }
    .modal-logo-box { width: 90px; }
}