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

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: #2c3e50;
    margin-top: 40px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    color: #ecf0f1; /* Light color for better contrast on dark background */
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1em;
}

p {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1.5em;
    font-size: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

a:hover {
    color: #2980b9;
}

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

/* Header with Parallax */
header {
    position: relative;
    background: url('img/header.png') no-repeat center center fixed;
    background-size: cover;
    height: 300px; /* Adjust the height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

header h1 {
    margin: 20px;
    font-size: 2em;
    color: #fff; /* Ensure the text is white for readability */
}

header p {
    font-size: 1em;
}

footer {
    position: relative;
    background: url('img/header.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 40px 0; /* Increase padding for more height if needed */
    margin-top: 20px;
}

/* Image Grid */
.image-grid {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: start; /* Aligns the grid items (images) to the left */
}

.image-grid img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    justify-self: start; /* Ensures each image is aligned to the left within its grid cell */
}

.image-grid p {
    max-width: 400px;
}

.text-with-image {
    display: flex;
    align-items: flex-start; /* Align the image and text at the top */
}

.text-with-image img {
    max-width: 200px;
    margin-right: 50px;
}

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

.maxwidth {
     width:100%;
     max-width:400px;
 }

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

.pt-2 {
    padding-top: 20px;
}

.pb-2 {
    padding-bottom: 20px;
}

/* Blockquote */
.custom-quote {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-style: italic;
    color: #555;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.4;
}

.custom-quote p {
    margin: 0;
}

.custom-quote emoji {
    font-style: normal;
}

.custom-quote source {
    font-size: 0.9em;
    margin-top: 10px;
    text-align: left;
}

.custom-quote source:before {
    content: "— ";
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.6em;
    }
    .container {
        width: 95%;
    }
    header {
        height: 250px;
    }
    footer {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.3em;
    }
    header {
        height: 200px;
    }
    header h1 {
        font-size: 1.5em;
    }
    header p {
        font-size: 0.9em;
    }
    footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    p {
        font-size: 0.9em;
    }
    header {
        height: 150px;
    }
    header h1 {
        font-size: 1.2em;
    }
    header p {
        font-size: 0.8em;
    }
    footer {
        padding: 15px 0;
    }
    .custom-quote {
        font-size: 0.9em;
        padding-left: 15px;
    }

    /* Make the image grid single-column on mobile */
    .image-grid {
        grid-template-columns: 1fr;
    }
}
