/* style.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}
nav img {
    width: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #ecf0f1;
}
nav a {
    text-decoration: none;
    color: #ecf0f1;
    background: #34495e;
    width: 80%;
    text-align: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.3s;
}
nav a:hover {
    background: #1abc9c;
}
.content {
    margin-left: 220px;
    padding: 20px;
}
h1 {
    color: #2c3e50;
}
p {
    font-size: 1.1em;
    line-height: 1.6;
}
.pdf-btn{
    display: inline-block;
    padding: 10px 20px;
    background-color:  #34495e;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.pdf-btn:hover {
    background-color: #1abc9c;
}
.title-card {
    box-sizing: border-box;
    font-size: 17px;
    color: rgb(38, 48, 107);
    font-weight: 600;
    margin-bottom: 1px;
    opacity: 1;
    animation: 0.5s ease-out 0s 1 normal forwards running fadeInUp;
    letter-spacing: 3.52px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 1px 16px;
    background: rgba(22, 103, 150, 0.05) none repeat scroll 0% 0% / auto padding-box border-box;
    border-radius: 4px;
    border-left: 3px solid rgb(44, 62, 80);
}
.hover-grow {
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.hover-grow:hover {
    transform: scale(2);
    box-shadow: 0 4px 15px rgba(0,0,0, 0.2);
}

/* --- CONTACT PAGE STYLES --- */

/* Form Container Styling */
.content form {
    /* Use max-width to keep the form readable, and center it */
    max-width: 600px;
    margin: 30px 0;
    padding: 20px;
    background-color: #ffffff; /* White background for the form area */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fieldset and Legend for grouping */
fieldset {
    border: 1px solid #bdc3c7; /* Light gray border */
    padding: 20px;
    margin: 0;
    border-radius: 5px;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50; /* Dark blue/gray, matching h1 */
    padding: 0 10px;
}

/* Individual form row/input container */
.content form div {
    margin-bottom: 15px;
}

/* Labels */
label {
    display: block; /* Makes the label take its own line */
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e; /* Slightly lighter dark color */
}

/* Inputs and Textarea Base Style */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Includes padding in width calculation */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Inputs Focus Effect (using the accent color) */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #1abc9c; /* Teal accent color on focus */
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.5); /* Subtle teal glow */
    outline: none; /* Removes default browser focus outline */
}

/* Textarea Specific Styling */
textarea {
    resize: vertical; /* Only allow vertical resizing */
}

/* Submission Button Style (Matching the .pdf-btn style) */
button[type="submit"] {
    display: inline-block;
    padding: 12px 25px;
    background-color: #34495e; /* Dark button background */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #1abc9c; /* Teal accent on hover */
}

/* --- ACHIEVEMENTS PAGE STYLES --- */

.achievement-grid {
    display: grid;
    /* Create three columns of equal size for desktops */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; /* Spacing between the buttons */
    margin-top: 30px;
}

/* Ensure the button links themselves fill the grid area */
.achievement-grid .pdf-btn {
    /* Override the default inline-block to make them fill the grid cell */
    display: block; 
    text-align: center; /* Center the text inside the button */
    padding: 15px 10px; /* Slightly larger padding for a better button feel */
    font-size: 1em;
}

/* Make it responsive: Reduce to two columns on smaller screens */
@media (max-width: 800px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Make it fully stack on very small screens (like phones) */
@media (max-width: 500px) {
    .achievement-grid {
        grid-template-columns: 1fr; /* Single column */
    }
}