:root {
    --primary-color: #0081a7;
    --primary-hover-color: #006b8c;
    --secondary-color: #8D8781;
    --background-color: #F8F6EE;
    --surface-color: #faf9f6;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --border-radius: 15px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}


.logo img {
    height: 40px;
    vertical-align: middle; /* Fix for vertical alignment */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.primary-button:hover {
    background-color: var(--primary-hover-color);
}

.hero-header {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-image: linear-gradient(90deg, #1d3d8e, #0e286966 0%, #122e734d 38%, #1d3d8e00 57%), url("../images/hero/hero-image.jpg");
    background-position: 0 0, 50% 0;
    background-size: auto, cover;
    min-height: 80vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-content .primary-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

.hero-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-header h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.mobile-hero {
    display: none; /* Hidden by default */
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-section {
    padding: 2rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.heading-sub {
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-align: center;
}

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

.tiles-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tiles-horizontal {
    display: flex;
    gap: 2rem;
}

.tile-large-link, .tile-medium-link {
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    min-height: 460px;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    box-sizing: border-box;
}

.tile-large-link {
    width: 66.66%;
}

.tile-medium-link {
    width: 33.33%;
}

.slider-tile-bottom {
    z-index: 1;
    position: relative;
}

.cta-section {
    background-color: var(--surface-color);
    text-align: center;
    padding: 2rem 2rem 4rem;
}

.footer {
    background-color: var(--background-color);
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.footer-left .logo {
    margin-bottom: 3rem;
}

.site-description {
    margin-top: 1rem;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-size: 0.9em;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    box-sizing: border-box;
    align-items: center;
}

.footer-legal a {
    margin-left: 1rem;
}

.footer-right {
    text-align: right;
}

.footer-right .nav-link {
    display: block;
    margin-bottom: 1rem;
}

.button-orange-solid {
    background-color: #ff9f1c;
    color: white;
}

.button-orange-solid:hover {
    background-color: #e68f19;
}

.login-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.social-links a {
    margin-left: 1rem;
}

.social-links img {
    height: 32px;
}

/* Page-specific visibility */
.home .page-content,
.page .hero-header,
.page .content-section:not(.page-content),
.page .pricing-section,
.page .cta-section {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tiles-horizontal {
        flex-direction: row;
    }

    .tile-large-link, .tile-medium-link {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .hero-header {
        flex-direction: column-reverse;
        padding: 2rem;
        background-image: url("../images/hero/hero-image-square.jpg");
        background-position: center;
        background-size: cover;
    }
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.mobile-nav-link {
    font-size: 1.5rem;
}

.mobile-nav-button {
    width: 100%;
    text-align: center;
    max-width: 300px;
    font-size: 1.5rem;
    padding: 1rem;
}

/* Hamburger Animation */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 767px) {
    .mobile-menu-overlay.active {
        display: flex;
    }

    .hero-header {
        background-image: none;
        background-color: var(--primary-color);
    }

    .hero-container {
        flex-direction: column;
    }

    .mobile-hero {
        display: block;
    }
    .navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .tiles-horizontal {
        flex-direction: column;
    }

    .tile-large-link, .tile-medium-link {
        width: 100%;
        background-size: cover;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-right {
        margin-bottom: 0;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .footer-legal a {
        margin-left: 0;
    }

    .hide-mobile {
        display: none;
    }
}

/* Pricing Section Styles */
.pricing-section {
    padding: 2rem 2rem;
    background-color: var(--surface-color);
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: scale(1.02);
    z-index: 1;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--primary-color);
    font-weight: bold;
}

.price-display .currency {
    font-size: 1.5rem;
    margin-right: 0.2rem;
}

.price-display .amount {
    font-size: 3rem;
    line-height: 1;
}

.price-display .period {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
    font-weight: normal;
}

.price-subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.pricing-positioning {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-color);
    padding-bottom: 2rem;
}

.features-label {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-action {
    text-align: center;
}

.button-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Specific responsiveness for pricing */
@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
        min-width: 0;
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Blog Styles */

/* Remove default page padding for blog pages to allow full width headers and custom spacing */
.blog-index-page .page-content,
.blog-post-page .page-content {
    padding: 0;
    max-width: 100%;
}

/* Blog Index */
.blog-header {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: auto;
    text-align: center;
}

.blog-index-page .blog-header {
    min-height: 20vh;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    align-self: flex-start; /* Align to the start of the flex container (left/center depending on parent) */
}

/* Ensure blog header aligns items correctly for the back button */
.blog-post-page .blog-header {
    align-items: flex-start; /* Align items to the left for blog posts */
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.blog-post-page .blog-header h1 {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.blog-back-button img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.blog-back-button:hover {
    color: var(--primary-color);
}

.blog-back-button:hover img {
    transform: translateX(-3px);
}

.blog-listing {
    padding: 2rem 2rem 4rem;
    background-color: var(--surface-color);
    width: 100%;
    box-sizing: border-box;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

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

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

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    background-color: white;
}

.pagination-link:hover, .pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Single Blog Post */
.blog-post-page .blog-header {
    padding: 3rem 2rem;
}

.blog-post-page .blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.blog-feature-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-top: -2rem; /* Pull up into the header slightly or just sit below */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.blog-categories span {
    background-color: #eee;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Related Articles */
.related-articles {
    background-color: var(--background-color);
    padding: 4rem 2rem;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.blog-grid.related {
    max-width: 1200px;
    margin: 0 auto;
}

/* Video Embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
