html {
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.mobile-menu,
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(1, 87, 155, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #01579B;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(1, 87, 155, 0.08);
}

.mobile-menu i,
.mobile-menu-toggle i {
    font-size: 1.2rem;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1098;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1099;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
    padding: 1rem 1rem 1.5rem;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-nav-open .mobile-nav-drawer {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5edf4;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #01579B;
    font-weight: 700;
    font-size: 1rem;
}

.mobile-nav-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.mobile-nav-close {
    width: 42px;
    height: 42px;
    border: 1px solid #dce8f2;
    border-radius: 12px;
    background: #fff;
    color: #01579B;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #eef3f8;
}

.mobile-nav-list a,
.mobile-nav-list .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 0;
    color: #263238;
    font-weight: 500;
    font-size: 0.98rem;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-nav-list .dropdown-menu {
    display: none;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    padding: 0 0 0.5rem 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.mobile-nav-list .dropdown.open > .dropdown-menu {
    display: block;
}

.mobile-nav-list .dropdown-menu a {
    padding: 0.7rem 0 0.7rem 1rem;
    color: #546E7A;
    font-size: 0.94rem;
}

.mobile-nav-list .dropdown > .dropdown-toggle i:last-child {
    transition: transform 0.25s ease;
}

.mobile-nav-list .dropdown.open > .dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0.75rem 1rem !important;
        gap: 1rem;
    }

    .logo img {
        height: 48px !important;
    }

    nav ul {
        display: none !important;
    }

    .mobile-menu,
    .mobile-menu-toggle {
        display: inline-flex !important;
        flex-shrink: 0;
    }

    .hero,
    .page-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero {
        margin-top: 76px !important;
    }

    .page-header {
        margin-top: 76px !important;
    }

    .hero-container,
    .contact-container,
    .content-wrapper,
    .footer-container,
    .badges-container,
    .tabs-header,
    .info-cards,
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-container,
    .tabs-header,
    .badges-container {
        gap: 1.25rem !important;
    }

    .hero-content h1,
    .page-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        line-height: 1.2 !important;
    }

    .hero-content p,
    .page-header p,
    .section-title p {
        font-size: 1rem !important;
    }

    .hero-stats {
        gap: 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat {
        min-width: 120px;
    }

    .contact,
    .sectors-tabs,
    .content,
    .main-content,
    .sidebar,
    .section,
    .info-card,
    .pdf-card,
    .sidebar-card {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .tabs-container,
    .content,
    .container,
    .footer-container,
    .contact-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .profession-features {
        grid-template-columns: 1fr !important;
    }

    .tab-btn,
    .btn,
    .btn-primary,
    .btn-detail,
    .btn-pdf {
        width: 100%;
        justify-content: center;
        margin-right: 0 !important;
    }

    .content table,
    .main-content table,
    .section-content table,
    .info-card table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .popup-card {
        width: min(92vw, 460px) !important;
    }
}

@media (max-width: 768px) {
    .hero,
    .page-header,
    .contact,
    .sectors-tabs,
    .content,
    footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .page-header {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .hero-stats .stat {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .profession-image {
        height: 180px !important;
    }

    .badges-section,
    .profession-body,
    .section,
    .main-content,
    .sidebar-card,
    .info-card,
    .pdf-card {
        padding: 1rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .section-title h2,
    .section-title,
    .section h2,
    .section-title i {
        font-size: clamp(1.35rem, 5vw, 1.9rem) !important;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.65rem 0.9rem !important;
    }

    .logo img {
        height: 42px !important;
    }

    .hero-content h1,
    .page-header h1 {
        font-size: 1.65rem !important;
    }

    .hero-content p,
    .page-header p {
        font-size: 0.95rem !important;
    }

    .mobile-nav-drawer {
        width: min(92vw, 340px);
    }

    .hero-stats .stat {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .login-box {
        width: calc(100% - 2rem) !important;
        padding: 1.5rem !important;
        margin: 1rem;
    }

    .header {
        padding: 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .header h1 {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }

    .header-actions,
    .tab-menu,
    .durum-form,
    .actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .tab-menu {
        padding: 1rem !important;
    }

    .container {
        padding: 0 1rem 1rem !important;
    }

    .filters {
        padding: 1rem !important;
    }

    .filters input,
    .filters select,
    .filters button,
    .durum-form select,
    .durum-form button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .table-container {
        overflow-x: auto;
    }

    .table-container table {
        min-width: 760px;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-body {
        padding: 1rem !important;
    }
}


/* =========================================================
   NFS Mobile UX Revizyonu - 2026
   Mobilde menü, hero, sektör sekmeleri, kartlar ve formlar
   daha okunur/kompakt görünsün diye eklenmiştir.
   ========================================================= */

@media (max-width: 1024px) {
    html {
        scroll-padding-top: 78px;
    }

    body {
        background: #f0f4f8;
    }

    header {
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
    }

    .header-container {
        min-height: 66px;
    }

    .logo a {
        display: inline-flex !important;
        align-items: center !important;
    }

    .logo img {
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .mobile-menu,
    .mobile-menu-toggle {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
    }

    .mobile-nav-drawer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .mobile-nav-list a,
    .mobile-nav-list .dropdown-toggle {
        min-height: 48px;
    }

    .hero,
    .page-header {
        margin-top: 66px !important;
    }

    .hero-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.35rem !important;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 72px;
    }

    .hero,
    .page-header {
        margin-top: 66px !important;
    }

    .hero {
        padding: 2rem 1rem 2.25rem !important;
        text-align: center !important;
    }

    .hero-content,
    .hero-content p,
    .page-header,
    .page-header p {
        max-width: 100% !important;
    }

    .hero-content h1,
    .hero h1,
    .page-header h1 {
        font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.025em !important;
        margin-bottom: 0.75rem !important;
    }

    .hero h1 i {
        display: block;
        margin: 0 0 0.45rem 0 !important;
        font-size: 1.55rem;
    }

    .hero-content p,
    .hero p,
    .page-header p {
        font-size: 0.94rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1.1rem !important;
    }

    .hero .btn,
    .hero-content .btn {
        width: 100% !important;
        max-width: 360px;
        margin: 0.35rem auto !important;
        padding: 0.9rem 1rem !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
        margin-top: 1.35rem !important;
        padding-top: 1.1rem !important;
    }

    .hero-stats .stat {
        min-width: 0 !important;
        flex: none !important;
        padding: 0.75rem 0.45rem !important;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
    }

    .hero-stats .stat h3,
    .stat h3 {
        font-size: 1.45rem !important;
        line-height: 1.1 !important;
    }

    .hero-stats .stat p,
    .stat p {
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
        margin: 0.25rem 0 0 !important;
    }

    .badges-section {
        width: 100% !important;
        padding: 0.95rem !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    }

    .badges-section h3 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .badges-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }

    .badge-item {
        padding: 0.65rem 0.45rem !important;
        border-radius: 14px !important;
    }

    .badge-item img {
        width: 86px !important;
        height: 122px !important;
        margin-bottom: 0.4rem !important;
    }

    .badge-item p {
        font-size: 0.73rem !important;
        line-height: 1.25 !important;
    }

    .badge-item p strong {
        font-size: 0.78rem !important;
    }

    .sectors-tabs,
    .contact,
    .content,
    .main-content {
        padding-top: 2.25rem !important;
        padding-bottom: 2.5rem !important;
    }

    .tabs-container,
    .container,
    .contact-container,
    .footer-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .section-title {
        margin-bottom: 1.15rem !important;
        text-align: center !important;
    }

    .section-title h2,
    .section h2,
    .section-title {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem) !important;
        line-height: 1.25 !important;
    }

    .tabs-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0.6rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        margin: 0 -1rem 1.25rem !important;
        padding: 0.15rem 1rem 0.85rem !important;
    }

    .tabs-header::-webkit-scrollbar {
        height: 0;
    }

    .tab-btn {
        width: auto !important;
        flex: 0 0 auto !important;
        min-width: max-content;
        padding: 0.78rem 1.05rem !important;
        font-size: 0.88rem !important;
        border-radius: 999px !important;
        scroll-snap-align: start;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    .tab-content h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        padding: 0 0.35rem;
    }

    .tab-content > p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        padding: 0 0.35rem;
    }

    .professions-grid,
    .professions-grid.single-profession-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-content: stretch !important;
    }

    .profession-card {
        width: 100% !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10) !important;
        overflow: hidden !important;
    }

    .profession-card:hover {
        transform: none !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10) !important;
    }

    .profession-image,
    .professions-grid.single-profession-grid .profession-image {
        height: 168px !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .profession-code-overlay {
        top: 10px !important;
        left: 10px !important;
        padding: 0.32rem 0.72rem !important;
        font-size: 0.7rem !important;
        border-radius: 999px !important;
    }

    .profession-title-overlay {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .profession-title-overlay h3 {
        font-size: 1.08rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }

    .level-badge-overlay {
        font-size: 0.72rem !important;
        padding: 0.18rem 0.6rem !important;
    }

    .profession-body {
        padding: 1rem !important;
    }

    .profession-body p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        margin-bottom: 0.85rem !important;
    }

    .profession-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.35rem 0.6rem !important;
        margin-bottom: 1rem !important;
    }

    .profession-features li {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        padding: 0.18rem 0 !important;
        align-items: flex-start !important;
    }

    .profession-features li i {
        margin-top: 0.18rem;
    }

    .card-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.55rem !important;
    }

    .btn-card {
        min-height: 44px !important;
        padding: 0.72rem 0.45rem !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.15px !important;
        border-radius: 10px !important;
    }

    .contact-container,
    .content-wrapper,
    .info-grid,
    .info-cards,
    .badges-container {
        grid-template-columns: 1fr !important;
    }

    .contact-form,
    .main-content,
    .sidebar-card,
    .info-card,
    .pdf-card,
    .simple-sector,
    .form-card {
        border-radius: 16px !important;
    }

    .contact-form,
    .form-body,
    .main-content,
    .sidebar-card,
    .info-card,
    .pdf-card {
        padding: 1rem !important;
    }

    .content-wrapper {
        gap: 1rem !important;
        padding-top: 1.25rem !important;
        padding-bottom: 2rem !important;
    }

    .profession-image-container {
        border-radius: 14px !important;
        margin-bottom: 1.25rem !important;
    }

    .profession-image-container img {
        width: 100% !important;
        max-height: 260px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .section {
        margin-bottom: 1.6rem !important;
    }

    .section-content,
    .section-content p {
        font-size: 0.94rem !important;
        line-height: 1.7 !important;
    }

    .duty-list li,
    .units-list li,
    .meta-list li {
        padding: 0.85rem !important;
        gap: 0.65rem !important;
        font-size: 0.9rem !important;
    }

    .highlight-box,
    .warning-box {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }

    .form-card,
    .forms-wrap,
    .page-header {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row {
        border-radius: 14px !important;
        background: #fff;
        margin: 0.55rem 0.75rem !important;
        border: 1px solid #e1ebf3 !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .forms-list {
        padding: 0.35rem 0 0.55rem !important;
        gap: 0 !important;
    }

    .form-code {
        font-size: 0.78rem !important;
    }

    .form-name {
        font-size: 0.94rem !important;
        line-height: 1.35 !important;
    }

    .form-open {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 0.55rem !important;
        padding: 0.72rem 0.85rem !important;
        border-radius: 10px !important;
    }

    footer {
        padding: 2rem 1rem 5rem !important;
    }
}

@media (max-width: 420px) {
    .header-container {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    .logo img {
        max-height: 42px !important;
    }

    .mobile-menu,
    .mobile-menu-toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .hero {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 0.45rem !important;
    }

    .hero-stats .stat {
        padding: 0.62rem 0.25rem !important;
    }

    .hero-stats .stat h3,
    .stat h3 {
        font-size: 1.25rem !important;
    }

    .hero-stats .stat p,
    .stat p {
        font-size: 0.66rem !important;
    }

    .profession-features {
        grid-template-columns: 1fr !important;
    }

    .card-actions {
        grid-template-columns: 1fr !important;
    }

    .profession-image,
    .professions-grid.single-profession-grid .profession-image {
        height: 156px !important;
    }
}

@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
    }
}


/* Mobil menü hizalama düzeltmesi - Online Başvuru gibi ikonlu tek bağlantılar */
@media (max-width: 1024px) {
    .mobile-nav-list a:not(.dropdown-toggle),
    .mobile-nav-list .dropdown-menu a {
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        text-align: left !important;
    }

    .mobile-nav-list a:not(.dropdown-toggle) i:first-child,
    .mobile-nav-list .dropdown-menu a i:first-child {
        width: 22px;
        min-width: 22px;
        text-align: center;
        color: #01579B;
    }

    .mobile-nav-list > li > a:not(.dropdown-toggle) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-nav-list .dropdown > .dropdown-toggle {
        justify-content: space-between !important;
    }
}
