/* @import for Google Font (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* General Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Background Gradients */
[data-page="home"] {
  background: linear-gradient(to bottom right, #1b5e20, #a5d6a7);
}

[data-page="about"] {
  background: linear-gradient(to bottom right, #4caf50, #81c784);
}

[data-page="contact"] {
  background: linear-gradient(to bottom right, #2e7d32, #66bb6a);
}

/* Header & Navigation Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  width: 100px;
  height: 100px;
  background-image: url("logo.png"); /* Make sure your logo.png is in the same folder */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: pulse 2s infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  padding-bottom: 3px;
}

nav a:hover, nav a.active {
  color: #FFD700; 
  border-bottom: 2px solid #FFD700;
}

/* Button Styles */
button {
  background-color: white;
  color: #1b5e20;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  margin: 10px;
}

button:hover {
  background-color: #ffeb3b; 
  color: black;
  transform: translateY(-2px);
}

.language-btn {
  background: none;
  border: 2px solid white;
  color: white;
  border-radius: 20px;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 0.9em;
}

/* Main Content Styles */
main {
  flex-grow: 1;
  padding: 60px 20px;
}

section {
  padding: 30px;
  margin-top: 20px;
}

h1, h2 {
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

p {
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 15px auto;
}

/* Contact Page Styles */
.contact-card {
  background: rgba(255,255,255,0.15);
  padding: 25px;
  border-radius: 15px;
  display: inline-block;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 90%;
  text-align: right;
}

.contact-card p {
  text-align: inherit;
  margin: 10px 0;
}

.contact-card a {
  color: #FFD700; 
  text-decoration: none;
  transition: 0.3s;
}

.contact-card a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer Styles */
footer {
  width: 100%;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  margin-top: auto;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 10px;
  }
  nav {
    margin: 10px 0;
  }
  nav a {
    display: block;
    margin: 5px 0;
  }
  .logo {
    width: 80px;
    height: 80px;
  }
}
/* ================================================= */
/* CSS خاص بصفحة التخصصات (majors.html) - إضافة جديدة */
/* ================================================= */

/* لون خلفية جديد لصفحة التخصصات (درجة خضراء فاتحة أو ذهبي خفيف) */
[data-page="majors"] {
  /* Green/Goldish gradient */
  background: linear-gradient(to bottom right, #8bc34a, #ffe082); 
}

.major-section {
    padding: 30px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1); /* خلفية خفيفة وشفافة للقسم */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.major-section h2 {
    color: white; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid #FFD700; /* شريط ذهبي تحت العنوان */
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.courses-list {
    list-style: none;
    padding: 0;
    display: grid;
    /* تقسيم الشاشة إلى أعمدة، كل عمود 300 بكسل على الأقل */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
}

.course-card {
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة للبطاقة */
    color: #1b5e20; /* لون النص داخل البطاقة (أخضر داكن) */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: right;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.course-card strong {
    display: block;
    color: #FFD700; /* اللون الذهبي لنوع الدورة */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.course-card p {
    margin: 0;
    color: #1b5e20;
    font-weight: 600;
}
