/* Main Styles for Vitalis Medical Training Centre */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a0e3;
    --accent-color: #004080;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Cairo', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

/* Animations and Transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animated {
    animation: fadeIn 1s ease-out;
}

/* Header Styles */
#header {
    transition: all 0.5s;
    z-index: 997;
    padding: 15px 0;
}

#header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img.logo {
    max-height: 60px;
    transition: all var(--transition-speed);
}

.navbar-brand:hover img.logo {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    padding: 10px 15px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.8) 0%, rgba(0, 160, 227, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease-out;
    transition: all var(--transition-speed);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    border-radius: 10px;
    transition: all 0.5s;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-image img {
    border-radius: 10px;
    transition: all 0.5s;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    padding: 30px;
}

.about-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: #fff;
}

.feature i {
    font-size: 24px;
    color: var(--secondary-color);
    transition: all var(--transition-speed);
}

.feature:hover i {
    color: #fff;
}

.feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    transition: all var(--transition-speed);
}

.feature:hover h4 {
    color: #fff;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-card {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 32px;
    transition: all var(--transition-speed);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.course-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #fff;
    transition: all var(--transition-speed);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    min-height: 50px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.course-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    min-height: 70px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.gallery-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.contact-info ul li span {
    font-weight: 600;
    margin-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-size: 18px;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.contact-form {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 15px;
    transition: all var(--transition-speed);
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

textarea.form-control {
    height: 150px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--dark-color);
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-section {
        height: auto;
        padding: 150px 0 80px;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .feature {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about-content h3 {
        font-size: 20px;
    }
    
    .service-card, .course-card, .testimonial-card {
        margin-bottom: 20px;
    }
}