/* COLOR PALETTE
IVORY WHITE - #faf3e0
GOLD - #d5af30
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Lato', sans-serif, serif;
    background-color: #faf3e0;
}

/* Header */
header {
    background-image: url(img/hero-image.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 50vh;
    box-sizing: border-box;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-contact-us {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.logo {
    width: 100px;
}

.header-bottom {
    margin-top: 180px;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
    width: 100%;
}

.header-bottom h1 {
    font-size: 25px;
    max-width: 200px;
}

.header-bottom p {
    font-size: 16px;
}

nav {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 97%;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 0 5px gray;
    border-radius: 30px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    margin: 0 auto;
    background-color: #faf3e0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    min-width: fit-content;
}

nav li {
    margin: 0 5px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    border: 1px solid #d5af30;
    border-radius: 20px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Who We Are Section */

.who-we-are-section {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

.who-we-are-top h2 {
    font-size: 25px;
}

.who-we-are-top p {
    font-size: 12px;
    max-width: 200px;
}

.who-we-are-top {
    padding-right: 5px;
}

.who-we-are-img-mobile {
    display: none;
}

.who-we-are-img-desktop {
    display: none;
}

.who-we-are-bottom p {
    padding-top: 10px;
    font-size: 12px;
    text-align: justify;
    max-width: 900px;
}

/* Locations Section */

.locations-content {
    padding-bottom: 15px;
    margin-left: 10px;
}

.locations-content h2 {
    font-size: 25px;
}

.locations-content p {
    font-size: 16px;
}

.locations-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    column-gap: 20px;
    margin: 0 auto;
    margin-left: 10px;
}

.locations-card {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 400px;
    height: 400px;
    box-shadow: 1px 3px 4px gray;
    border-radius: 40px;
    overflow: hidden;
    z-index: 10;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
    padding: 15px;
    padding-top: 120px;
}

.locations-card h3 {
    font-size: 25px;
}

.locations-card p {
    font-size: 12px;
    text-align: justify;
    max-width: 280px;
    backdrop-filter: blur(1px);
}

#arusha {
    background-image: url(img/arusha.jpeg);
}

#dar-es-salaam {
    background-image: url(img/dar-es-salaam.jpeg);
}

#dodoma {
    background-image: url(img/dodoma.jpeg);
}

#zanzibar {
    background-image: url(img/zanzibar.jpeg);
}

.locations-read-more {
    display: none;
}

.locations-description {
    text-align: justify;
    font-size: 12px;
    padding: 15px 0;
    margin-right: 10px;
    margin-left: 10px;
}

/* Vison & Values Section */

.values-section {
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 15px;
}

.values-content h2 {
    font-size: 25px;
}

.values-content p {
    font-size: 12px;
    max-width: 270px;
    margin: 0 auto;
}

.values-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 700px;
}

.values-container h3 {
    font-size: 16px;
    padding-bottom: 15px;
}

.values-container p {
    font-size: 12px;
    max-width: 203px;
    margin: 0 auto;
    padding-bottom: 15px;
}

.values-img {
    width: 90px;
}

/* Visionaries Section */

.visionaries-section {
    margin-left: 10px;
    padding-bottom: 20px;
}

.visionaries-content {
    text-align: center;
    padding-bottom: 15px;
}

.visionaries-content h2 {
    font-size: 25px;
}

.visionaries-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    column-gap: 20px;
    margin: 0 auto;
}

.visionaries-card {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 230px;
    height: 300px;
    border: 1px solid #d5af30;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10;
    position: relative;
    padding: 20px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    background-color: #faf3e0;
    cursor: pointer;
}

.visionaries-card h3 {
    font-size: 16px;
    padding-bottom: 15px;
}

.visionaries-card p {
    font-size: 12px;
    text-align: left;
}

.visionaries-read-more {
    font-size: 14px;
    font-weight: 100;
    padding: 7px 50px;
    border-radius: 20px;
    margin-top: auto;
    border: none;
    background-color: #d5af30;
    box-shadow: 1px 3px 4px gray;
    cursor: pointer;
}

.visionaries-expanded-desc {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #faf3e0;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #d5af30;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-right: 40px;
    line-height: 1.3;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

/* Footer */

.hide {
    display: none;
}

.logo {
    width: 100px;
}

.footer-wrapper {
    display: flex;
    padding: 20px;
    font-size: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    width: min(50vw, 500px);
}

.footer-content-top {
    margin-bottom: auto;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.footer-content-top img {
    margin-bottom: 5px;
}

.footer-content-bottom {
    width: min(57vw, 300px);
    max-width: 240px;
    margin-top: 30px;
}

.footer-buttons {
    text-align: right;
    margin-left: auto;
    display: flex;
    flex-direction: column;
}

.footer-buttons ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.footer-buttons a {
    text-decoration: none;
    color: #000;
}

.footer-buttons-top ul {
    gap: 15px;
}


.footer-buttons-top {
    margin-bottom: auto;
}

.footer-buttons-bottom ul {
    gap: 5px;
}

@media (min-width: 420px) {
    .values-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .values-container {
        flex-basis: 48%;
    }
}

/* -------------------- Medium devices (tablets, 768px and up) -------------------- */
@media (min-width: 768px) {

    /* Header Section */

    .header-bottom {
        margin-top: 220px;
    }

    .header-bottom h1 {
        font-size: 35px;
        max-width: 500px;
    }

    .header-bottom p {
        font-size: 20px;
    }

    nav ul {
        justify-content: flex-start;
    }

    nav li:last-child {
        margin-left: auto;
    }

    /* Who We Are Section */

    .who-we-are-content {
        margin-left: auto;
        margin-right: auto;
        max-width: 900px;
    }

    .who-we-are-top {
        padding-left: 15px;
    }

    .who-we-are-top h2 {
        font-size: 35px;
    }

    .who-we-are-top p {
        font-size: 20px;
        max-width: 350px;
    }

    .who-we-are-bottom p {
        font-size: 16px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Locations Section */

    .locations-content {
        margin-left: 20px;
    }

    .locations-content h2 {
        font-size: 35px;
    }

    .locations-content p {
        font-size: 20px;
    }

    .locations-card {
        width: 500px;
        padding: 20px;
        padding-top: 80px;
        margin-left: 20px;
    }

    .locations-card h3 {
        font-size: 35px;
    }

    .locations-card p {
        font-size: 16px;
        max-width: 450px;
    }

    .locations-description {
        font-size: 16px;
        text-align: center;
        max-width: 670px;
        margin: 0 auto;
    }

    /* Vision & Values Section */

    .values-content h2 {
        font-size: 35px;
    }

    .values-content p {
        font-size: 16px;
        max-width: 350px;
    }

    .values-wrapper {
        padding-top: 30px;
    }

    .values-container h3 {
        font-size: 20px;
    }

    .values-container p {
        font-size: 16px;
        max-width: 270px;
    }

    /* Visionaries Section */

    .visionaries-card {
        width: 300px;
        height: 350px;
    }

    .visionaries-card h3 {
        font-size: 20px;
    }

    .visionaries-card p {
        font-size: 16px;
    }

    .visionaries-read-more {
        font-size: 18px;
        padding: 10px 50px;
    }

    .modal-content {
        margin: 5% auto;
        width: 85%;
        max-width: 700px;
    }

    .modal-content h3 {
        font-size: 24px;
    }

    .modal-content p {
        font-size: 16px;
    }

    /* Footer */

    .logo {
        width: 180px;
    }

    .footer-wrapper {
        font-size: 16px;
    }

    .footer-content-bottom {
        max-width: none;
        width: auto;
    }

    .footer-buttons-top ul {
        flex-direction: row-reverse;
        gap: 10px;
    }

}

/* -------------------- Large devices (desktops, 1024px and up) -------------------- */
@media (min-width: 1024px) {

    /* Header Section */

    header {
        height: 75vh;
    }

    .header-bottom {
        margin-top: 180px;
        max-width: none;
    }

    .header-bottom h1 {
        font-size: 50px;
        max-width: 800px;
    }

    .header-bottom p {
        font-size: 35px;
    }

    nav ul {
        justify-content: flex-start;
    }

    /* Who We Are Section */

    .who-we-are-content {
        margin: 0 auto;
        max-width: none;
    }

    .who-we-are-top p {
        max-width: none;
    }

    .who-we-are-bottom {
        display: flex;
        padding-top: 10px;
    }

    .who-we-are-img-desktop {
        display: block;
        width: 250px;
        padding-left: 15px;
    }

    .who-we-are-bottom p {
        max-width: 1000px;
        padding-top: 0;
    }

    /* Locations Section */

    .locations-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        scroll-snap-type: none;
        gap: 5px;
        padding: 20px 0;
        flex-wrap: wrap;
        max-width: 1500px;
        margin: 0 auto;
    }
    
    .locations-card {
        width: 200px;
        height: 400px;
        padding: 15px;
        cursor: pointer;
        transform: scale(1);
        text-align: center;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .locations-read-more {
        display: inline-block;
        background-color: #d5af30;
        color: #000;
        border: none;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 16px;
        cursor: pointer;
        width: 170px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        z-index: 30;
        margin: 0 auto;
    }
    
    .locations-read-more:hover {
        background-color: #c49a1e;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .locations-card p {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.4s ease;
        font-size: 14px;
        max-width: 250px;
    }
    
    .locations-card h3 {
        font-size: 30px;
        margin-bottom: 15px;
        text-align: left;
        padding-left: 15px;
        backdrop-filter: blur(1px);
    }
    
    .locations-card.expanded {
        width: 300px;
        height: 530px;
        padding: 20px;
        transform: scale(1.02);
        z-index: 20;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        justify-content: flex-start;
        align-items: flex-start;
        text-align: center;
    }
    
    .locations-card.expanded p {
        opacity: 1;
        max-height: 400px;
        max-width: 400px;
        margin-top: 10px;
        text-align: justify;
    }
    
    .locations-card.expanded h3 {
        font-size: 35px;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .locations-card.expanded .locations-read-more {
        margin: 20px auto;
        margin-top: auto;
        width: 260px;

    }
    
    .locations-card.pinned {
        border: 2px solid #d5af30;
    }
    
    .locations-card:not(.pinned):hover {
        transform: scale(1.02) translateY(-2px);
    }
    
    .locations-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .locations-card.expanded::before {
        opacity: 1;
    }

    .locations-description {
        max-width: 1200px;
    }

    /* Visionaries Section */

    .visionaries-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        scroll-snap-type: none;
        gap: 20px;
        padding: 20px 0;
        flex-wrap: wrap;
        max-width: 1500px;
        margin: 0 auto;
    }
    
    .visionaries-card {
        width: 300px;
        height: 380px;
        padding: 20px;
        cursor: pointer;
        transform: scale(1);
        text-align: left;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transition: all 0.3s ease;
        background-color: #faf3e0;
        border: 1px solid #d5af30;
    }
    
    .visionaries-read-more {
        display: inline-block;
        background-color: #d5af30;
        color: #000;
        border: none;
        border-radius: 20px;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        width: 150px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        z-index: 30;
        margin: 0 auto;
        margin-top: auto;
        font-weight: 100;
    }
    
    .visionaries-read-more:hover {
        background-color: #c49a1e;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .visionaries-card p {
        font-size: 16px;
        text-align: left;
        line-height: 1.4;
        opacity: 1;
        max-height: none;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .visionaries-card .visionaries-expanded-desc {
        display: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .visionaries-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: left;
        line-height: 1.3;
    }
    
    .visionaries-card.expanded {
        width: 750px;
        height: 600px;
        padding: 25px;
        transform: scale(1.02);
        z-index: 20;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border: 2px solid #d5af30;
    }
    
    .visionaries-card.expanded h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .visionaries-card.expanded p:not(.visionaries-expanded-desc) {
        display: none;
    }
    
    .visionaries-card.expanded .visionaries-expanded-desc {
        display: block;
        opacity: 1;
        max-height: none;
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
    }
    
    .visionaries-card.expanded .visionaries-read-more {
        width: 200px;
        padding: 12px 24px;
    }
    
    .visionaries-card.pinned {
        border: 2px solid #d5af30;
    }
    
    .visionaries-card:not(.pinned):hover {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .modal {
        display: none;
    }

    /* Vision & Values Section */

    .values-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 50px;
        max-width: 1200px;
    }

    /* Footer */

    .hide {
        display: flex;
    }

    footer:not(.hide) {
        display: none;
    }

    footer.hide {
        display: block;
        max-width: 1440px;
        margin: 0 auto;
    }

    .footer-logo-img {
        width: 120px;
        padding-bottom: 10px;
    }

    footer h2,
    p {
        font-size: 16px;
    }

    .footer-wrapper-outer {
        display: flex;
        flex-direction: column;
    }

    .footer-wrapper-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-wrapper-inner:first-child {
        border-bottom: 1px solid #000;
    }

    .contact-information {
        padding-top: 10px;
        padding-left: 10px;
    }

    .contact-information h2 {
        padding-bottom: 20px;
    }

    .contact-information-container {
        display: flex;
        max-width: 270px;
        padding: 5px;
    }

    .contact-information-container a {
        text-decoration: none;
    }

    .footer-img {
        width: auto;
        height: 16px;
        padding-right: 10px;
    }
    
    .footer-logo {
        text-align: center;
        margin: 0 auto;
        padding: 30px 0;
    }

    .footer-buttons {
        padding-top: 10px;
        padding-right: 10px;
    }

    .footer-buttons h2 {
        padding-bottom: 20px;
    }

    .footer-buttons-top ul {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .footer-buttons-bottom {
        padding-top: 70px;
        padding-bottom: 10px;
    }

    .footer-buttons-bottom ul {
        display: flex;
        justify-content: flex-end;
    }

    .back-to-top {
        display: flex;
        align-items: center;
        padding-top: 50px;
    }

    .back-to-top a {
        text-decoration: none;
        color: #000;
    }

    .social-media {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .social-media-links {
        gap: 200px;
    }

    .social-media-img {
        width: 30px;
    }
}

@media (min-width: 1400px) {
    
    /* Locations Section */

    .locations-content {
        margin-left: 100px;
    }

    .locations-card {
        width: 300px;
        height: 500px
    }

    .locations-read-more {
        width: 260px;
    }

    .locations-card.expanded {
        width: 400px;
        height: 500px;
    }

    .locations-card.expanded .locations-read-more {
        width: 350px;
    }
}