* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    /*margin: 0 auto 0 5%;*/ /*to move slightly right*/
    padding: 0 20px;
}


/* MICE Header Content */
.mice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #005AA9;
    width: 100%;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

    .mice-header img {
        width: 80px;
        height: 80px;
        border: 2px solid #005AA9;
        border: none;
        padding: 5px;
    }

    .mice-header h1 {
        font-weight: 700;
        font-size: 2.5rem;
    }

.mice-paragraph {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 40px;
    max-width: 1300px;
}

/* Main Content Grid */
.mice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    width: 90%;
}

.mice-card {
    color: #FFFFFF;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .mice-card p {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 2rem;
    }

    .mice-card ul {
        list-style-type: none;
        padding-left: 0;
        margin: 0;
    }

    .mice-card li {
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.6;
        padding: 5px 0;
        position: relative;
        padding-left: 20px;
    }

        .mice-card li:before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background-color: white;
            border-radius: 50%;
        }

/* Card colors */
.attendees {
    background: #5A8CC3;
    grid-row: span 3;
}

.venue {
    background: #175BA7;
    grid-row: span 2;
}

.vendor {
    background: #3770B0;
    grid-row: span 2;
}

.audio {
    background: #0A4587;
    grid-row: span 1;
}

.visuals {
    background: #07366A;
    grid-row: span 2;
}

/* Technology and Education Section */
.tech-education-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

/* Image Card Styles with Text Overlay */
.image-card {
    position: relative;
    flex: 1;
    max-width: 300px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: transparent;
    transition: transform 0.3s ease;
}

    .image-card:hover {
        transform: scale(1.03);
    }

    .image-card img.main-image {
        width: 100%;
        height: auto;
        display: block;
        opacity: 1;
        transition: filter 0.3s ease;
    }

    .image-card:hover img.main-image {
        filter: brightness(0.9);
    }

/* Button Text Styling */
.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Help Text */
.help-text {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

    .help-text span {
        font-size: 3rem;
        font-weight: 700;
        display: block;
        color: #005AA9;
    }

/* Inquire Now Button - Image with Text */
.inquire-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.inquire-button {
    position: relative;
    max-width: 200px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: transparent;
    transition: transform 0.3s ease;
}

    .inquire-button:hover {
        transform: scale(1.05);
    }

    .inquire-button img {
        width: 100%;
        height: auto;
        display: block;
        opacity: 1;
        transition: filter 0.3s ease;
    }

    .inquire-button:hover img {
        filter: brightness(0.9);
    }

    .inquire-button .button-text {
        font-size: 1.1rem;
    }

.image-card, .inquire-button {
    border-radius: 50px;
    padding: 0;
    overflow: hidden;
    display: block;
}

.button-text .full-text {
    display: block;
}

.button-text .short-text {
    display: none;
}

/* UPDATED: Third container styles - unified and fixed */
.third-container {
    padding: 3rem 0;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -146px;
    margin-left: 27px;
}

.left-third-container, .right-third-container {
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 1rem;
    align-items: center;
    font-weight: 400;
    width: 150px;
    height: 40px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.left-third-container {
    background-image: url('../images/assets/5367260 2 (1).png');
    background-size: cover;
    background-position: center;
}

.right-third-container {
    background-image: url('../images/assets/5367260 2 (1).png');
    background-size: cover;
    background-position: center;
    margin-right: 70px;
}

    .left-third-container:hover, .right-third-container:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

.middle-third-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    position: relative;
}

.sub-middle-third-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    color: #005AA9;
    text-align: center;
    width: 100%;
    max-width: 450px;
    padding-top: 88px
}

    .sub-middle-third-container h2 {
        font-weight: 300;
        font-size: 2.5rem;
        margin: 0;
        white-space: nowrap;
        position: relative; /* Add this */
        top: 50px; /* Move down by this amount */
    }

    .sub-middle-third-container h1 {
        font-size: 3.75rem;
        font-weight: 600;
        color: #005AA9;
        margin: 0 0 1rem 0;
        white-space: nowrap;
        position: relative; /* Add this */
        top: 50px; /* Move down by this amount */
    }

.middle-third-container-img {
    position: relative; /* Add this */
    top: 50px; /* Move down by this amount */
    background-color: #005AA9;
    background-image: url('../images/assets/5367260 1 (3).png');
    background-size: cover;
    background-position: center;
    width: 170px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

    .middle-third-container-img:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

.left-third-container div, .right-third-container div {
    font-weight: 500;
}

/* Navigation buttons - always parallel */
.nav-buttons-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 1rem;
    padding: 0 5%;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .image-card, .inquire-button {
        max-width: 280px;
    }

    .inquire-button {
        max-width: 180px;
    }
}

@media (max-width: 1200px) {
    .image-card, .inquire-button {
        max-width: 250px;
    }

    .inquire-button {
        max-width: 170px;
    }

    .third-container {
        margin-top: -120px;
        margin-left: 20px;
    }
    .sub-middle-third-container {
        padding-top: 88px; /* Keep original padding for large screens */
    }
    .sub-middle-third-container h2 {
        font-size: 2.2rem;
    }

    .sub-middle-third-container h1 {
        font-size: 3.2rem;
    }

    .right-third-container {
        margin-right: 50px;
    }
}
/* Medium desktop screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .sub-middle-third-container {
        padding-top: 80px; /* Slightly reduced for medium desktop */
    }
}

/* Small desktop and tablet landscape (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .sub-middle-third-container {
        padding-top: 70px; /* Further reduced for small desktop/tablet landscape */
    }
}

/* Tablet portrait (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .sub-middle-third-container {
        padding-top: 60px; /* Reduced for tablet portrait */
    }
}

/* Mobile landscape (481px to 575px) */
@media (max-width: 575px) and (min-width: 481px) {
    .sub-middle-third-container {
        padding-top: 50px; /* Reduced for mobile landscape */
    }
}

/* Mobile portrait (361px to 480px) */
@media (max-width: 480px) and (min-width: 361px) {
    .sub-middle-third-container {
        padding-top: 40px; /* Reduced for mobile portrait */
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .sub-middle-third-container {
        padding-top: 30px; /* Minimized for very small screens */
    }
}

@media (max-width: 1024px) {
    .mice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-education-container {
        justify-content: space-around;
    }

    .image-card, .inquire-button {
        max-width: 220px;
    }

    .button-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .third-container {
        margin-top: -100px;
        margin-left: 15px;
        width: 95%;
    }

    .sub-middle-third-container h2 {
        font-size: 1.8rem;
    }

    .sub-middle-third-container h1 {
        font-size: 2.5rem;
    }

    .middle-third-container-img {
        width: 150px;
        height: 40px;
    }

    .right-third-container {
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    .mice-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
    }

        .mice-header img {
            width: 45px;
            height: 45px;
        }

    .mice-paragraph {
        font-size: 1.1rem;
    }

    .mice-grid {
        grid-template-columns: 1fr;
    }

    .mice-card {
        grid-row: span 1 !important;
    }

        .mice-card p {
            font-size: 1.5rem;
        }

        .mice-card li {
            font-size: 1.1rem;
        }

    .tech-education-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .image-card {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .inquire-button {
        max-width: 160px;
    }

    .button-text {
        font-size: 1.2rem;
    }

    .help-text {
        font-size: 1.6rem;
    }

        .help-text span {
            font-size: 2.2rem;
        }

    /* Override the column layout from original code, keep as row */
    .third-container {
        flex-direction: row !important;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 1.5rem 0;
        justify-content: space-between;
        align-items: center;
    }
 

    .sub-middle-third-container {
        max-width: 300px;
    }

        .sub-middle-third-container h2 {
            font-size: 1.25rem;
        }

        .sub-middle-third-container h1 {
            font-size: 1.75rem;
        }

    .middle-third-container-img {
        width: 130px;
        height: 35px;
        font-size: 0.8rem;
    }

    .left-third-container, .right-third-container {
        width: 120px;
        height: 35px;
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .right-third-container {
        margin-right: 0;
    }

    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .first-container-headline {
        width: 90%;
        padding: 1.5rem 0 1rem 0;
    }

    .first-container-para {
        width: 90%;
        padding: 0 0 1.5rem 0;
    }

    /* UPDATED: Change to two rows ONLY on small screens */
    .exibitionmaindiv {
        flex-direction: column;
    }

    .design-mainlogo {
        width: 100%;
        max-height: 350px;
    }

    .exibitionmaincontentdiv {
        width: 100%;
        padding: 1.5rem;
    }

    /* Keep the navigation buttons parallel */
    .nav-buttons-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 5%;
    }
}

@media (max-width: 576px) {
    .mice-header h1 {
        font-size: 2rem;
    }

    .mice-header img {
        width: 40px;
        height: 40px;
    }

    .tech-education-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .image-card {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .inquire-button {
        max-width: 150px;
    }

    .button-text {
        font-size: 1rem;
    }

    .third-container {
        padding: 1.5rem 0;
        justify-content: space-between;
        gap: 10px;
    }

    .sub-middle-third-container {
        max-width: 220px;
    }

        .sub-middle-third-container h2 {
            font-size: 1.2rem;
        }

        .sub-middle-third-container h1 {
            font-size: 1.6rem;
        }

    .middle-third-container-img {
        width: 120px;
        height: 32px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .left-third-container, .right-third-container {
        width: 110px;
        height: 32px;
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .mice-header h1 {
        font-size: 1.8rem;
    }

    .mice-header img {
        width: 35px;
    }

    .mice-paragraph {
        font-size: 1rem;
    }

    .mice-card p {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .mice-card li {
        font-size: 1rem;
        line-height: 1.4;
    }

    .tech-education-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .image-card {
        flex: 0 0 48%;
        max-width: 48%;
        height: 50px;
        aspect-ratio: 1/1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
    }

    .help-text {
        font-size: 1.4rem;
    }

        .help-text span {
            font-size: 1.8rem;
        }

    .button-text {
        font-size: 0.9rem;
        width: 90%;
    }

        .button-text .full-text {
            display: none;
        }

        .button-text .short-text {
            display: block;
        }

    .third-container {
        padding: 1rem 0;
        gap: 5px;
        flex-direction: row !important;
    }

    .sub-middle-third-container {
        max-width: 180px;
    }

        .sub-middle-third-container h2 {
            font-size: 0.9rem !important;
            white-space: nowrap !important;
        }

        .sub-middle-third-container h1 {
            font-size: 1.2rem !important;
            margin-bottom: 0.5rem;
            white-space: nowrap !important;
        }

    .middle-third-container-img {
        width: 100px;
        height: 30px;
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .left-third-container, .right-third-container {
        width: 90px;
        height: 30px;
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        margin-right: 0;
    }

    .first-container-headline h1 {
        font-size: 1.5rem;
    }

    .exibitionnmainheading {
        font-size: 1.2rem;
    }

    .exibitionmaincontentdiv {
        padding: 1rem;
    }

        .exibitionmaincontentdiv ul {
            padding-left: 1rem;
        }

        .exibitionmaincontentdiv li {
            font-size: 0.85rem;
        }
}

@media (max-width: 360px) {
    .mice-header h1 {
        font-size: 1.6rem;
    }

    .mice-header img {
        width: 30px;
        height: 30px;
    }

    .mice-paragraph {
        font-size: 0.9rem;
    }

    .mice-card p {
        font-size: 1.2rem;
    }

    .mice-card li {
        font-size: 0.9rem;
    }

    .tech-education-container {
        gap: 8px;
    }

    .help-text {
        font-size: 1.2rem;
    }

        .help-text span {
            font-size: 1.6rem;
        }

    .button-text {
        font-size: 0.8rem;
        width: 85%;
    }

    .third-container {
        gap: 2px;
    }

    .sub-middle-third-container {
        max-width: 140px;
    }

        .sub-middle-third-container h2 {
            font-size: 0.8rem !important;
        }

        .sub-middle-third-container h1 {
            font-size: 1rem !important;
            margin-bottom: 0.4rem;
        }

    .middle-third-container-img {
        width: 90px;
        height: 28px;
        font-size: 0.65rem;
    }

    .left-third-container, .right-third-container {
        width: 80px;
        height: 28px;
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }

        .left-third-container span, .right-third-container span {
            font-size: 0.65rem;
        }
}
