/* ===== THEME B: Indigo & Gold (ألوان جديدة + بوردَر + حركات) ===== */

/* 1) لوحة ألوان ومتغيرات جديدة */
:root {
  --primary-blue: #e31b05;           /* Indigo */
  --secondary-blue: #6a77d1;
  --accent-teal: #d4af37;            /* Gold */
  --accent-amber: #ffb703;           /* Honey gold */
  --light-bg: #f6f7fb;               /* خلفية فاتحة هادئة */
  --card-bg: #ffffff;
  --text-dark: #111827;              /* أغمق لقراءة أفضل */
  --text-light: #6b7280;

  /* حدود وبظلال مختلفة */
  --border-radius: 18px;
  --shadow-sm: 0 6px 14px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 26px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 16px 44px rgba(17, 24, 39, 0.16);

  /* تدرجات مخففة */
  --gradient-primary: linear-gradient(135deg, #05d7c6 0%, #348da1 100%);
  --gradient-secondary: linear-gradient(135deg, #d4af37 0%, #ffb703 100%);
  --gradient-teal: linear-gradient(135deg, #ffcb66 0%, #d4af37 100%);
  --gradient-light: linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
}

/* 2) خلفية عامة أكثر هدوءاً */
body {
  color: var(--text-dark);
  background: var(--gradient-light);
}

/* 3) الهيدر – إطار ذهبي رفيع ونقوش خفيفة بدل الموجة القديمة */
.header {
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  border: 2px solid rgba(212,175,55,0.35);          /* حافة ذهبية */
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.header::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 220px at -10% -10%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(800px 200px at 120% 0%, rgba(255,255,255,.10), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

/* 4) صورة الملف – حافة مزدوجة ولمعة خفيفة بدل تكبير قوي */
.profile-image-container{
  border-radius: 22px;                           /* مربع بحواف ناعمة بدل دائرة */
  border: 2px solid rgba(212,175,55,0.55);       /* ذهب */
  outline: 6px solid rgba(212,175,55,0.12);      /* حلقة خارجية شفافة */
  transition: transform .35s ease, box-shadow .35s ease;
}
.profile-image-container:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(47,59,143,.28);
}
.image-overlay{ background: rgba(47,59,143,.25); }

/* 5) عناوين وأيقونات */
.profile-info h1{ text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.contact-info i{ color: var(--accent-teal); }

/* 6) رؤوس الأقسام – كبسولة بإطار منقط ذهبي */
.section-header h2{
  color: var(--primary-blue);
  background: #fff;
  border-radius: 60px;
  border: 2px dashed rgba(212,175,55,.55);      /* إطار منقط مختلف */
  box-shadow: var(--shadow-sm);
}

/* 7) البطاقات – خط علوي ذهبي + بوردَر خفيف وخامة ورقية */
.media-card,
.content-card,
.course-list,
.grades-table-container,
.form-card{
  background: var(--card-bg);
  border: 1px solid #eceff6;
  box-shadow: var(--shadow-md);
  position: relative;
}
.media-card::before,
.content-card::before,
.course-list::before,
.grades-table-container::before,
.form-card::before{
  content:"";
  position:absolute; left:0; top:0; height:5px; width:100%;
  background: var(--gradient-secondary);
}

/* تأثير تحويم جديد: ميل خفيف بدل القفز لأعلى */
.media-card:hover,
.form-card:hover{
  transform: translateY(-4px) rotateZ(-.2deg);
  box-shadow: var(--shadow-lg);
}

/* 8) حدود جانبية للمحتوى بالذهب بدل التيل */
.content-card{ border-left: 6px solid var(--accent-teal); }
.form-card .form-header i{ color: var(--primary-blue); }
.form-group input:focus{
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(47,59,143,.12);
}

/* 9) جدول الدرجات – هيدر بنفسجي فاتح وشرائط خفيفة */
.table-header th{
  background: linear-gradient(135deg,#3b4ab5,#6a77d1);
}
.grades-table tbody tr:nth-child(even){ background:#f5f7fd; }
.grades-table tbody tr:hover{
  background:#eef2ff;
  transform: none;
  box-shadow: inset 0 0 0 9999px rgba(106,119,209,.06);
}

/* 10) زر الإرسال – ذهبي متدرج ولمعة */
.submit-btn{
  background: var(--gradient-secondary);
  text-transform: none;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(212,175,55,.25);
}
.submit-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212,175,55,.35);
  background: linear-gradient(135deg,#ffbf49,#d4af37);
}

/* 11) نص خاص – وميض ناعم بدل Pulse الكبير */
#special-text{
  background: linear-gradient(135deg,#ffbf49,#d4af37);
  color:#1f2937;
  text-shadow: none;
  animation: glow 3.2s ease-in-out infinite;
  border: 2px solid rgba(212,175,55,.45);
}
@keyframes glow{
  0%,100%{ box-shadow: 0 0 0 rgba(212,175,55,0); transform: translateY(0); }
  50%{ box-shadow: 0 0 24px rgba(212,175,55,.35); transform: translateY(-1px); }
}

/* 12) الفوتر – شريط علوي ذهبي ودرجة أغمق */
.footer{
  background: #2b356f;
  border: 1px solid #2a3171;
}
.footer::before{
  background: var(--gradient-secondary);
}
.footer-info h3, .footer-contact h3{ color:#ffd166; }

/* 13) لمسات RTL/LTR تبقى كما هي – لا تغيير على الشبكات والـgrid */

/* 14) حركات دخول عامة خفيفة يمكن تفعيلها عند اللزوم */
@keyframes soft-fade-up{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform: translateY(0); }
}
.media-card, .form-card, .content-card{
  animation: soft-fade-up .6s ease both;
}


/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ===== HEADER SECTION ===== */
.header {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.profile-section {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.3);
    transition: background 0.3s ease;
}

.profile-image-container:hover .image-overlay {
    background: rgba(30, 58, 138, 0.1);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.student-info {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 600;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.contact-info i {
    color: var(--accent-amber);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 2px solid #e2e8f0;
    font-weight: 700;
}

/* ===== MEDIA SECTION ===== */
.media-section {
    margin-bottom: 3.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.media-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-amber);
    position: relative;
    overflow: hidden;
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.media-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.media-card i {
    color: var(--accent-amber);
}

audio, video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    margin-bottom: 3.5rem;
}

.content-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--accent-teal);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-teal);
}

.content-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.content-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.university-link {
    text-align: center;
    margin-top: 2.5rem;
}

.university-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-teal);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.university-link a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    margin-bottom: 3.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.course-list, .grades-table-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-amber);
    position: relative;
    overflow: hidden;
}

.course-list::before, .grades-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.course-list h3, .grades-table-container h3 {
    color: var(--primary-blue);
    margin-bottom: 1.75rem;
    font-size: 1.4rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 700;
}

.course-list ol {
    list-style: none;
    counter-reset: course-counter;
}

.course-list li {
    counter-increment: course-counter;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.course-list li:hover {
    background-color: #f8fafc;
    border-radius: 8px;
    padding-left: 15px;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li:before {
    content: counter(course-counter);
    background: var(--gradient-secondary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.course-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== TABLE STYLING ===== */
.grades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    overflow: hidden;
}

.table-header th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 1.5rem;
    text-align: center;
    border: none;
    font-size: 1.05rem;
}

.grades-table th, .grades-table td {
    padding: 1.25rem;
    text-align: center;
    border: none;
}

.grades-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.grades-table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* ===== FORMS SECTION ===== */
.forms-section {
    margin-bottom: 3.5rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.form-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--accent-teal);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-teal);
}

.form-card:hover {
    transform: translateY(-8px);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-header i {
    font-size: 1.75rem;
    color: var(--accent-teal);
}

.form-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.radio-option:hover {
    background-color: #f8fafc;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-teal);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Segoe UI', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-blue);
}

/* ===== SPECIAL TEXT ===== */
.special-section {
    margin-bottom: 3.5rem;
}

.special-text-container {
    text-align: center;
}

#special-text {
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    font-size: 28px;
    font-family: "Segoe UI", sans-serif;
    text-align: center;
    background: var(--gradient-secondary);
    color: white;
    padding: 25px 50px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-md);
    display: inline-block;
    letter-spacing: 1px;
    font-weight: 800;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 1;
    }
    100% { 
        transform: scale(1); 
        opacity: 0.9;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-blue);
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    padding: 3.5rem 3rem;
    position: relative;
    z-index: 1;
}

.footer-info h3, .footer-contact h3 {
    color: var(--accent-amber);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.75rem;
    text-align: center;
    font-size: 1rem;
    color: #e2e8f0;
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.grades-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .header {
        padding: 2rem;
    }
    
    .profile-image-container {
        width: 140px;
        height: 140px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .media-grid, .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: 2.5rem 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
    
    .content-card, .course-list, .grades-table-container, .form-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .content-card, .course-list, .grades-table-container, .form-card {
        padding: 1.5rem;
    }
    
    .grades-table {
        font-size: 0.9rem;
    }
    
    .grades-table th, .grades-table td {
        padding: 0.75rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    #special-text {
        font-size: 1.3rem;
        padding: 20px 30px;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .profile-info h1 {
        font-size: 1.7rem;
    }
    
    .student-info {
        font-size: 1.1rem;
    }
}