@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;700&display=swap');

:root {
    --primary-color: #005A9C;
    --secondary-color: #00A3E0;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --gray-color: #7f8c8d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 90, 156, 0.85), rgba(0, 90, 156, 0.85)), url('https://images.unsplash.com/photo-1614064548237-0963d38510a5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 5rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 750px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #00bfff;
    transform: translateY(-3px);
}

/* --- General Section Styling --- */
section {
    padding: 4rem 0;
    text-align: center;
}

section:nth-of-type(odd) {
    background-color: var(--light-color);
}

section h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--gray-color);
}

/* --- Image Container --- */
.image-container {
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- What is ISO Section --- */
.cia-triad {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cia-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cia-item h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* --- Importance Section --- */
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.importance-item {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.importance-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.importance-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Our Services Section --- */
#our-services {
    background-color: var(--white-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.service-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- Why ACIS Section --- */
#why-acis {
    background-color: var(--light-color);
}

.why-acis-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: auto;
    text-align: left;
    margin-top: 2.5rem;
}

.why-acis-item {
    display: flex;
    align-items: center;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.why-acis-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.why-acis-text strong {
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem 0;
    text-align: center;
}

footer h2 {
    color: var(--white-color);
}

.contact-info {
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #4a637a;
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}