html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   VIDEO LAYOUT STYLES
   ============================================ */

/* CSS Variables - Light Theme */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f8f9fa;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.08);
    --accent-color: rgb(0, 65, 140);
    --accent-hover: rgb(30, 95, 180);
    --accent-light: rgba(0, 65, 140, 0.15);
    --soft-accent: #00b8c8;
    --soft-accent-light: rgba(0, 184, 200, 0.1);
}

/* CSS Variables - Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --sidebar-bg: #252525;
    --sidebar-hover: #333333;
    --header-bg: #1f1f1f;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --accent-color: rgb(0, 65, 140);
    --accent-hover: rgb(30, 95, 180);
    --accent-light: rgba(0, 65, 140, 0.2);
    --soft-accent: #00b8c8;
    --soft-accent-light: rgba(0, 184, 200, 0.15);
}

/* Layout Wrapper */
.video-layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.video-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    height: 70px;
}

[data-theme="dark"] .video-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 100%;
    height: 100%;
    gap: 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    max-width: 45%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* --- LOGO --- */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    height: 100%;
}

.site-logo-img {
    height: auto;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover .site-logo-img {
    transform: scale(1.05);
}

/* --- ARAMA ÇUBUĞU --- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    max-width: 450px;
    margin-right: 0.25rem;
    justify-content: flex-end;
}

.search-input {
    width: 100%;
    padding: 0.4rem 1rem 0.4rem 2.2rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    height: 38px;
}

    .search-input:focus {
        border-color: var(--soft-accent);
        box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.1);
    }

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.85rem;
    z-index: 2;
}

.search-btn {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .search-btn:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
        transform: scale(1.05);
    }

.menu-toggle-btn,
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    padding: 0.3rem;
    cursor: pointer;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-toggle-btn:hover,
    .theme-toggle-btn:hover {
        background-color: var(--bg-secondary);
        color: var(--soft-accent);
    }

/* ============================================
   RESPONSIVE HEADER & MOBILE FIX
   ============================================ */

/* Tablet (991px altı) */
@media (max-width: 991px) {
    .site-logo-img {
        max-height: 32px;
    }

    .search-input {
        height: 36px;
    }

    .search-btn {
        width: 36px;
        height: 36px;
    }
}

/* Mobil (768px altı) */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .site-logo-img {
        max-height: 28px;
    }
}

/* Mobil Dikey (576px altı) - HAREKETSIZ ARAMA ÇUBUĞU */
@media (max-width: 576px) {
    .video-header {
        height: 60px;
    }

    .header-content {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    /* Logo - Küçük ve Sabit */
    .header-left {
        max-width: 35%;
    }

    .site-logo-img {
        max-height: 24px;
    }

    /* Arama - Küçük ve Sabit */
    .search-container {
        flex: 1;
        margin-right: 0;
        max-width: none;
    }

    .search-input {
        width: 100%;
        padding: 0.25rem 0.5rem 0.25rem 1.75rem;
        height: 30px;
        font-size: 0.75rem;
    }

        /* BURASI DEĞİŞTİ: Focus olunca hiç büyümesin, oynamasın */
        .search-input:focus {
            width: 100%; /* Genişlik değişmesin */
            height: 30px; /* Yükseklik değişmesin */
            position: static; /* Yerinden oynamasın */
            font-size: 0.75rem;
            box-shadow: none; /* Gölge olmasın veya çok hafif olsun */
            border-color: var(--soft-accent); /* Sadece kenar rengi değişsin */
            z-index: auto;
            transform: none;
        }

    .search-icon {
        left: 0.5rem;
        font-size: 0.75rem;
    }

    .search-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-width: 1px;
    }

    .header-right {
        gap: 0;
    }

    .menu-toggle-btn,
    .theme-toggle-btn {
        font-size: 1.1rem;
        padding: 0.25rem;
    }
}


/* Layout Container */
.video-layout-container {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Sidebar */
.video-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 576px) {
    .video-sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

@media (min-width: 992px) {
    .video-sidebar {
        position: fixed;
        transform: translateX(0);
        top: 70px;
        height: calc(100vh - 70px);
    }

    .video-main-content {
        margin-left: 280px;
    }
}

.video-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .sidebar-close-btn:hover {
        color: var(--soft-accent);
        background-color: var(--bg-secondary);
    }

/* Category Menu */
.category-menu {
    padding: 0.5rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    position: relative;
    background: transparent;
}

[data-theme="dark"] .category-item {
    color: var(--soft-accent);
}

.category-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .category-item i {
    color: var(--soft-accent);
    opacity: 0.8;
}

.category-item:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-item:hover {
    color: white;
    background: var(--sidebar-hover);
}

.category-item:hover i {
    opacity: 1;
}

[data-theme="dark"] .category-item:hover i {
    color: white;
    opacity: 1;
}

.category-item.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    font-weight: 600;
}

[data-theme="dark"] .category-item.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.category-item.active i {
    opacity: 1;
    color: #fff;
}

[data-theme="dark"] .category-item.active i {
    color: #ffffff;
    opacity: 1;
}

.category-item.active:hover {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
}

[data-theme="dark"] .category-item.active:hover {
    color: #ffffff;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.category-item span {
    flex: 1;
    letter-spacing: 0.2px;
}

.menu-section {
    margin-bottom: 1.5rem;
}

    .menu-section:last-child {
        margin-bottom: 0;
    }

.menu-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem 0.75rem 1.25rem;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}

[data-theme="dark"] .menu-section-title {
    color: var(--text-secondary);
    opacity: 0.7;
}

.category-item.maps-toggle-btn {
    background: var(--accent-light);
    border: 1px dashed var(--accent-color);
}

    .category-item.maps-toggle-btn:hover {
        background: var(--accent-light);
        border-style: solid;
    }

    .category-item.maps-toggle-btn.active {
        background: var(--accent-light);
        border-style: solid;
        color: var(--accent-color);
    }

    .category-item.maps-toggle-btn i {
        margin-right: 0.5rem;
    }

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Main Content */
.video-main-content {
    flex: 1;
    padding: 1.5rem;
    width: 100%;
    transition: margin-left 0.3s ease;
}

@media (max-width: 991px) {
    .video-main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Video Content Wrapper */
.video-content-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Map View Container */
.map-view-container {
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--card-shadow);
}

    .map-view-container #map {
        border-radius: 1rem;
        width: 100%;
        height: 100%;
    }

@media (max-width: 1200px) {
    .map-view-container {
        max-width: 100%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .map-view-container {
        height: 400px;
        border-radius: 0.5rem;
    }
}

@media (max-width: 576px) {
    .map-view-container {
        height: 350px;
        margin: 0;
        border-radius: 0;
    }
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0;
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-card-thumbnail {
        padding-top: 56.25%;
    }

        .video-card-thumbnail iframe {
            object-fit: contain;
            max-width: 100%;
            max-height: 100%;
        }
}

@media (min-width: 577px) and (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1201px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Video Card Link */
.video-card-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

    .video-card-link:hover {
        text-decoration: none;
        color: inherit;
    }

/* Video Card */
.video-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--card-shadow), 0 0 0 1px var(--border-color);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .video-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(0, 65, 140, 0.08) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }

    .video-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 65, 140, 0.03) 0%, rgba(0, 45, 100, 0.03) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }

    .video-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px var(--card-shadow), 0 0 0 1px var(--accent-color);
        border-color: var(--accent-color);
    }

        .video-card:hover::before {
            opacity: 1;
        }

        .video-card:hover::after {
            opacity: 1;
        }

.video-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

    .video-card-thumbnail::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .video-card-thumbnail iframe,
    .video-card-thumbnail video,
    .video-card-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        z-index: 0;
        object-fit: cover;
    }

    .video-card-thumbnail iframe {
        object-fit: contain;
    }

    .video-card-thumbnail .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgb(0 65 140);
        color: white;
        border-radius: 50%;
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2;
        box-shadow: 0 4px 16px rgba(0,65, 140, 0.5);
        backdrop-filter: blur(10px);
        border: 2px solid rgb(0 65 140);
    }

.video-card:hover .play-overlay {
    background: var(--soft-accent);
    transform: translate(-50%, -50%) scale(1.1);
    
    border: 2px solid var(--soft-accent);
}

.video-card-info {
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    isolation: isolate;
}

.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.video-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    letter-spacing: -0.3px;
    flex: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-btn {
    background: var(--soft-accent);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 184, 200, 0.25);
    text-decoration: none;
}

    .location-btn:hover {
        transform: scale(1.1);
        background: var(--accent-color);
        box-shadow: 0 4px 12px rgba(0, 65, 140, 0.4);
    }

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--soft-accent-light);
    color: var(--soft-accent);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.8rem;
    border: none;
    pointer-events: none;
    user-select: none;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    margin-left: auto;
}

.video-card:hover .view-count {
    color: var(--soft-accent);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    height: 40px;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .page-link:hover {
        background: var(--sidebar-hover);
        border-color: var(--soft-accent);
        color: var(--soft-accent);
        transform: translateY(-2px);
    }

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    cursor: default;
}

    .page-item.active .page-link:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        color: white;
        transform: none;
    }

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .empty-state h3 {
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

/* Scrollbar Styling */
.video-sidebar::-webkit-scrollbar {
    width: 8px;
}

.video-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.video-sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

    .video-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--soft-accent);
    }

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 2rem;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 100;
    width: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .site-footer {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .footer-brand-area:hover {
        opacity: 0.9;
    }

.footer-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

[data-theme="dark"] .brand-title,
[data-theme="dark"] .brand-subtitle {
    color: var(--soft-accent);
}

.footer-info-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    text-align: right;
}

.footer-departments {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dept-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dept-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.6;
}

.footer-copyright {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.7;
}

[data-theme="dark"] .dept-main {
    color: #fff;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1rem 1rem;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-brand-area {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-logo-img {
        height: 60px;
    }

    .brand-title {
        font-size: 0.85rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .footer-info-area {
        align-items: center;
        text-align: center;
        gap: 0.25rem;
    }
}
