/* CSS Variables */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3a1;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Push logo to the left */
}

.nav-logo img {
    max-height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-logo img {
        max-height: 40px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    flex: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: #3da58a;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    padding: 0 20px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Places Section */
.places {
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.places-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.place-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.place-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.place-card:hover .place-image img {
    transform: scale(1.05);
}

.place-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.place-has-map {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.place-content {
    padding: 1.5rem;
}

.place-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.place-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.place-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.place-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.place-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.place-btn.website {
    background: var(--primary-color);
    color: white;
}

.place-btn.maps {
    background: #34a853;
    color: white;
}

.place-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Map Styles */
.places-map {
    margin-top: 4rem;
}

.map-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

#interactive-map {
    height: 400px;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.custom-marker {
    background: transparent;
    border: none;
}

.map-legend {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

/* Instagram Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.instagram-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    gap: 10px;
}

.instagram-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.Btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.svgContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #833AB4, #FD1D1D, #FCAF45);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    transition: all 0.3s;
}

.BG {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.3s;
}

/* Add box styles for events, news, and blog sections */
.news-grid,
.events-container,
.blog-grid {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

/* Update existing events container to remove the solid color background */
.events-container {
    background-color: transparent !important; /* Remove the solid blue background */
    padding: 20px;
    border-radius: var(--border-radius);
    color: var(--text-color); /* Change text color back to normal */
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

/* Ensure proper spacing and layout for the content inside boxes */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Update event card styles to work with the new box background */
.event-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Ensure news cards look good inside the box */
.news-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure blog cards look good inside the box */
.blog-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Update event date styling for better contrast */
.event-date {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 80px;
    margin-right: 1.5rem;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Make sure the event cards have proper layout */
.event-card {
    display: flex;
    align-items: flex-start;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Loading states inside boxes */
.news-grid .loading-placeholder,
.events-container .loading-placeholder,
.blog-grid .loading-placeholder {
    background: transparent;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Empty states inside boxes */
.news-grid .empty-state,
.events-container .empty-state,
.blog-grid .empty-state {
    background: transparent;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Mobile responsiveness for the boxes */
@media (max-width: 768px) {
    .news-grid,
    .events-container,
    .blog-grid {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .news-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-grid,
    .events-container,
    .blog-grid {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.Btn:hover .BG {
    transform: scale(1.5);
    opacity: 0;
}

.Btn:hover .svgContainer {
    box-shadow: 0 0 10px rgba(131, 58, 180, 0.5);
}

.instagram-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Loading and Error States */
.loading-placeholder,
.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.error-state {
    color: #dc3545;
}

.image-error-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--border-radius);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
    
    .places-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .hero-image,
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    /* Instagram links on mobile */
    .social-links {
        flex-direction: column;
    }
    
    .instagram-link {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .place-buttons {
        flex-direction: column;
    }
    
    .place-btn {
        text-align: center;
    }
    
    .instagram-link {
        padding: 8px 12px;
    }
    
    .instagram-text {
        font-size: 0.9rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix hero image display on mobile */
    .hero-image img,
    .about-image img {
        display: block !important;
        width: 100%;
        height: auto;
        border-radius: var(--border-radius);
    }
    
    /* Improve touch targets */
    .nav-link,
    .filter-btn,
    .place-btn,
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .places-filter,
    .places-map {
        display: none;
    }
    
    .hero,
    .about,
    .places {
        padding: 50px 0;
    }
    
    .place-card {
        break-inside: avoid;
    }
}