/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; /* Remove default body margin to allow background to span full width */
    padding: 0; /* Remove default body padding */
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers direct children (header, main, footer) horizontally */
    min-height: 100vh; /* Full viewport height */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    position: relative; /* Needed for hamburger menu overlay to not scroll with content */
}

/* New: A general content wrapper for consistent width of main content */
.content-wrapper {
    width: 100%; /* Take full width of parent (which is centered by body's align-items) */
    max-width: 100%; /* Set a maximum width for the "fuselage" to prevent it from getting too wide on large screens */
    padding: 0 20px; /* Add horizontal padding *inside* the wrapper for content spacing */
    box-sizing: border-box; /* Crucial: Ensure padding is included in the width calculation */
    flex-grow: 1; /* Allow content-wrapper to expand and push footer down */
}

/* Styles for the semantic header and footer elements */
header, footer {
    width: 100%; /* Ensures header/footer background spans full width of the viewport */
    background-color: #0f3460; /* Darker blue background */
    padding: 25px; /* Vertical padding, no horizontal here */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Apply shadow for depth */
    box-sizing: border-box;

    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: left ; /* Center children vertically if header has a fixed height, or along the cross-axis (horizontally) for column direction */
}

/* Specific margins for spacing between header/footer and content */
header {
    margin-bottom: 15px; /* Space between header and the main content area */
    align-items: start; /* Center children horizontally along the main-axis (horizontally) for column direction */

}

footer {
    padding-left: 45px;
    margin-top: 15px; /* Space above the footer from the main content area */
    margin-bottom: 0; /* Remove bottom margin for the absolute last element on the page */
    align-items: start; /* Center children horizontally along the main-axis (horizontally) for column direction */

}

/* H1 styles for the header (now centered by flexbox on the header itself) */
h1 {
    color: #e94560; /* Accent color */
    margin-bottom: 0;
    font-size: 2.2em;
}

/* If you have an h2 or p directly inside the footer that you want centered: */
footer h2, footer p {
    text-align: center; /* Still useful if multiple text elements inside footer */
    margin: 0; /* Adjust margins as needed when using flexbox */
    color: #c0d8f0; /* Ensure footer text is visible */
}

img {
    border-radius: 8px;
}

.main-button-container {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.main-button {
    background-color: #0f3460;
    color: white;
    padding: 25px;
    text-align: left ;
    text-decoration: none;
    display: block;
    font-size: 26px;
    margin: 10px auto;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.main-button:hover {
    background-color: #2e6096;
    transform: translateY(-2px);
}

.links-section, .video-section, .cia-section, .footer-section {
    width: 100%;
    background-color: #0f3460;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.links-section h2, .video-section h2, .cia-section h2, .footer-section h2 {
    color: #e94560;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}
.link-columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.link-column {
    flex: 1;
    min-width: 280px;
    padding: 15px;
    background-color: #16213e;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.link-column li {
    margin-bottom: 12px;
}
.link-column li:last-child {
    margin-bottom: 0;
}
.link-column a {
    color: #c0d8f0;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 10px;
    border-radius: 6px;
    background-color: #1f4068;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.link-column a:hover {
    background-color: #2e6096;
    color: #ffffff;
}

/* Video Section Specific Styles */

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}
.video-block {
    background-color: #16213e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 100%;
    flex: 1 1 300px;
    box-sizing: border-box;
}
.video-block iframe,
.video-block video {
    width: 100%;
    height: auto;
    max-height: auto;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
}
.video-block .video-title {
    color: #e0e0e0;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.video-block .video-link-button {
    display: inline-block;
    background-color: #e94560;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 95%;
}
.video-block .video-link-button:hover {
    background-color: #d0304a;
}

/* CIA Section Specific Styles */
.cia-section p {
    color: #c0d8f0;
    margin-bottom: 15px;
    font-size: 1em;
}
.cia-section a {
    color: #e94560;
    text-decoration: none;
}
.cia-section a:hover {
    text-decoration: underline;
}
.cia-section .button.fullspan-button {
    display: inline-block;
    width: 80%;
    max-width: 80%;
    background-color: #e94560;
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: auto;
}
.cia-section .button.fullspan-button:hover {
    background-color: #d0304a;
}
.cia-section iframe {
    width: 100%;
    /*height: auto;*/
    border-radius: 8px;
    border: none;
    margin-top: 20px;
    margin-bottom: 15px;
}
.cia-section .tor-url-block {
    background-color: #1f4068;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
    color: #c0d8f0;
}

.ice-section/* ICE Section Specific Styles */
.ice-section p {
    color: #c0d8f0;
    margin-bottom: 15px;
    font-size: 1em;
}
.ice-section a {
    color: #a94560;
    text-decoration: none;
    text-align: left;
}
.ice-section a:hover {
    text-decoration: underline;
}
.ice-section .button.fullspan-button {
    display: inline-block;
    width: 97%;
    max-width: 97%;
    background-color: #e94560;
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px; 
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.ice-section .button.fullspan-button:hover {
    background-color: #d0304a;
}
.ice-section iframe {
    width: 100%;
    /*height: auto;*/
    border-radius: 8px;
    border: none;
    margin-top: 20px;
    margin-bottom: 15px;
}
.ice-section .tor-url-block {
    background-color: #1f4068;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
    color: #c0d8f0;
}

/* Hamburger Menu & Sidebar Styles */
.hamburger-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
}
.hamburger-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-icon.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden off-screen */
    width: 250px;
    height: 100%;
    background-color: #0f3460;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    overflow-y: auto;
}
.sidebar.open {
    right: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #c0d8f0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}
.sidebar ul li a:hover {
    background-color: #1f4068;
}

/* --- Amor y Servicio Specific Styles (Now Dark Theme) --- */
.amor-main-container {
    font-family: Arial, sans-serif; /* Keep Arial for this section as per your original HTML */
    line-height: 1.6;
    background-color: #1f4068; /* Dark background for the content area */
    color: #e0e0e0; /* Light text for the content area */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5); /* Adjusted shadow for dark background */
    margin-bottom: 30px; /* Spacing before footer */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Column setup for content pairs */
.amor-main-container .content-pair {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px; /* Space between content pairs */
}
.amor-main-container .content-pair:last-of-type {
    margin-bottom: 0; /* No margin after the last one */
}

.amor-main-container .spanish-column,
.amor-main-container .english-column {
    flex: 1;
    min-width: 300px; /* Maintain minimum width for columns */
    padding: 15px; /* Slightly increased padding for better appearance */
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in flex calculation */
}
.amor-main-container .spanish-column {
    background-color: #16213e; /* Darker blue */
    border: 1px solid #0f3460; /* Darker border */
}
.amor-main-container .english-column {
    background-color: #0f3460; /* Slightly different dark blue */
    border: 1px solid #16213e; /* Slightly different dark border */
}

/* Headers within Amor y Servicio content area */
.amor-main-container h1,
.amor-main-container h2,
.amor-main-container h3 {
    color: #e94560; /* Accent red for headers */
    text-align: center;
    margin-bottom: 15px;
}
.amor-main-container h2 {
    font-size: 1.8em; /* Adjusted to fit better with global h1 */
}

/* Serenity Prayer and Leader Phrases sections */
.amor-main-container .serenity-prayer,
.amor-main-container .leader-phrases {
    width: 100%;
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #16213e; /* Dark blue background, distinct */
    border: 1px solid #1f4068; /* Harmonious border */
    box-sizing: border-box;
}

/* Leader phrases button styles */
.amor-main-container .leader-phrases button {
    background-color: #e94560; /* Main accent red */
    color: rgba(255, 255, 255, 0.582);
    padding: 15px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Add shadow */
}
.amor-main-container .leader-phrases button:hover {
    background-color: #b42940; /* Darker red on hover */
}

/* Phrase display area */
.amor-main-container .phrase-display {
    margin-top: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #8c9cac; /* Light blue for the displayed phrase */
    min-height: 1.5em;
}

/* Section break (horizontal line) */
.amor-main-container .section-break {
    height: 2px;
    background-color: #3a506b; /* Darker grey for the line */
    margin: 40px 0;
    width: 100%;
}


/* Responsive adjustments */
@media (max-width: 100%) {
    .content-wrapper {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8em;
    }
    .main-button {
        font-size: 22px;
        padding: 20px 30px;
        width: 100%;
        max-width: unset;
    }
    .links-section, .video-section, .cia-section, .footer-section {
        padding: 15px;
        margin-bottom: 25px;
    }
    .links-section h2, .video-section h2, .cia-section h2, .footer-section h2 {
        font-size: 1.5em;
    }
    .link-column {
        min-width: unset;
        width: 100%;
    }
    .video-block {
        width: 100%;
        max-width: none;
    }
    .video-block iframe,
    .video-block video {
        height: auto;
    }
    .cia-section .button.fullspan-button {
        width: 100%;
        max-width: unset;
    }
    .iframe-container {
        padding: 10px; /* Adjust padding for smaller screens */
    }
    .iframe-note {
        padding: 0 15px;
    }

    /* Amor y Servicio Specific Responsive Adjustments */
    .amor-main-container {
        padding: 15px; /* Adjust padding for smaller screens */
    }
    .amor-main-container .spanish-column,
    .amor-main-container .english-column {
        min-width: unset; /* Allow columns to stack more readily */
        width: 100%; /* Ensure stacking on very small screens */
    }
    .amor-main-container .leader-phrases button {
        padding: 12px 20px;
        font-size: 16px;
    }
    .amor-main-container .phrase-display {
        font-size: 1.5em;
    }
}