/* --- CAREERS PAGE SPECIFIC STYLES --- */

/* Hero Section */
.careers-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 60px;
}

.careers-hero-video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    z-index: -2; object-fit: cover;
}

.careers-hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: white; 
    text-transform: uppercase; 
    letter-spacing: -1px; 
}

.careers-hero p { 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto 40px; 
    color: #ccd6f6; 
    font-weight: 300; 
}

/* Benefits Section */
.careers-intro-section {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border-top: 5px solid var(--accent);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card .icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Opportunities Section */
.opportunities-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.internship-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.opportunity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.opportunity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.opportunity-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 25px;
    color: white;
}

.opportunity-header .company-logo {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.opportunity-header h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.opportunity-header .company-name {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.opportunity-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.opportunity-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--secondary);
}

.opportunity-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.requirements-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.requirements-preview h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirements-preview ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-light);
}

.requirements-preview li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.requirements-preview li:before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    min-width: 20px;
}

.opportunity-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-apply {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-apply:hover {
    background: #c99a1f;
    transform: scale(1.05);
}

.btn-learn-more {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-learn-more:hover {
    background: var(--secondary);
    color: white;
}

/* Admin Section */
.employer-section {
    padding: 100px 0;
    background: white;
}

.employer-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.employer-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.employer-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.employer-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* Application Form */
.application-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-row-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group small {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 0.85rem;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed var(--secondary);
    border-radius: 8px;
    background: rgba(0,123,255,0.05);
    cursor: pointer;
    transition: 0.3s;
    color: var(--secondary);
    font-weight: 600;
}

.file-label:hover {
    background: rgba(0,123,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.form-group.checkbox {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    min-width: 120px;
}

.form-actions .btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.form-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.form-actions .btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.form-actions .btn-primary:hover {
    background: #c99a1f;
}

/* Message Alerts */
.message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    display: none;
    font-weight: 600;
}

.message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .careers-hero h1 { font-size: 2.2rem; }
    
    .internship-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .modal-content {
        margin: 30px 20px;
        padding: 25px;
    }
    
    .admin-card {
        padding: 40px 20px;
    }
    
    .admin-card h2 {
        font-size: 1.5rem;
    }
    
    .admin-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .careers-hero h1 {
        font-size: 1.8rem;
    }
    
    .careers-hero p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
        gap: 8px;
    }
    
    .tab-btn i {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px;
    }
    
    .opportunity-card {
        margin: 0;
    }
    
    .opportunity-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .opportunity-footer {
        flex-direction: column;
    }
    
    .btn-apply,
    .btn-learn-more {
        width: 100%;
    }
}
