/* --- Reset and Basic Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif; /* General font, Font Awesome will override */
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: #DB4437; /* Red */
    transition: color 0.2s ease;
}

a:hover {
    color: #4285F4; /* Blue */
}

a:hover {
    color: #4285F4; /* Blue color from the image */
}



/* Hover style for the logo link, OVERRIDING the general a:hover */
.footer-logo a:hover, .logo a:hover{
    color: #ddd; /* Light gray on hover */
    text-decoration: none; /* Removes the underline that might appear */
}


button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Header Styles --- */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C70039;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    display: block;
    padding: 0.5rem;
}

nav ul li a:hover {
    color: #f1f1f1;
}

.art-menu {
    position: relative;
}

.art-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.art-menu:hover .art-submenu {
    display: block;
}

.art-submenu li {
    margin-left: 0;
    width: 100%;
}

.art-submenu li a {
    padding: 0.5rem 1rem;
}

.sign-in-btn {
    background-color: #C70039;
    color: #fff;
}

.sign-in-btn:hover {
    background-color: #900C3F;
    color: white;
}

/* --- Hero Section Styles --- */
.hero {
    background-image: url('hero-background.png'); /* Placeholder */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    padding: 4rem 2rem;
}

.hero-content {
    width: 90%;
    margin-left: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons button {
    margin: 0 1rem 0 0;
}

.explore-routes-btn {
    background-color: #C70039;
    color: #fff;
}

.explore-routes-btn:hover {
    background-color: #900C3F;
}

.join-community-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.join-community-btn:hover {
    background-color: #e0e0e0;
    color: #333;
    border: 2px solid #e0e0e0;
}

/* --- Featured Routes Styles --- */
.featured-routes {
    padding: 3rem 2rem;
    text-align: center;
}

.featured-routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 20px;
    padding-right: 20px;
}

.featured-routes-title {
    font-size: 2.2rem;
    text-align: left;
}


/* --- Padding to the left and right --- */

.page-content {
    max-width: 800px; /*  Adjust as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem; /*  Adjust as needed */
}



.see-all-routes {
    color: #C70039;
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
}

.see-all-routes:hover {
    color: #900C3F;
}

.routes-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.route {
    width: 30%;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.route:hover {
    transform: scale(1.05);
}

.route img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.route-content {
    padding: 1rem;
    text-align: left;
}

.route h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.route p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.see-more-link {
    color: #C70039;
    text-align: right;
    display: block;
    font-size: 1rem;
}

.see-more-link:hover {
    color: #900C3F;
}

/* --- Community Posts Styles --- */
.community-posts {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

.community-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 20px;
    padding-right: 20px;
}

.community-posts-title {
    font-size: 2.2rem;
    text-align: left;
}

.see-all-posts {
    color: #C70039;
    font-weight: bold;
}

.see-all-posts:hover {
    color: #900C3F;
}

.posts-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.post {
    width: 23%;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    box-sizing: border-box;
}

.user-avatar {
    margin-right: 1rem;
    border-radius: 50%;
}

.post-content h4:hover,
.post-content p:hover {
    color: #4285f4;
}

.post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.post-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
}

/* --- Upcoming Events Styles --- */
.upcoming-events {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #fff;
}

.upcoming-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 20px;
    padding-right: 20px;
}

.upcoming-events-title {
    font-size: 2.2rem;
    text-align: left;
}

.see-all-events {
    color: #C70039;
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
}

.see-all-events:hover {
    color: #900C3F;
}

.events-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.event {
    width: 30%;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}

.event:hover {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #C70039;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 2;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
}

.event-content {
    padding: 1rem;
    text-align: left;
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.event-attendance {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.register-btn,
.join-event-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    background-color: #C70039;
    border: none;
    transition: background-color 0.2s ease;
}

.register-btn:hover,
.join-event-btn:hover {
    background-color: #900C3F;
}

/* --- Join Community Styles --- */
.join-community {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.join-community-button-wrapper {
    margin-top: 2rem;
}

.join-now-btn {
    background-color: #DB4437;
    color: #fff;
}

.join-now-btn:hover {
    background-color: #4285F4;
    color: white;
}

/* --- Footer Styles --- */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Wrapper for logo and intro text */
.footer-top {
    display: flex;
    flex-direction: column;
    width: 23%;  /*  width as the other columns */
    margin-bottom: 2rem; /*Consistent spacing*/
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C70039;
    margin-bottom: 1rem;
}

.footer-intro {
    margin-bottom: 1rem;
    color: #aaa;
}

.footer-section {
    width: 23%; /*  width */
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color:#fff;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
     margin-bottom: 0.25rem; /* Consistent spacing */
}

.footer-section ul li a {
    color: #ddd;
    display: block;
    padding: 0.25rem 0;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.social-links li {
    margin-right: 10px;
}

.social-links a {
    display: inline-block;
    width: 2rem;          /* Adjust as needed */
    height: 2rem;         /* Adjust as needed */
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.social-links a:hover {
    background-color: #C70039;
}

/* Styles for the social media images */
.social-links img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /*  VERY IMPORTANT */
}


/* Horizontal Lines */
.footer-line {
    border: none;
    border-top: 1px solid #333;
    margin: 1rem 0;
    width: 100%;
}

.copyright {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Color rojo de la selected tab */
.active {
    color: #C70039;
}


/* --- Media Queries for Responsiveness --- */

@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align to the left */
    }

    nav {
        margin-top: 1rem;  /* Space below the logo */
        width: 100%;      /* Full width */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
    }

    nav ul li {
        margin-left: 0;    /* Remove left margin */
        margin-bottom: 0.5rem; /* Space between menu items */
    }
    .sign-in-btn{
        margin-top: 0.8rem;
    }

    /* Hero Section */
    .hero-content {
        width: 100%;    /* Full width */
        margin-left: 0;  /* Remove left margin */
        padding: 2rem 1rem; /* Adjust padding */
    }

    .hero-buttons button {
        display: block;  /* Stack buttons vertically */
        width: 100%;    /* Full width */
        margin-bottom: 1rem; /* Space between buttons */
    }

    /* Featured Routes, Community Posts, Upcoming Events */
    .featured-routes-header,
    .community-posts-header,
    .upcoming-events-header {
        flex-direction: column; /* Stack title/link vertically */
        align-items: flex-start; /* Align to the left */
    }

    .see-all-routes,
    .see-all-posts,
    .see-all-events {
        margin-top: 0.5rem;  /* Space below the title */
    }

    .route,
    .post,
    .event {
        width: 100%;      /* Full width */
    }

    /* Footer */
    .footer-intro{
        max-width: 100%;  /* Full width on smaller screens */
    }
    .footer-section {
        width: 48%;      /* Two columns on smaller screens */
    }
     .footer-top {
        flex-direction: row; /*For medium size*/
        align-items: center;    /* Center vertically */
        justify-content: flex-start; /*Keep to the left */
        margin-bottom: 2rem;
        width: 100%;
    }

    .footer-logo {
        margin-right: 1rem; /* Add spacing between logo and text*/
        margin-bottom: 0;
    }
    .footer-intro{
        max-width: 50%; /*Prevent overlap*/
    }
}

/* Smaller Screens (e.g., Phones) */
@media (max-width: 480px) {
    .footer-section {
        width: 100%;      /* One column on very small screens */
    }
    .post{
        flex-direction: column;
    }
    .user-avatar{
        margin-right: 0;    /* Remove margin */
        margin-bottom: 0.5rem; /* Add space below avatar */
    }

    /*Adjust Footer*/

    .footer-top {
        flex-direction: column; /* Stack logo and intro text vertically */
        align-items: flex-start;  /* Align to the left */
        width: 100%;
    }
    .footer-logo {
        margin-right: 0; /*Remove it*/
        margin-bottom: 1rem;
    }
     .footer-intro{
        max-width: 100%; /*Full width*/
    }
}