/* Base Styles */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #c0504d;
    --accent-color: #f0a830;
    --dark-color: #2c3e50;
    --light-color: #f5f7fa;
    --text-color: #333;
    --text-light: #777;
    --border-color: #e1e4e8;
    --success-color: #5cb85c;
    --error-color: #d9534f;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3.6rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    margin-top: 3rem;
}

h3 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

button, .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

button:hover, .btn:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo img {
    height: 5rem;
    width: auto;
}

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

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.font-size-control {
    display: flex;
    align-items: center;
}

#decreaseFontSize {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#decreaseFontSize:hover {
    background-color: var(--light-color);
    transform: none;
}

#decreaseFontSize svg {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/14.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 10rem 2rem;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: white;
}

.hero p {
    font-size: 2rem;
    max-width: 70rem;
    margin: 0 auto 3rem;
}

/* Featured Section */
.featured {
    padding: 8rem 0;
    background-color: white;
}

.featured h2, .latest-posts h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.featured-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

.featured-item h3 {
    padding: 2rem 2rem 1rem;
    font-size: 2.2rem;
}

.featured-item p {
    padding: 0 2rem;
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    margin: 1rem 2rem 2rem;
    font-weight: 600;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 1rem;
}

/* About Preview Section */
.about-preview {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    margin-top: 0;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Latest Posts Section */
.latest-posts {
    padding: 8rem 0;
    background-color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40rem, 1fr));
    gap: 3rem;
}

.post-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 15rem;
    height: 15rem;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    flex: 1;
}

.post-card h3 {
    margin-top: 0;
    font-size: 2rem;
}

.view-all {
    text-align: center;
    margin-top: 4rem;
}

/* Page Header */
.page-header {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.page-header h1 {
    color: white;
}

/* Blog Page */
.blog-content {
    padding: 5rem 0;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 35rem 1fr;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.post-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.post-summary ul {
    margin-bottom: 0;
}

.post-summary li {
    margin-bottom: 0.5rem;
}

/* Single Post Page */
.blog-post-single .post-header {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 10rem 0 5rem;
    text-align: center;
}

.blog-post-single .post-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.blog-post-single .post-header .container {
    position: relative;
    z-index: 1;
}

.blog-post-single .post-header h1 {
    color: white;
    max-width: 80rem;
    margin: 0 auto 2rem;
}

.blog-post-single .post-meta {
    justify-content: center;
    margin-bottom: 0;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 25rem 1fr;
    gap: 5rem;
    padding: 5rem 0;
}

.post-sidebar {
    position: sticky;
    top: 10rem;
    align-self: start;
}

.table-of-contents, .post-summary, .share-post {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.table-of-contents h3, .post-summary h3, .share-post h3 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 1rem;
}

.table-of-contents a {
    color: var(--text-color);
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.post-content section {
    margin-bottom: 4rem;
}

.post-content h2 {
    margin-top: 0;
}

.post-content h3 {
    margin-top: 3rem;
}

.post-image {
    margin: 3rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-image .caption {
    background-color: var(--light-color);
    padding: 1rem 2rem;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0;
}

.author-bio {
    display: flex;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 4rem 0;
}

.author-bio img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    margin-right: 2rem;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.related-posts h3 {
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.related-post h4 {
    padding: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

/* About Page */
.about-story, .our-values, .team, .testimonials {
    padding: 5rem 0;
}

.about-story .container, .our-values .container, .team .container, .testimonials .container {
    max-width: 110rem;
}

.about-story {
    background-color: white;
}

.about-story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-story .about-image {
    order: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 8rem;
    height: 8rem;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1.5rem;
}

.team {
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
}

.team-member h3 {
    margin: 2rem 0 0.5rem;
    padding: 0 1.5rem;
}

.team-member p {
    padding: 0 1.5rem 2rem;
    margin-bottom: 0;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.testimonial-item {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-item:before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 8rem;
    color: var(--light-color);
    position: absolute;
    top: 1rem;
    left: 2rem;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-author {
    margin-top: 2rem;
    text-align: right;
}

/* Contact Page */
.contact-content {
    padding: 5rem 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    margin-top: 3rem;
}

.info-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    color: white;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.info-content p {
    margin-bottom: 0;
}

.social-connect {
    margin-top: 3rem;
}

.social-connect h3 {
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1.6rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.map-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.map-container {
    height: 40rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 50rem;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    color: var(--success-color);
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
}

.thank-you-message h3 {
    margin-bottom: 1.5rem;
}

.thank-you-message p {
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-social h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-social .social-icons {
    margin-top: 1.5rem;
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

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

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

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    padding: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 30rem;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 57%;
    }
    
    .hero {
        padding: 8rem 2rem;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .about-preview .container, .about-story .container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-content {
        order: 2;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav {
        margin-top: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem 1rem;
    }
    
    .font-size-control {
        margin-top: 1.5rem;
    }
    
    .featured-grid, .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .blog-post-single .post-header {
        padding: 8rem 0 4rem;
    }
    
    .blog-post-single .post-header h1 {
        font-size: 3rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio img {
        margin: 0 auto 2rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 1.5rem;
    }
}

/* Theme-specific colors for travel website */
:root {
    --primary-color: #2a87ca;
    --secondary-color: #e67e22;
    --accent-color: #f1c40f;
    --dark-color: #2c3e50;
    --light-color: #f4f7f9;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slideUp {
    animation: slideUp 0.8s ease-out;
}

/* Font size customization */
body.small-font {
    font-size: 1.4rem;
}

body.small-font h1 {
    font-size: 3.2rem;
}

body.small-font h2 {
    font-size: 2.4rem;
}

body.small-font h3 {
    font-size: 1.8rem;
}
