/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF8E1; /* Warm off-white */
    color: #4A3B31; /* Dark brown text */
    line-height: 1.6;
}

header {
    background-color: #D35400; /* Muted spiritual orange/saffron */
    color: #FFFFFF;
    padding: 2em 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
}

header .subtitle {
    margin: 0.5em 0 0;
    font-size: 1.1em;
    font-style: italic;
    color: #FFEBCC; /* Lighter shade for subtitle */
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

#profile {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.profile-main {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
}

.slideshow-container {
    position: relative;
    flex: 1 1 400px; /* Flex properties for responsiveness */
    max-width: 100%; /* Ensure it doesn't overflow its container */
    min-width: 300px;
    margin: 0 auto; /* Center if it's the only item in a row */
    height: 2200px; /* Added: Set a fixed height for the viewport */
    overflow: hidden; /* Added: Crucial to clip the scrolling images */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* NEW VERTICAL SCROLL STYLES */
.image-scroll-wrapper {
    display: flex;
    flex-direction: column;
    animation: verticalScroll 60s linear infinite; /* Adjust duration for speed (e.g., 60s = 6s per image avg) */
}

.image-scroll-wrapper img.scroll-slide {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures the image covers the area, might crop if aspect ratios differ wildly */
    margin-bottom: 10px; /* Space between images */
    border-radius: 4px; /* Optional: slight rounding of image corners */
}

@keyframes verticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        /* This scrolls one full set of images up. Since the wrapper contains two sets, */
        /* translateY(-50%) moves it by the height of the first set. */
        transform: translateY(-50%);
    }
}

.content-section {
    flex: 2 1 600px; /* Flex properties */
}

.content-section h2 {
    color: #D35400;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

.text-content h3 {
    color: #E67E22; /* Slightly lighter orange for subheadings */
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #FFEBCC;
    padding-bottom: 5px;
}

.text-content p,
.text-content ul,
.text-content ol {
    margin-bottom: 15px;
    text-align: justify;
}

.text-content ul, .text-content ol {
    padding-left: 20px;
}

.text-content ul ul {
    margin-top: 5px;
    margin-bottom: 5px;
}

.text-content li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #4A3B31; /* Dark brown footer */
    color: #FFF8E1;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    header .subtitle {
        font-size: 1em;
    }
    .profile-main {
        flex-direction: column;
    }
    .slideshow-container {
        margin-bottom: 20px; /* Add space between slideshow and text on mobile */
    }
    .content-section h2 {
        font-size: 1.8em;
    }
    .text-content h3 {
        font-size: 1.3em;
    }
    .text-content p,
    .text-content ul,
    .text-content ol {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    header .subtitle {
        font-size: 0.9em;
    }
    main {
        padding: 10px;
    }
    #profile {
        padding: 15px;
    }
    .content-section h2 {
        font-size: 1.6em;
    }
    .text-content h3 {
        font-size: 1.2em;
    }
    .slideshow-container .prev,
    .slideshow-container .next {
        font-size: 16px;
        padding: 12px;
    }
}
