/* index.css - Homepage Specific Styles */

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a3a6b, #2c5aa0);
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

/* Quick Info Cards */
.quick-info {
    position: absolute;
    bottom: 30px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    display: flex;
    gap: 2rem;
    z-index: 3;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: #666;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
    margin-bottom: 4rem;
}

.about-content h2 {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.about-features {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
}


.feature-icon {    
    /* width: 50px;
    height: 50px; */
    /* background: #ff6b35; */
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    text-align: center;
}

.feature-content h4 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.learn-more-btn {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 60px;
}

.learn-more-btn:hover {
    background: #1a3a6b;
    transform: translateY(-2px);
}

/* Adventures Section Updates */
.adventures-section {
    background: #f8f9fa;
    padding: 6rem 2rem;
    text-align: center;
}

.adventures-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured trips (first adventures-grid) - Keep existing flexbox */
.adventures-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Adjust card sizing to prevent wrapping with 3 cards */
.adventures-grid .adventure-card {
    flex: 0 1 calc(33.333% - 1.333rem); /* Account for gaps: 2rem × 2 gaps ÷ 3 cards */
    min-width: 320px; /* Slightly smaller to ensure 3 fit */
    max-width: 380px; /* Prevent cards from getting too wide */
    display: flex;
    flex-direction: column;
}

/* On larger screens, ensure 3 cards fit comfortably */
@media (min-width: 1200px) {
    .adventures-grid .adventure-card {
        flex: 0 1 360px; /* Fixed width for consistency */
    }
}

/* Ensure the card content stretches */
.adventure-card .adventure-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push buttons to bottom */
.adventure-card .trip-buttons,
.adventure-card .event-buttons {
    margin-top: auto;
}

.adventures-grid .adventure-card {
    min-height: 725px;
    display: flex;
    flex-direction: column;
}

/* Event buttons - matching events.css */
.event-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.event-buttons .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.event-buttons .btn-outline {
    background: white;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.event-buttons .btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

.event-buttons .btn-primary {
    background: #ff6b35;
    color: white;
}

.event-buttons .btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Two columns on tablets */
@media (max-width: 968px) {
    .adventures-grid {
        gap: 1.5rem;
    }
    
    .adventures-grid .adventure-card {
        flex: 0 1 calc(50% - 0.75rem); /* Two columns with gap */
        min-width: 300px;
        max-width: 380px;
    }
}

/* Single column on mobile */
@media (max-width: 768px) {
    .adventures-grid {
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .adventures-grid .adventure-card {
        flex: 0 1 100%;
        min-width: unset;
        max-width: 400px;
    }
}

/* Trip Card - Matching trips.css exactly */
.adventure-card.trip-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 725px;
}

.adventure-card.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Trip card image - matching trips.css */
.adventure-card.trip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Trip card content */
.adventure-card.trip-card .adventure-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.adventure-card.trip-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.adventure-card.trip-card .adventure-details {
    display: flex;
    flex-direction: column; /* This is the key change */
    gap: 0.5rem; /* Reduced gap for better vertical spacing */
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Trip and event detail items */
/* Fix for trip and event detail items - proper alignment */
.trip-detail-item,
.event-detail-item {
    display: flex;
    align-items: flex-start; /* Top align items */
    gap: 0.5rem;
    text-align: left; /* Force left alignment */
}

/* Icon styling */
.trip-detail-item > span:first-child,
.event-detail-item > span:first-child {
    flex-shrink: 0; /* Prevent icon from shrinking */
    line-height: 1.3; /* Match text line height for alignment */
}

/* Text content - force left alignment */
.trip-detail-item > span:nth-child(2),
.event-detail-item > span:nth-child(2) {
    flex: 1; /* Take remaining space */
    text-align: left !important; /* Override any inherited center alignment */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3; /* Consistent with icon */
}

/* Ensure adventure-details doesn't center content */
.adventure-card .adventure-details {
    text-align: left !important; /* Override any inherited centering */
}

/* Make sure all text within detail items is left aligned */
.adventure-details * {
    text-align: left !important;
}

.adventure-card.trip-card .card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Trip card footer */
.adventure-card.trip-card .card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.adventure-card.trip-card .price {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.adventure-card.trip-card .spots {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 1rem;
}

.adventure-card.trip-card .spots.sold-out {
    color: #dc3545;
    font-weight: 600;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Event Cards - Same structure as trip cards */
.adventure-card.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.adventure-card.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Event card image */
.adventure-card.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Event card content - Same as trip cards */
.adventure-card.event-card .adventure-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.adventure-card.event-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.adventure-card.event-card .adventure-details {
    display: flex;
    flex-direction: column; /* This is the key change */
    gap: 0.5rem; /* Reduced gap for better vertical spacing */
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.adventure-card.event-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Event spots/cost info */
.adventure-card.event-card .spots-left {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Buttons for both trip and event cards */
.adventure-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.adventure-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

/* Trip button styling matching trips.css */
.trip-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.trip-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.trip-buttons .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.trip-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Badge styling - from trips.css */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2c5aa0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Category Badge - Enhanced for events */
.category-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1rem 0.75rem 1.25rem;
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
    border-bottom-left-radius: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 15px;
    backdrop-filter: blur(8px);
}

/* Category-specific colors */
.event-card[data-category="Meeting"] .category-badge,
.event-card[data-category="meeting"] .category-badge {
    background: rgba(44, 90, 160, 0.9);
}

.event-card[data-category="Social"] .category-badge,
.event-card[data-category="social"] .category-badge {
    background: rgba(255, 107, 53, 0.9);
}

.event-card[data-category="Special"] .category-badge,
.event-card[data-category="special"] .category-badge {
    background: rgba(147, 51, 234, 0.9);
}

/* Button spacing for full-width buttons */
.adventures-grid > div[style*="grid-column"] {
    width: 100%;
}

/* Loading state */
.loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial .stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial .author-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.2rem;
}

.testimonial .author-info p {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(44, 90, 160, 0.9), rgba(44, 90, 160, 0.9));
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Next Upcoming Trips Section */
.upcoming-adventures {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.upcoming-adventures .section-title h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.upcoming-adventures .section-title p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* UPDATED: Change grid to flexbox for all upcoming-adventures sections */
.upcoming-adventures .adventures-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    align-items: stretch;
}

/* Keep the same card sizing - adjusted to prevent wrapping */
.upcoming-adventures .adventures-grid .adventure-card {
    flex: 0 1 calc(33.333% - 1.333rem); /* Account for gaps */
    min-width: 320px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

/* On larger screens, use fixed width */
@media (min-width: 1200px) {
    .upcoming-adventures .adventures-grid .adventure-card {
        flex: 0 1 360px;
    }
}

/* Two columns on tablets */
@media (max-width: 968px) {
    .upcoming-adventures .adventures-grid {
        gap: 1.5rem;
    }
    
    .upcoming-adventures .adventures-grid .adventure-card {
        flex: 0 1 calc(50% - 0.75rem); /* Two columns with gap */
        min-width: 300px;
        max-width: 380px;
    }
}

/* Single column on mobile */
@media (max-width: 768px) {
    .upcoming-adventures .adventures-grid {
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .upcoming-adventures .adventures-grid .adventure-card {
        flex: 0 1 100%;
        min-width: unset;
        max-width: 400px;
    }
}

/* View All Trips button */
.upcoming-adventures .view-all-btn {
    display: inline-block;
    margin-top: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .upcoming-adventures {
        padding: 3rem 1rem;
    }
    
    .upcoming-adventures .section-title h2 {
        font-size: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Mobile Fix - Extend Hero Height to Accommodate Stacked Cards */
/* Add this to the bottom of index.css */

@media (max-width: 768px) {
    /* Extend hero height to fit all content including stacked cards */
    .hero {
        height: auto; /* Allow height to expand based on content */
        min-height: 100vh; /* Keep minimum full viewport height */
        padding-bottom: 50px; /* Add padding at bottom */
    }
    
    /* Keep quick-info cards absolute but adjust positioning */
    .quick-info {
        position: absolute;
        bottom: 30px; /* Keep original bottom spacing */
        left: 0;
        right: 0;
        margin: 0 auto; /* Center using margin auto */
        width: 90%; /* Use most of the width but with padding */
        max-width: 400px; /* Limit max width for readability */
        flex-direction: column;
        gap: 1rem;
        align-items: center; /* Center cards horizontally */
    }
    
    /* Ensure hero content has enough bottom margin to not overlap with cards */
    .hero-content {
        margin-bottom: 450px; /* Space for 3 stacked cards + gaps */
    }
    
    /* Adjust info cards for stacked layout */
    .info-card {
        width: 100%;
        min-width: unset; /* Remove minimum width */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    /* Even more space might be needed on very small screens */
    .hero-content {
        margin-bottom: 500px; /* Extra space for smaller viewports */
    }
    
    .quick-info {
        width: 85%; /* Slightly narrower on very small screens */
        gap: 0.75rem; /* Tighter gap */
    }
    
    .info-card {
        padding: 1.25rem; /* Slightly less padding */
    }
    
    .info-card h3 {
        font-size: 1rem; /* Slightly smaller heading */
    }
    
    .info-card p {
        font-size: 0.85rem; /* Slightly smaller text */
    }
}

/* Days until tag - inline with date */
.days-tag {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* Urgent styling for trips happening soon */
.days-tag.urgent {
    background: #dc3545;
    animation: pulse 2s infinite;
}

/* Today styling */
.days-tag.today {
    background: #28a745;
    font-weight: 700;
}

/* Different colors based on urgency */
.days-tag.soon {
    background: #ff6b35; /* Orange for 4-7 days */
}

.days-tag.approaching {
    background: #2c5aa0; /* Blue for 8+ days */
}

/* Pulse animation for urgent items */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Ensure trip/event detail items align properly with tags */
.trip-detail-item,
.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap; /* Allow tag to wrap on small screens */
}

/* Responsive adjustment for mobile */
@media (max-width: 480px) {
    .days-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        margin-left: 0.3rem;
    }
}