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

body {
    font-family: "Lato";
    line-height: 1.6;
    color: #333;
    background-color: #f1ebde;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #22114a;
    color: #fff;
    padding: 1rem 0;
    font-family: "Lato";
}

.nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.nav-links a {
        color: #e3cbff;
        text-decoration: none;
        margin-left: 1rem;
        font-size:18px;
}

.nav-links a:hover, .nav-links a.active {
        color: #fff;
        font-style: bold;
}

.logo {
        font-size: 1.5rem;
        font-weight: bold;
}

/* Main content */
main {
    padding: 2rem 0;
}

h1 {
    font-size: 2.5rem;
    color: #6b46c1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    box-sizing: border-box;
    transition: 
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.card h2 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.card:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hyperlink {
    color: #6b46c1;
    margin-bottom: 0.5rem;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.full-width {
    grid-column: 1 / -1;
}

ul {
    margin-left: 20px;
}

/* Button */
.button {
    display: inline-block;
    background-color: #6b46c1;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: #553c9a;
}

/* Project tags */
.tag {
    display: inline-block;
    background-color: #e9d8fd;
    color: #6b46c1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        display: inline-block;
        margin: 0.5rem 1rem 0.5rem 0;
    }
}

cbutton {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 8px;
    color: white;
    background-color: #9a95a6;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    margin-top: auto;
    }

a {
    text-decoration: none;
    font-size: 22px;
    color: black;
    }

cbutton:hover, a:hover {
    opacity: 0.7;
}

.status {
    display: inline-block;
    color: #6b46c1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.ongoing {
    background-color: #ffc369;
}
.completed {
    background-color: #d1f87c;
}
.in-service {
    background-color: #afa5ef;
}
.scroll-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    border-radius: 1rem;
  }
  
.scroll-slides {
    display: flex;
    width: 400%;
    animation: scroll-slides 12s ease-in-out infinite;
    animation-play-state: paused;
}

.scroll-slides img {
    flex: 0 0 25%;
    height: 300px;
    object-fit: cover;
    overflow: hidden;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    box-sizing: border-box;
    transition: transform 0.3s ease-out,
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.project-card h2 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.project-card:hover .scroll-slides {
    animation-play-state: running;
}

.project-card:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@keyframes scroll-slides {
    0%,  20%   { transform: translateX(   0%); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70%   { transform: translateX(-50%); }
    75%, 95%  { transform: translateX(-75%); }
    100%       { transform: translateX(   0%); }
}


.slider {
    width: 100%;
    aspect-ratio: 16 / 9; /* Makes it responsive instead of fixed 600px */
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    width: 400%; /* keep this if you have 4 images */
    height: 100%;
    animation: slideAnimation 20s infinite;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 25%; /* 4 images => 25% width each */
}


@keyframes slideAnimation {
    0%,  20%  { transform: translateX(0    ); }
    25%, 45%  { transform: translateX(-25% ); }
    50%, 70%  { transform: translateX(-50% ); }
    75%, 95%  { transform: translateX(-75% ); }
    100%      { transform: translateX(0    ); }
}

/* Officer Profile */
/* .profiles-grid {
    display: grid;
    gap: 2rem;
    margin: 20px;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, 200px);
    justify-content: center;
} */

.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    margin: 10px;
  }

.profile {
    flex: 0 0 200px;

    background-color: #fffaf2;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    transition: 
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}
.profile:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.profile img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
  
/* Name */
.profile h2 {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.25rem;
    color: #22114a;
}

.profile .title {
    font-weight: bold;
    color: #6b46c1;
    margin: 0.25rem 0;
}
.profile .major {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.contact-button {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.contact-button:hover {
    background-color: #553c9a;
}