@font-face {
    font-family: un-emanee;
    src: url(../fonts/un-emanee.ttf);
}

@font-face {
    font-family: un-bindumathi;
    src: url(../fonts/un-bindumathi.ttf);
}

@font-face {
    font-family: un-gemunu;
    src: url(../fonts/un-gemunu\ .ttf);
}

* {
    box-sizing: border-box;
}

/* Shared css */
.main {
    height: 350px;
    min-height: 350px;
    margin-bottom: 2rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.page-header { padding-top: 3rem; }

.content {
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}

p,dt {
    color: #455565dc;
    font-weight: 500;
}

.img {
    float: right;
    width: 50vw;
    max-width: 500px;
    margin: 0 0 20px 20px;
    border-radius: 8px;
}

.emanee {
    font-family: un-emanee;
    text-decoration: none;
    font-style: normal;
    font-weight: 0;
}
/* About page css */

.brief-abt {
    display: flex;
    gap: 6rem;
    align-items: center;
    padding-bottom: 3rem;
}

.abt-img {
    width: 60vw;
    height: 30vw;
    min-height: 250px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .brief-abt {
        flex-direction: column;
        gap: 2rem;
    }
    
    .abt-img {
        width: 100%;
        height: 40vw;
    }

}

.leaders {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1.5rem;
}

.gemunu {
    font-family: un-gemunu;
}

.card {
    background-color: #F1F1F1;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    text-align: center;
    border-radius: 8px;
    align-items: center;
    width: 300px;
}

@media screen and (max-width:576px) {
    .card {
        flex-grow: 1;
    }
}

.card-img {
    height: 10rem;
    width: 10rem;
    object-fit: cover;
    border-radius: 100%;
}

.name {
    padding: 1rem 0 .2rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.card :nth-child(3) {
    font-size: .9rem;
    color: #455565dc;
    font-weight: 500;
}


/* contact us */

.c-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

iframe, .contact-box {
    flex: 1;
    min-width: 300px;
}

/* Past Principles */

.past-principles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 4rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(90%, 250px);
}

.profile-card img {
    max-width: 100%;
}

.profile-card--text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
}

.profile-card--text :nth-child(1) { font-weight: 500; }
.profile-card--text :nth-child(2) { font-size: .8rem; }

.sinhala, .sinhala span {
    font-family: un-bindumathi;
}

.sinhala span {
    display: inline-block;
    padding: .1rem 0;
}

.intro {
    text-align: center; 
    margin: 0 auto 5rem auto; 
    max-width: 600px;
}

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

  /* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #b6b6b6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    border-radius: 20px;
}

/* Container around content */
.container {
    padding: 0 20px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.container-content h3,p{
    margin: 0;
}

.container-content h3 {
    margin-top: -4px;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #b1c9fd;
    border: 4px solid #ffffff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    margin-top: 20px;
}

/* Place the container to the left */
.container-left {
    left: 0px;
    text-align: right;
}

/* Place the container to the right */
.container-right {
    left: 50%;
}

/* Fix the circle for containers on the right side */
.container-right::after {
    left: -16px;
}

/* The actual content */
.container-content {
    padding: 40px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 992px) {
    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }
    /* Full-width containers */
    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 0px;
    }

    .container-content {
        padding: 40px 0;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .container-left::after, .container-right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .container-right {
        left: 0%;
    }

    .container-right, .container-left {
        text-align: left;
    }
}