/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.logo p {
    color: #7f8c8d;
    font-size: 12px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

.auth-buttons button {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 10px;
}

.login-btn {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.register-btn {
    background-color: #3498db;
    color: white;
}

/* Hero Section */
.hero {
    background-color: #3498db;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 60px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-form input {
    padding: 12px 15px;
    border-radius: 4px;
    border: none;
    flex: 1;
    min-width: 250px;
}

.search-form button {
    padding: 12px 25px;
    background-color: #2c3e50;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

/* Categories Section */
.categories {
    padding: 60px 0;
}

.categories h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card i {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 15px;
}

.category-card h4 {
    color: #2c3e50;
}

/* Featured Trainings */
.featured-trainings {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.featured-trainings h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

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

.training-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.training-img {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.training-info {
    padding: 20px;
}

.training-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.training-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.training-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.training-provider {
    display: flex;
    align-items: center;
}

.provider-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 10px;
}

.training-price {
    color: #3498db;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    text-align: center;
}

.testimonials h3 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    min-height: 150px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.testimonial.active {
    opacity: 1;
}

.testimonial p {
    font-size: 20px;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 15px;
}

.author {
    font-weight: 600;
    color: #3498db;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slider-controls button {
    background-color: transparent;
    color: #3498db;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background-color: #3498db;
    color: white;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: #3498db;
    color: white;
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    border: none;
    flex: 1;
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: #2c3e50;
    color: white;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
}

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

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #3498db;
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    nav {
        margin: 15px 0;
    }
    
    .auth-buttons {
        margin-top: 15px;
    }
    
    .hero {
        padding: 150px 0 50px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input, 
    .search-form button,
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        border-radius: 0 0 4px 4px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 24px;
    }
    
    .categories h3,
    .featured-trainings h3,
    .testimonials h3,
    .newsletter h3 {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 15px;
    }
}