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

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    color: #333;
    min-height: 100vh;
}

/* Navigation Bar */
nav {
    background-color: #343a40;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #17a2b8;
}

nav ul li a.active {
    color: #17a2b8; /* same as hover, or pick another */
    border-bottom: 2px solid #17a2b8; /* optional underline effect */
  }

/* Container */
.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px; /* space between image and text */
    flex-wrap: wrap; /* allows stacking on small screens */
    flex-direction: row;
}

.container .intro {
    justify-content: left;
}

.container h1 {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    color: #212529;
    margin-bottom: 20px;
}

.container h2 {
    width: 70%;
    text-align: left;
    font-size: 2rem;
    color: #212529;
    margin-bottom: 0px;
}

.container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    flex: 0 0 50%;
    width: 100%;
}

figure img {
    flex: 0 0 100%;
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    margin-left: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

}

figure {
    flex: 0 0 40%;
    width: 300px;
  }


 .home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* space between image and text */
    flex-wrap: wrap; /* allows stacking on small screens */
    text-align: left;
}

.home-content img {
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-text {
    max-width: 600px;
}

figcaption {
    font-size: 75%;
}

figcaption {
    display: block;         /* ensures it behaves like a block element */
    text-align: center;     /* or left, if you prefer */
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    max-width: 100%;        /* prevents overflow */
    word-wrap: break-word;  /* breaks long words */
  }


  .home-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.home-text {
    flex: 1 1 50%;
    min-width: 250px;
}

figure {
    flex: 0 0 100%;
    max-width: 300px;
}