/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders don't affect the width */
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

h1 {
    margin: 0;
    font-size: 36px;
}

h2 {
    font-size: 24px;
    color: #4CAF50;
    margin-top: 30px;
}

p {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
    word-wrap: break-word; /* Ensures that long words break on smaller screens */
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    max-width: 900px;
    width: 90%; /* Ensures the section scales for smaller devices */
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break the layout */
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 32px;
    }
  
    h2 {
        font-size: 22px;
    }
  
    p {
        font-size: 15px;
    }
  
    section {
        padding: 18px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 30px;
    }
  
    h2 {
        font-size: 20px;
    }
  
    p {
        font-size: 14px;
    }
  
    section {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
  
    h2 {
        font-size: 18px;
    }
  
    p {
        font-size: 13px;
    }
  
    section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
  
    h2 {
        font-size: 16px;
    }
  
    p {
        font-size: 12px;
    }
  
    section {
        padding: 12px;
    }

    footer {
        font-size: 14px;
        padding: 8px;
    }
}
