/* ==========================================================================
   NORTHCITY SSS (GRID KART YAPILI & VARSAYILAN OLARAK KAPALI HİYERARŞİ)
   ========================================================================== */

.nc-sss-page {
    --nc-primary: #0f172a;
    --nc-accent: #2563eb;
    --nc-accent-light: #eff6ff;
    --nc-text-dark: #0f172a;
    --nc-text-muted: #64748b;
    --nc-bg-card: #ffffff;
    --nc-border-color: #e2e8f0;
    --nc-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --nc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06);
    --nc-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nc-text-dark);
    background-color: #f8fafc;
    padding-bottom: 60px;
}

.nc-sss-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.nc-sss-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 70px 0;
    text-align: center;
}

.nc-sss-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.nc-sss-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.nc-sss-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.nc-sss-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 28px 0;
}

.nc-sss-subtitle strong {
    color: #38bdf8;
}

/* Search Box */
.nc-sss-search-wrapper {
    max-width: 580px;
    margin: 0 auto;
}

.nc-sss-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 40px;
    padding: 4px 8px 4px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nc-sss-search-icon {
    color: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
}

#nc-sss-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #0f172a;
    padding: 10px 0;
}

.nc-sss-clear-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

/* Content & Section Cards */
.nc-sss-content {
    margin-top: -25px;
}

.nc-sss-section-card {
    background: #ffffff;
    border: 1px solid var(--nc-border-color);
    border-radius: var(--nc-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--nc-shadow-sm);
}

.nc-sss-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-text-dark);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.nc-sss-section-title svg {
    color: var(--nc-accent);
}

/* Standard Accordion Questions */
.nc-sss-item {
    border: 1px solid var(--nc-border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.nc-sss-item:hover {
    border-color: #cbd5e1;
}

.nc-sss-item.active {
    border-color: var(--nc-accent);
}

.nc-sss-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nc-text-dark);
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}

.nc-sss-icon {
    font-size: 18px;
    color: var(--nc-text-muted);
    margin-left: 12px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.nc-sss-item.active .nc-sss-icon {
    transform: rotate(45deg);
    background: var(--nc-accent-light);
    color: var(--nc-accent);
}

.nc-sss-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.nc-sss-item.active .nc-sss-answer {
    max-height: 800px;
    padding: 0 18px 16px 18px;
}

/* ==========================================================================
   ANA KATEGORİ GRID YAPISI (KAPALI GELİR, TIKLAYINCA AÇILIR)
   ========================================================================== */
.nc-sss-grid-tree {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.nc-tree-card.nc-level-1 {
    background: #ffffff;
    border: 1px solid var(--nc-border-color);
    border-radius: var(--nc-radius);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--nc-shadow-sm);
}

.nc-tree-card.nc-level-1:hover {
    border-color: var(--nc-accent);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.nc-tree-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: none;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--nc-text-dark);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nc-tree-card-header:hover {
    background: #f8fafc;
}

.nc-tree-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-tree-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nc-tree-name-wrap {
    display: flex;
    flex-direction: column;
}

.nc-tree-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--nc-text-dark);
    line-height: 1.3;
}

.nc-tree-count {
    font-size: 12px;
    color: var(--nc-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nc-tree-card-arrow {
    font-size: 18px;
    color: var(--nc-text-muted);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.nc-tree-card.open > .nc-tree-card-header .nc-tree-card-arrow {
    transform: rotate(45deg);
    background: var(--nc-accent-light);
    color: var(--nc-accent);
}

/* KART İÇERİĞİ VARSAYILAN OLARAK KESİNLİKLE KAPALIDIR */
.nc-tree-card-body {
    display: none !important;
    padding: 16px;
    border-top: 1px solid var(--nc-border-color);
    background: #ffffff;
}

/* YALNIZCA OPEN CLASS'I GELİNCE GÖRÜNÜR OLUR */
.nc-tree-card.open > .nc-tree-card-body {
    display: block !important;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.nc-tree-card.nc-level-2 {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.nc-tree-card.nc-level-2 > .nc-tree-card-header {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    background: #f8fafc;
}

.nc-tree-children {
    margin-top: 8px;
}

/* CTA Card */
.nc-sss-cta-card {
    background: #ffffff;
    border: 1px solid var(--nc-border-color);
    border-radius: var(--nc-radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--nc-shadow-sm);
}

.nc-sss-cta-icon {
    background: var(--nc-accent-light);
    color: var(--nc-accent);
    padding: 12px;
    border-radius: 50%;
    display: flex;
}

.nc-sss-cta-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.nc-sss-cta-body p {
    margin: 0;
    color: var(--nc-text-muted);
    font-size: 13.5px;
}

.nc-sss-btn-primary {
    display: inline-block;
    background: var(--nc-accent);
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.nc-sss-btn-primary:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .nc-sss-grid-tree {
        grid-template-columns: 1fr;
    }
    .nc-sss-cta-card {
        flex-direction: column;
        text-align: center;
    }
}
