/**
 * Single Program Template Styles
 *
 * @package    Apprenticeshiphq_Directory
 * @subpackage Apprenticeshiphq_Directory/public/css
 */

/* ==========================================================================
   Program Container
   ========================================================================== */

.ahq-single-program-container {
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 40px 20px;
    min-height: calc(100vh - 120px);
}

.ahq-single-program {
    background: #fff;
    border-radius: 0; /* Square design */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ==========================================================================
   Program Header
   ========================================================================== */

.ahq-program-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 60px 40px;
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

.ahq-program-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.ahq-program-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
    color: #333;
}

.ahq-program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.ahq-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #666;
}

.ahq-meta-item i {
    font-size: 1.2rem;
    color: #007cba;
}

/* Skills Tags */
.ahq-skills-tags {
    margin-top: 30px;
}

.ahq-skills-label {
    font-weight: 500;
    margin: 0 0 10px;
    color: #333;
}

.ahq-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ahq-skill-tag {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 6px 16px;
    border-radius: 0; /* Square design */
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.3s ease;
}

.ahq-skill-tag:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */

.ahq-program-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    padding: 0 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ahq-nav-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #495057;
    cursor: pointer;
    font-weight: 500;
    padding: 20px 25px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ahq-nav-tab:hover {
    color: #1a4d8f;
    background: rgba(26, 77, 143, 0.05);
}

.ahq-nav-tab.ahq-nav-tab-active {
    color: #1a4d8f;
    border-bottom-color: #1a4d8f;
}

.ahq-tab-count {
    background: #6c757d;
    border-radius: 0; /* Square design */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 8px;
}

.ahq-nav-tab-active .ahq-tab-count {
    background: #1a4d8f;
}

/* ==========================================================================
   Tab Content
   ========================================================================== */

.ahq-program-content {
    background: #fff;
}

.ahq-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ahq-tab-content.ahq-tab-content-active {
    display: block;
}

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

/* ==========================================================================
   Overview Tab Layout
   ========================================================================== */

.ahq-overview-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px;
}

.ahq-overview-main {
    min-width: 0;
}

.ahq-section {
    margin-bottom: 50px;
}

.ahq-section:last-child {
    margin-bottom: 0;
}

.ahq-section h2 {
    color: #212529;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    padding-left: 20px;
}

.ahq-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #f39c12;
    border-radius: 0; /* Square design */
}

.ahq-description-content,
.ahq-career-content,
.ahq-companies-content {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ahq-description-content p,
.ahq-career-content p,
.ahq-companies-content p {
    margin-bottom: 15px;
}

.ahq-description-content p:last-child,
.ahq-career-content p:last-child,
.ahq-companies-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

.ahq-overview-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ahq-program-details-card,
.ahq-eligibility-card,
.ahq-share-card {
    background: #f8f9fa;
    border-radius: 0; /* Square design */
    padding: 25px;
    margin-bottom: 20px;
}

.ahq-program-details-card h3,
.ahq-eligibility-card h3,
.ahq-share-card h4 {
    color: #212529;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px;
}

/* Details List */
.ahq-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ahq-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ahq-detail-label {
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
}

.ahq-detail-value {
    color: #212529;
    font-weight: 600;
    text-align: right;
}

/* Eligibility Card */
.ahq-audiences,
.ahq-requirements {
    margin-bottom: 20px;
}

.ahq-audiences:last-child,
.ahq-requirements:last-child {
    margin-bottom: 0;
}

.ahq-eligibility-card h4 {
    color: #495057;

    font-weight: 600;
    margin: 0 0 10px;
}

.ahq-audiences-content,
.ahq-requirements-content {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Share Card */
.ahq-share-card {
    text-align: center;
}

.ahq-share-card h4 {

    margin-bottom: 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ahq-btn {
    background: #1a4d8f;
    border: 2px solid #1a4d8f;
    border-radius: 0; /* Square design */
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-weight: 500;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ahq-btn:hover {
    background: #2c5f9e;
    border-color: #2c5f9e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 143, 0.3);
}

.ahq-btn-secondary {
    background: transparent;
    color: #1a4d8f;
}

.ahq-btn-secondary:hover {
    background: #1a4d8f;
    color: #fff;
}

.ahq-btn-full {
    width: 100%;
}

.ahq-btn-text {
    background: none;
    border: none;
    color: #1a4d8f;
    padding: 8px 16px;
}

.ahq-btn-text:hover {
    background: rgba(26, 77, 143, 0.1);
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.ahq-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ahq-share-btn {
    background: #e9ecef;
    border: none;
    border-radius: 0; /* Square design */
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    transition: all 0.3s ease;
}

.ahq-share-btn:hover {
    transform: translateY(-2px);
}

.ahq-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.ahq-share-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.ahq-share-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.ahq-share-copy:hover {
    background: #6c757d;
    color: #fff;
}

/* ==========================================================================
   Related Testimonials
   ========================================================================== */

.ahq-related-testimonials {
    background: #f8f9fa;
    padding: 60px 40px;
    margin-top: 40px;
}

.ahq-related-testimonials h2 {
    text-align: center;
    color: #212529;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 40px;
}

.ahq-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ahq-testimonial-card {
    background: #fff;
    border-radius: 0; /* Square design */
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ahq-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.ahq-testimonial-quote {
    color: #495057;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0 0 20px;
    position: relative;
}

.ahq-testimonial-quote::before {
    content: '"';
    color: #1a4d8f;
    font-size: 3rem;
    font-weight: 700;
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.ahq-testimonial-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.ahq-testimonial-name {
    color: #212529;
    display: block;
    font-style: normal;
    font-weight: 600;
    margin-bottom: 5px;
}

.ahq-testimonial-status {
    color: #6c757d;
    font-size: 0.9rem;
}

.ahq-testimonials-cta {
    text-align: center;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.ahq-program-navigation {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 991px) {
    .ahq-overview-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ahq-overview-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .ahq-program-header {
        padding: 40px 30px;
    }
    
    .ahq-program-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .ahq-single-program-container {
        padding: 20px 10px;
    }
    
    .ahq-program-header {
        padding: 30px 20px;
    }
    
    .ahq-program-title {
        font-size: 1.5rem;
    }
    
    .ahq-program-meta {
        gap: 15px;
    }
    
    .ahq-meta-item {
        font-size: 0.95rem;
    }
    
    .ahq-program-nav {
        padding: 0;
    }
    
    .ahq-nav-tab {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .ahq-overview-layout {
        padding: 20px;
    }
    
    .ahq-section h2 {
        font-size: 1.5rem;
    }
    
    .ahq-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .ahq-overview-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Gallery Sections (No Tabs)
   ========================================================================== */

.ahq-photo-gallery-section,
.ahq-video-gallery-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.ahq-photo-gallery-section h2,
.ahq-video-gallery-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
}

/* Hide tab-related elements */
.ahq-program-nav,
.ahq-nav-tab,
.ahq-tab-content {
    display: none !important;
}

/* Ensure content shows directly */
.ahq-program-content {
    padding: 40px;
    background: #fff;
}

.ahq-program-content .ahq-overview-layout {
    display: block !important;
}

@media (max-width: 767px) {
    .ahq-photo-gallery-section,
    .ahq-video-gallery-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .ahq-photo-gallery-section h2,
    .ahq-video-gallery-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}