/* =========================================
   COMPREHENSIVE RESPONSIVE STYLES
   NaukriPlanet - Extra Small, Small, Large Screens
   ========================================= */

/* =========================================
   CSS CUSTOM PROPERTIES FOR BREAKPOINTS
   ========================================= */
:root {
    /* Default container max-width */
    --container-max-width: 1320px;
    
    /* Spacing based on breakpoints */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Touch target sizes */
    --touch-target-min: 44px;
}

/* =========================================
   CONTAINER OPTIMIZATIONS
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* Job Title Wrapping Fix - Mobile Only (Preserves Desktop Absolute Layout) */

/* Mobile Job Card Layout - Stacked + Responsive Buttons */
@media (max-width: 767px) {
  .find-job .single-job {
      padding: 20px !important;
      height: auto !important;
      position: relative !important;
  }
  
  .find-job .single-job .job-image {
      position: relative !important;
      left: 0 !important;
      top: 0 !important;
      margin-bottom: 15px !important;
  }
  
  .find-job .single-job .job-content h4 {
      padding: 0 !important;
      padding-bottom: 12px !important;
      padding-right: 0 !important;
  }
  
  .find-job .single-job .job-content h4 a {
      font-size: 16px !important;
      line-height: 1.3 !important;
  }
  
  .find-job .single-job .job-button {
      position: relative !important;
      right: 0 !important;
      top: 0 !important;
      margin-top: 15px !important;
      width: 100% !important;
  }
  
  .find-job .single-job .job-button ul {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
  }
  
  .find-job .single-job .job-button ul li {
      flex: 1 !important;
      min-width: 85px !important;
  }
  
  .find-job .single-job .job-button ul li a,
  .find-job .single-job .job-button ul li span {
      padding: 6px 8px !important;
      font-size: 12px !important;
      line-height: 1.3 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
  }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    /* Larger text on big screens */
    body {
        font-size: 15px;
    }
    
    /* Increase section padding on large screens */
    .section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    
    /* Larger hero on big screens */
    .hero-area .hero-inner {
        height: 900px;
    }
    
    .hero-area .hero-text {
        margin-top: 280px;
    }
    
    .hero-area .hero-text h1 {
        font-size: 52px;
        line-height: 65px;
    }
    
    /* Larger cards on big screens */
    .single-job {
        padding: 50px;
    }
    
    .single-job .job-content h4 {
        padding-right: 250px;
    }
}

/* Large Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* =========================================
   EXTRA SMALL DEVICES (< 576px)
   ========================================= */
@media (max-width: 575px) {
    /* Mobile Grid Stack */
    .single-job {
        grid-template-columns: 1fr !important;
        grid-template-areas: 
            "content"
            "buttons"
            "image" !important;
        gap: 10px !important;
        padding: 18px !important;
    }
    /* Base adjustments */
    body {
        font-size: 13px;
        overflow-x: hidden;
    }
    
    /* Smaller sections */
    .section {
        padding: 40px 0;
    }
    
    /* Section titles */
    .section-title {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 12px;
    }
    
    .section-title h2::before {
        width: 40px;
        margin-left: -20px;
    }
    
    .section-title p {
        font-size: 13px;
        line-height: 20px;
    }
    
    .section-title span {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 80px 0 30px;
    }
    
    .breadcrumbs .container {
        padding-top: 20px;
    }
    
    .breadcrumbs .breadcrumbs-content .page-title {
        font-size: 20px;
        line-height: 28px;
        padding-bottom: 15px;
    }
    
    .breadcrumbs .breadcrumbs-content p {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .breadcrumbs .breadcrumb-nav {
        margin-top: 15px;
    }
    
    .breadcrumbs .breadcrumb-nav li,
    .breadcrumbs .breadcrumb-nav li a {
        font-size: 11px;
    }
    
    /* Buttons */
    .button .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Navbar */
    .navbar-brand img {
        width: 120px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    /* Mobile menu */
    .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    [data-theme="dark"] .navbar-collapse {
        background: var(--dark-bg-secondary);
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    [data-theme="dark"] .navbar-nav .nav-item {
        border-color: var(--dark-border);
    }
    
    .navbar-nav .nav-item a {
        padding: 12px 15px !important;
        display: block;
    }
    
    .navbar-toggler {
        padding: 6px 8px;
    }
    
    .navbar-toggler .toggler-icon {
        width: 18px !important;
    }
    
    /* Hero area */
    .hero-area .hero-inner {
        height: auto;
        min-height: 500px;
        padding: 100px 0 40px;
    }
    
    .hero-area .hero-text {
        margin-top: 0;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero-area .hero-text h1 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 15px;
    }
    
    .hero-area .hero-text p {
        font-size: 13px;
        line-height: 20px;
    }
    
    .hero-area .hero-text .button {
        margin-top: 20px;
    }
    
    .hero-area .hero-text .button .btn {
        display: block;
        width: 100%;
        margin: 0 0 10px 0 !important;
    }
    
    /* Job search form */
    .job-search-wrap-two {
        margin: 20px 10px;
        padding: 20px !important;
    }
    
    .job-search-wrap-two .job-search-form form {
        flex-direction: column;
        padding: 15px;
    }

    .job-search-wrap-two .job-search-form form .single-field-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .job-search-wrap-two .job-search-form form .single-field-item::after {
        display: none;
    }

    .job-search-wrap-two .job-search-form form .submit-btn {
        width: 100%;
        padding: 0 15px;
    }
    
    /* Single job card */
    .single-job {
        padding: 20px !important;
        height: auto !important;
    }
    
    .single-job .job-image {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 0 15px 0 !important;
        transform: none !important;
    }
    
    .single-job .job-image img {
        width: 50px;
        height: 50px;
    }
    
    .single-job .job-content h4 {
        padding: 0 !important;
        font-size: 16px !important;
        margin-bottom: 10px;
    }
    
    .single-job .job-content ul {
        flex-wrap: wrap;
    }
    
    .single-job .job-content ul li {
        margin-bottom: 5px;
    }
    
    .single-job .job-button {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-top: 15px;
    }
    
    .single-job .job-button ul li {
        display: block;
        margin-bottom: 8px;
    }
    
    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Small to Medium Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .single-job {
        padding: 25px !important;
        height: auto !important;
        min-height: 180px;
    }

    .single-job .job-image {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 0 12px 0 !important;
        transform: none !important;
    }

    .single-job .job-content {
        padding-left: 0;
        margin-bottom: 12px;
    }

    .single-job .job-content h4 {
        padding: 0 !important;
        font-size: 16px !important;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .single-job .job-content p {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .single-job .job-content ul {
        margin-bottom: 12px;
    }

    .single-job .job-content ul li {
        font-size: 12px;
        padding: 4px 8px;
        margin-bottom: 4px;
        margin-right: 4px;
    }

    .single-job .job-button {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        width: 100%;
    }

    .single-job .job-button ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .single-job .job-button ul li {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
    }

    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        display: inline-block;
        width: auto;
        text-align: center;
        padding: 4px 8px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        min-height: 24px !important;
        max-width: 85px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Extra Small Screens (480px - 575px) - Handle very small resolutions */
@media (min-width: 480px) and (max-width: 575px) {
    .single-job {
        padding: 20px !important;
        height: auto !important;
        min-height: 160px;
    }

    .single-job .job-image {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 0 10px 0 !important;
        transform: none !important;
    }

    .single-job .job-content {
        padding-left: 0;
        margin-bottom: 10px;
    }

    .single-job .job-content h4 {
        padding: 0 !important;
        font-size: 16px !important;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .single-job .job-content p {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .single-job .job-content ul {
        margin-bottom: 10px;
    }

    .single-job .job-content ul li {
        font-size: 11px;
        padding: 3px 6px;
        margin-bottom: 3px;
        margin-right: 3px;
    }

    .single-job .job-button {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
    }

    .single-job .job-button ul li {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }

    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        display: block;
        width: 100%;
        text-align: center;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Tablet responsive design (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .job-search-wrap-two .job-search-form form {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px;
    }

    .job-search-wrap-two .job-search-form form .single-field-item {
        flex: 0 0 48%;
        max-width: 48%;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .job-search-wrap-two .job-search-form form .single-field-item:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    .job-search-wrap-two .job-search-form form .single-field-item:first-child::after {
        display: block;
    }

    .job-search-wrap-two .job-search-form form .single-field-item:nth-child(2)::after {
        position: absolute;
        content: "";
        height: 70%;
        width: 1px;
        background-color: #e2e4ea;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .job-search-wrap-two .job-search-form form .submit-btn {
        width: 100%;
        padding: 0 20px;
        margin-top: 20px;
    }

    /* Single job card tablet improvements */
    .single-job {
        padding: 25px !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        min-height: 200px;
    }

    .single-job .job-image {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 0 15px 0 !important;
        transform: none !important;
        align-self: flex-start;
        flex-shrink: 0;
    }

    .single-job .job-content {
        flex: 1;
        margin-bottom: 15px;
    }

    .single-job .job-content h4 {
        padding: 0 !important;
        font-size: 17px !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .single-job .job-content p {
        margin-bottom: 10px;
    }

    .single-job .job-content ul {
        margin-bottom: 15px;
    }

    .single-job .job-button {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        align-self: flex-start;
        flex-shrink: 0;
        clear: both;
        width: 100%;
    }

    .single-job .job-button ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .single-job .job-button ul li {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
    }

    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        display: inline-block;
        width: auto;
        text-align: center;
        min-width: 80px;
        max-width: 120px;
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Small Desktop (1024px - 1199px) - Fix button overlap issues */
@media (min-width: 1024px) and (max-width: 1199px) {
    .single-job {
        padding: 30px !important;
        height: auto !important;
        min-height: 180px;
        display: block;
        position: relative;
    }

    .single-job .job-image {
        position: absolute !important;
        left: 30px !important;
        top: 50% !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }

    .single-job .job-content {
        padding-left: 80px;
        padding-right: 180px;
        min-height: 120px;
    }

    .single-job .job-content h4 {
        padding-right: 0 !important;
        font-size: 17px !important;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .single-job .job-content p {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .single-job .job-content ul {
        margin-bottom: 10px;
    }

    .single-job .job-content ul li {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* .single-job .job-button {
        position: absolute !important;
        right: 30px !important;
        top: 30px !important;
        margin: 0 !important;
        width: auto;
        min-width: 140px;
    } */

    .single-job .job-button {
        position: absolute !important;
        right: 10px !important;
        top: 24px !important;
        margin: 0 !important;
        width: auto;
        min-width: 140px;
    }

    .single-job .job-button ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .single-job {
        grid-template-columns: 60px 1fr 140px !important;
        gap: 12px 15px !important;
        padding: 25px !important;
    }
    .single-job .job-content {
        padding: 0 !important;
    }
    .single-job .job-button ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 3px !important;
    }
    .single-job .job-button ul li {
        flex: 1 !important;
    }
.single-job .job-button ul li a,
    .single-job .job-button ul li span {
        padding: 6px 10px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        height: 28px !important;
        max-width: 90px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

@media (min-width: 1200px) {
    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        padding: 8px 12px !important;
        font-size: 13px !important;
        height: 32px !important;
        max-width: 110px !important;
    }
}
}

/* Cards and widgets */
    .single-news,
    .single-table,
    .single-cat,
    .process-item {
        margin-bottom: 20px;
    }
    
    .content-body {
        padding: 15px 20px !important;
    }
    
    .content-body .title {
        font-size: 16px !important;
        line-height: 22px !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        height: 40px;
        font-size: 13px;
    }
    
    /* Footer */
    .footer-top {
        padding: 30px 0;
    }
    
    .footer-top .download-text h3 {
        font-size: 20px;
    }
    
    .footer-middle {
        padding: 30px 0;
    }
    
    .single-footer {
        margin-bottom: 25px;
    }
    
    .single-footer h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .f-link ul li {
        margin-bottom: 8px;
    }
    
    .f-link ul li a {
        font-size: 13px;
    }
    
    .footer-bottom .inner {
        padding: 20px 0;
    }
    
    .footer-bottom .left p,
    .footer-bottom .right p {
        text-align: center;
    }
    
    .footer-bottom .right ul {
        justify-content: center;
    }
    
    /* Pagination */
    .pagination {
        margin-top: 25px;
    }
    
    .pagination .pagination-list li a {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Modals */
    .modal .login-modal-main {
        padding: 20px !important;
    }
    
    .modal .login-modal-main .heading h3 {
        font-size: 18px !important;
    }
    
    /* Tables */
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 30px;
    }
    
    .sidebar .widget {
        padding: 20px !important;
    }
    
    /* Category boxes */
    .category-box {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Job details */
    .job-details-inner {
        padding: 20px !important;
    }
    
    .job-details-head {
        flex-direction: column;
        text-align: center;
    }
    
    .job-details-head .meta {
        justify-content: center;
        margin-top: 15px;
    }
    
    .job-details-sidebar .sidebar-widget {
        padding: 20px !important;
        margin-bottom: 20px;
    }
    
    /* Apply process */
    .apply-process {
        padding: 40px 0 !important;
    }
    
    .apply-process .process-item {
        padding-left: 70px !important;
        margin-bottom: 25px;
    }
    
    .apply-process .process-item i {
        height: 45px !important;
        width: 45px !important;
        font-size: 18px !important;
        line-height: 45px !important;
    }
    
    .apply-process .process-item h4 {
        font-size: 15px !important;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 40px 0 !important;
    }
    
    .single-testimonial {
        padding: 20px;
    }
    
    /* Pricing */
    .pricing-table .single-table {
        padding: 30px 20px !important;
        margin-bottom: 20px;
    }
    
    .pricing-table .single-table .table-head .amount {
        font-size: 32px;
    }
    
    /* Contact */
    .contact-us .single-head {
        padding: 25px !important;
    }
    
    .contact-us .form-main {
        padding: 25px !important;
    }
    
    .contact-us .form .form-group input,
    .contact-us .form .form-group textarea {
        height: 40px;
    }
    
    /* Error page */
    .error-area .error-content h1 {
        font-size: 60px !important;
    }
    
    .error-area .error-content h2 {
        font-size: 16px !important;
    }
    
    /* Newsletter */
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        margin-bottom: 10px;
    }
    
    .newsletter button {
        width: 100%;
    }
    
    /* About section */
    .about-us .content-left,
    .about-us .content-right {
        padding: 0;
    }
    
    .about-us .content-right h2 {
        font-size: 22px;
        line-height: 30px;
    }
    
    /* Dashboard */
    .dashbord-sidebar {
        padding: 20px !important;
        margin-bottom: 20px;
    }
    
    .dashbord-sidebar ul li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Search results */
    .d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.flex-wrap.align-items-center.justify-content-between > div {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Filter badges */
    .d-flex.flex-wrap.gap-2 {
        width: 100%;
    }
    
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Clear filters button */
    .btn.btn-sm.btn-outline-dark {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Social icons */
    .footer-social ul li a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    /* Language selector mobile */
    .language-menu {
        width: 100%;
        max-width: 250px;
    }
    
    /* Hero style4 */
    /* .hero-area.style4 .hero-inner .hero-text {
        margin-top: 40px;
    } */
    
    /* .hero-area.style4 .hero-inner .hero-text h1 {
        font-size: 22px;
    } */
    
    /* Blog */
    .latest-news-area .single-news .content-body {
        padding: 15px !important;
    }
    
    .post-details {
        padding: 15px;
    }
    
    .post-details .post-title a {
        font-size: 18px;
    }
    
    /* Comments */
    .post-comments {
        padding: 20px !important;
    }
    
    .comment-form {
        padding: 20px !important;
    }
    
    /* FAQ */
    .faq-area .single-faq {
        padding: 20px !important;
    }
    
    .faq-area .heading {
        font-size: 14px;
        line-height: 22px;
    }
}

/* =========================================
   SMALL DEVICES (576px - 767px)
   ========================================= */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .section {
        padding: 45px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .hero-area .hero-text h1 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .hero-area .hero-inner {
        height: auto;
        min-height: 550px;
    }
    
    .single-job {
        padding: 25px !important;
    }
    
    .single-job .job-content h4 {
        padding-right: 0;
    }
    
    .single-job .job-button {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 15px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .footer-middle .row {
        flex-direction: column;
    }
    
    .single-footer {
        margin-bottom: 30px;
    }
    
    .job-search-wrap-two {
        margin: 20px;
    }
}

/* =========================================
   MEDIUM DEVICES (768px - 991px) - Enhanced
   ========================================= */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .hero-area .hero-inner {
        height: 600px;
    }
    
    .hero-area .hero-text {
        margin-top: 180px;
    }
    
    .hero-area .hero-text h1 {
        font-size: 32px;
        line-height: 42px;
    }
    
    /* Job search */
    .job-search-wrap-two {
        margin-top: 30px;
    }

    .job-search-wrap-two .job-search-form form {
        padding: 25px;
    }

    .job-search-wrap-two .job-search-form form .single-field-item {
        padding: 0 25px;
    }

    .job-search-wrap-two .job-search-form form .submit-btn {
        padding: 0 25px;
    }

    /* Single job */
    .single-job {
        padding: 35px !important;
        height: 240px !important;
        display: flex;
        align-items: center;
        position: relative;
    }

    .single-job .job-image {
        position: absolute !important;
        left: 35px !important;
        top: 50% !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        flex-shrink: 0;
    }

    .single-job .job-content {
        padding-left: 80px;
        padding-right: 200px;
        flex: 1;
        min-height: 140px;
    }

    .single-job .job-content h4 {
        padding-right: 0 !important;
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .single-job .job-content p {
        margin-bottom: 10px;
    }

    .single-job .job-content ul {
        margin-bottom: 0;
    }

    /* .single-job .job-button {
        position: absolute !important;
        right: 35px !important;
        top: 35px !important;
        margin: 0 !important;
        flex-shrink: 0;
    } */

    .single-job .job-button {
        /* position: absolute !important; */
        left: 0px !important;
        top: 0px !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .single-job .job-button ul li {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        display: inline-block;
        width: auto;
        text-align: left;
        padding: 6px 12px !important;
        font-size: 13px;
        min-width: 100px;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Navbar */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 400px;
        overflow-y: auto;
    }
    
    /* Footer */
    .footer-middle .row {
        flex-wrap: wrap;
    }
    
    .single-footer {
        margin-bottom: 30px;
    }
}

/* =========================================
   LARGE DEVICES (992px - 1199px) - Enhanced
   ========================================= */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .navbar-nav .nav-item {
        margin-left: 25px;
    }
    
    .hero-area .hero-inner {
        height: 750px;
    }
    
    .hero-area .hero-text {
        margin-top: 220px;
    }
    
    .hero-area .hero-text h1 {
        font-size: 38px;
        line-height: 50px;
    }
}

/* =========================================
   EXTRA LARGE DEVICES (1200px+)
   ========================================= */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .navbar-nav .nav-item {
        margin-left: 30px;
    }
}

/* =========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================= */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets - excluded job buttons */
    .button .btn,
    .navbar-nav .nav-item a,
    .category-box,
    .pagination .pagination-list li a,
    .footer .f-link ul li a {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }
    .single-job .job-button .btn {
        min-height: auto !important;
    }
    
    /* Remove hover effects on touch devices */
    a:hover,
    .btn:hover {
        /* Keep hover but make it optional */
    }
    
    /* Better scrolling on touch */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Disable double-tap zoom on buttons */
    .btn,
    .navbar-toggler {
        touch-action: manipulation;
    }
}

/* =========================================
   REDUCED MOTION PREFERENCE
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   DARK MODE ENHANCEMENTS FOR RESPONSIVE
   ========================================= */
@media (max-width: 767px) {
    [data-theme="dark"] {
        /* Mobile dark mode fixes */
        --dark-bg-primary: #0a0f14;
        --dark-bg-secondary: #12171f;
        --dark-bg-card: #151a24;
    }
    
    [data-theme="dark"] .navbar-collapse {
        border-top: 1px solid var(--dark-border);
    }
    
    [data-theme="dark"] .navbar-nav .nav-item {
        border-color: var(--dark-border);
    }
    
    [data-theme="dark"] .single-job,
    [data-theme="dark"] .single-news,
    [data-theme="dark"] .single-cat {
        border-color: var(--dark-border);
    }
    
    [data-theme="dark"] .footer {
        border-top: 1px solid var(--dark-border);
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav,
    .scroll-top,
    .button .btn,
    .sidebar,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .section {
        padding: 20px 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .single-job,
    .single-news,
    .single-cat {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .job-details-head,
    .job-details-body {
        page-break-inside: avoid;
    }
}

/* =========================================
   ORIENTATION SPECIFIC STYLES
   ========================================= */

/* Landscape orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-area .hero-inner {
        min-height: 400px;
    }
    
    .hero-area .hero-text {
        margin-top: 60px;
    }
    
    .hero-area .hero-text h1 {
        font-size: 18px;
        line-height: 24px;
    }
    
    .navbar-collapse {
        max-height: 60vh;
    }
}

/* =========================================
   HIGH RESOLUTION DISPLAYS
   ========================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Improve clarity of certain elements */
}

/* =========================================
   NOTCHED DEVICES (iPhone X+)
   ========================================= */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 767px) {
        .navbar {
            padding-top: env(safe-area-inset-top);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
        
        .navbar-collapse {
            top: calc(60px + env(safe-area-inset-top));
        }
        
        .scroll-top {
            bottom: calc(30px + env(safe-area-inset-bottom));
            right: calc(30px + env(safe-area-inset-right));
        }
        
        .footer-bottom {
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }
}

/* =========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================= */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #2042e3;
    outline-offset: 2px;
}

[data-theme="dark"] :focus-visible {
    outline-color: #fff;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2042e3;
    color: #fff;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .single-job,
    .sidebar .widget {
        border: 2px solid #000;
    }
    
    [data-theme="dark"] .btn,
    [data-theme="dark"] .single-job,
    [data-theme="dark"] .sidebar .widget {
        border: 2px solid #fff;
    }
}

/* =========================================
   CONTAINER FLUID FOR FULL WIDTH SECTIONS
   ========================================= */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================
   FLEXBOX UTILITIES FOR RESPONSIVE
   ========================================= */
@media (max-width: 767px) {
    .flex-column-mobile {
        flex-direction: column;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .w-100-mobile {
        width: 100%;
    }
    
    .mb-3-mobile {
        margin-bottom: 1rem;
    }
    
    .mt-3-mobile {
        margin-top: 1rem;
    }
}

/* =========================================
   GRID SYSTEM ENHANCEMENTS
   ========================================= */
@media (max-width: 575px) {
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .row > [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* =========================================
   UTILITY CLASSES FOR RESPONSIVE VISIBILITY
   ========================================= */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .show-mobile-flex {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: block !important;
    }
}

/* =========================================
   SMOOTH SCROLLING FOR MOBILE
   ========================================= */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
        -webkit-scroll-behavior: smooth;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Short Height Screens - Tiny Buttons (1024x600 etc) */
@media (min-height: 550px) and (max-height: 850px), (min-width: 1000px) and (max-height: 700px) {
    .single-job .job-button ul li a,
    .single-job .job-button ul li span {
        padding: 10px 18px !important;
        font-size: 10px !important;
        min-height: 20px !important;
        line-height: 1.2 !important;
    }
    .single-job .job-content {
        padding-bottom: 25px !important;
    }
}

/* =========================================
   FINAL RESPONSIVE FIXES
   ========================================= */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Video embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Google Maps responsive */
.map-container iframe {
    width: 100%;
    border: 0;
}

/* Form elements responsive */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    max-width: 100%;
}

/* Table responsive wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Card images */
.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Button block for mobile */
.btn-block-mobile {
    width: 100%;
    display: block;
}

@media (min-width: 576px) {
    .btn-block-mobile {
        width: auto;
        display: inline-block;
    }
}

