html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.header-flag-area {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}
.header-flag-img {
    max-width: 360px;
    max-height: 200px;
}
@media (max-width: 768px) {
    .header-flag-area {
        display: none;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .logo-img, .logo-svg {
        width: 90px;
        height: 90px;
    }
    .logo-text h1 {
        font-size: 19px;
        line-height: 1.7;
    }
    .logo-text p {
        font-size: 13px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -272px;
        width: 272px;
        height: 100vh;
        background: #0a1929;
        transition: right 0.3s;
        z-index: 1001;
        overflow-y: auto;
        border-left: 1px solid #1a3347;
    }
    .main-nav.open {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-link {
        color: #8a9bb0;
        border-bottom: 1px solid #1a2a3a;
        padding: 14px 18px;
        font-size: 14px;
    }
    .nav-link:hover::after {
        display: none;
    }
    .nav-link:hover {
        background: #152232;
    }
    .mdf-alert-bar {
        font-size: 13px !important;
        padding: 0 8px;
    }
    .hero-slider {
        height: 230px;
    }
    .slide-placeholder h2 {
        font-size: 15px;
    }
    .slide-placeholder p {
        font-size: 13px;
    }
    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .big-slogan h2 {
        font-size: 17px;
    }
    .big-slogan p {
        font-size: 12px;
        padding: 0 10px;
    }
    .section-header h2 {
        font-size: 16px;
    }
    .trades-grid, .services-grid, .news-grid, .definitions-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
    .trade-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .trade-info h3 {
        font-size: 14px;
    }
    .trade-info p {
        font-size: 13px;
    }
    .service-card h3 {
        font-size: 14px;
    }
    .service-card p {
        font-size: 13px;
    }
    .news-info h3 {
        font-size: 14px;
    }
    .news-info p {
        font-size: 13px;
    }
    .board-card {
        width: 145px;
        padding: 16px 10px;
    }
    .board-image {
        width: 95px;
        height: 95px;
    }
    .members-table {
        min-width: 620px;
    }
    .mini-page {
        padding: 12px;
    }
    .mini-page-content {
        max-height: 88vh;
    }
    .mini-page-header-img {
        width: 100% !important;
        margin: 0 0 14px 0 !important;
        height: 150px;
        border-radius: 0;
    }
    .mini-page-text {
        padding: 18px;
    }
    .mini-page-text h3 {
        font-size: 16px;
    }
    .mini-page-summary {
        font-size: 13px;
    }
    .mini-page-body {
        font-size: 13.5px;
    }
    .mini-page-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .complaint-form, .track-form {
        padding: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group input, .form-group textarea, .form-group select {
        font-size: 14px;
    }
    .attachments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-col p {
        font-size: 13.5px;
    }
    .footer-col ul li a {
        font-size: 13.5px;
    }
    .footer-bottom {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .logo-img, .logo-svg {
        width: 72px;
        height: 72px;
    }
    .logo-text h1 {
        font-size: 15px;
    }
    .logo-text p {
        font-size: 11.5px;
    }
    .hero-slider {
        height: 190px;
    }
    .slide-placeholder h2 {
        font-size: 13px;
    }
    .section-header h2 {
        font-size: 14px;
    }
    .big-slogan h2 {
        font-size: 15px;
    }
    .mdf-alert-bar {
        font-size: 12px !important;
    }
    .trade-image, .news-image {
        height: 145px;
    }
    .board-card {
        width: 120px;
    }
    .board-image {
        width: 75px;
        height: 75px;
    }
    .mini-page-header-img {
        height: 130px;
    }
    .mini-page-text {
        padding: 14px;
    }
    .mini-page-text h3 {
        font-size: 15px;
    }
    .mini-page-body {
        font-size: 13px;
    }
    .attachments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        font-size: 11px;
    }
}