/*linking code     <link href="/style.css" rel="stylesheet" type="text/css" media="all"> */
body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', Arial, sans-serif;
    color: white;
    background-color: #131313;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}


.page-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 15px solid transparent;
    border-image-slice: 30;
    border-image-repeat: round;
    border-image-outset: 5px;
    z-index: 1000;
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.85), rgba(0, 0, 139, 0.85));
    z-index: -1;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(75, 0, 130, 0.7);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover {
    background: rgba(0, 0, 139, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.container {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 40px;
    background: rgba(20, 20, 50, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.container h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-top: 10px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    color: rgba(255, 215, 0, 0.9);
}


.featured-image-container {
    position: relative;
    margin: 0 -40px 40px;
    overflow: hidden;
    height: 350px;
}

.featured-image {
    width: 100%;  
    height: auto;
    border-radius: 5px;
    transition: transform 6s ease;
}

.featured-image-container:hover .featured-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: left;
}

.image-overlay h3 {
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px black;
}

.image-overlay p {
    margin: 5px 0 0;
    font-size: 1rem;
    opacity: 0.9;
}


.container p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.container p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    color: rgba(255, 215, 0, 0.8);
    font-family: 'Times New Roman', serif;
}


.highlight {
    padding: 25px;
    margin: 30px 0;
    background: rgba(75, 0, 130, 0.5);
    border-left: 4px solid rgba(255, 215, 0, 0.8);
    border-radius: 5px;
}


.story-highlight {
    padding: 25px;
    margin: 40px 0;
    background: rgba(139, 0, 0, 0.4);
    border-left: 4px solid rgba(220, 20, 60, 0.8);
    border-radius: 8px;
    font-style: italic;
    border: 1px solid rgba(220, 20, 60, 0.3);
}


.ritual-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 0, 0.6);
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}


.story-divider {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.7);
    letter-spacing: 5px;
}


.story-separator {
    text-align: center;
    margin: 40px 0;
    font-size: 24px;
    color: rgba(255, 215, 0, 0.8);
}


.embedded-story {
    background: rgba(30, 30, 70, 0.6);
    padding: 30px;
    margin: 40px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.embedded-story h3 {
    color: rgba(255, 215, 0, 0.9);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}


.story-section {
    margin: 40px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.guidance-section {
    background: rgba(75, 0, 130, 0.3);
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    border-left: 4px solid rgba(255, 215, 0, 0.8);
}

.guidance-section h3 {
    color: rgba(255, 215, 0, 0.9);
    font-size: 1.4rem;
    margin-bottom: 15px;
}


.quote {
    font-style: italic;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 3px solid rgba(255, 215, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 5px 5px 0;
}


.journal-entry {
    background: rgba(139, 69, 19, 0.2);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid rgba(160, 82, 45, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.journal-header {
    font-weight: bold;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 10px;
}


.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

/* Updated responsive image with maintained aspect ratio */
.base-image {
    width: 100%;
    max-width: 300px;
    height: auto; /* Changed from fixed 200px to auto to maintain aspect ratio */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: block;
    margin: 0 auto;
}

.base-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
    filter: brightness(1.1);
}

.base-image:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.image-gallery:hover::after {
    opacity: 1;
}

.image-button-container {
    position: relative;
    display: block;
    max-width: 300px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.image-button-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.image-button-container:hover .base-image {
    transform: scale(1.05);
}

.image-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: center;
}


.overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.overlay-button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s;
}

.image-button-container:hover .overlay-button {
    background: rgba(75, 0, 130, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.image-button-container:hover .overlay-button img {
    opacity: 1;
}

.button-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
}

.image-button-container:hover .button-title {
    transform: translateY(0);
}

/*  (for homepage) */
.landing-container {
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.landing-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 6s ease;
}

.landing-container:hover .landing-image {
    transform: scale(1.1);
}

.landing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
}

.landing-text h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.landing-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Search */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    width: 70%;
    max-width: 800px;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Posts */
.posts-section {
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}


.post {
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(20, 20, 50, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    position: relative;
    height: 250px;
}

.post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.post:hover img {
    transform: scale(1.1);
}

.post a.title-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: background 0.3s;
}

.post:hover a.title-link {
    background: rgba(75, 0, 130, 0.8);
}


.image-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.image-button img {
    display: block;
    width: 200px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.image-button:hover img {
    transform: scale(1.1);
}

.image-button:hover .button-title {
    transform: translateY(0);
}

/* Buttons */
.hidden-blog-container {
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
}

.hidden-blog-btn,
.back-btn {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(70, 0, 135, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn {
    display: block;
    width: 200px;
    margin: 40px auto;
    text-align: center;
    font-weight: bold;
}

.hidden-blog-btn:hover,
.back-btn:hover {
    background: rgba(0, 0, 139, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-post {
    position: relative;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.related-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-post:hover img {
    transform: scale(1.1);
}

.related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    text-align: center;
}


footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    text-align: left;
}

.footer-section h3 {
    border-bottom: 2px solid rgba(75, 0, 130, 0.7);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

/* Phone Friendly, yaaay */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    header {
        flex-direction: column;
        padding: 10px 15px;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 15px;
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .container {
        margin: 15px 10px 40px;
        padding: 15px;
        border-radius: 10px;
    }
    
    .container h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .featured-image-container {
        margin: 0 -15px 20px;
        height: 200px;
    }
    
    .image-overlay {
        padding: 15px;
    }
    
    .image-overlay h3 {
        font-size: 1.2rem;
    }
    
    .image-overlay p {
        font-size: 0.9rem;
    }
    
    .container p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .container p:first-of-type::first-letter {
        font-size: 2.5em;
        margin-right: 8px;
    }
    
    .highlight,
    .story-highlight {
        padding: 15px;
        margin: 20px 0;
    }
    
    .image-gallery {
        gap: 10px;
    }
    
    .base-image {
        max-width: 250px;
        height: auto; /* Changed from fixed 150px to auto for responsive aspect ratio */
    }
    
    .image-button-container {
        width: 140px;
        height: 100px;
    }
    
    .overlay-button {
        width: 60px;
        height: 60px;
    }
    
    .button-title {
        font-size: 12px;
        padding: 8px;
    }
    
    .hidden-blog-btn,
    .back-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        max-width: 90%;
    }
    
    .related-posts {
        margin-top: 40px;
    }
    
    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-post {
        height: 120px;
    }
    
    .related-title {
        font-size: 13px;
        padding: 8px;
    }
    
    .landing-text h2 {
        font-size: 2rem;
    }
    
    .search-bar {
        width: 90%;
    }
    
    .posts {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


@media (max-width: 480px) {
    header {
        padding: 8px 10px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .container {
        margin: 10px 5px 30px;
        padding: 12px;
    }
    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .featured-image-container {
        margin: 0 -12px 15px;
        height: 180px;
    }
    
    .container p {
        font-size: 15px;
    }
    
    .container p:first-of-type::first-letter {
        font-size: 2em;
        margin-right: 6px;
    }
    
    .image-overlay {
        padding: 10px;
    }
    
    .image-overlay h3 {
        font-size: 1.1rem;
    }
    
    .highlight,
    .story-highlight {
        padding: 12px;
        margin: 15px 0;
    }
    
    .base-image {
        max-width: 200px;
        height: auto;
    }
    
    .hidden-blog-btn,
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .related-post {
        height: 100px;
    }
}