/* 
* Vancity Blog - Main Stylesheet
* A modern, responsive design for a Vancouver-focused blog
*/

/* ============== GLOBAL STYLES ============== */
:root {
    --primary-color: #2c5f8e;
    --primary-dark: #1d4469;
    --primary-light: #4685c4;
    --secondary-color: #38b6a5;
    --accent-color: #e74c3c;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --body-font: 'Open Sans', Helvetica, Arial, sans-serif;
    --heading-font: 'Montserrat', Helvetica, Arial, sans-serif;
    --container-width: 1200px;
}

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

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

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

section {
    padding: 60px 0;
}

/* ============== READING PROGRESS BAR ============== */
#reading-progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
}

#reading-progress {
    height: 5px;
    background: var(--accent-color);
    width: 0;
}

/* ============== HEADER ============== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

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

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

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

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

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

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: linear-gradient(to right, rgba(44, 95, 142, 0.8), rgba(29, 68, 105, 0.8)), url('images/1.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: white;
}

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

/* ============== THIS DAY IN HISTORY ============== */
.this-day-history {
    background-color: var(--light-color);
    padding: 60px 0;
}

.this-day-history h2 {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.this-day-history h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.history-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.history-text h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============== FEATURED POSTS ============== */
.featured-posts {
    padding: 80px 0;
}

.featured-posts h2 {
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.featured-posts h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.post-meta span {
    margin-right: 20px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

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

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* ============== NEWSLETTER ============== */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.newsletter input {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter button {
    background-color: var(--accent-color);
    padding: 15px 30px;
}

.newsletter button:hover {
    background-color: #c0392b;
}

/* ============== FOOTER ============== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

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

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

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

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============== COOKIE CONSENT ============== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    z-index: 999;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

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

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

#cookie-accept {
    background-color: var(--secondary-color);
    color: white;
}

#cookie-customize {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

#cookie-decline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

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

/* ============== PAGE HEADER ============== */
.page-header {
    background: linear-gradient(to right, rgba(44, 95, 142, 0.8), rgba(29, 68, 105, 0.8)), url('images/1.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============== BLOG POSTS PAGE ============== */
.blog-posts .posts-grid {
    margin-top: 40px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.category-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

/* ============== ABOUT PAGE ============== */
.about-story {
    padding: 80px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.story-text h2 {
    margin-bottom: 25px;
    position: relative;
}

.story-text h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.story-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

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

.mission-card {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
}

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

.mission-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.mission-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.team-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

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

.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

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

.team-card h3 {
    padding: 20px 20px 5px;
    margin-bottom: 5px;
}

.team-card p {
    padding: 0 20px;
    margin-bottom: 15px;
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
}

.team-card .social-icons {
    padding: 0 20px 20px;
    margin-top: 10px;
}

.team-card .social-icons a {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.join-team {
    text-align: center;
    padding: 80px 0;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
}

.join-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ============== CONTACT PAGE ============== */
.contact-info {
    padding-bottom: 0;
}

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

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
}

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

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p, .info-card a {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.info-card a:hover {
    color: var(--primary-color);
}

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

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.form-wrapper h2 {
    margin-bottom: 15px;
}

.form-wrapper p {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.btn-submit {
    background-color: var(--primary-color);
    padding: 15px 30px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

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

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal p {
    margin-bottom: 30px;
}

/* ============== RESPONSIVE DESIGN ============== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .story-content,
    .history-content {
        grid-template-columns: 1fr;
    }
    
    .story-image,
    .history-image {
        margin-bottom: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input,
    .newsletter button {
        width: 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mission-cards {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
}
