* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F4F4F4;
    font-family: "Roboto", sans-serif;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1600;
    height: 104px;
    overflow: hidden;
    transition: height;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 100%; 
    padding: 0 1rem;
}

.navbar-left a,
.navbar-right a {
    color: #000;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-left a:hover,
.navbar-right a:hover {
    color: #0172CA;
}

.logo-img {
    height: 104px;
    width: auto;
    vertical-align: middle;
    transition: transform;
}

.hamburger {
    display: none;
    margin-right: 5%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

.mobile-menu {
    display: none;            
    flex-direction: column;
    background-color: #013365;
    padding: 1rem;
    position: absolute;        
    top: 72px;               
    left: 0;
    right: 0;
    z-index: 2000;             
}

.mobile-menu.show {
    display: flex;             
}


.mobile-menu a {
    margin: 0.5rem 0;
    color: white;
    text-decoration: none;
}

.mobile-menu .mobile-lang {
    margin-top: 1rem;
}

.mobile-menu.show {
    display: flex;
}

.subscribe-footer {
    margin: 40px auto 0 auto;
    padding: 15px 20px 10px 20px;
    max-width: 600px;
    width: 95%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    background-color: white;
}

.subscribe-footer h1 {
    font-family: 'Playfair Display', sans-serif;
    color: #013365;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

#subscription-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

#subscription-form input,
#subscription-form button {
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
}

#subscription-form input {
    flex: 1 1 200px;
    min-width: 150px;
}

#subscription-form button {
    background-color: #013365;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

#subscription-form button:hover {
    background-color: #0172CA;
}

#status {
    font-size: 0.95rem;
    color: green;
    margin: 0 auto;
    max-width: 600px;
    word-wrap: break-word;
}

.success-message, .error-message {
    text-align: center;
    margin-top: 20px;
    font-family: "Roboto", sans-serif;
}

.success-circle, .error-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.checkmark, .crossmark {
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.error-circle {
    background-color: #f44336;
}

footer {
    background-color: #013365;
    padding: 12px 0;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
    color: white;
    margin-top: auto;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
}

footer i {
    font-size: 24px;
    color: white;
}

.social-links a:hover i {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: -96px;
}

main img {
    height: 70vh;           
    min-width: 100vw;        
    width: auto;            
    object-fit: cover;
    object-position: 40% center;
    display: block;
    margin: 0 auto;
}

.main-text {
    position: absolute;
    top: 50%;         
    left: 50%;        
    transform: translate(-50%, -50%);
    color: #F4F4F4;     
    text-align: center;
    padding: 0 1rem;
    z-index: 20;       
    max-width: 90vw;    
    pointer-events: auto; 
}

.main-text h1 {
    font-family: "Playfair Display";
    font-size: 3rem;       
    margin-bottom: 0.8rem; 
}

.main-text p {
    font-family: "Roboto";
    font-size: 1.5rem;     
    line-height: 1.4;      
    max-width: 600px;      
    margin: 0 auto;        
    padding: 0 1rem;      
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;       
    height: 70vh;       
    background-color: rgba(0, 0, 0, 0.5); 
    pointer-events: none;  
    z-index: 10;        
}

.content-text {
    width: 90%;
    margin-left: 5%;
    padding: 60px 40px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    font-family: "Roboto", sans-serif;
    color: #000;
    text-align: left;
    margin-top: 2vh;
    margin-bottom: 2vh;
    z-index: 1;
}

.content-text h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #013365;
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 30px;
}
 
hr {
    border: none;
    height: 3px;
    background-color: #0172CA;
    width: 60px;
    margin-bottom: 2vh;
}

.missions {
    width: 90%;
    margin-left: 5%;
    padding: 60px 40px;
    background-color: #FFFFFF;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
    color: #000;
    text-align: left;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.missions h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #013365;
    margin-bottom: 20px;
}

.mission-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mission {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #F4F4F4;
    border-radius: 8px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
}

.mission:hover {
    transform: translateY(-5px);
}

.mission h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color: #013365;
    margin-bottom: 15px;
}

.mission p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.directors-section {
    width: 90%;
    margin-left: 5%;
    padding: 60px 40px;
    background-color: #FFFFFF;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
    color: #000;
    text-align: left;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.directors-section h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #013365;
    margin-bottom: 20px;
}

.directors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.director-card {
    flex: 1 1 200px;  
    max-width: 220px;
    min-width: 160px;
    min-height: 210px;
    max-height: 290px;
    aspect-ratio: 3 / 4;
    background-color: #F4F4F4;
    border-radius: 12px;
    box-shadow: 0 8px 8px rgba(0,0,0,0.05);
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease;
}

.director-card:hover {
    transform: translateY(-5px);
}

.director-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.director-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 8px 0 4px;
    color: #013365;
    text-align: center;
}

.director-position {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

@media (max-width: 1024px) and (orientation: landscape) {
    main::before {
        width: 100%;
        height: 100vh;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
}  

@media (orientation: portrait) {
    main::before {
        height: 80vh;  
    }
    main img {
        max-height: 80vh;    
        height: auto;         
        width: 100vw;        
        min-width: unset;
        object-fit: cover;
        object-position: 40% center;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    main img {
        height: 100vh; 
        width: calc((100vh) * (16 / 9));
        max-width: none;
        object-fit: cover;
        object-position: 40% center;
        position: relative;
        top: 0;
        z-index: 0;
    }
    .director-card {
        flex: 1 1 calc(25% - 20px);
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 72px !important;
        overflow: visible !important; 
    }

    .logo-img {
        height: 72px !important;
        max-width: 100%; 
        object-fit: contain;
    }

    .navbar-container {
        height: 72px !important;
    }
    main {
        margin-top: -72px !important;
    }

    .navbar-left a:not(.logo),
    .navbar-right {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        user-select: none;
    }

    .main-text h1 {
        font-size: 2rem;
    }
    .main-text p {
        font-size: 1rem;
    }
    .content-text h1 {
        font-size: 1.5rem;
    }
    .missions h1 {
        font-size: 1.5rem;
    }
    .mission h2 {
        font-size: 1.2rem;
    }
    .directors-section h1 {
        font-size: 1.5rem;
    }
    .director-name {
        font-size: 1rem;
    }
    .director-position {
        font-size: 0.8rem;
    }
    .mission-cards {
        flex-direction: column;
    }

    .mission {
        flex: 1 1 100%;
    }

    .director-card {
        flex: 1 1 calc(33.333% - 20px);
        max-width: 260px;
    }

}

@media (max-width: 480px) {
    .subscribe-footer h1 {
        font-size: 1.3rem;
    }

    #subscription-form input {
        flex: 1 1 100%;
        min-width: auto;
    }

    #subscription-form button {
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .director-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 100%;            
    }
}

@media (max-width: 360px) {
    .director-card {
        flex: 1 1 100%;
    }
}

@media (max-height: 700px) {
    .main-text h1 {
        font-size: 2.5rem;
    }
    .main-text p {
        font-size: 1.2rem;
    }
    .content-text h1 {
        font-size: 2rem;
    }
    .missions h1 {
        font-size: 2rem;
    }
    .directors-section h1 {
        font-size: 2rem;
    }
    .director-name {
        font-size: 1.2rem;
    }
}

@media (max-height: 550px) {
    .main-text h1 {
        font-size: 1.7rem;
        margin-top: 5vh;
    }
    .main-text p {
        font-size: 1rem;
    }
    .content-text h1 {
        font-size: 1.2rem;
    }
    .missions h1 {
        font-size: 1.2rem;
    }
    .mission h2 {
        font-size: 1rem;
    }
    .mission p {
        font-size: 0.8rem;
    }
    .directors-section h1 {
        font-size: 1.2rem;
    }
    .director-name {
        font-size: 1rem;
    }
    .director-position {
        font-size: 0.8rem;
    }
}

@media (max-height: 450px) {
    .main-text h1 {
        font-size: 1.4rem;
        margin-top: 10vh;
    }
    .main-text p {
        font-size: 0.9rem;
    }
    .content-text h1 {
        font-size: 1.2rem;
    }
    .content-text p {
        font-size: 0.9rem;
    }
    .missions h1 {
        font-size: 1.2rem;
    }
    .mission h2 {
        font-size: 1rem;
    }
    .mission p {
        font-size: 0.8rem;
    }
    .directors-section h1 {
        font-size: 1.2rem;
    }
    .director-name {
        font-size: 1rem;
    }
    .director-position {
        font-size: 0.8rem;
    }
}