/* General Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

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

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

.section-header h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin: 0 12px;
}

.nav-menu a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-speed) ease;
}

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

.btn-contact {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.btn-contact:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.btn-contact:after {
    display: none;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--gray-light);
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

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

/* Features Section */
.features {
    background-color: white;
    padding: 60px 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: var(--gray-light);
    transition: all var(--transition-speed) ease;
}

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

.feature-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    color: var(--gray-dark);
}

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

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

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

.course-card.featured {
    border: 2px solid var(--secondary-color);
    position: relative;
}

.course-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    z-index: 1;
}

.course-img {
    height: 180px;
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-level {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.beginner {
    background-color: var(--success-color);
}

.intermediate {
    background-color: var(--warning-color);
}

.advanced {
    background-color: var(--danger-color);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.course-content ul {
    margin-bottom: 20px;
}

.course-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.course-content ul li i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-medium);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Routes Section */
.routes {
    background-color: white;
}

.routes-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.map-container {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.route-map {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-point {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.map-point:hover {
    transform: scale(1.2);
}

.map-point.beginner {
    background-color: var(--success-color);
}

.map-point.intermediate {
    background-color: var(--warning-color);
}

.map-point.advanced {
    background-color: var(--danger-color);
}

.route-details {
    flex: 1;
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.route-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.route-difficulty {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.difficulty-label {
    margin-right: 15px;
    font-weight: 600;
}

.difficulty-meter {
    width: 200px;
    height: 10px;
    background-color: var(--gray-medium);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#difficulty-value {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 10px;
    width: 0;
    transition: width 0.5s ease;
}

.route-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.route-feature {
    display: flex;
    align-items: center;
}

.route-feature i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    color: white;
}

.testimonials .section-header h2 {
    color: white;
}

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

.testimonial-item {
    text-align: center;
    padding: 20px;
    display: none;
    opacity: 0;
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
}

.testimonial-item.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: """;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    content: """;
    bottom: -40px;
    right: -10px;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.control-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.control-dot.active {
    background-color: white;
}

/* Blog Section */
.blog {
    background-color: var(--gray-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-img {
    height: 180px;
    background-color: var(--primary-color);
    position: relative;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-medium);
    padding-top: 15px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

/* Chat Support */
.chat-support {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.chat-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.chat-icon {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chat-icon img {
    width: 60px;
    height: 60px;
}

.chat-text {
    flex: 1;
    max-width: 600px;
}

.chat-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.chat-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.chat-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.chat-container {
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

#closeChatBtn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
}

.bot-message {
    background-color: var(--gray-light);
    align-self: flex-start;
}

.user-message {
    background-color: var(--secondary-color);
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--secondary-color);
}

.chat-input button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.chat-input button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* Instructor Portal */
.instructor-portal {
    background-color: white;
}

.portal-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.portal-image {
    flex: 1;
    text-align: center;
}

.portal-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.portal-text {
    flex: 1;
}

.portal-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.portal-text ul {
    margin-bottom: 25px;
}

.portal-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.portal-text li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Contact Section */
.contact {
    background-color: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

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

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

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

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul,
.footer-courses ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-courses a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-courses a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.newsletter-form button:hover {
    background-color: #2980b9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .routes-content {
        flex-direction: column;
    }

    .portal-content {
        flex-direction: column;
    }

    .portal-image {
        margin-bottom: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        transition: all 0.5s ease;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .course-grid, 
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .chat-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .features .container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}