/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: right; /* Right-align text for Arabic */
    direction: rtl; /* Right-to-left direction for Arabic */
}
.contain{
    width: 80%;
    margin: auto;
    overflow: hidden;
}
/* Header Styles */
header {
    display: flex;
    background-color: #007BFF;
    color: white;
    padding: 10px;
    text-align: center;
    /* float: right;
    width: 70%;
    box-sizing: border-box; */

}
.logo img {
    max-width: 100px;
    height: auto;
    float: left;
    box-sizing: border-box; 
}
header h1 {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#social-media {
    margin-top: 20px;
}

/* Aside Styles */
aside {
    background-color: #f8f9fa;
    padding:0px 20px;
    float: left;
    width: 30%;
    box-sizing: border-box;
}

aside h2 {
    color: #007BFF;
}

/* Main Content Styles */
section {
    padding: 0 30px;
    float: right;
    width: 70%;
    box-sizing: border-box;
}
.clr{
    clear: both;
}
/* General Styles */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-image {
    position: relative;
    
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-image h3 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    background-color: rgba(0, 123, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
}

.card-content {
    padding: 20px;
}

.brief-description {
    color: #555;
    margin-bottom: 10px;
}

.see-more {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

.see-more:hover {
    background-color: #0056b3;
}

.more-details {
    display: none;
    margin-top: 10px;
}

.more-details p {
    color: #555;
    margin-bottom: 10px;
}

.enroll-button {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    width: 100%;
}

.enroll-button:hover {
    background-color: #218838;
}
a i {
    margin: 0 10px;
    transition: color 0.3s ease;
  }
  
  a i:hover {
    color: #25D366; /* WhatsApp green */
  }
  
  a i.fa-facebook:hover {
    color: #1877f2; /* Facebook blue */
  }
@media(max-width:600px){
    section{
        width: 100%;
        float: none;
    }
    aside{
        width: 100%;
        float: none;
    }
}