/* ============================================
   Mobile Responsive Styles
   Ensures all pages, components, and sections
   are fully responsive on mobile devices
   ============================================ */

/* Base Mobile Styles - Apply to all screen sizes below 991px */
@media (max-width: 991px) {
  /* Body padding adjustment for fixed header on mobile */
  /* Add padding-top to first section in main-content to account for fixed header */
  /* Hero sections already have their own padding (140px/120px), so exclude them */
  .main-content > section:first-of-type:not(.hero-section) {
    padding-top: 120px !important;
  }

  /* Handle React fragments - target first section even if wrapped */
  .main-content > *:first-child > section:first-of-type:not(.hero-section),
  .main-content > *:first-child:not(section):not(.hero-section) {
    padding-top: 120px !important;
  }

  /* Sticky header wrapper height calculation for mobile */
  .sticky-header-wrapper {
    height: auto !important;
  }

  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Typography adjustments */
  h1 {
    font-size: 42px !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 36px !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 28px !important;
  }

  h4 {
    font-size: 24px !important;
  }

  h5 {
    font-size: 20px !important;
  }

  h6 {
    font-size: 18px !important;
  }

  p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Section padding adjustments */
  .section-padding {
    padding: 60px 0 !important;
  }

  /* Top Contact Bar - Mobile */
  .top-contact-bar {
    padding: 10px 0 !important;
    overflow: hidden;
  }

  .top-contact-bar .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .top-contact-bar .contact-bar-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .top-contact-bar .contact-info {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .top-contact-bar .contact-label {
    font-size: 11px !important;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .top-contact-bar .contact-item {
    font-size: 11px !important;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .top-contact-bar .contact-item i {
    font-size: 11px !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }

  .top-contact-bar .contact-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  .top-contact-bar .social-links {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
    gap: 10px;
  }

  .top-contact-bar .social-links .social-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px !important;
  }

  /* Header - Mobile */
  .header-main {
    padding: 10px 0 !important;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header-main .logo {
    flex-shrink: 0;
    margin-right: 10px !important;
  }

  .header-main .logo img {
    max-height: 40px !important;
    width: auto;
    height: auto;
  }

  .header-main .main-menu {
    display: none !important;
  }

  .header-main .header-right {
    gap: 8px !important;
    flex-shrink: 0;
    align-items: center;
    display: flex;
  }

  .header-main .header-button {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-main .header-button .theme-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
    display: none !important;
    white-space: nowrap;
  }

  .header-main .header-button .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px !important;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .header-main .header__hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .header-main .sidebar__toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px !important;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
  }

  /* Hero Section - Mobile */
  /* Override main.css hero-section:first-of-type padding-top: 0 */
  .hero-section:first-of-type,
  section.hero-section:first-of-type,
  .hero-3 {
    min-height: auto !important;
    height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 40px !important;
    display: block !important;
    align-items: normal !important;
  }

  .hero-3 .hero-content h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }

  .hero-3 .hero-content h1 .typing-text {
    width: auto !important;
    display: inline !important;
  }

  .hero-3 .hero-content p {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  .hero-3 .hero-content .hero-button {
    flex-direction: column;
    gap: 10px;
    margin-top: 25px !important;
  }

  .hero-3 .hero-content .hero-button .theme-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px !important;
  }

  .hero-3 .hero-image-items {
    margin-top: 30px;
  }

  .hero-3 .hero-image-items .hero-image-2,
  .hero-3 .hero-image-items .hero-image-3 {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 15px;
  }

  /* Brand Section - Mobile */
  .brand-section {
    padding: 40px 0 !important;
  }

  .brand-text h5 {
    font-size: 18px !important;
    margin-bottom: 20px;
  }

  /* About Section - Mobile */
  .about-section .section-title h2 {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .about-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .about-section .section-title-area .title-text p {
    text-align: center;
  }

  .about-section .about-wrapper .row {
    flex-direction: column-reverse;
  }

  .about-section .about-image {
    margin-bottom: 30px;
  }

  /* Service Section - Mobile */
  .service-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .service-box-items {
    padding: 25px 20px !important;
    margin-bottom: 15px;
  }

  .service-box-items .icon {
    margin-bottom: 15px;
  }

  .service-box-items .content h3 {
    font-size: 20px !important;
    margin-bottom: 10px;
  }

  .service-box-items .content p {
    font-size: 14px !important;
    margin-bottom: 15px;
  }

  /* Portfolio Section - Mobile */
  .portfolio-box-items {
    padding: 25px 20px !important;
    margin-bottom: 20px;
  }

  .portfolio-box-items .content h3 {
    font-size: 22px !important;
  }

  /* Testimonial Section - Mobile */
  .testimonial-section .tesimonial-wrapper-2 .row {
    flex-direction: column;
  }

  .testimonial-section .testimonial-image {
    margin-bottom: 30px;
  }

  .testimonial-card-items {
    padding: 25px 20px !important;
  }

  /* News Section - Mobile */
  .news-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .news-box-items {
    margin-bottom: 30px;
  }

  .news-box-items .news-content h3 {
    font-size: 20px !important;
  }

  /* Contact Section - Mobile */
  .contact-section .contact-wrapper .row {
    flex-direction: column;
  }

  .contact-section .map-items {
    margin-bottom: 30px;
    height: 300px !important;
  }

  .contact-section .contact-form-items {
    padding: 0;
  }

  .contact-form-items .form-clt {
    margin-bottom: 20px;
  }

  .contact-form-items .form-clt input,
  .contact-form-items .form-clt textarea {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }

  .contact-box-items {
    padding: 25px 20px !important;
    margin-bottom: 20px;
    text-align: center;
  }

  .contact-box-items .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .contact-box-items .icon img {
    width: 32px !important;
    height: 32px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .contact-box-items .icon i,
  .contact-info-section .contact-box-items .icon i {
    font-size: 24px !important;
    color: var(--white) !important;
    display: block !important;
    line-height: 1 !important;
  }

  /* Footer - Mobile */
  .footer-section .footer-widgets-wrapper .row {
    flex-direction: column;
  }

  .footer-section .single-footer-widget {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-section .single-footer-widget .widget-head {
    margin-bottom: 15px;
  }

  .footer-section .footer-content {
    text-align: center;
  }

  .footer-section .social-icon {
    justify-content: center;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Breadcrumb - Mobile */
  .breadcrumb-section {
    padding: 80px 0 40px !important;
  }

  .breadcrumb-wrapper {
    text-align: center;
  }

  .breadcrumb-title {
    font-size: 32px !important;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .breadcrumb-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px !important;
  }

  .breadcrumb-menu li {
    display: inline-flex;
    align-items: center;
  }

  .breadcrumb-menu li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
  }

  /* Counter Section - Mobile */
  .counter-items {
    margin-bottom: 20px;
    text-align: center;
  }

  .counter-items h2 {
    font-size: 48px !important;
  }

  /* Service Details - Mobile */
  .service-details-section .row {
    flex-direction: column;
  }

  .service-details-section .service-details-image {
    margin-bottom: 30px;
  }

  .service-details-content h2 {
    font-size: 28px !important;
  }

  .service-details-content .service-list {
    padding-left: 20px;
  }

  .service-details-content .service-list li {
    font-size: 15px !important;
    margin-bottom: 10px;
  }

  /* Lets Talk Section - Mobile */
  .lets-talk-section {
    padding: 40px 0 !important;
  }

  .lets-talk-wrapper {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding-bottom: 30px !important;
  }

  .lets-talk-wrapper h2 {
    font-size: 28px !important;
  }

  /* FAQ Section - Mobile */
  .faq-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Team Section - Mobile */
  .team-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .team-card-items {
    margin-bottom: 30px;
  }

  /* Blog Section - Mobile */
  .blog-section .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .news-list-wrapper .row {
    flex-direction: column;
  }

  .news-list-items {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .news-list-items .thumb {
    width: 100%;
    margin-bottom: 20px;
  }

  .news-list-items .content {
    width: 100%;
  }

  .news-list-items .content h3 {
    font-size: 20px !important;
    margin-bottom: 10px;
  }

  .main-sidebar {
    margin-top: 40px;
  }

  .single-sidebar-widget {
    margin-bottom: 30px;
  }

  /* FAQ Section - Mobile */
  .faq-section .faq-wrapper .row {
    flex-direction: column;
  }

  .faq-content-2 {
    margin-bottom: 30px;
    text-align: center;
  }

  .faq-content-2 .section-title {
    text-align: center;
  }

  .faq-content-2 .section-title h2 {
    font-size: 32px !important;
  }

  .faq-client-items {
    margin-top: 30px;
    text-align: center;
  }

  .faq-client-items .client-info {
    justify-content: center;
  }

  .accordion-item {
    margin-bottom: 15px !important;
  }

  .accordion-button {
    font-size: 16px !important;
    padding: 15px 20px !important;
  }

  .accordion-body {
    font-size: 14px !important;
    padding: 15px 20px !important;
  }

  /* Team Section - Mobile */
  .team-section .section-title {
    margin-bottom: 30px;
  }

  .team-section .section-title h2 {
    font-size: 32px !important;
  }

  .team-box-items {
    margin-bottom: 30px;
  }

  .team-content {
    text-align: center;
  }

  .team-content h3 {
    font-size: 20px !important;
  }

  /* Article Page - Mobile */
  .article-content {
    padding: 20px 0;
  }

  .article-content h1 {
    font-size: 28px !important;
    margin-bottom: 20px;
  }

  .article-content h2 {
    font-size: 24px !important;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .article-content h3 {
    font-size: 20px !important;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .article-content img {
    width: 100%;
    height: auto;
    margin: 20px 0;
  }

  .article-content p {
    margin-bottom: 15px;
  }

  /* Page Navigation - Mobile */
  .page-nav-wrap ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .page-nav-wrap .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Extra Small Devices (phones, 575px and down) */
@media (max-width: 575px) {
  /* Body padding adjustment for extra small screens */
  body > main {
    padding-top: 110px !important;
  }

  /* Typography - Extra Small */
  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 22px !important;
  }

  h4 {
    font-size: 20px !important;
  }

  /* Section padding - Extra Small */
  .section-padding {
    padding: 40px 0 !important;
  }

  /* Top Contact Bar - Extra Small */
  .top-contact-bar {
    padding: 8px 0 !important;
  }

  .top-contact-bar .contact-bar-wrapper {
    gap: 8px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .top-contact-bar .contact-info {
    gap: 8px;
    flex-wrap: wrap;
  }

  .top-contact-bar .contact-label {
    font-size: 10px !important;
    display: none; /* Hide label on very small screens to save space */
  }

  .top-contact-bar .contact-item {
    font-size: 10px !important;
    gap: 4px;
    max-width: calc(50% - 4px);
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 3px 0;
  }

  .top-contact-bar .contact-item i {
    font-size: 10px !important;
  }

  .top-contact-bar .social-links {
    gap: 8px;
  }

  .top-contact-bar .social-links .social-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    font-size: 12px !important;
  }

  /* Header - Extra Small */
  .header-main {
    padding: 8px 0 !important;
  }

  .header-main .logo img {
    max-height: 35px !important;
  }

  .header-main .header-button .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    font-size: 16px !important;
  }

  .header-main .sidebar__toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    font-size: 18px !important;
  }

  /* Hero Section - Extra Small */
  /* Override main.css hero-section:first-of-type padding-top: 0 */
  .hero-section:first-of-type,
  section.hero-section:first-of-type,
  .hero-3 {
    padding-top: 120px !important;
    padding-bottom: 30px !important;
    display: block !important;
    align-items: normal !important;
  }

  .hero-3 .hero-content h1 {
    font-size: 28px !important;
  }

  .hero-3 .hero-content p {
    font-size: 14px !important;
  }

  /* Buttons - Extra Small */
  .theme-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Service Box - Extra Small */
  .service-box-items {
    padding: 20px 15px !important;
  }

  .service-box-items .content h3 {
    font-size: 18px !important;
  }

  /* Contact Form - Extra Small */
  .contact-form-items .form-clt input,
  .contact-form-items .form-clt textarea {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  /* Footer - Extra Small */
  .footer-section .single-footer-widget {
    margin-bottom: 25px;
  }

  /* Breadcrumb - Extra Small */
  .breadcrumb-section {
    padding: 60px 0 30px !important;
  }

  .breadcrumb-title {
    font-size: 28px !important;
  }

  .breadcrumb-menu {
    font-size: 12px !important;
    gap: 6px;
  }

  /* Counter - Extra Small */
  .counter-items h2 {
    font-size: 36px !important;
  }

  /* Service Details - Extra Small */
  .service-details-content h2 {
    font-size: 24px !important;
  }

  /* Lets Talk - Extra Small */
  .lets-talk-wrapper h2 {
    font-size: 24px !important;
  }

  /* Blog - Extra Small */
  .news-list-items .content h3 {
    font-size: 18px !important;
  }

  /* FAQ - Extra Small */
  .faq-content-2 .section-title h2 {
    font-size: 28px !important;
  }

  .accordion-button {
    font-size: 14px !important;
    padding: 12px 15px !important;
  }

  /* Team - Extra Small */
  .team-section .section-title h2 {
    font-size: 28px !important;
  }

  .team-content h3 {
    font-size: 18px !important;
  }

  /* About Page - Extra Small */
  .about-wrapper-3 .about-content .section-title h2 {
    font-size: 28px !important;
  }

  .abour-right-items .content-box h3 {
    font-size: 18px !important;
  }

  /* Contact Page - Extra Small */
  .contact-info-section .contact-box-items .content h3 {
    font-size: 16px !important;
  }

  .contact-box-items .icon {
    width: 50px !important;
    height: 50px !important;
    overflow: hidden !important;
  }

  .contact-box-items .icon img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .contact-box-items .icon i {
    font-size: 20px !important;
  }

  .contact-section .contact-content .section-title h2 {
    font-size: 24px !important;
  }

  /* Service Page - Extra Small */
  .service-details-section .service-details-content h2 {
    font-size: 24px !important;
  }

  .service-details-section .service-details-content h4 {
    font-size: 18px !important;
  }

  /* Blog Page - Extra Small */
  .news-list-items .content h3 {
    font-size: 18px !important;
  }

  .single-sidebar-widget .wid-title h3 {
    font-size: 18px !important;
  }

  /* FAQ Page - Extra Small */
  .faq-content-2 .section-title h2 {
    font-size: 28px !important;
  }

  .accordion-button {
    font-size: 14px !important;
    padding: 12px 15px !important;
  }

  /* Article Page - Extra Small */
  .post-featured-thumb {
    height: 200px !important;
  }

  .post-content h2 {
    font-size: 22px !important;
  }

  .post-content h3 {
    font-size: 18px !important;
  }

  .post-content p {
    font-size: 15px !important;
  }

  /* Not Found Page - Extra Small */
  .not-found-title {
    font-size: 60px !important;
  }

  .not-found-subtitle {
    font-size: 20px !important;
  }

  .not-found-text {
    font-size: 14px !important;
  }

  .container[style*="minHeight"] h1 {
    font-size: 60px !important;
  }

  .container[style*="minHeight"] h2 {
    font-size: 20px !important;
  }
}

/* Small Devices (landscape phones, 767px and down) */
@media (max-width: 767px) {
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Grid adjustments */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Images - Responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Top Contact Bar - Small Devices */
  .top-contact-bar .contact-info {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-contact-bar .contact-item {
    font-size: 11px !important;
    max-width: none;
    flex: 0 1 auto;
  }

  /* Header - Small Devices */
  .header-main {
    padding: 10px 0 !important;
  }

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

  .header-main .header-right {
    gap: 10px !important;
  }

  .header-main .header-button .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .header-main .sidebar__toggle {
    width: 38px !important;
    height: 38px !important;
  }

  /* Services Menu Dropdown - Mobile */
  .header-main .main-menu ul li .submenu.services-menu {
    min-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding: 20px 15px !important;
  }

  /* Offcanvas - Mobile */
  .offcanvas__info {
    width: 100% !important;
    max-width: 100% !important;
  }

  .offcanvas__wrapper {
    padding: 20px 15px !important;
  }
}

/* Medium Devices (tablets, 991px and down) */
@media (max-width: 991px) {
  /* Hide desktop menu, show mobile menu */
  .header-main .main-menu {
    display: none !important;
  }

  .meanmenu-reveal {
    display: block !important;
  }

  /* Services dropdown adjustments */
  .header-main .main-menu ul li .submenu.services-menu {
    position: relative !important;
    display: none !important;
    margin-top: 10px;
    padding: 15px !important;
  }

  .header-main .main-menu ul li.services-open .submenu.services-menu {
    display: grid !important;
  }
}

/* Large Devices (desktops, 1199px and down) */
@media (max-width: 1199px) {
  /* Adjustments for smaller desktops */
  .container {
    max-width: 960px;
  }

  /* Hero adjustments */
  .hero-3 .hero-content h1 {
    font-size: 48px !important;
  }
}

/* Utility Classes for Mobile */
@media (max-width: 991px) {
  .d-mobile-none {
    display: none !important;
  }

  .d-mobile-block {
    display: block !important;
  }

  .d-mobile-flex {
    display: flex !important;
  }

  .text-mobile-center {
    text-align: center !important;
  }

  .mb-mobile-20 {
    margin-bottom: 20px !important;
  }

  .mb-mobile-30 {
    margin-bottom: 30px !important;
  }

  .mt-mobile-20 {
    margin-top: 20px !important;
  }

  .mt-mobile-30 {
    margin-top: 30px !important;
  }
}

/* Touch-friendly adjustments */
@media (max-width: 991px) {
  /* Increase touch targets */
  a, button, .theme-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Improve form inputs for mobile */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px 15px !important;
  }

  /* Ensure all images are responsive */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Fix iframe responsiveness */
  iframe,
  .googpemap iframe {
    width: 100% !important;
    height: 300px !important;
    max-width: 100%;
  }

  /* Fix video responsiveness */
  video {
    max-width: 100%;
    height: auto;
  }

  /* Ensure tables are scrollable on mobile */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Additional Page-Specific Mobile Optimizations */
@media (max-width: 991px) {
  /* About Page - Mobile */
  .about-wrapper-3 .row {
    flex-direction: column-reverse;
  }

  .about-wrapper-3 .about-content {
    margin-top: 30px;
    text-align: center;
  }

  .about-wrapper-3 .about-content .section-title {
    text-align: center;
  }

  .about-wrapper-3 .about-content .section-title h2 {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .about-wrapper-3 .about-image {
    margin-bottom: 30px;
  }

  .about-wrapper-3 .about-image img {
    width: 100%;
    height: auto;
  }

  .about-wrapper-2 .section-title-area {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
  }

  .about-wrapper-2 .title-text {
    text-align: center;
  }

  .about-wrapper-2 .title-text p {
    text-align: center;
  }

  .about-wrapper-2 .row {
    flex-direction: column;
  }

  .about-video-image {
    margin-bottom: 30px;
  }

  .about-video-image img {
    width: 100%;
    height: auto;
  }

  .abour-right-items {
    margin-top: 30px;
  }

  .abour-right-items .content-box {
    margin-bottom: 25px;
    padding: 20px;
    text-align: center;
  }

  .abour-right-items .content-box h3 {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  .abour-right-items .content-box p {
    font-size: 14px !important;
  }

  /* Contact Page - Mobile */
  .contact-info-section .row {
    flex-direction: column;
  }

  .contact-info-section .contact-box-items {
    margin-bottom: 25px;
    padding: 25px 20px !important;
  }

  /* Ensure icons are visible and properly sized on mobile */
  .contact-info-section .contact-box-items .icon,
  .contact-box-items .icon {
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .contact-info-section .contact-box-items .icon img,
  .contact-box-items .icon img {
    position: relative !important;
    z-index: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .contact-info-section .contact-box-items .icon {
    margin-bottom: 15px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .contact-info-section .contact-box-items .icon img {
    width: 32px !important;
    height: 32px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .contact-info-section .contact-box-items .icon i {
    font-size: 24px !important;
    color: var(--white) !important;
    display: block !important;
    line-height: 1 !important;
  }

  .contact-info-section .contact-box-items .content h3 {
    font-size: 18px !important;
    margin-bottom: 10px;
  }

  .contact-info-section .contact-box-items .content p {
    font-size: 14px !important;
  }

  .contact-info-section .contact-box-items .icon {
    width: 50px !important;
    height: 50px !important;
    overflow: hidden !important;
  }

  .contact-info-section .contact-box-items .icon img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .contact-info-section .contact-box-items .icon i,
  .contact-box-items .icon i {
    font-size: 20px !important;
  }

  .contact-section .contact-wrapper .row {
    flex-direction: column;
  }

  .contact-section .map-items {
    margin-bottom: 30px;
    height: 300px !important;
  }

  .contact-section .contact-content {
    text-align: center;
  }

  .contact-section .contact-content .section-title {
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-section .contact-content .section-title h2 {
    font-size: 28px !important;
  }

  .contact-form-items .row {
    flex-direction: column;
  }

  .contact-form-items .form-clt {
    margin-bottom: 20px;
  }

  .contact-form-items .form-clt span {
    font-size: 14px !important;
    margin-bottom: 8px;
    display: block;
  }

  /* Service Page - Mobile */
  .service-details-section .row {
    flex-direction: column;
  }

  .service-details-section .row[class*="order-lg"] {
    flex-direction: column;
  }

  .service-details-section .service-details-image {
    margin-bottom: 30px;
    order: 1;
  }

  .service-details-section .service-details-image img {
    width: 100%;
    height: auto;
  }

  .service-details-section .service-details-content {
    order: 2;
    text-align: center;
  }

  .service-details-section .service-details-content h2 {
    font-size: 28px !important;
    margin-bottom: 15px;
  }

  .service-details-section .service-details-content h4 {
    font-size: 20px !important;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .service-details-section .service-details-content p {
    font-size: 14px !important;
    margin-bottom: 20px;
  }

  .service-details-section .service-list {
    padding-left: 20px;
    text-align: left;
    margin-bottom: 25px;
  }

  .service-details-section .service-list li {
    font-size: 14px !important;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  /* Team Page - Mobile */
  .team-section .section-title {
    text-align: center;
    margin-bottom: 30px;
  }

  .team-section .section-title h2 {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .team-box-items {
    margin-bottom: 30px;
  }

  .team-box-items .team-image {
    margin-bottom: 20px;
  }

  .team-box-items .team-image img {
    width: 100%;
    height: auto;
  }

  .team-content {
    text-align: center;
  }

  .team-content h3 {
    font-size: 20px !important;
    margin-bottom: 8px;
  }

  .team-content p {
    font-size: 14px !important;
  }

  /* Blog Page - Mobile */
  .news-list-wrapper .row {
    flex-direction: column;
  }

  .news-list-items {
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
  }

  .news-list-items .thumb {
    width: 100%;
    margin-bottom: 20px;
  }

  .news-list-items .thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .news-list-items .content {
    width: 100%;
  }

  .news-list-items .content .author-name {
    font-size: 13px !important;
    margin-bottom: 8px;
  }

  .news-list-items .content span {
    font-size: 12px !important;
    display: block;
    margin-bottom: 12px;
  }

  .news-list-items .content h3 {
    font-size: 20px !important;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .news-list-items .content p {
    font-size: 14px !important;
    margin-bottom: 15px;
    line-height: 1.6;
  }

  .news-list-items .news-btn {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .main-sidebar {
    margin-top: 40px;
  }

  .single-sidebar-widget {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
  }

  .single-sidebar-widget .wid-title h3 {
    font-size: 20px !important;
    margin-bottom: 15px;
  }

  .search-widget form {
    display: flex;
    gap: 10px;
  }

  .search-widget input {
    flex: 1;
    padding: 12px 15px !important;
    font-size: 14px !important;
  }

  .search-widget button {
    padding: 12px 20px !important;
    min-width: 50px;
  }

  .news-widget-categories ul li {
    padding: 12px 0;
    font-size: 14px !important;
  }

  .recent-post-area .recent-items {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .recent-post-area .recent-items:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .recent-post-area .recent-thumb {
    flex-shrink: 0;
    width: 80px;
  }

  .recent-post-area .recent-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .recent-post-area .recent-content {
    flex: 1;
  }

  .recent-post-area .recent-content span {
    font-size: 12px !important;
    display: block;
    margin-bottom: 8px;
  }

  .recent-post-area .recent-content h6 {
    font-size: 14px !important;
    line-height: 1.4;
  }

  .page-nav-wrap ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .page-nav-wrap .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
  }

  /* FAQ Page - Mobile */
  .faq-wrapper .row {
    flex-direction: column;
  }

  .faq-content-2 {
    margin-bottom: 30px;
    text-align: center;
  }

  .faq-content-2 .section-title {
    text-align: center;
  }

  .faq-content-2 .section-title h2 {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .faq-content-2 .section-title p {
    font-size: 14px !important;
    margin-top: 15px;
  }

  .faq-client-items {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
  }

  .faq-client-items .client-info {
    justify-content: center;
    margin-bottom: 15px;
  }

  .faq-client-items .client-info img {
    width: 60px;
    height: 60px;
  }

  .faq-client-items .client-info .content h4 {
    font-size: 16px !important;
  }

  .faq-client-items .client-info .content span {
    font-size: 12px !important;
  }

  .faq-client-items p {
    font-size: 14px !important;
    line-height: 1.6;
    font-style: italic;
  }

  .faq-content {
    width: 100%;
  }

  .accordion-item {
    margin-bottom: 15px !important;
  }

  .accordion-button {
    font-size: 16px !important;
    padding: 15px 20px !important;
    text-align: left;
    line-height: 1.5;
  }

  .accordion-body {
    font-size: 14px !important;
    padding: 15px 20px !important;
    line-height: 1.6;
  }

  /* Article Page - Mobile */
  .news-details-section .row {
    flex-direction: column;
  }

  .blog-post-details {
    margin-bottom: 30px;
  }

  .post-featured-thumb {
    height: 250px !important;
    margin-bottom: 25px;
    border-radius: 8px;
  }

  .post-author-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 25px !important;
  }

  .post-author-info > div:first-child {
    padding-right: 0 !important;
  }

  .post-author-info img {
    width: 60px !important;
    height: 60px !important;
  }

  .post-author-info h4 {
    font-size: 18px !important;
  }

  .post-author-info p {
    font-size: 13px !important;
  }

  .post-content {
    font-size: 16px !important;
    line-height: 1.8;
  }

  .post-content h2 {
    font-size: 24px !important;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .post-content h3 {
    font-size: 20px !important;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .post-content p {
    font-size: 16px !important;
    margin-bottom: 20px;
    line-height: 1.8;
  }

  .post-content img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
  }

  .main-sidebar {
    margin-top: 40px;
  }

  /* Not Found Page - Mobile */
  .not-found-page {
    padding: 60px 20px !important;
    min-height: 50vh !important;
  }

  .not-found-title {
    font-size: 80px !important;
    margin-bottom: 15px !important;
    line-height: 1;
  }

  .not-found-subtitle {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }

  .not-found-text {
    font-size: 16px !important;
    margin-bottom: 30px !important;
    padding: 0 10px;
  }

  .container[style*="minHeight"] {
    padding: 60px 20px !important;
    min-height: 50vh !important;
  }

  .container[style*="minHeight"] h1 {
    font-size: 80px !important;
    margin-bottom: 15px !important;
  }

  .container[style*="minHeight"] h2 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }

  .container[style*="minHeight"] p {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 991px) and (orientation: landscape) {
  /* Override main.css hero-section:first-of-type padding-top: 0 */
  .hero-section:first-of-type,
  section.hero-section:first-of-type,
  .hero-3 {
    min-height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 30px !important;
    display: block !important;
    align-items: normal !important;
  }

  .section-padding {
    padding: 40px 0 !important;
  }
}
