* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'SolaimanLipi', sans-serif;
    background-color: #f5f5f5;
    font-size: 14px;
}
img{
    width: 100%;
}
.container {
    max-width: 1050px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    padding: 0 30px;
}

/* Header */
.top-header {
    background: linear-gradient(90deg, #8B4B9D, #6B2C91);
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 4px solid #8bc643;
}

.search-area {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-input {
    padding: 3px 8px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
}

.search-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    padding: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}
ul.nav-list li {
border-right: 1px dotted #ccc;
border-bottom: 1px dotted #ccc;
}
.nav-list li a {
    display: block;
    padding: 12px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.nav-list li a svg{
    fill:black;
    color: #000;
}
.nav-list li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 680px;
    max-width: 680px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0;
    padding: 15px;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border-top: 4px solid #84154d;
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown:hover > a {
    background-color: #84154d !important;
    color: white !important;
}

/* Special styling for জেলা প্রশাসন dropdown */
.dropdown:nth-child(4) .dropdown-content {
    border-top: 4px solid #098346;
}

.dropdown:nth-child(4):hover > a {
    background-color: #098346 !important;
    color: white !important;
}

/* Special styling for সরকারি অফিস dropdown */
.dropdown:nth-child(5) .dropdown-content {
    border-top: 4px solid #1399be;
}

.dropdown:nth-child(5):hover > a {
    background-color: #1399be !important;
    color: white !important;
}

/* Special styling for স্থানীয় সরকার dropdown */
.dropdown:nth-child(6) .dropdown-content {
    grid-template-columns: repeat(3, 1fr);
    border-top: 4px solid #8768de;
}

.dropdown:nth-child(6):hover > a {
    background-color: #8768de !important;
    color: white !important;
}

/* Special styling for অন্যান্য প্রতিষ্ঠান dropdown */
.dropdown:nth-child(7) .dropdown-content {
    width: 340px;
    max-width: 340px;
    border-top: 4px solid #333;
}

.dropdown:nth-child(7):hover > a {
    background-color: #333 !important;
    color: white !important;
}

/* Special styling for ই-সেবা dropdown */
.dropdown:nth-child(8) .dropdown-content {
    grid-template-columns: repeat(3, 1fr);
    width: 340px;
    max-width: 340px;
    border-top: 4px solid #666;
}

.dropdown:nth-child(8):hover > a {
    background-color: #666 !important;
    color: white !important;
}

/* Special styling for জাতীয় সংগীত dropdown */
.dropdown:nth-child(9) .dropdown-content {
    grid-template-columns: 1fr;
    width: 150px;
    max-width: 150px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(9):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Special styling for জেলা প্রশাসনের কার্যক্রম dropdown */
.dropdown:nth-child(10) .dropdown-content {
    grid-template-columns: 1fr;
    width: 200px;
    max-width: 200px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(10):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Special styling for সর্বজনীন পেনশন স্কিম dropdown */
.dropdown:nth-child(11) .dropdown-content {
    grid-template-columns: 1fr;
    width: 250px;
    max-width: 250px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(11):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Special styling for মা ও শিশু কর্ণার dropdown */
.dropdown:nth-child(12) .dropdown-content {
    grid-template-columns: 1fr;
    width: 300px;
    max-width: 300px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(12):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Special styling for তারুণ্যের উৎসব ২০২৫ dropdown */
.dropdown:nth-child(13) .dropdown-content {
    grid-template-columns: 1fr;
    width: 200px;
    max-width: 200px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(13):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Special styling for জুলাই গণঅভ্যুত্থান dropdown */
.dropdown:nth-child(14) .dropdown-content {
    grid-template-columns: 1fr;
    width: 250px;
    max-width: 250px;
    border-top: 4px solid #333333;
}

.dropdown:nth-child(14):hover > a {
    background-color: #333333 !important;
    color: white !important;
}

/* Force the last 3 columns to the second row */
.dropdown:nth-child(4) .dropdown-column:nth-child(n+6) {
    grid-column: span 1;
}

.dropdown:nth-child(4) .dropdown-column:nth-child(5) {
    grid-column: 1;
}

.dropdown:nth-child(4) .dropdown-column:nth-child(6) {
    grid-column: 2;
}

.dropdown:nth-child(4) .dropdown-column:nth-child(7) {
    grid-column: 3;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 0;
}

.left-content {
    flex: 2;
    padding: 20px;
}

.right-sidebar {
    flex: 1;
    background: #f8f9fa;
    padding: 0;
}

/* Notice Board Style */
.notice-section {
    background: white;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.notice-header {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.notice-icon {
    width: 28px;
    height: 28px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.notice-content {
    padding: 15px 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-bullet {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6px;
    font-weight: bold;
}

.notice-text {
    color: #333;
    line-height: 1.5;
    font-size: 13px;
}
.notice-text a{
    text-decoration: none;
    color: #272727;
}
.notice-text a:hover{
    color: #41cc8b;
}
.notice-footer {
    text-align: right;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.notice-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

/* News Footer Bar */
.news-footer-bar {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.news-all {
    color: #333;
    font-size: 14px;
}

/* New Service Cards Grid - 6 Cards */
.new-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.service-card {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-title {
    color: #333;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.card-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.card-info li {
    font-size: 13px;
    color: #333;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.card-info li:last-child {
    margin-bottom: 0;
}

.card-info li:before {
    content: "▶";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-size: 10px;
}

/* Video and Map Section */
.video-map-section {
    display: flex;
    gap: 0;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container {
    flex: 1;
    background: #000;
    border-radius: 8px 0 0 8px;
    height: 350px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.map-container {
    flex: 1;
    height: 350px;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.map-container iframe {
    border-radius: 0 8px 8px 0;
}

/* Service Cards Grid (keeping old styles for reference) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.service-card {
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background-color: #f5f5f5;
    box-shadow: 1px 1px 1px 1px #ccc;
    border: 1px solid #ccc;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #8B4B9D, #6B2C91);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.service-title {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 3px 0;
    font-size: 12px;
    color: #666;
    position: relative;
    padding-left: 15px;
}

.service-list li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

/* Right Sidebar */
.sidebar-section {
    background: white;
    margin-bottom: 1px;
}

.sidebar-header {
    background: #609513;
    text-align: center;
    color: white;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}

.sidebar-content {
    padding: 15px;
}

.dc-profile {
    text-align: center;
}

.dc-photo {
    width: 250px;
    height: auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 140"><rect width="120" height="140" fill="%23E0E0E0"/><circle cx="60" cy="50" r="25" fill="%23BDBDBD"/><ellipse cx="60" cy="110" rx="30" ry="40" fill="%23BDBDBD"/></svg>') no-repeat center;
    background-size: cover;
    margin: 0 auto 10px;
    border: 2px solid #ddd;
}

.dc-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.dc-title {
    color: #666;
    font-size: 12px;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links a:hover {
    color: #4CAF50;
}

.quick-links a:before {
    content: "▶";
    color: #4CAF50;
    font-size: 8px;
}

/* Hotline Numbers */
.hotline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
}

.hotline-icon {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* Social Media & Apps */
.app-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.facebook { background: #1877F2; }
.youtube { background: #FF0000; }

/* Footer */
.footer {
    background: #f5f5f5;
    color: #333;
    padding: 0;
    font-size: 12px;
    margin-top: 30px;
}

.footer-top-bar {
    height: 60px;
    background: url('https://file-khulna.portal.gov.bd/media/central/themes/theme-default/img/footer_top_bg.png') no-repeat center;
    background-size: cover;
    width: 100%;
    position: relative;
}

.footer-top-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 30px;
}

.footer-left {
    flex: 1;
}

.footer-left p {
    margin: 0;
    color: #333;
    font-size: 12px;
}

.footer-right {
    flex: 2;
    text-align: left;
}

.planning-text {
    margin-bottom: 10px;
    color: #333;
    font-size: 12px;
    text-align: right;
}

.technical-support {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.technical-support span {
    color: #333;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.footer-logos {
    display: flex;
    align-items: center;
}

.all-logos {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Video Section */
.video-section {
    margin: 20px 0;
    text-align: center;
}

.video-frame {
    width: 100%;
    max-width: 400px;
    height: 225px;
    background: #000;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

/* Maps Section */
.maps-section {
    margin: 20px 0;
}

.map-frame {
    width: 100%;
    height: 200px;
    background: #E8F5E8;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .banner-section {
        height: auto;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .search-area {
        flex-wrap: wrap;
    }
}

.dropdown:nth-child(7):hover > a {
    background-color: #333 !important;
    color: white !important;
}

.dropdown-column h4 {
    color: #84154d;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #84154d;
}

.dropdown-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-column ul li {
    margin-bottom: 8px;
}

.dropdown-column ul li a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
    display: block;
    transition: color 0.3s;
}

.dropdown-column ul li a:hover {
    color: #84154d;
    padding-left: 5px;
}

/* Ensure dropdown appears above other content */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Image Carousel Styles */
.image-carousel {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
}

.carousel-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ddd;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}












.carousel {
    position: relative;
    width: 100%;      
    overflow: hidden;
  }

  .carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;    
    height: 242px;     
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .carousel img.active {
    opacity: 1;
    position: relative; 
  }
  .carousel-overlay{
      position: absolute;
      top: 60px;
      left: 40px;
      display: flex;
      justify-content: start;
      align-items: center;
      gap: 20px;
  }
  .carousel-overlay h2{
      color: #ffffff;
      text-shadow: 3px 3px 10px black;
  }
      .carousel-overlay h2:hover{
          text-decoration: underline;
      }

/* ===== RESPONSIVE DESIGN ===== */

/* Large Mobile Devices (480px - 767px) */
@media (max-width: 767px) {
  .container {
      padding: 0 5px !important;
      max-width: 100%;
  }
  
  /* Header Responsive */
  .top-header {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
  }
  
  .search-area {
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
  }
  
  .search-input {
      width: calc(50% - 4px);
      min-width: 120px;
      font-size: 12px;
      padding: 6px 8px;
  }
  
  /* Navigation Responsive */
  .nav-list {
      flex-direction: column;
      width: 100%;
  }
  
  .nav-list li {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #e0e0e0;
  }
  
  .nav-list li a {
      padding: 15px 20px;
      font-size: 14px;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  /* Dropdown Responsive */
  .dropdown-content {
      position: static;
      width: 100%;
      max-width: 100%;
      display: none;
      box-shadow: none;
      border: 1px solid #e0e0e0;
      margin-top: 5px;
      padding: 15px;
      grid-template-columns: 1fr;
  }
  
  .dropdown:hover .dropdown-content {
      display: block;
  }
  
  .dropdown-column {
      margin-bottom: 20px;
  }
  
  .dropdown-column h4 {
      font-size: 13px;
      margin-bottom: 10px;
  }
  
  .dropdown-column ul li a {
      font-size: 12px;
      padding: 5px 0;
  }
  
  /* Main Layout Responsive */
  .main-layout {
      flex-direction: column;
      gap: 20px;
  }
  
  .left-content {
      padding: 15px;
  }
  
  .right-sidebar {
      padding: 0;
  }
  
       /* Service Cards Responsive */
   .new-services-grid {
       grid-template-columns: 1fr !important;
       gap: 15px;
   }
  
  .service-card {
      padding: 15px;
  }
  
  .card-title {
      font-size: 14px;
      margin-bottom: 12px;
  }
  
  .card-info {
      flex-direction: row;
      gap: 12px;
      text-align: center;
  }
  
  .card-info img {
      width: 60px;
      height: 60px;
      margin: 0 auto;
  }
  
  .card-info ul {
      text-align: left;
  }
  
  .card-info li {
      font-size: 12px;
      margin-bottom: 6px;
  }
  
       /* Video Map Section Responsive */
   .video-map-section {
       flex-direction: column;
       gap: 15px;
       margin: 20px 0;
   }
   
   .video-container,
   .map-container {
       height: 350px !important;
       border-radius: 8px;
   }
  
  .video-container {
      border-radius: 8px 8px 0 0;
  }
  
  .map-container {
      border-radius: 0 0 8px 8px;
  }
  
  /* Notice Section Responsive */
  .notice-header {
      padding: 10px 15px;
      font-size: 14px;
  }
  
  .notice-content {
      padding: 12px 15px;
  }
  
  .notice-item {
      gap: 10px;
      padding: 6px 0;
  }
  
  .notice-text {
      font-size: 12px;
      line-height: 1.4;
  }
  
  /* Sidebar Responsive */
  .sidebar-section {
      margin-bottom: 15px;
  }
  
  .sidebar-header {
      padding: 12px 15px;
      font-size: 12px;
  }
  
  .sidebar-content {
      padding: 12px 15px;
  }
  
  .dc-photo {
      width: 120px;
      height: 140px;
  }
  
  .dc-name {
      font-size: 13px;
  }
  
  .dc-title {
      font-size: 11px;
  }
  
  .quick-links li {
      padding: 6px 0;
  }
  
  .quick-links a {
      font-size: 11px;
  }
  
  /* Footer Responsive */
  .footer-content {
      flex-direction: column;
      gap: 15px;
      padding: 15px;
      text-align: center;
  }
  
  .footer-left p {
      font-size: 11px;
  }
  
  .planning-text {
      font-size: 11px;
      text-align: center;
      margin-bottom: 8px;
  }
  
  .technical-support {
      flex-direction: column;
      gap: 8px;
      align-items: center;
  }
  .technical-support span {
      font-size: 11px;
  }
  
  .all-logos {
      height: 40px;
  }
  
       /* Carousel Responsive */
   .carousel img {
       height: 180px;
   }
   
   .carousel-overlay {
       position: absolute !important;
       top: 150px !important;
       left: 35px !important;
       gap: 15px;
       flex-direction: row;
       align-items: center;
       z-index: 10 !important;
   }
  
  .carousel-overlay img {
      width: 60px;
      height: auto;
  }
  
  .carousel-overlay h2 {
      font-size: 18px;
      margin: 0;
  }
  
  /* Image Carousel Responsive */
  .image-carousel {
      height: 120px;
  }
  
  /* App Icons Responsive */
  .app-icons {
      justify-content: center;
      gap: 15px;
  }
  
  .app-icon {
      width: 35px;
      height: 35px;
      font-size: 11px;
  }
}

/* Small Mobile Devices (320px - 479px) */
@media (max-width: 479px) {
  .container {
      padding: 0 10px;
  }
  
  /* Header Responsive */
  .top-header {
      padding: 8px;
      font-size: 11px;
  }
  
  .search-area {
      gap: 6px;
  }
  
  .search-input {
      width: calc(50% - 3px);
      min-width: 100px;
      font-size: 11px;
      padding: 5px 6px;
  }
  
  .search-btn {
      padding: 5px 6px;
      font-size: 10px;
  }
  
  /* Navigation Responsive */
  .nav-list li a {
      padding: 12px 15px;
      font-size: 13px;
  }
  
  /* Service Cards Responsive */
  .service-card {
      padding: 12px;
  }
  
  .card-title {
      font-size: 13px;
      margin-bottom: 10px;
  }
  
  .card-info img {
      width: 50px;
      height: 50px;
  }
  
  .card-info li {
      font-size: 11px;
      margin-bottom: 5px;
  }
  
       /* Video Map Section Responsive */
   .video-container,
   .map-container {
       height: 350px !important;
   }
  
  /* Notice Section Responsive */
  .notice-header {
      padding: 8px 12px;
      font-size: 13px;
  }
  
  .notice-content {
      padding: 10px 12px;
  }
  
  .notice-text {
      font-size: 11px;
  }
  
  /* Sidebar Responsive */
  .sidebar-header {
      padding: 10px 12px;
      font-size: 11px;
  }
  
  .sidebar-content {
      padding: 10px 12px;
  }
  
  .dc-photo {
      width: 100px;
      height: 120px;
  }
  
  .dc-name {
      font-size: 12px;
  }
  
  .quick-links a {
      font-size: 10px;
  }
  
  /* Footer Responsive */
  .footer-content {
      padding: 12px;
  }
  
  .footer-left p {
      font-size: 10px;
  }
  
  .planning-text {
      font-size: 10px;
  }
  
  .technical-support span {
      font-size: 10px;
  }
  
  .all-logos {
      height: 35px;
  }
  
       /* Carousel Responsive */
   .carousel img {
       height: 150px;
   }
   
   .carousel-overlay {
       position: absolute !important;
       gap: 10px;
       z-index: 10 !important;
   }
  
  .carousel-overlay img {
      width: 50px;
  }
  
  .carousel-overlay h2 {
      font-size: 16px;
  }
  
  /* Image Carousel Responsive */
  .image-carousel {
      height: 100px;
  }
  
  /* App Icons Responsive */
  .app-icon {
      width: 30px;
      height: 30px;
      font-size: 10px;
  }
}

/* Extra Small Mobile Devices (240px - 319px) */
@media (max-width: 319px) {
  .container {
      padding: 0 8px;
  }
  
  /* Header Responsive */
  .top-header {
      padding: 6px;
      font-size: 10px;
  }
  
  .search-input {
      width: 100%;
      margin-bottom: 4px;
  }
  
  /* Navigation Responsive */
  .nav-list li a {
      padding: 10px 12px;
      font-size: 12px;
  }
  
  /* Service Cards Responsive */
  .service-card {
      padding: 10px;
  }
  
  .card-title {
      font-size: 12px;
  }
  
  .card-info img {
      width: 40px;
      height: 40px;
  }
  
  .card-info li {
      font-size: 10px;
  }
  
       /* Video Map Section Responsive */
   .video-container,
   .map-container {
       height: 350px !important;
   }
  
  /* Notice Section Responsive */
  .notice-header {
      padding: 6px 10px;
      font-size: 12px;
  }
  
  .notice-content {
      padding: 8px 10px;
  }
  
  .notice-text {
      font-size: 10px;
  }
  
  /* Sidebar Responsive */
  .sidebar-header {
      padding: 8px 10px;
      font-size: 10px;
  }
  
  .sidebar-content {
      padding: 8px 10px;
  }
  
  .dc-photo {
      width: 80px;
      height: 100px;
  }
  
  .dc-name {
      font-size: 11px;
  }
  
  .quick-links a {
      font-size: 9px;
  }
  
  /* Footer Responsive */
  .footer-content {
      padding: 10px;
  }
  
  .footer-left p {
      font-size: 9px;
  }
  
  .planning-text {
      font-size: 9px;
  }
  
  .technical-support span {
      font-size: 9px;
  }
  
  .all-logos {
      height: 30px;
  }
  
       /* Carousel Responsive */
   .carousel img {
       height: 120px;
   }
   
   .carousel-overlay {
       position: absolute !important;
       top: 20px !important;
       left: 10px !important;
       gap: 8px;
       z-index: 10 !important;
   }
  
  .carousel-overlay img {
      width: 40px;
  }
  
  .carousel-overlay h2 {
      font-size: 14px;
  }
  
  /* Image Carousel Responsive */
  .image-carousel {
      height: 80px;
  }
  
  /* App Icons Responsive */
  .app-icon {
      width: 25px;
      height: 25px;
      font-size: 9px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .carousel img {
      height: 120px;
  }
  
       .carousel-overlay {
       position: absolute !important;
       top: 20px !important;
       left: 20px !important;
       flex-direction: row;
       align-items: center;
       z-index: 10 !important;
   }
  
  .video-map-section {
      flex-direction: row;
      gap: 10px;
  }
  
       .video-container,
   .map-container {
       height: 350px !important;
   }
  
       .new-services-grid {
       grid-template-columns: 1fr !important;
       gap: 10px;
   }
  
  .service-card {
      padding: 10px;
  }
  
  .card-title {
      font-size: 12px;
      margin-bottom: 8px;
  }
  
  .card-info {
      flex-direction: row;
      gap: 8px;
      text-align: left;
  }
  
  .card-info img {
      width: 40px;
      height: 40px;
      margin: 0;
  }
  
  .card-info li {
      font-size: 10px;
      margin-bottom: 3px;
  }
}

/* High DPI Mobile Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .carousel-overlay h2 {
      text-shadow: 2px 2px 6px black;
  }
  
  .service-card {
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .notice-bullet {
      box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-list li a {
      padding: 16px 20px; /* Larger touch targets */
  }
  
  .service-card {
      padding: 16px;
  }
  
  .quick-links a {
      padding: 8px 0;
  }
  
  .app-icon {
      min-width: 44px;
      min-height: 44px;
  }
  
  .search-btn {
      min-width: 44px;
      min-height: 32px;
  }
}

/* Mobile-specific improvements */
.mobile-device .dropdown-content {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
  border: 1px solid #e0e0e0 !important;
  margin-top: 5px !important;
  padding: 15px !important;
  grid-template-columns: 1fr !important;
  display: none !important;
}

.mobile-device .new-services-grid {
  grid-template-columns: 1fr !important;
}

.mobile-device .carousel-overlay {
  position: absolute !important;
  z-index: 10 !important;
}

.mobile-device .dropdown:hover .dropdown-content {
  display: block !important;
}

.mobile-device .nav-list li a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-device .service-card {
  min-height: 44px;
  cursor: pointer;
}

.mobile-device .quick-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Prevent text selection on mobile */
@media (max-width: 767px) {
  * {
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
  }
  
  /* Allow text selection for specific elements */
  .notice-text,
  .card-title,
  .dc-name,
  .dc-title {
      -webkit-user-select: text;
      -moz-user-select: text;
      -ms-user-select: text;
      user-select: text;
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 767px) {
  html {
      scroll-behavior: smooth;
  }
}

/* Optimize images for mobile */
@media (max-width: 767px) {
  img {
      max-width: 100%;
      height: auto;
  }
  
  .carousel img {
      object-fit: cover;
  }
  
  .dc-photo img {
      object-fit: cover;
  }
}

/* Mobile loading optimizations */
@media (max-width: 767px) {
  .service-card {
      will-change: transform;
  }
  
  .carousel img {
      will-change: opacity;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
      .service-card {
          transition: none;
      }
      
      .carousel img {
          transition: none;
      }
      
      .dropdown-content {
          transition: none;
      }
  }
  
  /* Dark mode support for mobile */
  @media (prefers-color-scheme: dark) {
      .service-card {
          background: #2a2a2a;
          color: #ffffff;
      }
      
      .notice-section {
          background: #2a2a2a;
          color: #ffffff;
      }
      
      .sidebar-section {
          background: #2a2a2a;
          color: #ffffff;
      }
  }
}

/* Mobile-specific accessibility improvements */
@media (max-width: 767px) {
  /* Focus indicators for better accessibility */
  .nav-list li a:focus,
  .service-card:focus,
  .quick-links a:focus,
  .app-icon:focus {
      outline: 2px solid #4CAF50;
      outline-offset: 2px;
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
      .service-card {
          border: 2px solid #000000;
      }
      
      .nav-list li {
          border-bottom: 2px solid #000000;
      }
      
      .notice-bullet {
          border: 2px solid #000000;
      }
  }
}

/* Print Styles */
@media print {
  .top-header,
  .main-nav,
  .right-sidebar,
  .footer {
      display: none;
  }
  
  .container {
      max-width: 100%;
      box-shadow: none;
      padding: 0;
  }
  
  .main-layout {
      flex-direction: column;
  }
  
  .left-content {
      padding: 0;
  }
  
  .service-card {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ccc;
  }
}