* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f4f7fc;
    padding: 30px;
}

.container {
    max-width: 1300px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 70px; /* Adjust based on h1 height */
}

h1 {
    text-align: center;
    color: #c47207;
    margin-bottom: 30px;
    font-size: 32px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    background: #c47207;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #c47207;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Academic Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    background: #c47207;
    color: white;
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table td {
    border: 1px solid #ddd;
    padding: 8px;
}

table input {
    width: 100%;
}

/* Buttons */
.btn-container {
    margin-top: 15px;
}

.add-btn {
    background: #3b3939;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.add-btn:hover {
    background: #010101;
}

.remove-btn {
    background: #c47207;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #794603;
}

.submit-btn {
    background: #3b3939;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background: #000000;
}

.photo-upload {
    display: flex;
    flex-direction: column;
}

#candidatePhoto {
    padding: 8px;
}

#photoPreview {
    width: 120px;
    height: 140px;
    margin-top: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    object-fit: cover;
}
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #fff;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.header-container h1 {
    margin: 0;
    text-align: left;
    font-size: 28px;
}

/* Responsive */
@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        margin-top: 70px; /* Adjust based on h1 height */
    }
    

    .form-grid {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 900px;
    }

    .section {
        overflow-x: auto;
    }
}