/* MİTSO Frontend CSS */

/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    background: #1e3a5f;
    color: #fff;
}

.top-bar {
    background: #0d1b2a;
    padding: 8px 0;
    font-size: 0.85rem;
}

/* Navigation */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    padding: 15px 20px;
    display: block;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: #f0f4f8;
    color: #1e3a5f;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #1e3a5f;
    color: #fff;
}

.btn-primary:hover {
    background: #2d4a6f;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-body {
    padding: 20px;
}

/* News Cards */
.news-card {
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background: #1e3a5f;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Forms */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #1e3a5f;
}

.breadcrumb .separator {
    color: #ccc;
}

/* Scroll to Top */
#scrollToTop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Hide logo on sticky scroll */
.logo-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-container.logo-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

/* Center menu when logo hidden */
#mainMenu {
    transition: all 0.3s ease;
    overflow: visible;
}

#mainMenu > div {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

#mainMenu.menu-centered {
    margin-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
    position: relative;
}

#mainMenu.menu-centered .sticky-home-btn {
    display: block;
}

#mainMenu.menu-centered > div:last-child {
    position: absolute;
    right: 0.5rem;
    margin-left: 0 !important;
}

/* Mobile Sidebar */
#mobileSidebar {
    left: -100%;
    transition: left 0.3s ease;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#mobileSidebar::-webkit-scrollbar {
    display: none;
}

#mobileSidebar.sidebar-open {
    left: 0;
}

#mobileOverlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileOverlay.overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile submenu chevron rotation */
.mobile-submenu-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Category Introduction Content (TinyMCE rendered) */
.category-intro-content h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: #111827; }
.category-intro-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #111827; }
.category-intro-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: #1f2937; }
.category-intro-content p { margin-bottom: 0.75em; }
.category-intro-content ul, .category-intro-content ol { margin-left: 1.5em; margin-bottom: 0.75em; }
.category-intro-content li { margin-bottom: 0.25em; }
.category-intro-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 0.5em 0; }
.category-intro-content a { color: #2563eb; }
.category-intro-content a:hover { text-decoration: underline; }
.category-intro-content table { border-collapse: collapse; width: 100%; margin-bottom: 0.75em; }
.category-intro-content table td, .category-intro-content table th { border: 1px solid #e5e7eb; padding: 6px 10px; font-size: 0.875rem; }
.category-intro-content blockquote { border-left: 3px solid #3b82f6; padding-left: 1em; margin: 0.75em 0; color: #4b5563; }

/* Lightbox / Modal — body scroll lock */
body.lightbox-open {
    overflow: hidden !important;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
}
