/* Base styles */
:root {
    --primary-color: #2D3436;
    --secondary-color: #636E72;
    --accent-color: #0984E3;
    --background-color: #FFFFFF;
    --light-gray: #F1F2F6;
    --footer-bg: rgba(0, 0, 0, 0.6);
    --footer-text: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding-top: 56px; /* Add padding to body to account for fixed navbar */
}

/* Modern Navigation Styles */
.navbar {
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 56px;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Search bar styling */
.search-form {
    position: relative;
    max-width: 240px;
    width: 100%;
}

.search-form input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(9,132,227,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.25rem 0.75rem;
    }

    .navbar-collapse {
        background-color: var(--background-color);
        padding: 0.5rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .search-form {
        margin-top: 0.5rem;
        max-width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Additional modern styles */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Fix Bootstrap overrides */
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

.form-control {
    border-radius: 50px !important;
}

.form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(9,132,227,0.25) !important;
}

/* Card and Post List Styles */
.wrapper {
    padding: 26px 0;
}

.wrapper-light {
    background: #f6f6f6;
}

.scrollable-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.scrollable-cards {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.card-h {
    scroll-snap-align: center;
    background: white;
    width: 240px;
    height: 320px;
    display: flex;
    flex-direction: column;
    margin: 5px;
    flex-shrink: 0;
}

.card-thumbnail {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-h .card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-h .card-body {
    padding: 14px 20px 0;
    flex: 1;
}

.tag {
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 3px;
}

.tag-primary {
    background-color: #E93B18;
}

/* Post Detail Styles */
.container {
    padding: 20px;
    max-width: 100%;
}

#article_area {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    padding: 2px 5px;
}

.article h2 {
    font-size: 1.5em;
}

.article p {
    font-size: 1.25em;
}

.centeredImage {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
    height: auto;
}

.postcontent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .scrollable-cards {
        display: block;
        overflow-x: hidden;
        padding: 0;
        margin: 0;
    }

    .card-h {
        width: 100%;
        margin: 0 0 10px 0;
        flex: none;
    }

    .scrollable-cards .card-h {
        flex: none;
        width: 100%;
    }
}

/* Post Detail Styles */
.postcontent {
    width: 100%;
    padding: 15px;
}

.postcontent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Override any existing image styles */
img {
    max-width: 100%;
    height: auto;
}

/* Extra small devices */
@media (max-width: 576px) {
    .scrollable-cards {
        flex-wrap: wrap;
    }

    .card-h {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .postcontent {
        padding: 10px;
    }

    .postcontent img {
        width: 100%;
        height: auto;
    }
}

/* Typography */
h1 {
    text-align: center;
    font-size: 4em;
    font-family: "Guardian sans", Georgia, Cambria, "Times New Roman", Times, serif;
}

h3 {
    text-align: center;
    font-size: 1.25em;
}

.pictureDescription {
    color: grey;
}

blockquote {
    font-style: italic;
}

/* Language Selector Styles */
.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--accent-color);
}

.dropdown-item.active {
    background-color: var(--accent-color);
    color: white;
}

.dropdown-item form {
    margin: 0;
}

.dropdown-item button {
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--footer-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Hero Section Styles */
.home-hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/roman-ruins-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .home-hero {
        padding: 40px 0;
    }
    
    .home-hero h1 {
        font-size: 2.5rem;
    }
    
    .home-hero .lead {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Feature Cards Styles */
.feature-cards {
    margin: 3rem 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.feature-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

.feature-card-content {
    padding: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-cards {
        margin: 2rem 0;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card-image {
        height: 180px;
    }
}

.dropdown .btn-primary.dropdown-toggle img {
    transition: transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dropdown .btn-primary.dropdown-toggle:hover img {
    transform: scale(1.1);
}

.dropdown .btn-primary.dropdown-toggle {
    padding: 6px 12px;
    display: flex;
    align-items: center;
}

.dropdown .btn-primary.dropdown-toggle .bi-person-circle {
    font-size: 1.5rem;
}

/* Route Illustration Styles */
.route-illustration {
    transition: transform 0.3s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

@media (max-width: 768px) {
    .route-illustration {
        max-height: 150px !important;
    }
}

@media (max-width: 400px) {
    .route-illustration {
        max-height: 120px !important;
    }
} 