/* Single Opportunity Page Styles */

/* Login Popup Styles */
.hac-login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hac-login-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.hac-login-popup {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s ease;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.hac-login-popup-overlay.show .hac-login-popup {
    transform: translateY(0) scale(1);
}

.hac-popup-header {
    background: linear-gradient(135deg, #e4c537 0%, #d4b530 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hac-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hac-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hac-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hac-popup-body {
    padding: 2rem;
    text-align: center;
}

.hac-popup-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.hac-popup-body p {
    font-size: 1.1rem;
    color: #495057;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.hac-popup-subtitle {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-bottom: 2rem !important;
}

.hac-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 2rem 2rem 2rem;
}

.hac-popup-actions .hac-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.hac-popup-actions .hac-btn-primary {
    background: #e4c537;
    color: #000;
}

.hac-popup-actions .hac-btn-primary:hover {
    background: #d4b530;
    transform: translateY(-2px);
}

.hac-popup-actions .hac-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.hac-popup-actions .hac-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .hac-login-popup {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .hac-popup-actions {
        flex-direction: column;
    }
    
    .hac-popup-actions .hac-btn {
        flex: none;
    }
}

.hac-opportunity-single {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.hac-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hac-opportunity-hero {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hac-hero-image {
    width: 100%;
    height: 100%;
}

.hac-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hac-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 3rem 0 2rem;
}

.hac-hero-content {
    position: relative;
    z-index: 2;
}

.hac-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hac-breadcrumb a {
    color: #e4c537;
    text-decoration: none;
}

.hac-breadcrumb a:hover {
    text-decoration: underline;
}

.hac-opportunity-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hac-opportunity-org {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.hac-org-icon {
    font-size: 1.2rem;
}

.hac-org-name {
    font-weight: 600;
}

.hac-org-type {
    opacity: 0.8;
}

/* Header (No Image) */
.hac-opportunity-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 3px solid #e4c537;
}

.hac-opportunity-header .hac-opportunity-title {
    color: #2c3e50;
    font-size: 2.5rem;
}

.hac-opportunity-header .hac-opportunity-org {
    color: #495057;
}

/* Content Layout */
.hac-opportunity-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hac-main-content {
    min-width: 0; /* Prevent overflow */
}

/* Apply Section */
.hac-apply-section {
    background: linear-gradient(135deg, #e4c537 0%, #d4b530 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(228, 197, 55, 0.2);
}

.hac-apply-button {
    background: white;
    color: #2c3e50;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hac-apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: #2c3e50;
    text-decoration: none;
}

.hac-apply-icon {
    font-size: 1.2rem;
}

.hac-apply-info {
    margin-top: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Content Sections */
.hac-content-section {
    margin-bottom: 3rem;
}

.hac-content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    border-bottom: 3px solid #e4c537;
    padding-bottom: 0.5rem;
}

.hac-content-text {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #4a5568;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Offers Grid */
.hac-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hac-offer-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hac-offer-card:hover {
    border-color: #e4c537;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hac-offer-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hac-offer-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.hac-offer-value {
    color: #e4c537;
    font-weight: 600;
}

.hac-additional-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-right: 4px solid #e4c537;
}

.hac-additional-benefits h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

/* Benefits List */
.hac-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hac-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.hac-benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Requirements Grid */
.hac-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hac-requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hac-req-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hac-req-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.hac-req-value {
    color: #2c3e50;
}

.hac-additional-requirements {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-right: 4px solid #e4c537;
}

.hac-additional-requirements h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

/* Gallery */
.hac-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hac-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.hac-gallery-item:hover {
    transform: scale(1.05);
}

.hac-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hac-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hac-gallery-item:hover .hac-gallery-overlay {
    opacity: 1;
}

.hac-gallery-zoom {
    font-size: 2rem;
    color: white;
}

/* Sidebar */
.hac-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hac-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.hac-sidebar-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #e4c537;
    padding-bottom: 0.5rem;
}

/* Apply Card */
.hac-apply-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e4c537;
}

.hac-apply-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hac-apply-main {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.hac-apply-note {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.hac-deadline {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Details List */
.hac-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hac-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.hac-detail-row:last-child {
    border-bottom: none;
}

.hac-detail-icon {
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.hac-detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    flex-shrink: 0;
}

.hac-detail-value {
    color: #2c3e50;
    flex: 1;
}

.hac-working-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hac-day-badge {
    background: #e4c537;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Organization Info */
.hac-org-header {
    margin-bottom: 1rem;
}

.hac-org-header h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.hac-org-type-badge {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.hac-org-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hac-org-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hac-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.hac-contact-icon {
    font-size: 1rem;
}

/* Share Buttons */
.hac-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hac-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hac-share-whatsapp {
    background: #25D366;
    color: white;
}

.hac-share-facebook {
    background: #1877F2;
    color: white;
}

.hac-share-copy {
    background: #6c757d;
    color: white;
}

.hac-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Modal */
.hac-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.hac-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.hac-application-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.hac-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.hac-modal-close:hover {
    opacity: 0.7;
}

#hac-modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hac-opportunity-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hac-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hac-container {
        padding: 0 0.75rem;
    }
    
    .hac-opportunity-hero {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .hac-opportunity-title {
        font-size: 2rem;
    }
    
    .hac-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .hac-requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .hac-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hac-detail-row {
        flex-wrap: wrap;
    }
    
    .hac-detail-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .hac-working-days {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hac-opportunity-title {
        font-size: 1.5rem;
    }
    
    .hac-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hac-modal-content {
        width: 95%;
    }
    
    .hac-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Sticky Apply Button for Mobile */
@media (max-width: 768px) {
    .hac-apply-top {
        display: none;
    }
    
    .hac-mobile-apply-sticky {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 100;
        background: linear-gradient(135deg, #e4c537 0%, #d4b530 100%);
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .hac-mobile-apply-sticky .hac-apply-button {
        width: 100%;
        justify-content: center;
    }
}
