:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37; /* Warm Gold */
    --text-color: #333;
    --background-color: #fff;
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* Header and Navbar */
#header {
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#navbar .nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

#navbar ul {
    list-style: none;
    display: flex;
}

#navbar ul li {
    margin-left: 2rem;
}

#navbar ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

#navbar ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}


/* Hero Section */
#hero {
    background: url('hero-background.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    filter: invert(77%) sepia(26%) saturate(3025%) hue-rotate(352deg) brightness(88%) contrast(91%); /* Gold color */
}

/* Salvation Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.step-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step-card cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    text-align: right;
    color: var(--accent-color);
}

/* Studies Section */
.studies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.study-card {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

.study-card h3 {
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}
.study-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* About Section */
#about {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}


.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

#modal-title {
    margin-bottom: 1.5rem;
}
#modal-body ul {
    list-style-position: inside;
}
#modal-body li {
    margin-bottom: 0.5rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
    }
    #navbar ul {
        padding-top: 1rem;
    }
    #navbar ul li {
        margin: 0 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

