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

body {
    background-color: #030a0f;
    color: #fff;
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #030a0f;
}

::-webkit-scrollbar-thumb {
    background: #027b25;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c4a25;
}

/* Scroll to Top Button */
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #027b25;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTop:hover {
    background-color: #5c4a25;
    transform: scale(1.1);
}

#scrollToTop i {
    margin: 0;
    line-height: 50px;
    text-align: center;
}

/* X Logo Styling */
.x-logo {
    font-size: 1.7em;
    color: #fff;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
    line-height: 1;
    vertical-align: middle;
}

.x-logo:hover {
    transform: scale(1.2);
    color: #027b25;
}

/* Navigation Button Styling */
.nav-button {
    background-color: #027b25;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.4em;
    border-radius: 25px;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-button:hover {
    background-color: #5c4a25;
    transform: scale(1.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #030a0f;
    position: relative;
    z-index: 1000;
    animation: fadeIn 1s ease-in;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 70px;
    margin-right: 1.5rem;
    animation: bounceIn 1s ease-out;
}

nav {
    display: flex;
    gap: 2.5rem;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    transition: color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    color: #027b25;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #027b25;
}

.social-icons i {
    font-size: 1.7em;
    vertical-align: middle;
}

.header-border {
    border-bottom: 4px solid #027b25;
    width: 100%;
}

#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: zoomIn 2s ease-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 10, 15, 0.7);
    z-index: 1;
}

.hero-text {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: slideIn 1.5s ease-out;
    padding: 1rem 0;
}

.hero-text h1 {
    color: #fff;
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-text p {
    color: #fff;
    font-size: 1.5em;
    animation: fadeInUp 1.5s ease-out;
}

main section {
    margin: 2rem auto;
    padding: 2rem;
    width: 60%;
    animation: slideUp 1s ease-out;
}

h2 {
    color: #027b25;
    font-size: 2.5em;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

p {
    font-size: 1.3em;
    line-height: 1.8;
    text-align: center;
}

.connect-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #027b25;
    color: #fff;
    padding: 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.3em;
    width: 200px;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.connect-btn i {
    margin-right: 0.5rem;
    font-size: 1.5em;
}

.connect-btn .x-logo {
    margin-right: 0.5rem;
}

.connect-btn:hover {
    background-color: #5c4a25;
    transform: scale(1.05);
}

/* Substack logo styling */
.connect-btn .substack-logo {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: #ff6600;
    border-radius: 50%;
    text-align: center;
    line-height: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-right: 0.5rem;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.video-item {
    text-align: center;
}

.video-item h3 {
    font-size: 1.5em;
    margin: 0.5rem 0;
}

.video-item p {
    font-size: 1.2em;
    margin: 0.5rem 0;
}

.video-item a img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video-item a:hover img {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #027b25;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

button {
    background-color: #027b25;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.3em;
    border-radius: 25px;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

button:hover {
    background-color: #5c4a25;
    transform: scale(1.1);
}

.confession-button {
    display: inline-block;
    background-color: #027b25;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.3em;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.confession-button:hover {
    background-color: #5c4a25;
    transform: scale(1.1);
}

.westminster-confession {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confession-content {
    text-align: center;
}

.confession-content h3 {
    color: #027b25;
    font-size: 2em;
    margin-bottom: 1rem;
}

.confession-content h4 {
    color: #fff;
    font-size: 1.5em;
    margin: 1rem 0 0.5rem;
}

.confession-content p {
    text-align: left;
    margin-bottom: 1rem;
}

.section a {
    color: #027b25;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.section a:hover {
    color: #5c4a25;
}

.chapter {
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #030a0f;
    border-top: 2px solid #027b25;
    animation: fadeIn 1s ease-in 1s backwards;
    font-size: 1.2em;
}

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

.footer-social a {
    color: #fff;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #027b25;
}

.footer-social .x-logo {
    font-size: 1.7em;
    line-height: 1;
    vertical-align: middle;
}

.footer-social i {
    font-size: 1.7em;
    vertical-align: middle;
}

/* Custom SVG styling for social icons */
.social-svg {
    width: 1.7em;
    height: 1.7em;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.footer-social a:hover .social-svg {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .logo img {
        margin: 0 auto;
        display: block;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-button {
        margin: 0.5rem 0;
    }

    .social-icons {
        gap: 0.5rem;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
    }

    .hero-image {
        order: -1;
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
    }

    .hero-text {
        position: relative;
        padding-top: 0.5rem;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    main section {
        width: 90%;
        padding: 1rem;
    }

    .connect-btn {
        width: 180px;
        font-size: 1.1em;
    }

    .video-list {
        grid-template-columns: 1fr;
    }

    .video-item a img {
        max-width: 100%;
    }

    .footer-social {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}
.newsletter iframe {
    border: 2px solid #027b25; /* Green border matching the theme */
    background-color: #030a0f; /* Dark background matching the body */
    color: #fff; /* White text for readability */
    border-radius: 10px; /* Optional: Rounded corners for consistency */
}
/* === Book Promotion Popup === */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 10, 15, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    background-color: #030a0f;
    border: 2px solid #027b25;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    color: #fff;
    box-shadow: 0 0 20px rgba(2, 123, 37, 0.4);
    animation: slideIn 0.5s ease-out;
}

.popup-image {
    width: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.popup-button {
    display: inline-block;
    background-color: #027b25;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background-color: #5c4a25;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Book Promotion Section === */
.book-promo {
    background-color: #030a0f;
    border-top: 2px solid #027b25;
    border-bottom: 2px solid #027b25;
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.book-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.book-cover {
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(2, 123, 37, 0.4);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.book-details {
    max-width: 550px;
    text-align: left;
}

.book-details h3 {
    color: #027b25;
    font-size: 1.8em;
    margin-bottom: 1rem;
}

.book-details p {
    color: #fff;
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.book-button {
    display: inline-block;
    background-color: #027b25;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-size: 1.3em;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.book-button:hover {
    background-color: #5c4a25;
    transform: scale(1.05);
}

/* Center and scale the embedded video */
.book-video {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.book-video iframe {
    max-width: 100%;
    border: 2px solid #027b25;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(2, 123, 37, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
    }
    .book-details {
        text-align: center;
    }
    .book-details h3 {
        font-size: 1.6em;
    }
}
