/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7e2e1;
}
/*back button*/
.pre a {
    text-decoration: none;
}

.pre {
  position: absolute;
  top: 20px;
  left: 20px;
  margin-left: 0; /* Remove the left margin */
}

.pre button {
  height: 40px;
  width: 100px;
  margin-top: 10px !important; /* Apply margin-top with !important */
  margin-bottom: 0;
  padding: 10px;
  background-color: #ba6a62;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 15px;
}

.pre button:hover {
  background-color: #d96a60;
}

/* Page Heading */
.panel-heading {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-top: 20px;
}

/* Main Panel Container */
.panel-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

/* President Card - Centered */
.top-row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.first-card {
    width: 350px; /* Increased size */
}

/* Bottom Row - 4 Cards in One Row */
.bottom-row {
    display: flex;
    justify-content: space-between; /* Distribute evenly */
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto; /* Center align */
}

/* Card Structure */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23%; /* Ensures 4 cards fit in one row */
    min-width: 220px;
}

/* Image Styling */
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Card Titles */
.card h2 {
    color: #9b3f36;
    font-size: 22px;
    margin: 10px 0;
}

/* General Styles for Smaller Screens */
/* General Styles for Smaller Screens */
@media screen and (max-width: 600px) {
    .panel-heading {
        font-size: 30px;
        margin-top: 50px;
    }

}

/* Adjustments for Medium-Sized Tablets */
@media screen and (max-width: 768px) {
    .bottom-row {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
        max-width: 350px;
    }

    .panel-container {
        padding: 5px;
    }
}

/* Adjustments for Smaller Tablets and Larger Phones */
@media screen and (max-width: 1024px) {
    .bottom-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 45%; /* 2 cards per row */
        max-width: 280px;
    }

    .first-card {
        width: 80%;
        max-width: 350px;
    }
}

/* For Extra Small Devices (Phones < 480px) */
@media screen and (max-width: 480px) {
    .card {
        width: 100%; /* Full width for smaller screens */
        max-width: 300px;
    }

    .panel-heading {
        font-size: 30px;
        margin-top: 100px;
    }

    

    .card img {
        height: 200px;
    }

    .card h2 {
        font-size: 18px;
    }
}
