/* Modern, section-based, new colors, bigger cards, centered student photos */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', Arial, sans-serif;
    background: #f3f0fa;
    color: #222;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(90deg, #6c63ff 0%, #43e6d6 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(108,99,255,0.08);
}

h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

#doctors-section {
    background: linear-gradient(90deg, #f8f7fd 0%, #e3f6f5 100%);
    padding: 2rem 0;
}

#doctors-section .section-title h2 {
    color: #6c63ff;
}

.doctors-photos {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.doctor-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(108,99,255,0.10);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    text-align: center;
    min-width: 280px;
    max-width: 380px;
    border: 2px solid #e3f6f5;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.doctor-card:hover {
    box-shadow: 0 12px 36px rgba(108,99,255,0.18);
    transform: translateY(-6px) scale(1.04);
}

.doctor-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
    border: 4px solid #1976d2;
    background: #fff;
    margin-bottom: 1rem;
}

#doctors-section span {
    color: #43e6d6;
    font-size: 1.1em;
    font-weight: 500;
}

#students-section {
    background: linear-gradient(90deg, #f3f0fa 0%, #ffe5ec 100%);
    padding: 2rem 0;
}

#students-section .section-title h2 {
    color: #7a4747;
}

.students-photos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.students-photos img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff6f91;
    background: #fff;
    box-shadow: 0 2px 12px rgba(255,111,145,0.12);
    display: block;
    margin: 0 auto;
}

#courses-section {
    background: linear-gradient(90deg, #e3f6f5 0%, #f8f7fd 100%);
    padding: 2rem 0;
}

#courses-section .section-title h2 {
    color: #43e6d6;
}

.courses-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.course-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(108,99,255,0.10);
    padding: 2rem 1.5rem;
    width: 350px;
    min-height: 440px; /* Increased height for more space */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to the top, button to the bottom */
    align-items: center;
    position: relative;
}

.course-card:hover {
    box-shadow: 0 12px 36px rgba(67,230,214,0.18);
    transform: translateY(-6px) scale(1.04);
}

.course-card h3 {
    color: #1abc9c;
    font-size: 1.3em;
    margin-bottom: 1rem;
    text-align: center;
}

.course-card p {
    text-align: center;
    font-size: 1.05em;
}

.signup-button {
    background: linear-gradient(90deg, #6c63ff 0%, #ff6f91 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: auto; /* Ensures button stays at the bottom */
    align-self: center; /* Centers the button horizontally */
    box-shadow: 0 2px 8px rgba(108,99,255,0.12);
    transition: background 0.2s, transform 0.2s;
    font-weight: 700;
}

.signup-button:hover {
    background: linear-gradient(90deg, #ff6f91 0%, #6c63ff 100%);
    transform: scale(1.06);
}

.contact-section {
    background: linear-gradient(90deg, #e3f6f5 0%, #f8f7fd 100%);
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(67,230,214,0.10);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    border: 2px solid #e3f6f5;
}

.contact-section .section-title h2 {
    color: #6c63ff;
}

.contact-info a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #ff6f91;
    text-decoration: underline;
}

.footer {
    background: linear-gradient(90deg, #6c63ff 0%, #43e6d6 100%);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -2px 8px rgba(108,99,255,0.08);
    font-weight: 700;
}

/* Side logo styles */
.side-logo {
    position: fixed;
    top: 20px;
    right: 32px;
    z-index: 1000;
}

.side-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(67,230,214,0.15);
    cursor: pointer;
    transition: transform 0.2s;
    background: #fff;           /* Matches the circle background */
    border: 2px solid #6c63ff;
    object-fit: cover;          /* Ensures the image fills the circle */
    object-position: center;    /* Centers the image */
}

.side-logo img:hover {
    transform: scale(1.22) rotate(-6deg); /* Increased zoom on hover */
}

/* Clinic info modal styles */
.clinic-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(44, 62, 80, 0.45);
    justify-content: center;
    align-items: center;
}

.clinic-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem 2.5rem;
    border-radius: 18px;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(108,99,255,0.18);
    position: relative;
    text-align: right;
    direction: rtl;
}

.close-modal {
    color: #6c63ff;
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ff6f91;
}

/* Add to your style.css */
.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-link .course-card {
    cursor: pointer;
}

.course-info-tip {
    display: block;
    position: absolute;
    top: 18px;
    left: -120px;
    background: #fff;
    color: #6c63ff;
    font-size: 0.95em;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(108,99,255,0.10);
    font-weight: 700;
    white-space: nowrap;
}


.course-info-tip1 {
    display: block;
    position: absolute;
    top: 18px;
    right: -120px;
    background: #fff;
    color: #6c63ff;
    font-size: 0.95em;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(108,99,255,0.10);
    font-weight: 700;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .doctors-photos, .students-photos, .courses-list {
        flex-direction: column;
        align-items: top;
        gap: 1.2rem;
    }
    .contact-section {
        padding: 1rem;
    }
    .doctor-card, .course-card {
        min-width: 220px;
        max-width: 95vw;
    }
    .students-photos img {
        width: 90px;
        height: 90px;
    }
}