body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    margin: 0 auto;
    /* gap: 30px; */
}

.application-column {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.description-column {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

h1 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.6em;
}

h1 i, h2 i, h3 i {
    margin-right: 8px;
    color: #3498db;
}

h2 {
    color: #484c4f;
    font-size: 1.2em;
    margin: 25px 0 10px 0;
}

h3 {
    color: #2c3e50;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
}

.required {
    color: #e74c3c;
}

.confidentiality {
    color: #666;
    margin-bottom: 25px;
}

.cv-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 30px 0;
  flex-wrap: nowrap;
  align-items: center;
}

.cv-left {
  flex: 1;
  min-width: 250px;
}

.cv-left h2 {
  margin-bottom: 5px;
}

.required {
  color: red;
}

.file-note {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

#selected-cv {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

#selected-cv b {
  font-weight: bold;
}

#remove-btn {
  background-color: #e74c3c;
  color: white;
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
}

#remove-btn:hover {
  background-color: #c0392b;
}

.cv-card {
  width: 200px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.185);
  background-color: #f9f9f9;
  display: none;
  
}

.cv-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.cv-overlay {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%) 0% 0% no-repeat padding-box padding-box transparent;
  color: #fff;
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cv-overlay .filename {
  font-size: 13px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-overlay a {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}

.checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  z-index: 2;
  display: none;
}

.file-upload {
  width: 12vw;
  height: 20vw;
  border: 2px solid #999;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #444;
}

.file-upload input {
  display: none;
}

.file-upload-icon {
  font-size: 30px;
  margin-bottom: 10px;
  color: #777;
}

.form-section {
    margin-bottom: 25px;
}

input[type="text"], 
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.file-upload {
    border: 2px dashed #ccc;
    padding: 25px;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
}

.file-note {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.file-size {
    color: #999;
    font-size: 0.8em;
    margin: 5px 0 10px 0;
}

#editor {
    height: 200px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.apply-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 0;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    width: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto;
}


.apply-btn:hover {
    background-color: #2980b9;
}

.company-logo-section {
    text-align: center;
}

.company-logo {
    max-width: 150px;
    height: auto;
}

.company-branding-second {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo-second {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.company-tagline {
    color: #666;
    font-style: italic;
    font-weight: normal;
    margin-top: 5px;
    font-size: 1.2em;
}

.job-header {
    margin-bottom: 25px;
}

.job-meta, .company-meta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.company-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #555;
}

.meta-item i {
    fill: rgb(81, 81, 81);
}

.job-posts {
    color: #666;
    margin: 5px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-address {
    color: #555;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider {
    height: 1px;
    background-color: #5c5858;
    margin: 20px 0;
}

.job-requirements {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 20px 0;
    position: relative;
}

.requirement-text {
    font-weight: bold;
    margin-bottom: 8px;
}

.reference-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.info-container {
    display: flex;
    position: relative;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.info-column.labels {
    font-weight: 500;
    color: #555;
    padding-right: 15px;
    text-align: right;
    align-items: flex-start;
    width: 120px;
}

.info-column.values {
    padding-left: 15px;
    flex-grow: 1;
}

.vertical-divider {
    position: relative;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ababab7d;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.info-label {
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

.info-value {
    color: #333;
}

.company-info{
    margin-top: 3rem;
}

.social-media {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-media a {
    text-decoration: none;
}

.social-icon {
    color: rgb(108, 108, 108);
    background-color: #4d525542;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #4d525542;
    transform: translateY(-2px);
}

.company-description p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        flex-direction: column;
        gap: 20px;
    }

    .application-column,
    .description-column {
        width: 100%;
        padding: 20px;
        box-shadow: none;
    }

    .cv-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cv-left,
    .cv-card,
    .file-upload {
        width: 100%;
    }

    .file-upload {
        height: auto;
        padding: 20px 10px;
    }

    .apply-btn {
        width: 100%;
    }

    .info-container {
        flex-direction: column;
        gap: 10px;
    }

    .info-column.labels,
    .info-column.values {
        text-align: left;
        width: 100%;
        padding: 0;
    }

    .vertical-divider {
        display: none;
    }

    .company-branding-second {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-media {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 1em;
    }

    .cv-card {
        height: 240px;
    }

    .cv-overlay .filename {
        font-size: 12px;
    }

    .cv-overlay a {
        font-size: 11px;
    }

    .file-upload-icon {
        font-size: 24px;
    }
}
/* Full-screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* page background while loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader container */
.square-loader {
  display: flex;
  gap: 10px;
}

.square-loader div {
  width: 30px;
  height: 60px;
  background-color: #0d6efd; /* blue squares */
  animation: squareAnim 1.2s infinite ease-in-out;
}

/* Staggered animation for each square */
.square-loader div:nth-child(1) { animation-delay: 0s; }
.square-loader div:nth-child(2) { animation-delay: 0.2s; }
.square-loader div:nth-child(3) { animation-delay: 0.4s; }
square-loader div:nth-child(4) { animation-delay: 0.6s; }

/* Keyframes: scale up and down */
@keyframes squareAnim {
  0%, 100% { transform: scale(0); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
}

    /* 1. Prevent Nav Overlap */
    .mt-custom {
        margin-top: 100px; /* Adjust based on your navbar height */
        padding-bottom: 50px;
    }

    /* 2. Global Font Size Reduction */
    body {
        font-size: 0.9rem; /* Smaller base font */
    }

    /* 3. Specific Element Font Sizes */
    .application-column h1 {
        font-size: 1.5rem; /* Reduced from default large size */
        font-weight: 700;
        margin-bottom: 5px;
    }

    .form-section h2, 
    .cv-left h2,
    .description-column h1 {
        font-size: 1rem; /* Smaller sub-headers */
        font-weight: 600;
        margin-bottom: 8px;
    }

    .confidentiality, .file-note, .reference-text {
        font-size: 0.85rem;
        color: #6c757d;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Side Column Adjustments */
    .job-header h1 {
        font-size: 1.25rem;
    }
    
    .job-header h2 {
        font-size: 0.95rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    /* Quill Editor height adjustment for smaller feel */
    #editor {
        height: 150px;
    }
