/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Nirmala UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    direction: ltr;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
}

.btn i {
    margin-left: 8px;
    font-size: 1.1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    right: 0;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.nav-buttons .btn {
    width: 48%;
    text-align: center;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Adjust button styles to ensure they look good at 50% width */
.btn-outline, .btn-primary {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
    position: relative;
    margin-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature i {
    color: #10b981;
    margin-left: 8px;
    font-size: 1.1em;
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 10px solid var(--white);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Lab Gallery Section */
.lab-gallery {
    background-color: #f9fafb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: var(--white);
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Courses Section */
.courses {
    background-color: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

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

.course-img {
    height: 180px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-content {
    padding: 20px;
}

.course-duration {
    display: inline-block;
    background: #e0f2fe;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.course-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after,
.contact-form h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.branch-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.branch-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.branch-card h4 i {
    color: var(--primary-color);
    margin-left: 8px;
}

.branch-card p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.map-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--primary-dark);
}

.map-link:hover i {
    transform: translateX(5px);
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: var(--text-color);
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-method div {
    flex: 1;
}

.contact-method span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.contact-method strong {
    font-weight: 600;
    color: var(--text-color);
}

.contact-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: 'Poppins', 'Nirmala UI', 'Arial', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background-color: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: #e5e7eb;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-about .footer-logo span {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 10px;
    display: none; /* Hide by default on all screens */
}

/* Show on larger screens */
@media (min-width: 1024px) {
    .footer-about .footer-logo span {
        display: inline-block;
    }
}

.footer-about .footer-logo img {
    height: 40px;
    margin-left: 10px;
}

.footer-about p {
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    margin-left: 8px;
    font-size: 0.7em;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-contact .contact-info {
    list-style: none;
}

.footer-contact .contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #9ca3af;
}

.footer-contact .contact-info i {
    color: var(--primary-color);
    margin-left: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-contact .contact-info a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact .contact-info a:hover {
    color: var(--primary-color);
}

.footer-contact .contact-info strong {
    display: block;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links-bottom a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
}

.loader-square {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: loader 1.2s linear infinite;
    border-radius: 2px;
}

.loader-square:nth-child(1) {
    top: 6px;
    left: 6px;
    animation-delay: 0s;
}

.loader-square:nth-child(2) {
    top: 6px;
    left: 24px;
    animation-delay: -0.4s;
}

.loader-square:nth-child(3) {
    top: 6px;
    left: 42px;
    animation-delay: -0.8s;
}

.loader-square:nth-child(4) {
    top: 24px;
    left: 6px;
    animation-delay: -0.4s;
}

.loader-square:nth-child(5) {
    top: 24px;
    left: 24px;
    animation-delay: -0.8s;
}

.loader-square:nth-child(6) {
    top: 24px;
    left: 42px;
    animation-delay: -1.2s;
}

.loader-square:nth-child(7) {
    top: 42px;
    left: 6px;
    animation-delay: -0.8s;
}

.loader-square:nth-child(8) {
    top: 42px;
    left: 24px;
    animation-delay: -1.2s;
}

.loader-square:nth-child(9) {
    top: 42px;
    left: 42px;
    animation-delay: -1.6s;
}

@keyframes loader {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 12px 0;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .contact-info h3::after,
    .contact-form h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact .contact-info i {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .hero-buttons,
[dir="rtl"] .features,
[dir="rtl"] .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .footer-links ul li a:hover {
    transform: translateX(5px);
}

[dir="rtl"] .footer-contact .contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .footer-links h3::after,
[dir="rtl"] .footer-contact h3::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .section-header h2::after {
    right: 50%;
    transform: translateX(50%);
}

/* Courses Section */
.courses {
    background-color: #ffffff;
    padding: 5rem 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a365d;
    line-height: 1.4;
}

.course-content p {
    color: #4a5568;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-content .btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card {
        max-width: 100%;
    }
}

/* Auto-scrolling Image Slider */
.image-slider-section {
    background-color: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 10px 0;
}

.slide {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 9 - 15px * 9)); /* Width of one slide * number of slides + gap * (number of slides - 1) */
    }
}

/* Pause animation on hover */
.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide {
        width: 250px;
        height: 180px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-250px * 9 - 15px * 9));
        }
    }
}

@media (max-width: 768px) {
    .slide {
        width: 200px;
        height: 150px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 9 - 15px * 9));
        }
    }
}

@media (max-width: 480px) {
    .slide {
        width: 160px;
        height: 120px;
    }
    
    .slider-track {
        gap: 10px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-160px * 9 - 10px * 9));
        }
    }
}

/* Gallery Section */
.gallery {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.gallery .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery .section-header h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.gallery .section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery .section-header h2 {
        font-size: 2rem;
    }
}
