/* Global Box Sizing */
* {
    box-sizing: border-box;
}

/* Headings */
h1 {
    font-size: 3em;
}

h2 {
    font-size: 1.2em;
}

/* Paragraphs and List Items */
p,
li {
    font-size: 1rem;
}

/* Hero Section */
#hero {
    max-width: 80%;
    width: 80%;
    margin: 150px auto 50px;
    position: relative;
    z-index: 1;
    line-height: 2em;
    font-size: 1.25em;
}

/* Header Container */
.container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
}

/* Vertical Line in Timeline */
.timeline::after {
    content: '';
    position: absolute;
    width: 5px;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 5px;
}

/* Timeline Containers */
.container--timeline {
    position: relative;
    width: 50%;
    background-color: inherit;
}

/* Circle on the Timeline */
.container--timeline::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #739072;
    top: 5rem;
    border-radius: 50%;
    z-index: 1;
}

/* Left Positioned Container */
.left {
    left: 0;
}

/* Right Positioned Container */
.right {
    left: 50%;
}

/* Adjustment for Right Containers */
.right::after {
    left: -16px;
}

.last::after {
    background-color: #ffffff;
    animation: pulse 1.7s infinite;
}

/* Content Styling */
.content {
    padding: 20px 10%;
    background-color: #73907251;
    position: relative;
    border-radius: 6px;
}

/* Expanded Content Styling */
.content .expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
}

/* Show Expanded Content */
.content .expanded-content.show {
    max-height: 100%;
    opacity: 1;
    visibility: visible;
    transition-duration: 1s;
}

/* Image Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

/* Image Styling */
img {
    width: calc(25% - 10px); /* 25% width for each image with margins */
    height: auto;
    margin: 5px; 
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery img:hover {
    border: #739072 2px solid;
    transform: scale(1.05);
}

.krl {
	margin-top: 3vh;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}


/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
    img {
        width: calc(50% - 10px); /* Two images per row on smaller screens */
        margin: 5px;
    }    

    .gallery {
        padding-right: 10%;
    }
}

@media (max-width: 697px) {
    body, html {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Timeline Adjustment for Smaller Screens */
    .timeline::after {
        left: 31px;
    }

    /* Full-width Containers */
    .container--timeline {
        width: 100%;
        padding-left: 70px;
    }

    /* Circle Alignment */
    .left::after,
    .right::after {
        left: 15px;
    }

    /* Right Containers Adjustment */
    .right {
        left: 0%;
    }
}

@media (max-width: 650px) {
    .logo {
        left: 30px;
    }

    body, html {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Timeline Adjustment for Smaller Screens */
    .timeline::after {
        left: 10px;
    }

    /* Full-width Containers */
    .container--timeline {
        width: 100%;
        padding-left: 70px;
    }

    /* Circle Alignment */
    .left::after,
    .right::after {
        left: 13px;
    }

    /* Right Containers Adjustment */
    .right, .left {
        left: -5%;
    }
}

@media (max-width: 520px) {
    .logo {
        left: 20px;
    }
}

@media (max-width: 465px) {
    .logo {
        left: 15px;
    }
}

@media (max-width: 430px) {
    .logo {
        left: 10px;
    }

    #hero {
        margin: 150px 40px 30px 50px;
    }
}

@media (max-width: 400px) {
    .left::after, .right::after {
        left: 8px;
    }
}