/* General Body Styles */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F8F8; /* Off-White */
    color: #003366; /* Deep Blue for body text */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #FFFFFF; /* White background for header */
    padding: 1.5em 0 1.5em; /* Increased top and bottom padding for equal spacing */
    border-bottom: 3px solid #FFCC00; /* Sun Yellow accent */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container a {
    line-height: 0; /* Prevent the link from adding extra height */
    display: inline-flex;
    align-items: center;
}

#logo {
    height: 60px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #003366; /* Deep Blue */
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FF6666; /* Coral for hover/active */
}

/* Main Content Styles */
main {
    padding-top: 20px;
}

section {
    padding: 40px 0;
    margin-bottom: 20px;
}

section:nth-child(even) {
    background-color: #FFFFFF; /* Alternate section background */
}

h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Bold */
    color: #003366; /* Deep Blue */
}

h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 0.75em;
    text-align: center;
}

section h2 {
    margin-top:0;
}

p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

ul {
    list-style-position: inside;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

/* Hero Section */
#hero {
    background-color: #66CCCC; /* Teal */
    color: #FFFFFF; /* White text on Teal */
    text-align: center;
    padding: 60px 0;
}

#hero h1 {
    color: #FFFFFF;
    font-size: 3em;
}

#hero h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 1em;
}

#hero p {
    font-size: 1.2em;
    color: #F8F8F8; /* Lighter text for contrast */
}

.cta-button {
    display: inline-block;
    background-color: #FFCC00; /* Sun Yellow */
    color: #003366; /* Deep Blue text */
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #FFB300; /* Darker Yellow */
    transform: translateY(-2px);
}

/* Contact Section */
#contact-info {
    text-align: center;
}

/* Partner Section */
#partners {
    background-color: #f8fbff;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

#partners h2 {
    margin-bottom: 15px;
    position: relative;
}

#partners h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #66CCCC, #FF6666);
    margin: 15px auto 0;
    border-radius: 2px;
}

#partners p {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Partner Logos Section */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

@media (min-width: 769px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

.partner-logo {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 180px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
}

@media (min-width: 769px) {
    .partner-logo {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
}

/* Partner tooltip styles */
.partner-tooltip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    text-align: center;
}

.partner-tooltip:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.partner-logo:hover .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-110%);
}

.partner-tooltip h4 {
    color: #003366;
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
}

.partner-tooltip p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #333;
}

.tooltip-role {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
    color: #66CCCC;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }
.partner-logo:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer Styles */
footer {
    background-color: #003366; /* Deep Blue */
    color: #F8F8F8; /* Off-White text */
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 0.5em;
    color: #F8F8F8;
}

footer img {
    vertical-align: middle;
}

/* Mobile Menu (Hamburger) Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: #003366; /* Deep Blue */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Improved Key Activities Section */
#activities {
    background-color: #f9f9f9;
}

#activities p[data-trans="home.activitiesText"] {
    text-align: center;
    margin-bottom: 30px;
}

.activities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.activity-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    flex: 1 1 calc(33.333% - 40px);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background-color: #66CCCC; /* Teal */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.activity-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.activity-card h3 {
    color: #003366; /* Deep Blue */
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.activity-card p {
    color: #555;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: flex;
    }

    #logo {
        margin-bottom: 0;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #FFFFFF;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 20px;
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2em;
        display: flex;
        align-items: center;
    }

    nav ul li a svg {
        margin-right: 10px;
        width: 20px;
        height: 20px;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Fix for other responsive elements */
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }
    
    #partners {
        padding: 40px 0;
    }

    .partner-logo {
        width: 120px;
        height: 90px;
        padding: 12px;
    }

    .partner-logos {
        gap: 10px;
        margin-top: 20px;
    }

    .partners-more {
        margin-top: 30px;
    }
    
    .btn-partners {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
    .partner-logo {
        width: 110px;
        height: 80px;
        padding: 10px;
    }
    
    .partner-logos {
        gap: 10px;
    }
}

/* Center desktop menu */
@media (min-width: 769px) {
    header .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }
    
    header .container > a {
        position: absolute;
        left: 20px;
    }
    
    nav {
        display: flex;
        justify-content: flex-end;
    }
    
    nav ul li a svg {
        display: none;
    }
    
    /* Hide language icon in desktop view as well */
    .language-selector a svg {
        display: none;
    }
}

/* Improve language selector display for flag icons */
#language-select option {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

/* Custom styling for the language selector with flags */
.custom-select-flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: cover;
    background-position: center;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-selector .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    width: 150px;
    display: none;
}

.language-selector .language-dropdown.active {
    display: block;
}

.language-selector select {
    padding: 5px;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    width: 100%;
}

/* Custom Dropdown Styles */
.custom-dropdown-wrapper {
    width: 100%;
    position: relative;
}

.selected-language {
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    background-color: #F8F8F8;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover, 
.language-option.active {
    background-color: #F0F0F0;
}

.language-options-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.flag-icon {
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    .language-selector {
        margin-top: 15px;
    }
    
    .language-selector .language-dropdown {
        position: static;
        box-shadow: none;
        width: 100%;
        border-radius: 0;
        background-color: transparent;
    }
    
    .language-option {
        color: #003366;
    }
    
    .selected-language {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.partners-more {
    text-align: center;
    margin-top: 40px;
}

.btn-partners {
    display: inline-block;
    background-color: white;
    color: #003366;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #66CCCC;
}

.btn-partners:hover {
    background-color: #66CCCC;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

