





*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif; 
  font-size: 1rem;                              
  line-height: 1.8;
  background-color: #f0f4f8;                   /* background-color على body */
  color: #2c2c2c;
  direction: rtl;
}


/* ============================================
   المتطلب 3: تنسيق header (background + padding)
   ============================================ */
header {
  background-color: #1b2a4a;   /* background-color على header */
  color: #ffffff;
  padding: 2rem 2rem 1.5rem;   /* padding */
  text-align: center;
  border-bottom: 4px solid #e63950;
}


/* ============================================
   المتطلب 2 + 4 + 8: تنسيق h1
   - element selector
   - font-size, font-weight, text-transform
   - text-shadow (المتطلب 8)
   - وحدة نسبية rem (المتطلب 7)
   ============================================ */
h1 {
  font-size: 2.2rem;                              
  font-weight: 700;                               /* font-weight */
  text-transform: uppercase;                      /* text-transform */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);   
  color: #ffffff;
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.4rem;                              /* وحدة نسبية */
  font-weight: 600;
  text-transform: capitalize;                     /* text-transform */
  color: #1b2a4a;
  margin: 1.5rem 0 0.75rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);   /* text-shadow */
}

header h2 {
  color: #c9d6e8;
  font-size: 1.1rem;
  font-weight: 400;
  text-shadow: none;
}



p {
  font-size: 1rem;          
  font-style: normal;       
  text-align: justify;      
  margin-bottom: 1rem;
}



a {
  color: #1b2a4a;
  text-decoration: none;
}

a:hover {
  color: #e63950;
  text-decoration: underline;
}



ul {
  list-style-type: disc;            /* list-style-type */
  list-style-position: outside;    /* list-style-position */
  margin: 0.5rem 0 1rem 2rem;
  padding: 0;
}

ol {
  list-style-type: decimal;         /* list-style-type */
  list-style-position: outside;
  margin: 0.5rem 0 1rem 2rem;
  padding: 0;
}

ul li, ol li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}




dl {
  margin: 0.5rem 0 1rem;
}

dt {
  font-weight: 700;
  font-style: italic;               /* font-style */
  color: #1b2a4a;
  margin-top: 0.6rem;
}

dd {
  margin-right: 1.5rem;
  color: #444;
}



nav {
  background-color: #243558;    /* background-color على nav */
  padding: 0.8rem 1.5rem;       /* padding */
  text-align: center;
}


nav a {
  color: #e0e8f5;
  text-decoration: none;        /* إزالة underline - المتطلب 5 */
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: #e63950;
  color: #ffffff;
}


main {
  max-width: 55rem;             /* وحدة نسبية rem */
  margin: 2rem auto;            /* margin */
  background-color: #ffffff;
  padding: 2rem 2.5rem;         /* padding */
  border-radius: 8px;
  border: 1px solid #dce3ed;    /* border */
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}



section {
  margin-bottom: 1.8rem;            /* margin */
  padding: 1rem 1.2rem;             /* padding */
  border-right: 4px solid #1b2a4a;  /* border */
  background-color: #f8fafd;
  border-radius: 0 6px 6px 0;
  width: 100%;                    
  min-height: 4rem;                
}



.highlight {
  background-color: #fff8e1;
  border-right: 4px solid #f5a623;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-style: italic;
  color: #5a3e00;
  margin: 0.75rem 0;
}




#intro {
  font-size: 1.08rem;
  border-right: 4px solid #e63950;
  padding-right: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
}



article {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed #dce3ed;
}

article:last-child {
  border-bottom: none;
}

figure {
  margin: 1rem 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #dce3ed;
}

figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
  font-style: italic;
}

blockquote {
  border-right: 4px solid #e63950;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  background-color: #fef9f9;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #444;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #888;
  font-style: normal;
}


/* ============================================
   تنسيق form (صفحة contact)
   ============================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 30rem;
}

label {
  font-weight: 600;
  color: #1b2a4a;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c5cdd8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f8fafd;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1b2a4a;
  background-color: #fff;
}

button[type="submit"] {
  background-color: #1b2a4a;
  color: #ffffff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #e63950;
}


/* ============================================
   تنسيق footer
   ============================================ */
footer {
  text-align: center;
  padding: 1.2rem;
  background-color: #1b2a4a;
  color: #8899bb;
  font-size: 0.85rem;
  border-top: 3px solid #e63950;
  margin-top: 2rem;
}



@media (max-width: 48rem) {      
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }

  main {
    padding: 1rem;
    margin: 1rem 0.5rem;
  }

  nav a {
    display: block;
    margin: 0.2rem auto;
    width: 80vw;                  
    text-align: center;
  }

  section {
    padding: 0.8rem;
  }
}
