/*
Theme Name: Travel Guide Theme
Author: Your Name
Description: A custom WordPress theme for a travel guide website.
Version: 1.0
Text Domain: travel-guide-theme
*/

/* --- Global and Base Styles --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header & Navigation (Used on all pages) --- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #3498db;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* --- Homepage Hero Section (`index.php`) --- */
.hero-section {
    background: url('hero-home.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* --- Featured Guides Section (`index.php`) --- */
.featured-guides {
    padding: 60px 0;
    text-align: center;
}

.featured-guides h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.guide-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    width: 30%;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 15px;
    margin: 0;
}

.card p {
    padding: 0 15px 15px;
    font-size: 0.9em;
}

/* --- Page Styles (for all custom templates) --- */
.page-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* --- About Us Page Styles (`page.php`) --- */
.team-member {
    display: inline-block;
    width: 250px;
    margin: 20px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    transition: transform 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.1);
}

.team-member h3 {
    margin: 10px 0 5px;
    color: #2c3e50;
}

/* --- Contact Page Styles (`page.php`) --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* --- Destinations Page Styles (`template-destinations.php`) --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.destination-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    /* Animation Code Start */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation Code End */

    text-align: center;
}

.destination-card:hover {
    /* Animation Code Start */
    transform: translateY(-10px) scale(1.03); /* Lifts and slightly scales the card */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Adds a stronger shadow to create a "lift" effect */
    /* Animation Code End */
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-card h3 {
    padding: 15px;
    margin: 0;
}

.destination-card p {
    padding: 0 15px 15px;
    font-size: 0.9em;
}

/* --- Testimonials Page Styles (`template-testimonials.php`) --- */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background: #f9f9f9;
    border-left: 4px solid #3498db;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 450px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-style: normal;
    font-weight: bold;
    margin-top: 15px;
    color: #555;
    text-align: right;
}

/* --- Services Page Styles (`template-services.php`) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    text-align: center;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    max-width: 80px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #3498db;
}

/* --- Site Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 10px;
    }
    .nav-links li {
        margin: 0 10px;
    }
    .guide-cards, .destinations-grid, .services-grid, .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
    .card, .destination-card, .service-card, .testimonial-card {
        width: 90%;
    }
}

