/**
 * İSG Çözüm - Portal Header & Footer Stylesheet
 * Tailwind CSS & Dark Mode Uyumlu Modern Portal Mimarisi
 * Global 1320px Hizalama, Tek Satır Navigasyon, Sıfır Renk Bozulması
 */

/* ========================================================
   GLOBAL CONTAINER (Tüm Sayfalarda 1320px Hizalama)
   ======================================================== */
.isg-portal-container {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Tüm alt sayfalarda (kategori, yazı vb.) 1320px Header ile kusursuz dikey hizalama */
@media (min-width: 1340px) {
    #main > .container,
    .container.isg-portal-container {
        width: 1320px !important;
        max-width: 1320px !important;
    }
}

/* ========================================================
   1. TOP BAR (EN ÜST BANT)
   ======================================================== */
.isg-portal-topbar {
    background: #090d16;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    padding: 7px 0;
    line-height: 1.4;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.isg-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.isg-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.isg-topbar-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 600;
}

.isg-date-icon {
    font-size: 13px;
    color: #38bdf8;
}

.isg-topbar-dot-sep {
    color: #475569;
}

.isg-topbar-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.isg-live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: isgPulseDot 2s infinite ease-in-out;
}

@keyframes isgPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.isg-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.isg-top-social-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.isg-top-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.isg-btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366 !important;
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.isg-btn-whatsapp:hover {
    background: #25D366;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.45);
}

.isg-btn-linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #60a5fa !important;
    border: 1px solid rgba(10, 102, 194, 0.3);
}
.isg-btn-linkedin:hover {
    background: #0a66c2;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.4);
}

.isg-topbar-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}

/* Tema Değiştirici Buton */
.isg-theme-toggle-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.isg-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.isg-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Profil & Giriş */
.isg-topbar-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
}
.isg-topbar-auth a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.isg-topbar-auth a:hover {
    color: #38bdf8 !important;
}

.isg-user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.isg-user-menu-btn img {
    border-radius: 50%;
    border: 1px solid #38bdf8;
}

/* ========================================================
   2. MAIN HEADER (LOGO, LIVE-SEARCH, HIZLI FORM İNDİR)
   ======================================================== */
.isg-portal-main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.isg-main-header-grid {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 28px;
}

/* Sol Logo */
.isg-header-logo-wrap {
    display: flex;
    flex-direction: column;
}

.isg-header-logo-link {
    display: inline-block;
    text-decoration: none !important;
}

.isg-header-logo-link img {
    max-height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.isg-logo-subtext {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

/* Orta: Geniş Live-Search Bar */
.isg-header-search-wrap {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.isg-search-box-form {
    position: relative;
    width: 100%;
}

.isg-search-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.isg-search-input-shell:focus-within {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.isg-search-leading-icon {
    font-size: 16px;
    color: #64748b;
    margin-right: 10px;
    flex-shrink: 0;
}

.isg-live-search-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    padding: 6px 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.isg-live-search-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.isg-search-kbd {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    margin-right: 8px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.isg-search-submit-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.isg-search-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

/* Arama Kutusu Altı Popüler Etiketler */
.isg-search-quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-left: 6px;
    font-size: 11px;
}

.isg-quick-label {
    color: #64748b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.isg-quick-tag {
    color: #475569 !important;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.isg-quick-tag:hover {
    background: #e0f2fe;
    color: #0284c7 !important;
    transform: translateY(-1px);
}

/* Sağ: "Hızlı Form İndir" Renkli CTA Butonu */
.isg-header-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.isg-cta-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.isg-cta-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
    background: linear-gradient(135deg, #047857 0%, #0369a1 100%);
}

.isg-cta-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.isg-cta-text-wrap {
    display: flex;
    flex-direction: column;
}

.isg-cta-headline {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-transform: uppercase;
}

.isg-cta-subline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    margin-top: 1px;
}

.isg-cta-arrow {
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.isg-cta-download-btn:hover .isg-cta-arrow {
    transform: translateX(4px);
}

/* ========================================================
   3. NAVİGASYON BAR (KATEGORİLER & ARAÇLAR - TEK SATIR)
   ======================================================== */
.isg-portal-navbar {
    background: #0f172a;
    border-bottom: 2px solid #0284c7;
    position: relative;
    z-index: 999;
}

.isg-nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-wrap: nowrap !important; /* ASLA İKİNCİ SATIRA GEÇMEZ */
    width: 100%;
}

.isg-nav-item {
    position: relative;
    flex: 1 1 0px;
    min-width: 0;
    text-align: center;
}

.isg-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    width: 100%;
    box-sizing: border-box;
}

.isg-nav-link:hover,
.isg-nav-item.active .isg-nav-link {
    color: #38bdf8 !important;
    background: rgba(255, 255, 255, 0.08);
}

.isg-nav-item.active .isg-nav-link {
    border-bottom-color: #38bdf8;
}

.isg-nav-link .nav-icon {
    font-size: 14px;
    line-height: 1;
}

.isg-nav-caret {
    font-size: 8px;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.isg-nav-item:hover .isg-nav-caret {
    transform: rotate(180deg);
}

/* Menü Rozetleri (Badge) */
.isg-nav-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-left: 2px;
    line-height: 1.2;
}

.isg-badge-emerald { background: #059669; color: #ffffff; }
.isg-badge-blue { background: #0284c7; color: #ffffff; }
.isg-badge-amber { background: #d97706; color: #ffffff; }
.isg-badge-indigo { background: #4f46e5; color: #ffffff; }
.isg-badge-wiki {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* Dropdown Menüler */
.isg-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-align: left;
}

.isg-nav-item:hover .isg-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.isg-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.isg-dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7 !important;
    transform: translateX(4px);
}

.isg-drop-icon {
    font-size: 15px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.isg-dropdown-footer-link {
    display: block;
    margin-top: 6px;
    padding: 8px 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.2s;
}

.isg-dropdown-footer-link:hover {
    background: #e0f2fe;
    color: #0369a1 !important;
}

/* ========================================================
   4. FOOTER (4 SÜTUNLU ZENGİN MİMARİ)
   ======================================================== */
.isg-portal-footer {
    background: #090d16;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 55px;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.isg-footer-ambient-glow {
    position: absolute;
    top: -100px;
    left: 20%;
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.isg-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 36px;
    margin-bottom: 45px;
}

.isg-footer-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 10px;
}

.isg-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: #0284c7;
    border-radius: 2px;
}

.isg-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none !important;
}

.isg-footer-brand-icon {
    font-size: 26px;
    line-height: 1;
}

.isg-footer-brand-title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.isg-footer-brand-tag {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.isg-footer-mission-text {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 18px;
}

.isg-footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.isg-social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1 !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.isg-social-circle-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.isg-social-whatsapp:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45) !important;
    color: #ffffff !important;
}

.isg-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.isg-footer-link-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.isg-footer-link-item a:hover {
    color: #38bdf8 !important;
    transform: translateX(4px);
}

.isg-footer-bullet {
    color: #0284c7;
    font-size: 9px;
}

.isg-footer-newsletter-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 14px;
}

.isg-footer-newsletter-box {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.isg-footer-newsletter-box:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.isg-footer-email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none !important;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 12.5px;
}

.isg-footer-email-input::placeholder {
    color: #64748b;
}

.isg-footer-newsletter-btn {
    background: #0284c7;
    color: #ffffff !important;
    border: none;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.isg-footer-newsletter-btn:hover {
    background: #0369a1;
}

.isg-footer-whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.3) 100%);
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.isg-footer-whatsapp-cta:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.isg-wa-cta-icon {
    font-size: 24px;
    color: #25D366;
    line-height: 1;
    flex-shrink: 0;
}

.isg-footer-whatsapp-cta:hover .isg-wa-cta-icon {
    color: #ffffff;
}

.isg-wa-cta-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.isg-wa-cta-sub {
    font-size: 11px;
    color: #bbf7d0;
    font-weight: 500;
}

/* ========================================================
   5. BOTTOM BAR (TELİF HAKKI & KVKK ROZETİ)
   ======================================================== */
.isg-portal-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    background: #060910;
}

.isg-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.isg-bottom-copy {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.isg-bottom-copy strong {
    color: #cbd5e1;
}

.isg-bottom-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.isg-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-kvkk { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); color: #34d399; }
.badge-ssl { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); color: #38bdf8; }
.badge-iso { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); color: #fbbf24; }

/* ========================================================
   6. DARK MODE UYUMLULUĞU (TÜM SAYFALAR İÇİN)
   ======================================================== */
body.dark-mode .isg-portal-main-header,
.isg-dark-theme .isg-portal-main-header,
.dark-mode .isg-portal-main-header,
.isg-portal-header-wrapper.dark-mode .isg-portal-main-header,
.isg-portal-header-wrapper.isg-dark-theme .isg-portal-main-header,
[data-theme="dark"] .isg-portal-main-header {
    background: #141b26 !important;
    border-bottom-color: #242f3e !important;
}

body.dark-mode .isg-search-input-shell,
.isg-dark-theme .isg-search-input-shell,
.dark-mode .isg-search-input-shell,
.isg-portal-header-wrapper.dark-mode .isg-search-input-shell {
    background: #090d16 !important;
    border-color: #334155 !important;
}

body.dark-mode .isg-live-search-input,
.isg-dark-theme .isg-live-search-input,
.dark-mode .isg-live-search-input,
.isg-portal-header-wrapper.dark-mode .isg-live-search-input {
    color: #f1f5f9 !important;
}

body.dark-mode .isg-search-kbd,
.isg-dark-theme .isg-search-kbd,
.dark-mode .isg-search-kbd,
.isg-portal-header-wrapper.dark-mode .isg-search-kbd {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .isg-quick-tag,
.isg-dark-theme .isg-quick-tag,
.dark-mode .isg-quick-tag,
.isg-portal-header-wrapper.dark-mode .isg-quick-tag {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark-mode .isg-quick-tag:hover,
.isg-dark-theme .isg-quick-tag:hover,
.dark-mode .isg-quick-tag:hover,
.isg-portal-header-wrapper.dark-mode .isg-quick-tag:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

body.dark-mode .isg-logo-subtext,
.isg-dark-theme .isg-logo-subtext,
.dark-mode .isg-logo-subtext,
.isg-portal-header-wrapper.dark-mode .isg-logo-subtext {
    color: #94a3b8 !important;
}

body.dark-mode .isg-nav-dropdown,
.isg-dark-theme .isg-nav-dropdown,
.dark-mode .isg-nav-dropdown,
.isg-portal-header-wrapper.dark-mode .isg-nav-dropdown {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .isg-dropdown-item,
.isg-dark-theme .isg-dropdown-item,
.dark-mode .isg-dropdown-item,
.isg-portal-header-wrapper.dark-mode .isg-dropdown-item {
    color: #cbd5e1 !important;
}

body.dark-mode .isg-dropdown-item:hover,
.isg-dark-theme .isg-dropdown-item:hover,
.dark-mode .isg-dropdown-item:hover,
.isg-portal-header-wrapper.dark-mode .isg-dropdown-item:hover {
    background: #0f172a !important;
    color: #38bdf8 !important;
}

body.dark-mode .isg-dropdown-footer-link,
.isg-dark-theme .isg-dropdown-footer-link,
.dark-mode .isg-dropdown-footer-link,
.isg-portal-header-wrapper.dark-mode .isg-dropdown-footer-link {
    border-top-color: #334155 !important;
    color: #38bdf8 !important;
}

body.dark-mode .isg-dropdown-footer-link:hover,
.isg-dark-theme .isg-dropdown-footer-link:hover,
.dark-mode .isg-dropdown-footer-link:hover,
.isg-portal-header-wrapper.dark-mode .isg-dropdown-footer-link:hover {
    background: #0f172a !important;
}

/* Subpage (Kategori, Yazı, Arama vb.) Modern Uyum & Tipografi */
body.dark-mode,
body.isg-dark-theme {
    background-color: #0b0f17 !important;
    color: #cbd5e1 !important;
}

body.dark-mode #main,
.isg-dark-theme #main {
    background-color: #0b0f17;
}

.page-breadcrumb {
    margin-top: 24px;
    margin-bottom: 20px;
}

.page-breadcrumb .breadcrumb {
    background: transparent !important;
    padding: 6px 0 !important;
    margin-bottom: 0 !important;
}

body.dark-mode .page-breadcrumb .breadcrumb .breadcrumb-item a,
.isg-dark-theme .page-breadcrumb .breadcrumb .breadcrumb-item a {
    color: #38bdf8 !important;
}

body.dark-mode .page-breadcrumb .breadcrumb .breadcrumb-item,
.isg-dark-theme .page-breadcrumb .breadcrumb .breadcrumb-item {
    color: #64748b !important;
}

body.dark-mode .page-breadcrumb .breadcrumb .breadcrumb-item.active,
.isg-dark-theme .page-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: #94a3b8 !important;
}

body.dark-mode .page-title,
.isg-dark-theme .page-title {
    color: #f8fafc !important;
}

/* ========================================================
   7. RESPONSIVE DÜZENLER (TABLET & MOBİL)
   ======================================================== */
@media (max-width: 1280px) {
    .isg-main-header-grid {
        grid-template-columns: 210px 1fr auto;
        gap: 20px;
    }
    .isg-cta-download-btn {
        padding: 8px 14px;
        gap: 8px;
    }
    .isg-cta-headline {
        font-size: 12px;
    }
    .isg-nav-link {
        font-size: 12px !important;
        padding: 11px 4px !important;
        gap: 4px !important;
    }
    .isg-nav-badge {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
    }
    .isg-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1100px) {
    .isg-main-header-grid {
        grid-template-columns: 190px 1fr auto;
        gap: 14px;
    }
    .isg-nav-link {
        font-size: 11.5px !important;
        padding: 10px 3px !important;
        gap: 3px !important;
    }
    .isg-nav-link .nav-icon {
        font-size: 12px !important;
    }
    .isg-nav-caret {
        display: none !important;
    }
    .isg-search-quick-tags {
        display: none;
    }
}

/* ========================================================
   8. MOBİL HEADER & ÇEKMECE MENÜ (MODERN PORTAL TASARIMI)
   ======================================================== */

/* Masaüstünde (>= 992px) mobil alanları kesinlikle gizle */
@media (min-width: 992px) {
    .mobile-nav-container,
    .nav-mobile-header,
    #navMobile {
        display: none !important;
    }
}

/* Mobilde (<= 991px) Masaüstü Header'ı Gizle & Mobil Header'ı Aktif Et */
@media (max-width: 991px) {
    .isg-nav-top-row,
    .isg-nav-main-row,
    .isg-portal-topbar,
    .isg-portal-main-header,
    .isg-portal-navbar {
        display: none !important;
    }

    .mobile-nav-container {
        display: block !important;
    }

    body {
        padding-top: 130px !important; /* Sabit 2 satırlı mobil header için üst boşluk */
    }

    #main {
        margin-top: 10px !important;
    }

    .isg-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    
    .isg-bottom-bar-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
}

/* 1. Sabit Mobil Header Barı (Logo + Arama Kutusu) */
.nav-mobile-header.isg-portal-mobile-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    z-index: 99999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 7px 12px 8px 12px !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Koyu Modda Mobil Header Barı */
body.dark-mode .nav-mobile-header.isg-portal-mobile-bar,
.isg-dark-theme .nav-mobile-header.isg-portal-mobile-bar,
.isg-dark-mobile-bar {
    background: #090d16 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.mobile-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

/* Hamburger Buton */
.mobile-header-left {
    display: flex;
    align-items: center;
}

.isg-btn-hamburger {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

body.dark-mode .isg-btn-hamburger,
.isg-dark-theme .isg-btn-hamburger {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.isg-btn-hamburger .hamburger-bar {
    width: 18px;
    height: 2px;
    background-color: #334155;
    border-radius: 2px;
    transition: all 0.2s ease;
}

body.dark-mode .isg-btn-hamburger .hamburger-bar,
.isg-dark-theme .isg-btn-hamburger .hamburger-bar {
    background-color: #f1f5f9 !important;
}

.isg-btn-hamburger:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.isg-btn-hamburger:hover .hamburger-bar {
    background-color: #ffffff !important;
}

/* Logo */
.mobile-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-logo-link img {
    max-height: 36px;
    max-width: 160px;
    width: auto;
    height: auto;
    display: inline-block;
    object-fit: contain;
}

/* Sağ Hızlı Araçlar */
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-header-theme-form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.btn-mobile-quick-theme {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

body.dark-mode .btn-mobile-quick-theme,
.isg-dark-theme .btn-mobile-quick-theme {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-mobile-quick-search {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

body.dark-mode .btn-mobile-quick-search,
.isg-dark-theme .btn-mobile-quick-search {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.btn-mobile-quick-forms {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* ========================================================
   MOBİL CANLI ARAMA ALANI (MASAÜSTÜ İLE BİREBİR TASARIM)
   ======================================================== */
.isg-mobile-bar-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.isg-mobile-search-row {
    margin-top: 6px;
    width: 100%;
}

.isg-mobile-search-box-form {
    position: relative;
    width: 100%;
    margin: 0;
}

.isg-mobile-search-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 3px 4px 3px 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.isg-mobile-search-input-shell:focus-within {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .isg-mobile-search-input-shell,
.isg-dark-theme .isg-mobile-search-input-shell,
.isg-dark-mobile-bar .isg-mobile-search-input-shell {
    background: #141b26 !important;
    border-color: #334155 !important;
}

body.dark-mode .isg-mobile-search-input-shell:focus-within,
.isg-dark-theme .isg-mobile-search-input-shell:focus-within,
.isg-dark-mobile-bar .isg-mobile-search-input-shell:focus-within {
    background: #090d16 !important;
    border-color: #0284c7 !important;
}

.isg-mobile-search-leading-icon {
    font-size: 14px;
    color: #64748b;
    margin-right: 8px;
    flex-shrink: 0;
}

body.dark-mode .isg-mobile-search-leading-icon,
.isg-dark-theme .isg-mobile-search-leading-icon,
.isg-dark-mobile-bar .isg-mobile-search-leading-icon {
    color: #94a3b8;
}

.isg-mobile-live-search-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #0f172a;
    padding: 5px 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.isg-mobile-live-search-input::placeholder {
    color: #94a3b8;
    font-size: 12px;
}

body.dark-mode .isg-mobile-live-search-input,
.isg-dark-theme .isg-mobile-live-search-input,
.isg-dark-mobile-bar .isg-mobile-live-search-input {
    color: #f1f5f9 !important;
}

.isg-mobile-search-submit-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.isg-mobile-search-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
}

/* Mobil Popüler Etiketler (Yatay Kaydırılabilir Şerit) */
.isg-mobile-quick-tags {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 5px;
    padding: 2px 2px 0 2px;
    gap: 5px;
}

.isg-mobile-quick-tags::-webkit-scrollbar {
    display: none;
}

.isg-mobile-quick-tags .isg-quick-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

body.dark-mode .isg-mobile-quick-tags .isg-quick-label,
.isg-dark-theme .isg-mobile-quick-tags .isg-quick-label,
.isg-dark-mobile-bar .isg-mobile-quick-tags .isg-quick-label {
    color: #94a3b8;
}

.isg-mobile-quick-tags .isg-quick-tag {
    flex-shrink: 0;
    font-size: 10.5px !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
}

/* ========================================================
   2. MOBİL ÇEKMECE MENÜ (DRAWER) GELİŞTİRMELERİ
   ======================================================== */
.nav-mobile.isg-portal-mobile-drawer {
    width: 0;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #ffffff !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Açıldığında 310px'e genişlet */
#navMobile.isg-portal-mobile-drawer[style*="width: 280px"],
#navMobile.isg-portal-mobile-drawer[style*="width:280px"] {
    width: 310px !important;
}

body.dark-mode .nav-mobile.isg-portal-mobile-drawer,
.isg-dark-theme .nav-mobile.isg-portal-mobile-drawer,
.isg-dark-drawer {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Çekmece Üst Başlık */
.nav-mobile-logo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

body.dark-mode .nav-mobile-logo-bar,
.isg-dark-theme .nav-mobile-logo-bar {
    background: #090d16 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.drawer-logo-link img {
    max-height: 36px;
    width: auto;
    display: block;
}

.isg-drawer-close-btn {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .isg-drawer-close-btn,
.isg-dark-theme .isg-drawer-close-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

.isg-drawer-close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ========================================================
   ÖNE ÇIKAN MOBİL TEMA AYARI KARTI
   ======================================================== */
.mobile-menu-theme-card {
    margin: 14px 16px;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.dark-mode .mobile-menu-theme-card,
.isg-dark-theme .mobile-menu-theme-card {
    background: #141b26 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.mobile-theme-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.theme-card-icon {
    font-size: 14px;
}

.theme-card-title {
    font-weight: 700;
    color: #475569;
}

body.dark-mode .theme-card-title,
.isg-dark-theme .theme-card-title {
    color: #cbd5e1 !important;
}

.theme-current-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
}

body.dark-mode .theme-current-badge,
.isg-dark-theme .theme-current-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.mobile-theme-switch-form {
    margin: 0;
}

.mobile-theme-pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 8px;
}

body.dark-mode .mobile-theme-pill-group,
.isg-dark-theme .mobile-theme-pill-group {
    background: #090d16 !important;
}

.theme-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-pill-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.dark-mode .theme-pill-btn {
    color: #94a3b8;
}

body.dark-mode .theme-pill-btn.active,
.isg-dark-theme .theme-pill-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4) !important;
}

/* Mobil Çekmece Arama Kutusu */
.mobile-drawer-search-wrap {
    padding: 0 16px 12px 16px;
}

.mobile-search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 2px 6px 2px 10px;
    transition: border-color 0.2s;
}

body.dark-mode .mobile-search-box,
.isg-dark-theme .mobile-search-box {
    background: #090d16 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.search-lead-icon {
    font-size: 14px;
    color: #64748b;
    margin-right: 6px;
}

.mobile-search-field {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #0f172a !important;
    font-size: 13px !important;
    padding: 7px 0 !important;
    box-shadow: none !important;
}

body.dark-mode .mobile-search-field,
.isg-dark-theme .mobile-search-field {
    color: #f1f5f9 !important;
}

.mobile-search-go-btn {
    background: #0284c7;
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* Mobil Hızlı Form İndir CTA */
.mobile-drawer-cta-wrap {
    padding: 0 16px 14px 16px;
}

.mobile-drawer-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.cta-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.cta-text-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cta-main-text {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.cta-sub-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-arrow-icon {
    font-size: 14px;
    font-weight: 800;
}

/* Mobil Menü Listesi & Bağlantılar */
.nav-mobile .nav-mobile-inner {
    padding: 0 16px 30px 16px !important;
}

.isg-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100% !important;
}

.isg-mobile-nav-list .nav-item {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .isg-mobile-nav-list .nav-item,
.isg-dark-theme .isg-mobile-nav-list .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.isg-mobile-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .isg-mobile-link,
.isg-dark-theme .isg-mobile-link {
    color: #e2e8f0 !important;
}

.isg-mobile-link:hover {
    color: #0284c7 !important;
    padding-left: 10px !important;
}

body.dark-mode .isg-mobile-link:hover,
.isg-dark-theme .isg-mobile-link:hover {
    color: #38bdf8 !important;
}

.isg-mobile-link .m-icon {
    font-size: 15px;
    margin-right: 8px;
    width: 22px;
    text-align: center;
}

.isg-mobile-link .m-caret {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.6;
}

/* Mobil Dropdown Menü (Kusursuz Kontrast & Okunabilirlik) */
.isg-mobile-sub-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px !important;
    margin: 4px 0 10px 0 !important;
    box-shadow: none !important;
    display: none;
}

.isg-mobile-dropdown-wrap.open .isg-mobile-sub-menu {
    display: block !important;
}

body.dark-mode .isg-mobile-sub-menu,
.isg-dark-theme .isg-mobile-sub-menu {
    background: #141b26 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.isg-mobile-sub-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

body.dark-mode .isg-mobile-sub-menu li a,
.isg-dark-theme .isg-mobile-sub-menu li a {
    color: #cbd5e1 !important;
}

.isg-mobile-sub-menu li a:hover {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    padding-left: 16px !important;
}

body.dark-mode .isg-mobile-sub-menu li a:hover,
.isg-dark-theme .isg-mobile-sub-menu li a:hover {
    background: #090d16 !important;
    color: #38bdf8 !important;
}

.isg-mobile-sub-menu .sub-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Sosyal ve Topluluk */
.isg-mobile-social-sep {
    padding-top: 14px !important;
    border-bottom: none !important;
}

.m-section-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    padding: 4px 6px;
}

body.dark-mode .m-section-label,
.isg-dark-theme .m-section-label {
    color: #475569 !important;
}

.isg-m-whatsapp {
    color: #25D366 !important;
}

.isg-m-linkedin {
    color: #0a66c2 !important;
}

/* Mobil Giriş Butonları */
.isg-mobile-auth-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 0 0 0 !important;
    border-bottom: none !important;
}

.btn-m-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
}

.btn-m-login {
    background: #0284c7;
    color: #ffffff !important;
}

.btn-m-register {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7 !important;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

body.dark-mode .btn-m-register,
.isg-dark-theme .btn-m-register {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3);
}

/* ========================================================
   7. İSG PORTAL POST KARTLARI, IZGARA VE SİDEBAR (TÜM SAYFALAR İÇİN)
   ======================================================== */

/* 16:9 Oran & Görsel Konteynırı */
.aspect-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
}

.aspect-16-9 img,
.aspect-16-9 .img-responsive,
.aspect-16-9 .lazyload,
.aspect-16-9 .portal-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 2 Sütunlu Kompakt Post Izgarası */
.portal-post-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.portal-feed-ad-col {
    grid-column: 1 / -1;
}

/* Portal Post Kartı */
.portal-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.portal-post-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.portal-post-card:hover img {
    transform: scale(1.04);
}

.portal-post-thumb-wrap {
    position: relative;
    width: 100%;
}

.portal-post-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-decoration: none !important;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.portal-post-cat-badge:hover {
    background: #0369a1;
}

.portal-post-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portal-post-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-post-title a {
    color: #0f172a !important;
    text-decoration: none !important;
}

.portal-post-title a:hover {
    color: #0284c7 !important;
}

.portal-post-summary {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 14px 0;
    min-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
}

.portal-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-post-read-more {
    font-weight: 700;
    color: #0284c7 !important;
    text-decoration: none !important;
}

.portal-post-read-more:hover {
    color: #0369a1 !important;
}

/* Öne Çıkan Görsel Fallback Kapağı */
.portal-cat-fallback-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    overflow: hidden;
    z-index: 1;
}

.cat-theme-blue { background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%); }
.cat-theme-amber { background: linear-gradient(135deg, #381a02 0%, #b45309 100%); }
.cat-theme-red { background: linear-gradient(135deg, #3f0713 0%, #be123c 100%); }
.cat-theme-emerald { background: linear-gradient(135deg, #043d2c 0%, #047857 100%); }
.cat-theme-default { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%); }

.fallback-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fallback-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 6px;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.fallback-cat-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.fallback-brand {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 4px;
    z-index: 2;
}

/* ========================================================
   8. DOLU SAĞ SİDEBAR STİLLERİ (TÜM SAYFALAR İÇİN)
   ======================================================== */
.portal-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
}

.portal-sidebar-widget {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden !important;
    margin-bottom: 24px;
}

.portal-sidebar-widget::after {
    content: "";
    display: table;
    clear: both;
}

.widget-header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

.widget-header-badge .widget-icon {
    font-size: 18px;
}

.widget-header-badge .widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.trending-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s;
}

.trending-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-post-item:hover {
    transform: translateX(3px);
}

.trending-rank-badge {
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}

.rank-1 .trending-rank-badge { background: #fef08a; color: #854d0e; }
.rank-2 .trending-rank-badge { background: #e2e8f0; color: #334155; }
.rank-3 .trending-rank-badge { background: #fed7aa; color: #9a3412; }

.trending-thumb {
    width: 68px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.trending-info {
    flex: 1;
    min-width: 0;
}

.trending-cat {
    font-size: 10px;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.trending-title {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-post-item:hover .trending-title {
    color: #0284c7;
}

.trending-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #94a3b8;
}

.popular-forms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.form-download-item:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    transform: translateX(2px);
}

.form-doc-icon {
    width: 32px;
    height: 32px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.form-doc-info {
    flex: 1;
    min-width: 0;
}

.form-doc-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-doc-meta {
    font-size: 10.5px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.btn-mini-arrow {
    color: #0284c7;
    font-weight: 800;
    font-size: 14px;
}

.widget-bottom-action {
    margin-top: 12px;
}

.btn-all-forms {
    display: block;
    text-align: center;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.btn-all-forms:hover {
    background: #0369a1;
}

.widget-community-box {
    position: relative;
    background: linear-gradient(135deg, #090d16 0%, #0c1527 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.community-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.community-icon {
    font-size: 20px;
}

.community-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.community-title {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.community-desc {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.community-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-community {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.btn-community:hover {
    transform: translateY(-2px);
}

.btn-comm-tg {
    background: #0088cc;
    color: #ffffff !important;
}

.btn-comm-wa {
    background: #25d366;
    color: #ffffff !important;
}

/* ========================================================
   9. KOYU MOD UYUMLULUĞU (PORTAL POST KARTLARI & SİDEBAR)
   ======================================================== */
body.dark-mode .portal-post-card,
.isg-dark-theme .portal-post-card {
    background: #141b26 !important;
    border-color: #242f3e !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .portal-post-card:hover,
.isg-dark-theme .portal-post-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12) !important;
}

body.dark-mode .portal-post-title a,
.isg-dark-theme .portal-post-title a {
    color: #f8fafc !important;
}

body.dark-mode .portal-post-title a:hover,
.isg-dark-theme .portal-post-title a:hover {
    color: #38bdf8 !important;
}

body.dark-mode .portal-post-summary,
.isg-dark-theme .portal-post-summary {
    color: #94a3b8 !important;
}

body.dark-mode .portal-post-meta,
.isg-dark-theme .portal-post-meta {
    border-top-color: #1e293b !important;
    color: #64748b !important;
}

body.dark-mode .portal-sidebar-widget,
.isg-dark-theme .portal-sidebar-widget {
    background: #141b26 !important;
    border-color: #242f3e !important;
}

body.dark-mode .widget-header-badge,
.isg-dark-theme .widget-header-badge {
    border-bottom-color: #242f3e !important;
}

body.dark-mode .widget-header-badge .widget-title,
.isg-dark-theme .widget-header-badge .widget-title {
    color: #f8fafc !important;
}

body.dark-mode .trending-title,
.isg-dark-theme .trending-title {
    color: #f1f5f9 !important;
}

body.dark-mode .trending-post-item,
.isg-dark-theme .trending-post-item {
    border-bottom-color: #1e293b !important;
}

body.dark-mode .trending-rank-badge,
.isg-dark-theme .trending-rank-badge {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark-mode .form-download-item,
.isg-dark-theme .form-download-item {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

body.dark-mode .form-download-item:hover,
.isg-dark-theme .form-download-item:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
}

body.dark-mode .form-doc-title,
.isg-dark-theme .form-doc-title {
    color: #f1f5f9 !important;
}

body.dark-mode .form-doc-meta,
.isg-dark-theme .form-doc-meta {
    color: #64748b !important;
}

body.dark-mode .portal-section-header .section-title,
.isg-dark-theme .portal-section-header .section-title {
    color: #f8fafc !important;
}

body.dark-mode .portal-section-header .section-subtitle,
.isg-dark-theme .portal-section-header .section-subtitle {
    color: #94a3b8 !important;
}

/* ========================================================
   10. ESKİ VARİENT TEMASI TAŞMA & SABİT YÜKSEKLİK SIFIRLAMALARI
   (Alt sayfalarda eski şablon çağrılsa bile sıfır çakışma)
   ======================================================== */
.post-item-boxed .item-image,
.profile-page .post-item-boxed .item-image,
.w-our-picks-list li .post-image,
.post-item-horizontal .item-image,
.post-item .post-image,
.external-post-image {
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.post-item-boxed .item-image img,
.w-our-picks-list li .post-image img,
.post-item-horizontal .item-image img,
.post-item .post-image img {
    height: auto !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
}

.post-item-boxed .item-content {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    padding-top: 12px !important;
}

.w-our-picks-list li .title {
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* ========================================================
   11. RESPONSIVE DÜZENLEME (TABLET & MOBİL)
   ======================================================== */
@media (max-width: 991px) {
    .portal-post-feed-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .portal-post-feed-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .portal-post-title {
        min-height: auto;
    }
    .portal-post-summary {
        min-height: auto;
    }
}

