/* =========================================== */
/* === PROGRAM PAGE STYLES === */
/* =========================================== */

/* Program Hero Section - Serasi dengan about-hero di style.css */
.program-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: #FEA405;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.program-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.program-hero .page-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding-bottom: 20px;
}

.program-hero .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #FEA405;
    border-radius: 2px;
}

.program-hero .page-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    color: #fff;
    margin-top: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    font-weight: 500;
}

/* Program Tabs Container */
.program-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    align-items: center;
}

/* Tab Buttons */
.tab-button {
    padding: 12px 30px;
    background: #f5f5f5;
    color: #666;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Add Program Button */
.btn-add-program {
    padding: 12px 28px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-add-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-add-program i {
    font-size: 1.1rem;
}

/* Program Content Container */
#program-content {
    min-height: 400px;
}

/* Program Section */
.program-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.program-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program Header */
.program-header {
    background: #4CAF50;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
    position: relative;
}

.program-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.program-header-content {
    padding: 30px 40px;
    background: rgba(255, 193, 7, 0.95);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-header-content h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Program Action Buttons */
.program-action-buttons {
    display: none;
    gap: 10px;
    align-items: center;
}

.btn-edit-program,
.btn-delete-program {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.btn-edit-program {
    background: #2196F3;
}

.btn-edit-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-delete-program {
    background: #f44336;
}

.btn-delete-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Program Body */
.program-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Info Box - Consistent Design */
.info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.info-box h3 {
    color: #FEA405;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.info-box h3 i {
    font-size: 1.3rem;
    color: #4CAF50;
}

.info-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.learning-item {
    padding: 20px;
    background: #fff8e1;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.learning-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.learning-item i {
    color: #FEA405;
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.learning-item h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Schedule Info */
.schedule-info {
    margin-top: 10px;
}

.schedule-info p {
    margin: 8px 0;
    padding: 12px 15px;
    background: #fff8e1;
    border-left: 4px solid #4CAF50;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e8eaf6;
    transform: translateX(5px);
}

.feature-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff8e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #555;
}

.facility-item:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.facility-item i {
    color: #FEA405;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.facility-item:hover i {
    color: white;
}

/* Testimoni Section */
.testimoni-section {
    margin-top: 20px;
}

.testimoni-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimoni-card {
    background: #fff8e1;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    position: relative;
}

.testimoni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Testimoni Admin Controls */
.testimoni-admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    gap: 5px;
    z-index: 10;
}

.btn-edit-testimoni-mini,
.btn-delete-testimoni-mini {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-edit-testimoni-mini {
    background: #2196F3;
    color: white;
}

.btn-edit-testimoni-mini:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
}

.btn-delete-testimoni-mini {
    background: #f44336;
    color: white;
}

.btn-delete-testimoni-mini:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.4);
}

.testimoni-card .quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 193, 7, 0.2);
}

.testimoni-content {
    margin-bottom: 15px;
}

.testimoni-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 15px;
}

.testimoni-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 193, 7, 0.3);
}

.testimoni-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimoni-info h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.testimoni-info p {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

/* Testimoni Jenis Badge */
.testimoni-jenis-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimoni-jenis-badge.alumni {
    background: #4CAF50;
    color: white;
}

.testimoni-jenis-badge.walisantri {
    background: #2196F3;
    color: white;
}

/* Add Testimoni Button */
.btn-add-testimoni {
    padding: 10px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-testimoni:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

/* Daftar Button */
.btn-daftar {
    display: inline-block;
    padding: 15px 40px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-daftar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-daftar i {
    margin-left: 8px;
}

/* Program CRUD Modal */
.modal-program-crud {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-program-crud .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* Dynamic Input Groups */
.dynamic-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dynamic-input-group .form-input {
    flex: 1;
    margin-bottom: 0;
}

.btn-remove-item {
    padding: 12px 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.btn-remove-item:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-add-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel {
    padding: 12px 30px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Testimoni CRUD */
.modal-testimoni-crud {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-hero {
        padding: 40px 20px;
    }

    .program-hero .page-title {
        font-size: 1.8rem;
    }

    .program-hero .page-subtitle {
        font-size: 1rem;
    }

    .program-tabs {
        padding: 15px;
        gap: 10px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-add-program {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .program-image {
        height: 250px;
    }

    .program-header-content {
        padding: 20px;
    }

    .program-header-content h2 {
        font-size: 1.5rem;
    }

    .program-action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-edit-program,
    .btn-delete-program {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-program-crud {
        max-width: 95%;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .info-box {
        padding: 20px;
    }

    .info-box h3 {
        font-size: 1.2rem;
    }

    .learning-grid,
    .features-grid,
    .facilities-grid,
    .testimoni-grid {
        grid-template-columns: 1fr;
    }

    .testimoni-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-add-testimoni {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .program-hero .page-title {
        font-size: 1.5rem;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .info-box h3 {
        font-size: 1.1rem;
    }
}








