/* 
* SkyFields Aerodrome Blog Stylesheet
* A modern, responsive design for an aerodrome and aviation infrastructure blog
*/

/* Base Styles and Typography */
:root {
    --primary-color: #2a5a8c;
    --secondary-color: #3a7dbc;
    --accent-color: #f0a848;
    --dark-color: #1d3c5c;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --gray-text: #6c757d;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --content-width: 1200px;
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

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

li {
    margin-bottom: 0.5rem;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background-color: var(--light-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    border-radius: 50%;
}

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

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

nav li {
    margin: 0 0 0 1.5rem;
}

nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    color: var(--dark-color);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(42, 90, 140, 0.9), rgba(42, 90, 140, 0.9)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #e09a3a;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.btn-tertiary {
    background-color: var(--light-gray);
    color: var(--gray-text);
}

.btn-tertiary:hover {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

/* Featured Posts Section */
.featured-posts {
    padding: 5rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
}

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

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

.read-more:hover:after {
    margin-left: 5px;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Blog Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-text {
    padding: 1.5rem;
}

.blog-text h2 {
    margin-bottom: 0.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Blog Post Styles */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--gray-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

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

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.post-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-text);
}

.related-posts {
    margin-bottom: 3rem;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.related-card h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-card a {
    display: block;
    padding: 0 1rem 1rem;
    font-weight: 600;
}

/* About Page Styles */
.about-content {
    padding: 3rem 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.team-section > p {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.team-member p:last-child {
    padding-bottom: 1.5rem;
}

/* Contact Page Styles */
.contact-content {
    padding: 3rem 0;
}

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

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-text h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

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

.social-links {
    margin-top: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

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

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

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

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

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 90, 140, 0.2);
}

.map-section {
    margin: 3rem 0;
}

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

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

/* Summary Section */
.summary {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-top: 3rem;
}

.summary h2 {
    margin-bottom: 1.5rem;
}

.summary ul {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-links h3, .footer-policy h3, .footer-contact h3 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links a, .footer-policy a {
    color: var(--light-gray);
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover, .footer-policy a:hover {
    color: var(--accent-color);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: var(--light-text);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
}

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

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

.cookie-content a:hover {
    color: #e09a3a;
}

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

.modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--light-text);
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image img {
        height: 200px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-social {
        margin-top: 1rem;
    }
}

/* Icon Classes for Font Icons */
.icon-location::before {
    content: '📍';
    margin-right: 0.5rem;
}

.icon-phone::before {
    content: '📞';
    margin-right: 0.5rem;
}

.icon-email::before {
    content: '✉️';
    margin-right: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
