/* Premium McKinsey-inspired Unified Stylesheet for Newsletter & Careers Portal */

:root {
    --aw-primary-color: #002D62;      /* Deep McKinsey Blue */
    --aw-secondary-color: #0077b6;    /* Accent Blue */
    --aw-text-dark: #121212;          /* Rich Dark */
    --aw-text-muted: #5c677d;         /* Slate Grey */
    --aw-bg-light: #f8f9fa;           /* Off-white */
    --aw-border-color: #d1d5db;       /* Light border */
    --aw-success-color: #10b981;      /* Emerald green */
    --aw-error-color: #ef4444;        /* Crimson red */
    --aw-radius: 6px;
    --aw-font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --aw-font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   1. Newsletter Subscription Form Styles
   ========================================================================== */

.arrowways-newsletter-wrapper {
    font-family: var(--aw-font-body);
    color: var(--aw-text-dark);
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: var(--aw-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.arrowways-newsletter-header {
    text-align: center;
    margin-bottom: 40px;
}

.arrowways-newsletter-header h2 {
    font-family: var(--aw-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--aw-primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.arrowways-newsletter-header p {
    font-size: 16px;
    color: var(--aw-text-muted);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Form layout Grid */
.arrowways-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arrowways-form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.arrowways-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Fields Styling */
.arrowways-form-col label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.arrowways-form-col input[type="text"],
.arrowways-form-col input[type="email"],
.arrowways-form-col input[type="password"],
.arrowways-form-col select {
    font-family: var(--aw-font-body);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--aw-border-color);
    border-radius: var(--aw-radius);
    background-color: var(--aw-bg-light);
    color: var(--aw-text-dark);
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.arrowways-form-col input:focus,
.arrowways-form-col select:focus {
    border-color: var(--aw-primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.08);
}

/* Password Strength Meter */
.password-strength-meter {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.password-strength-meter.weak { color: var(--aw-error-color); }
.password-strength-meter.medium { color: #f59e0b; }
.password-strength-meter.strong { color: var(--aw-success-color); }

/* Subscription Topics Section */
.arrowways-subscription-topics {
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

.arrowways-subscription-topics h3 {
    font-family: var(--aw-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--aw-primary-color);
    margin-bottom: 6px;
}

.arrowways-subscription-topics .section-desc {
    font-size: 14px;
    color: var(--aw-text-muted);
    margin-bottom: 24px;
}

/* Topics checkbox cards layout */
.arrowways-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.arrowways-topic-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.arrowways-topic-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.topic-card-design {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--aw-border-color);
    border-radius: var(--aw-radius);
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.arrowways-topic-card input[type="checkbox"]:checked + .topic-card-design {
    border-color: var(--aw-primary-color);
    background-color: rgba(0, 45, 98, 0.02);
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.05);
}

.arrowways-topic-card input[type="checkbox"]:focus + .topic-card-design {
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.08);
}

.topic-name {
    font-family: var(--aw-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--aw-primary-color);
    margin-bottom: 6px;
}

.topic-desc {
    font-size: 12px;
    color: var(--aw-text-muted);
    line-height: 1.4;
}

/* Feedback Notifications */
.arrowways-form-feedback {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--aw-radius);
    font-size: 14px;
    line-height: 1.5;
    animation: awFadeIn 0.3s ease-out;
}

.arrowways-form-feedback.success {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.arrowways-form-feedback.error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* Submit Section */
.arrowways-form-submit {
    margin-top: 20px;
}

.arrowways-form-submit button {
    font-family: var(--aw-font-heading);
    background-color: var(--aw-primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: var(--aw-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.arrowways-form-submit button:hover {
    background-color: #001f42;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.15);
}

.arrowways-form-submit button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   2. Job Portal Frontend Listing & Filters
   ========================================================================== */

.arrowways-jobs-portal {
    font-family: var(--aw-font-body);
    color: var(--aw-text-dark);
    margin: 30px auto;
}

.arrowways-jobs-filter-section {
    background-color: #ffffff;
    border: 1px solid var(--aw-border-color);
    border-radius: var(--aw-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

#arrowways-jobs-search-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#arrowways-jobs-search-form .filter-field {
    flex: 1;
    min-width: 250px;
    position: relative;
}

#arrowways-jobs-search-form .select-wrapper {
    max-width: 200px;
}

#arrowways-jobs-search-form .search-input-wrapper input {
    padding-left: 44px !important;
}

#arrowways-jobs-search-form .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aw-text-muted);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Job Cards Container - 3-Column Grid */
.arrowways-jobs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    min-height: 200px;
}

.arrowways-jobs-list.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

/* Job Listings - Simple Bootstrap Cards */
.job-bootstrap-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    transition: all 0.2s ease-in-out;
    margin-bottom: 24px;
    text-align: left;
}

.job-bootstrap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.job-bootstrap-card .card-body {
    padding: 24px !important;
}

.job-bootstrap-card .card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.job-bootstrap-card .card-subtitle {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-bottom: 15px !important;
}

.job-bootstrap-card .card-subtitle span {
    display: inline-flex;
    align-items: center;
}

.job-bootstrap-card .card-subtitle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.job-bootstrap-card .card-text {
    font-size: 0.95rem !important;
    color: #495057 !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
}

.job-bootstrap-card .card-requirements {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin-bottom: 0 !important;
}

.job-bootstrap-card .card-requirements li {
    margin-bottom: 4px !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
}

.job-bootstrap-card .btn-primary {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
    display: inline-block !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    padding: 8px 20px !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    border: 1px solid transparent !important;
}

.job-bootstrap-card .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #004085 !important;
}

.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9fafb;
    border: 1px dashed var(--aw-border-color);
    border-radius: var(--aw-radius);
    color: var(--aw-text-muted);
    font-style: italic;
}

/* AJAX Pagination Buttons */
.arrowways-jobs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.arrowways-jobs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid var(--aw-border-color);
    border-radius: var(--aw-radius);
    background-color: #ffffff;
    color: var(--aw-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.arrowways-jobs-pagination .page-numbers:hover,
.arrowways-jobs-pagination .page-numbers.active {
    background-color: var(--aw-primary-color);
    border-color: var(--aw-primary-color);
    color: #ffffff;
}

/* Spinner Loader */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Responsive Styles */
@media (max-width: 991px) {
    .arrowways-jobs-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .arrowways-jobs-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    #arrowways-jobs-search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    #arrowways-jobs-search-form .select-wrapper {
        max-width: 100%;
    }
}
