@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

header {
    background-color: #004d40;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.university-info {
    flex: 1;
}

.logo {
    width: 80px;
    height: 80px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1, h2, h3 {
    margin-bottom: 10px;
}

section {
    padding: 30px;
    margin: 20px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.researcher-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e3f2fd;
}

.info-text {
    flex: 1;
}

.researcher-image {
    width: 150px;
    height: 150px;
    margin-right: 20px;
}

.researcher-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #004d40;
}

.researcher-name {
    color: #004d40;
    font-size: 2em;
}

.researcher-intro {
    color: #666;
    margin-top: 20px;
}

.researcher-title {
    color: #666;
}

.thesis-title {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    background-image: linear-gradient(rgba(0, 77, 64, 0.9), rgba(0, 77, 64, 0.9)), url('../images/backgrounds/ai_chatbot_bg.png');
    background-size: cover;
    background-position: center;
}

.committees h2 {
    color: #004d40;
    text-align: center;
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.committee-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.member {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.member-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #004d40;
}

.member h3 {
    color: #004d40;
    font-size: 1.2em;
}

.member p {
    color: #666;
    font-size: 0.9em;
}

.date-time {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #e3f2fd;
}

.date-info, .countdown {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.date-info h3, .countdown h3 {
    color: #004d40;
    text-align: center;
    margin-bottom: 15px;
}

.date-info p {
    text-align: center;
    font-size: 1.1em;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #004d40;
    color: white;
    padding: 10px;
    border-radius: 5px;
    min-width: 60px;
}

.countdown-item span:first-child {
    font-size: 1.5em;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8em;
}

.location h2 {
    color: #004d40;
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.share h2 {
    color: #004d40;
    text-align: center;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn i {
    margin-left: 10px;
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.whatsapp {
    background-color: #25d366;
}

.telegram {
    background-color: #0088cc;
}

.linkedin {
    background-color: #0077b5;
}

footer {
    background-color: #004d40;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

/* تصميم قسم التهاني */
.congratulations h2 {
    color: #004d40;
    text-align: center;
    margin-bottom: 20px;
}

.congrats-intro {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 10px;
}

.congrats-intro p {
    font-size: 1.1em;
    color: #004d40;
}

.facebook-comments {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-top: 20px;
    }
    
    .researcher-info {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .researcher-image {
        margin: 0 auto 20px;
    }
    
    .committee-members {
        flex-direction: column;
        align-items: center;
    }
    
    .member {
        width: 100%;
        max-width: 100%;
    }
    
    .date-time {
        flex-direction: column;
    }
    
    #countdown-timer {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
