/* Base Styles */
:root {
    --primary-color: #4a6b8a;
    --secondary-color: #f0a868;
    --text-color: #2b3a42;
    --light-text: #f7f7f7;
    --background-color: #ffffff;
    --secondary-background: #f8f9fa;
    --accent-color: #d95448;
    --border-color: #e1e6eb;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --border-radius: 5px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.center {
    text-align: center;
    margin: 30px auto;
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-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);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 150px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Section */
.featured {
    background-color: var(--secondary-background);
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: var(--light-text);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: var(--light-text);
    margin-bottom: 5px;
}

/* Latest Posts Section */
.latest-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
}

.post-content h3 a {
    color: var(--primary-color);
}

.post-content h3 a:hover {
    color: var(--secondary-color);
}

.date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary-background);
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.client h4 {
    margin-bottom: 5px;
}

.client p {
    margin-bottom: 0;
    font-style: normal;
    color: #777;
}

/* Footer Styles */
footer {
    background-color: #2b3a42;
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links h3, 
.footer-contact h3, 
.footer-social h3 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact p svg {
    margin-right: 10px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    color: var(--light-text);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    margin-bottom: 10px;
}

.legal-links a {
    color: var(--light-text);
    opacity: 0.8;
    margin-left: 20px;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(43, 58, 66, 0.95);
    color: var(--light-text);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-cookie {
    padding: 8px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.accept {
    background-color: var(--success-color);
    color: white;
}

.customize {
    background-color: #6c757d;
    color: white;
}

.reject {
    background-color: var(--error-color);
    color: white;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.page-banner h1 {
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Blog Page Styles */
.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Blog Post Styles */
.blog-post {
    padding: 60px 0;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 30px auto;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
}

.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags span {
    margin-right: 10px;
    font-weight: bold;
}

.post-tags a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: var(--secondary-background);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.post-tags a:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px auto;
    max-width: 800px;
}

.post-nav-links {
    display: flex;
    gap: 20px;
}

.prev-post, 
.next-post {
    font-weight: 600;
}

.back-to-blog {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.related-posts {
    max-width: 800px;
    margin: 60px auto 0;
}

.related-posts h3 {
    margin-bottom: 30px;
    text-align: center;
}

.small-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.small-card img {
    height: 150px;
}

.small-card .post-content {
    padding: 15px;
}

.small-card h4 {
    font-size: 1.1rem;
}

/* Portfolio Styles */
.portfolio-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--secondary-background);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, 
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: var(--light-text);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--light-text);
    margin-bottom: 5px;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.approach-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.approach-card .icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.team-member h3, 
.team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-member p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    padding: 0 20px 20px;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--secondary-background);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.equipment {
    background-color: var(--secondary-background);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.equipment-category h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.equipment-category ul {
    list-style: none;
}

.equipment-category li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.achievement-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
}

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

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

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item .icon {
    margin-right: 15px;
    padding-top: 5px;
}

.info-content h3 {
    color: var(--light-text);
    margin-bottom: 5px;
}

.info-content a {
    color: var(--light-text);
}

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

.social-contact h3 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h2 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

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

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 30px;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #777;
}

.modal-icon {
    color: var(--success-color);
    margin-bottom: 20px;
}

.close-btn {
    margin-top: 20px;
}

/* Summary Section */
.summary {
    background-color: var(--secondary-background);
    padding: 60px 0;
    text-align: center;
}

.summary h2 {
    margin-bottom: 20px;
}

.summary p {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid, 
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        margin-top: 15px;
    }
    
    .legal-links a {
        margin: 0 10px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
