/* Basic Reset & Defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Aptos', 'Segoe UI', 'Calibri', 'Arial', sans-serif; /* Aptos preferred, common fallbacks */
    background-color: #e0f7fa; /* Light Blue */
    color: #333;
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    opacity: 0; /* Start hidden for fade-in */
    animation: fadeInBody 1s ease-in-out forwards;
}

/* Body Fade-in Animation */
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Container */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7); /* Slight white overlay for readability */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(135deg, #81d4fa, #4fc3f7); /* Gradient blue header */
    color: #003366; /* Dark Blue */
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Gabriela', serif;
    font-size: 3rem; /* Larger title */
    font-weight: normal;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #01579b; /* Slightly darker blue for subtitle */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.content-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 5px;
    background-color: #ffffff; /* White background for content sections */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0; /* Hidden for scroll animation */
    transform: translateY(20px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.content-section h2 {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: #004d80; /* Stronger Blue */
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #b3e5fc; /* Light blue underline */
    text-align: left;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444; /* Slightly darker grey for better contrast */
}

/* Blockquote Styling */
blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f0faff; /* Very light blue background */
    border-left: 5px solid #4fc3f7; /* Medium Blue border */
    font-style: italic;
    color: #222; /* Darker text for quote */
    border-radius: 0 5px 5px 0;
}

blockquote p {
    margin-bottom: 10px;
    font-size: 0.95rem; /* Slightly smaller font for quotes */
    line-height: 1.6;
}

blockquote strong {
    font-style: normal; /* Make emphasized text not italic within quote */
     color: #0277bd; /* Darker blue for emphasis */
}


blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9rem;
    color: #555;
    text-align: right;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Links */
a {
    color: #0277bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #01579b;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* Adjust base font size */
    }

    body {
         margin: 0; /* Remove default body margin */
    }

    main {
        margin: 0; /* Use full width */
        padding: 5px; /* Small padding */
        border-radius: 0; /* No radius on mobile */
        width: 100%;
        max-width: 100%; /* Ensure it doesn't exceed screen */
        border: none; /* Remove border if any */
        box-shadow: none;
    }

    header {
        padding: 30px 10px 15px 10px;
    }

    header h1 {
        font-size: 2.5rem; /* Slightly smaller */
    }

    header .subtitle {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 3px; /* Smaller radius */
    }

     .content-section h2 {
        font-size: 1.6rem;
    }

    blockquote {
        margin: 15px 0;
        padding: 10px 15px;
    }
}

/* Accessibility Enhancements */
*:focus {
    outline: 2px solid #01579b;
    outline-offset: 2px;
}