* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #FFF9C4 0%, #E1F5FE 50%, #B2EBF2 100%);
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(33, 150, 243, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header h1 {
    color: #000000;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.social-section {
    text-align: center;
    padding: 2rem 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s;
    background: #f0f0f0;
}

.social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

/* ألوان الأيقونات الحقيقية */
.social-icon[href*="t.me"] {
    background: #0088cc;
}

.social-icon[href*="tiktok.com"] {
    background: #000000;
}

.social-icon[href*="tel:"] {
    background: #25D366;
}

.social-icon[href*="wa.me"] {
    background: #25D366;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: linear-gradient(135deg, #FFD700 0%, #42A5F5 100%);
    color: #000000;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    color: #000000;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 500;
}

/* Programs Section - القديم (محذوف) */
.programs-section {
    display: none;
}

/* بنل البرامج الجديد */
.programs-panel {
    padding: 2rem 0;
    margin: 2rem 0;
}

.panel-container {
    background: linear-gradient(135deg, #FFF9C4 0%, #E1F5FE 50%, #B2EBF2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #FFD700;
    max-width: 1400px;
    margin: 0 auto;
}

.panel-title {
    text-align: center;
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.program-card {
    background: linear-gradient(135deg, #FFF9C4 0%, #E1F5FE 50%, #B2EBF2 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #FFD700;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.program-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.program-name {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.program-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #FFF9C4 0%, #E1F5FE 100%);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: block;
    border: 3px solid #FFD700;
}

.program-price {
    font-size: 1.8rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.program-buttons {
    display: flex;
    gap: 10px;
}

.download-button,
.buy-button {
    flex: 1;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.download-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.buy-button {
    background: linear-gradient(135deg, #FFD700 0%, #42A5F5 100%);
    color: #000000;
    font-weight: bold;
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.download-button:active,
.buy-button:active {
    transform: scale(0.98);
}

.no-programs {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    color: #000000;
    font-size: 1.2rem;
    border: 2px dashed #42A5F5;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #E1F5FE 0%, #B2EBF2 100%);
    color: #000000;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid #42A5F5;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #E1F5FE 0%, #B2EBF2 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #42A5F5;
}

.admin-title {
    text-align: center;
    color: #000000;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
    background: #f8f9fa;
}

.form-group input[type="file"]:hover {
    background: #e9ecef;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #000000;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.image-preview {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
    border: 2px solid #ddd;
    display: none;
}

.image-preview.show {
    display: block;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #42A5F5 100%);
    color: #000000;
    font-weight: bold;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.programs-list {
    margin-top: 3rem;
}

.programs-list h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.program-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-item-info {
    flex: 1;
}

.program-item-info h4 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.program-item-info p {
    color: #000000;
}

.program-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 1rem;
}

.program-item-actions {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #E1F5FE 0%, #B2EBF2 100%);
    margin: auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #42A5F5;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    background: #f0f0f0;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    padding: 10px;
    background: #ffeaea;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-section {
        padding: 1.5rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-item-image {
        margin-left: 0;
        margin-top: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

