/* General Body Styles */
body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient to bottom, #E0F2F7, #B3E0F2; /* Light blue gradient */
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to prevent pushing content too low */
    min-height: 100vh; /* Ensure it takes full viewport height */
    padding: 20px 0; /* Add some padding on top/bottom */
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.container {
    width: 100%;
    max-width: 850px; /* Increased max-width for better content display */
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Clear floats */
}

/* Header Styles */
.header {
    background-color: #2196F3; /* A vibrant blue */
    color: #FFFFFF;
    padding: 25px 20px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
}

/* Main Content Styles */
.main-content {
    padding: 20px;
}

.section-title {
    color: #1976D2; /* Darker blue for titles */
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Link Section Styles */
.section-links {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between each link item */
}

.link-item {
    background-color: #E3F2FD; /* Lighter blue for link backgrounds */
    border: 1px solid #BBDEFB;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on small screens */
    align-items: center;
    gap: 10px; /* Space between buttons */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%; /* Make buttons take full width of link-item */
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

.btn i {
    margin-right: 10px;
}

.btn-primary {
    background-color: #42A5F5; /* Medium blue */
}

.btn-primary:hover {
    background-color: #2196F3; /* Darker blue on hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #90CAF9; /* Lighter blue for secondary actions */
    color: #333;
}

.btn-secondary:hover {
    background-color: #64B5F6; /* Medium blue on hover */
    transform: translateY(-2px);
}

.btn-small {
    font-size: 0.9em;
    padding: 8px 15px;
    width: auto; /* Allow smaller buttons to size content */
    align-self: flex-end; /* Align to the right within the link-item */
}

/* Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0; /* Hidden by default */
}

/* Sequential animation delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
/* Add more delays if you have more link-items */

/* Footer Styles */
.footer {
    background-color: #BBDEFB; /* Light blue for footer */
    color: #333;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9em;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .link-item {
        flex-direction: row; /* Buttons side-by-side on larger screens */
        justify-content: space-between;
    }

    .btn-primary {
        flex-grow: 1; /* Allow primary button to take more space */
    }

    .btn-small {
        width: auto; /* Reset width for larger screens */
        margin-left: 15px; /* Space between primary and secondary button */
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.4em;
    }

    .btn {
        font-size: 1em;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px; /* Add some margin on very small screens */
    }
    .header h1 {
        font-size: 1.3em;
        flex-direction: column; /* Stack icon and text on very small screens */
    }
    .header h1 i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .btn i {
        margin-right: 5px;
    }
}