body {
    font-family: 'Lora', serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff; 
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: white;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
}

.header-container {
    width: 100%;
    background: white;
    max-width: 1880px;
    margin: 0 auto;
    position: relative;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-right: auto; /* Push away from center */
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    z-index: 2;
    margin: 0;
}

.logo {
    width: 57px;
    height: 57px;
    margin: 0;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0;
    z-index: 1;
    transition: color 0.5s ease;
}

.header-title-london {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
}

/* Nav Toggle and Menu Overlay */
.header-right .nav-toggle {
    width: 65px;
    height: 65px;
    background: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    position: relative;
}

.header-right .nav-toggle img {
    width: 38px;
    height: 6px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-right .nav-toggle.active {
    background-color: #fff;
}

.header-right .nav-toggle.active img {
    filter: invert(1);
}

.header-container.menu-active .header-title {
    color: white;
}

/* For the title color change */
.header.menu-active .header-title {
    color: white;
    z-index: 10;
}

/* For the menu links layout */
.menu-overlay nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #000;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-overlay a {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
}

.menu-overlay a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 80px 60px;
    background: none;
    display: block;
}

.hero-content p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 36px;
    letter-spacing: 0;
    line-height: 1.5;
    max-width: 1200px;
    color: rgba(0, 0, 0, 0.8);
}

/* Search Section */
.search-section {
    margin: 0 80px;
    height: auto;
    background: none;
    padding: 0;
}

.search-container {
    position: relative;
    width: 880px;
}

.search-input {
    width: 100%;
    height: 90px;
    border: 0.5px solid #222222;
    border-radius: 8px;
    padding-left: 24px;
    padding-right: 220px;
    font-family: 'Lora', serif;
    font-size: 16px;
    outline: none;
    background: white;
}

/* Style the clear button (cross) */
.search-input::-webkit-search-cancel-button {
    position: relative;
    right: 40px; /* Space from the search button */
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>")
    no-repeat 50% 50%;
    cursor: pointer;
}

.search-input::placeholder {
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(34, 34, 34, 0.5);
}

.search-button {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 191px;
    height: 68px;
    background-color: #222222;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #000000;
}

.search-button img {
    width: 20px;
    height: 20px;
}

.blog-search-input {
    width: 100%;
    height: 70px;
    border: 0.5px solid #222222;
    border-radius: 8px;
    padding-left: 24px;
    /* Add padding for clear button and search button */
    padding-right: 170px;
    font-family: 'Lora', serif;
    font-size: 16px;
    outline: none;
    background: white;
}

/* Style the clear button (cross) */
.blog-search-input::-webkit-search-cancel-button {
    position: relative;
    right: 40px; /* Space from the search button */
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>")
    no-repeat 50% 50%;
    cursor: pointer;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    padding: 1.5rem 80px;
    margin: 0;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 10px 20px;
    border: unset;
    border-radius: 12px;
    color: rgba(33, 33, 33, 0.85);
    z-index: 1;
    background: #ffffff;
    position: relative;
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.15);
    transition: all 400ms;
    overflow: hidden;
}

.quick-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 12px;
    background-color: #212121;
    z-index: -1;
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: all 400ms;
}

.quick-link:hover::before {
    width: 100%;
}

.quick-link span {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.quick-link:hover {
    color: #ffffff;
}

.quick-link:hover span {
    color: #ffffff;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: all 400ms;
}

.quick-link:hover .arrow-icon {
    filter: brightness(1000%);
}

/* Blog Section */
.blog-section {
    margin: 4rem 80px;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.blog-section h2 {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 400;
    margin:0;
}

/* View All Button */
.view-all-posts {
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    color: #222222;
    background: transparent;
    border: 2px solid #222222;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-all-posts:hover {
    background: #222222;
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: start;
}

.blog-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 630px;
}

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

.blog-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    z-index: 1;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

/* Base newsletter styles (for homepage) */
.newsletter {
    margin: 4rem 80px;
    border-radius: 8px;
    position: relative;
    background-color: white;
    width: 940px;
    margin-left: 80px;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(
        100% 50% at 50% 0%, 
        rgba(0, 163, 255, 0.13) 0%, 
        rgba(0, 163, 255, 0) 50%,
        rgba(0, 163, 255, 0) 100%
    );
}

.newsletter-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
}

.newsletter-container h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.8);
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 920px;
}

.input-container {
    position: relative;
    display: flex;
    height: 66px;
    width: 624px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, .05);
}

.input-container input {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgb(176, 190, 197);
    background-color: transparent;
    padding: 0 200px 0 24px;
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    color: rgb(69, 90, 100);
    outline: none;
    transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-container input:focus {
    border: 1px solid rgb(236, 72, 153);
}

.input-container input::placeholder {
    font-family: 'Lora', serif;
    color: rgba(69, 90, 100, 0.7);
}

.invite-btn {
    position: absolute;
    width: 180px;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    z-index: 10;
    border-radius: 8px;
    background-color: rgb(236, 72, 153);
    color: #fff;
    padding: 0 24px;
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    border: none;
    transition: .6s ease;
    cursor: pointer;
}

.invite-btn:hover {
    right: 9px;
    background-color: rgb(219, 39, 119);
}

.input-container input:placeholder-shown ~ .invite-btn {
    pointer-events: none;
    background-color: rgb(156, 163, 175);
    opacity: 0.5;
}

/* Footer */
.footer {
    padding: 24px 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #000000;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* Loading and Error States */
.loading, .error {
    width: 100%;
    text-align: center;
    padding: 2rem;
    font-family: 'Lora', serif;
    font-size: 16px;
    grid-column: 1 / -1;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 10px;
}

/* Common styles for static pages */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Page titles */
.about-page h1,
.terms-page h1,
.privacy-page h1 {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 600;
    color: #222;
    margin-bottom: 40px;
    text-align: center;
}

/* Section headings */
.about-content,
.terms-content,
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content section,
.privacy-content section {
    margin-bottom: 40px;
}

.terms-content h2,
.privacy-content h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

/* Paragraphs */
.about-content p,
.terms-content p,
.privacy-content p {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
}

/* Disclaimer styles */
.disclaimer-banner {
    background-color: rgba(255, 244, 229, 1); /* Soft warning color */
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 8px;
    padding: 16px 24px;
    margin: 0 auto 32px;
    max-width: 800px;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-icon {
    color: rgb(251, 146, 60);
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-text {
    font-family: 'Lora', serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgb(67, 67, 67);
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    font-family: 'Lora', serif;
    font-size: 14px;
    margin: 0;
    flex: 1;
    min-width: 280px;
}

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

.cookie-buttons button {
    font-family: 'Lora', serif;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.accept-button {
    background: #222;
    color: white;
}

.reject-button,
.settings-button {
    background: transparent;
    color: #222;
}

.accept-button:hover {
    background: #000;
}

.reject-button:hover,
.settings-button:hover {
    background: #f5f5f5;
}

/* Cookie Settings Modal */
.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
}

.settings-content h3 {
    font-family: 'Lora', serif;
    font-size: 18px;
    margin: 0 0 20px;
}

.cookie-options {
    margin-bottom: 20px;
}

.cookie-option {
    margin-bottom: 12px;
}

.cookie-option label {
    font-family: 'Lora', serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Privacy Policy Page Styles */
.privacy-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.privacy-page h1 {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    text-align: center;
}

.last-updated {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 48px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.privacy-section h3 {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    margin: 24px 0 16px;
}

.privacy-section p {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.privacy-section ul {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 16px 20px;
    padding: 0;
}

.privacy-section li {
    margin-bottom: 8px;
}

.privacy-section li:last-child {
    margin-bottom: 0;
}

.about-page {
    min-height: calc(100vh - 300px); /* Adjust 300px based on your header/footer height */
    padding: 80px 0;
}

.privacy-notice {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 12px;
    text-align: left;
    max-width: 624px; /* Same as input container */
}

.privacy-notice a {
    color: inherit;
    text-decoration: underline;
}

.privacy-notice a:hover {
    color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .privacy-notice {
        font-size: 12px;
        text-align: center;
        padding: 0 16px;
    }
}


/* Media Queries */
@media (max-width: 768px) {
    .privacy-page .container {
        padding: 60px 20px;
    }

    .privacy-page h1 {
        font-size: 28px;
    }

    .privacy-section h2 {
        font-size: 22px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }

    .privacy-section p,
    .privacy-section ul {
        font-size: 15px;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
        justify-content: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Media query for mobile */
@media (max-width: 768px) {
    .disclaimer-banner {
        margin: 0 20px 32px;
        padding: 12px 16px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }

    .about-page h1,
    .terms-page h1,
    .privacy-page h1 {
        font-size: 28px;
    }

    .terms-content h2,
    .privacy-content h2 {
        font-size: 20px;
    }

    .about-content p,
    .terms-content p,
    .privacy-content p {
        font-size: 16px;
    }
}

/* Media Queries */
@media (max-width: 1440px) {
    .newsletter-container {
        width: 100%;
        max-width: 940px;
    }
}

@media (max-width: 1024px) {
    .hero,
    .blog-section,
    .search-section { 
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        width: calc(100% - 160px);
        margin: 4rem 80px;
    }

    .search-container,
    .input-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header,
    .footer {
        padding: 20px 40px;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .quick-links {
        padding: 1rem 20px;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .quick-link {
        padding: 8px 16px;
    }
    
    .quick-link span {
        font-size: 16px;
    }
    
    .arrow-icon {
        width: 14px;
        height: 14px;
    }

    .blog-section,
    .newsletter {
        margin: 4rem 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        height: 500px;
    }

    .blog-section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .view-all-posts {
        padding: 10px 20px;
        font-size: 14px;
    }

    .newsletter {
        width: calc(100% - 40px);
        padding: 32px;
    }

    .secondary-newsletter {
        width: 100%;
        margin-left: 0;
    }

    .input-container {
        width: 100%;
    }

    .search-button {
        width: 90px;
        height: 48px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-input {
        height: 70px;
    }

    .search-button {
        width: 90px;
        height: 48px;
    }

    .invite-btn {
        width: 90px;
        height: 40px;
        font-size: 14px;
    }

    .quick-links {
        padding: 1rem 20px;
        gap: 0.6rem;
    }
    
    .quick-link {
        padding: 8px 12px;
    }
    
    .quick-link span {
        font-size: 16px;
    }
    
    .arrow-icon {
        width: 14px;
        height: 14px;
    }
}