/* Frontend Styles - Australian Theme */
.ajp-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.ajp-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ajp-hero-content h1 {
    font-size: 3em;
    margin: 0 0 20px 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.ajp-hero-subtitle {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ajp-hero-text {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.95;
}

/* Container */
.ajp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ajp-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.ajp-section {
    padding: 60px 0;
}

.ajp-section-title {
    text-align: center;
    font-size: 2.5em;
    margin: 0 0 50px 0;
    color: #004499;
    font-weight: 800;
}

/* Video Section */
.ajp-videos-section {
    background: linear-gradient(to bottom, #fff8e1 0%, #fff 100%);
}

.ajp-videos-grid-front {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 20px;
    justify-content: center;
}

.ajp-video-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Video Size Classes */
.ajp-video-item.video-small {
    max-width: 300px;
    margin: 0 auto;
}

.ajp-video-item.video-medium {
    max-width: 500px;
    margin: 0 auto;
}

.ajp-video-item.video-large {
    max-width: 100%;
}

/* For small videos, adjust grid */
.ajp-videos-grid-front.has-small-videos {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
}

.ajp-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ajp-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.ajp-video-title {
    padding: 20px 20px 10px 20px;
    margin: 0;
    font-size: 1.3em;
    color: #004499;
}

.ajp-video-desc {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: #666;
}

/* Benefits Section */
.ajp-why-section {
    background: white;
}

.ajp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ajp-benefit-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.ajp-benefit-card:hover {
    transform: translateY(-8px);
}

.ajp-benefit-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ajp-benefit-icon img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.ajp-benefit-image-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    border: 2px dashed #999;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ajp-placeholder-text {
    font-weight: 600;
    color: #666;
    font-size: 0.5em;
    margin-bottom: 5px;
    display: block;
}

.ajp-placeholder-hint {
    font-size: 0.35em;
    color: #999;
    margin: 0;
    line-height: 1.3;
}

.ajp-benefit-image-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 3px dashed #0066cc;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
}

.ajp-benefit-image-placeholder:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    border-color: #0047b3;
}

.ajp-placeholder-text {
    font-size: 14px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 5px;
}

.ajp-placeholder-hint {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

/* When image is uploaded (you'll add this via custom CSS) */
.ajp-benefit-icon img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ajp-benefit-card h3 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #004499;
    font-weight: 700;
}

.ajp-benefit-card p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Jobs Section */
.ajp-jobs-section {
    background: #f8f9fa;
}

/* Filter Buttons */
.ajp-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.ajp-filter-btn {
    padding: 12px 28px;
    border: 2px solid #0066cc;
    background: white;
    color: #0066cc;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ajp-filter-btn:hover,
.ajp-filter-btn.active {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* Jobs List */
.ajp-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ajp-job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ajp-job-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #0066cc;
    transform: translateY(-3px);
}

.ajp-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.ajp-job-title {
    font-size: 1.5em;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.ajp-job-company {
    color: #0066cc;
    font-weight: 600;
    font-size: 1.1em;
    margin: 0;
}

.ajp-job-category {
    background: #0066cc;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.ajp-job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.ajp-job-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ajp-job-description {
    color: #555;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

.ajp-no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

/* Contact Section */
.ajp-contact-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
}

.ajp-contact-intro {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin: 0 0 40px 0;
}

.ajp-contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ajp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ajp-form-field {
    margin-bottom: 25px;
}

.ajp-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

.ajp-form-field input[type="text"],
.ajp-form-field input[type="email"],
.ajp-form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.ajp-form-field input:focus,
.ajp-form-field textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.ajp-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Groups */
.ajp-radio-group {
    margin-bottom: 25px;
}

.ajp-radio-label-main {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 1em;
}

.ajp-radio-options {
    display: flex;
    gap: 20px;
}

.ajp-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ajp-radio-option:hover {
    border-color: #0066cc;
    background: #f0f9ff;
}

.ajp-radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ajp-radio-option span {
    font-weight: 500;
    font-size: 1em;
}

/* Form Notice */
.ajp-form-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
}

.ajp-form-notice p {
    margin: 0;
    color: #856404;
}

/* Form Messages */
.ajp-form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ajp-message-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.ajp-message-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

/* Submit Button */
.ajp-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.ajp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,102,204,0.4);
}

.ajp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* CTA Section */
.ajp-cta-section {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.ajp-cta-section h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.ajp-cta-section p {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ajp-hero-content h1 {
        font-size: 2em;
    }
    
    .ajp-hero-subtitle {
        font-size: 1.3em;
    }
    
    .ajp-hero-text {
        font-size: 1.1em;
    }
    
    .ajp-section-title {
        font-size: 2em;
    }
    
    .ajp-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ajp-videos-grid-front {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .ajp-job-header {
        flex-direction: column;
    }
    
    .ajp-job-category {
        align-self: flex-start;
    }
    
    .ajp-form-row {
        grid-template-columns: 1fr;
    }
    
    .ajp-contact-form {
        padding: 25px;
    }
    
    .ajp-radio-options {
        flex-direction: column;
    }
    
    .ajp-cta-section h2 {
        font-size: 1.8em;
    }
    
    .ajp-cta-section p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .ajp-section {
        padding: 40px 0;
    }
    
    .ajp-job-card {
        padding: 20px;
    }
    
    .ajp-job-details {
        flex-direction: column;
        gap: 10px;
    }
}
