* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', Arial, sans-serif; 
    background-color: #0E5491;
    color: white;
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/*background image*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/world-map-new.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
    opacity: 1;
    z-index: -1;
}

@media (max-width: 1024px) {
    body {
        height: auto !important;
        overflow: auto !important;
        min-height: 100vh;
        display: block;
    }
}

.header {
    padding: 50px 0 80px 0;
    flex-shrink: 0;
}

.logo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 180px;
}

.logo-image {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.main-content {
    flex: 1;
    display: flex;
    padding: 0 180px 20px 180px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    gap: 100px;
}

.left-section {
    width: 200px;
    flex-shrink: 0;
}

.company-title {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.welcome-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 36px 0 18px;
    font-weight: bold;
    opacity: 1;
}

.navigation-text {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.95;
}

.right-section {
    flex: 1;
    /*flex: 0 1 auto;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.africa-section {
    margin-bottom: 20px;
}

.africa-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.africa-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.africa-item:hover {
    transform: translateY(-2px);
}

.africa-image {
    width: 70%;
    height: 120px;
    border-radius: 6px;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.africa-content {
    flex: 1;
}

.africa-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: white;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.africa-name:hover {
    opacity: 0.8;
}

.africa-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.africa-link:hover {
    border-bottom-color: #ffd700;
}

.worldwide-section {
    /*flex: 1;*/
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: white;
}

.worldwide-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 60px;
    /*flex: 1;*/
    overflow-y: auto;
    padding-right: 0;
    /*min-height: 0;*/
}

.worldwide-item {
    padding: 0 0 8px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: block;
}

.worldwide-item:hover {
    /*padding-left: 8px;*/
    padding-bottom: 8px;
    border-radius: 4px;
}

/* Remove border from last two items (Rottwell and Thailand) on desktop only */
@media (min-width: 1025px) {
    .worldwide-item:nth-last-child(1),
    .worldwide-item:nth-last-child(2) {
        border-bottom: none;
        padding-bottom: 0; /* Remove the padding from the last row on desktop */
    }
}

.worldwide-name {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.3;
}

.worldwide-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.8rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    display: inline-block;
    margin-bottom: 0;
}

.worldwide-link:hover {
    border-bottom-color: #ffd700;
}

/* Custom scrollbar */
.worldwide-list::-webkit-scrollbar {
    width: 5px;
}

.worldwide-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.worldwide-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.worldwide-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.footer {
    background: #1e4a7a;
    padding: 15px 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, 
        #eb7212 0%, 
        #eb7212 33.33%, 
        #58ab74 33.33%, 
        #58ab74 66.66%, 
        #aa3d7e 66.66%, 
        #aa3d7e 100%);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    body {
        overflow: visible;
    }

    .header {
        padding: 30px 40px;
    }

    .logo-container {
        padding: 0;
    }

    .main-content {
        flex-direction: column;
        padding: 0 40px 30px 40px;
        overflow: visible;
        gap: 30px;
    }

    .left-section {
        width: 100%;
    }

    .right-section {
        overflow: visible;
    }

    .africa-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .africa-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .africa-image {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .worldwide-list {
        grid-template-columns: 1fr;
        overflow-y: visible;
    }

    /* Remove border from last item (Thailand) on mobile only */
    .worldwide-item:nth-last-child(1) {
        border-bottom: none;
    }

    .worldwide-section {
        flex: none;
        display: block;
    }
    
    .worldwide-item {
        padding: 0 0 8px 0;
    }

    .footer {
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 30px;
    }

    .main-content {
        padding: 0 30px 20px 30px;
        gap: 20px;
    }

    .company-title {
        font-size: 2.2rem;
    }

    .africa-image {
        width: 100px;
        height: 100px;
    }
    
    .worldwide-item {
        padding: 0;
    }

    .footer {
        padding: 15px 30px;
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
    }

    .main-content {
        padding: 0 20px 15px 20px;
    }

    .logo-image {
        max-height: 60px;
    }

    .company-title {
        font-size: 1.8rem;
    }

    .welcome-text {
        font-size: 0.9rem;
    }

    .navigation-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .africa-image {
        width: 80px;
        height: 80px;
    }
    
    .worldwide-item {
        padding: 0;
    }

    .footer {
        padding: 15px 20px;
    }
}