/* ========================================
   STRATEGY PAGE STYLES
======================================== */

:root {
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-gold: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

/* Main Section */
.strategy {
    padding: 80px 0;
    background: #ffffff;
}

.strategy-block {
    margin-bottom: 100px;
}

.strategy-block:last-child {
    margin-bottom: 0;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-badge.success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-color: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

.section-badge.info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-color: rgba(79, 172, 254, 0.2);
    color: #4facfe;
}

.section-badge i {
    font-size: 1.1rem;
}

/* Section Headings */
.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-subheading {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   STRATEGIC PLANS - แสดงรูปและรายละเอียดแบบ 2 คอลัมน์
======================================== */
.strategic-plan-detail {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategic-plan-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.plan-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.plan-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.strategic-plan-detail:hover .plan-image-wrapper img {
    transform: scale(1.05);
}

.plan-content {
    padding: 20px;
}

.plan-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.plan-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
}

.plan-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.plan-actions .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ebook {
    background: var(--gradient-purple);
    border: none;
    color: white;
}

.btn-ebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ========================================
   ACTION PLANS - แสดงรูปแทน icon
======================================== */
.action-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-green);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(67, 233, 123, 0.2);
}

/* Action Card Image */
.action-card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #f8f9fa;
}

.action-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    padding: 10px;
}

.action-card:hover .action-card-image img {
    transform: scale(1.1);
}

.action-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(67, 233, 123, 0.3) 100%);
}

/* Action Card Header (ถ้าไม่มีรูป) */
.action-card-header {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
}

.action-card-header i {
    font-size: 2.5rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-card-body {
    padding: 30px;
}

.action-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.action-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-buttons .btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   DEVELOPMENT FRAMEWORKS - แสดงรูปเต็มๆ
======================================== */
.framework-detail {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.framework-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.framework-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.framework-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.framework-detail:hover .framework-image-wrapper img {
    transform: scale(1.05);
}

.framework-content {
    padding: 20px;
}

.framework-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.framework-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.framework-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
}

.framework-actions .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ========================================
   PDF VIEWER MODAL STYLES
======================================== */
#pdfViewerModal .modal-dialog {
    margin: 0;
    max-width: 100%;
}

#pdfViewerModal .modal-content {
    border-radius: 0;
    height: 100vh;
}

#pdfViewerModal .modal-header {
    background: #343a40;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
}

#pdfViewerModal .modal-title {
    font-weight: 600;
    color: white;
}

#pdfFrame {
    background: white;
    width: 100%;
    height: calc(100vh - 70px);
    border: none;
}

#pdfLoading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 30px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    color: #adb5bd;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .strategy {
        padding: 60px 0;
    }
    
    .strategy-block {
        margin-bottom: 80px;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .strategic-plan-detail,
    .framework-detail {
        padding: 30px;
    }
    
    .plan-content,
    .framework-content {
        padding: 20px 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .strategy {
        padding: 50px 0;
    }
    
    .strategy-block {
        margin-bottom: 60px;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .strategic-plan-detail,
    .framework-detail {
        padding: 25px;
    }
    
    .plan-actions,
    .framework-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .plan-actions .btn,
    .framework-actions .btn {
        width: 100%;
    }
    
    .action-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.5rem;
    }
    
    .section-subheading {
        font-size: 1rem;
    }
    
    .plan-title,
    .framework-title {
        font-size: 1.5rem;
    }
    
    .action-title {
        font-size: 1.1rem;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .plan-icon,
    .framework-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   ANIMATION CLASSES
======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Fix z-index issues */
.modal-backdrop {
    z-index: 1040;
}

#pdfViewerModal {
    z-index: 1050;
}