* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: #1a237e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.islamic-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, #d4af37 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #00695c 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #1a237e 0%, transparent 50%);
    opacity: 0.07;
    z-index: -1;
}

h1 {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    color: #004d40;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
}

h1::after {
    content: "﴾";
    position: absolute;
    left: -40px;
    top: -10px;
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.7;
}

h1::before {
    content: "﴿";
    position: absolute;
    right: -40px;
    top: -10px;
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.7;
}

.subtitle {
    font-size: 1.2rem;
    color: #00695c;
    margin-bottom: 30px;
}

.content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.file-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #37474f;
    margin-bottom: 30px;
    text-align: justify;
}

.file-info {
    background: #e8f5e9;
    border-right: 4px solid #00695c;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.file-info h3 {
    color: #00695c;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    margin: 5px 10px;
}

.meta-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00695c;
}

.download-section {
    text-align: center;
    margin: 40px 0;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,105,92,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,105,92,0.4);
}

.download-icon {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

footer {
    background: #004d40;
    color: #e0f2f1;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.islamic-border {
    height: 10px;
    background: linear-gradient(90deg, #d4af37, #00695c, #1a237e, #d4af37);
    background-size: 200% 100%;
    animation: border-animation 8s linear infinite;
}

@keyframes border-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h1::before, h1::after {
        font-size: 2.5rem;
    }
    
    .content {
        padding: 25px;
    }
    
    .download-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  .gallery-item {
    text-align: center;
  }
  .gallery-item img {
    width: auto;
    height: 150px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
  }
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  .gallery-item a {
    display: block;
    margin-top: 8px;
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
  }

  /* نافذة تكبير الصورة */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
  }
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    border-radius: 10px;
  }
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  