/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and text styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

h1, h2, h3, h4 {
    font-weight: bold;
}

/* Header styling */
header {
    background: linear-gradient(to right, #ffffff, #004080);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 100px;
    height: 100px;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: Calibri, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.selected {
    background-color: white;
    color: #004080;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Banner Section */
.banner {
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.banner h1 {
    font-size: 3em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.banner p {
    font-size: 1.8em;
    margin-top: 20px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

/* Business Fields Section */
.business-fields {
    background-color: white;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.business-fields .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.business-fields h2 {
    text-align: center;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.box {
    background-color: #f0f4f8;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.box h3 {
    margin-top: 15px;
    color: #004080;
    cursor: pointer;
    text-align: left;
    transition: font-weight 0.2s;
}

.box h3:hover {
    font-weight: 900;
}

.box p {
    color: #666;
    margin-top: 10px;
    text-align: justify;
    line-height: 1.6;
}

/* Alphabetical List */
.alpha-list {
    margin: 30px 0;
    text-align: center;
    font-size: 14px;
}

.alpha-list .letter {
    font-size: 18px;
    font-weight: bold;
    color: #004080;
    margin-right: 5px;
}

.alpha-list a {
    color: #666;
    text-decoration: none;
    margin-right: 10px;
}

.alpha-list a:hover {
    color: #004080;
    text-decoration: underline;
}

.alpha-list .group {
    display: inline-block;
    margin-right: 1cm;
}

/* Pagination */
.pagination-controls {
    text-align: center;
    margin-bottom: 20px;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 60px 20px 30px;
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-column ul {
    list-style-type: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
    text-decoration: underline;
}

.social-links li {
    display: inline-block;
    margin-right: 15px;
}

.footer-column form {
    display: flex;
    margin-top: 10px;
}

.footer-column input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.footer-column button {
    padding: 8px 15px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #004080;
    font-size: 0.8rem;
    color: #aaa;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #004080;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: none;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #0059b3;
    transform: translateY(-5px);
}

body.scrolled .back-to-top {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .banner h1 { font-size: 2.5em; }
    .banner p { font-size: 1.5em; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    header nav ul { flex-direction: column; gap: 10px; }
    .grid { grid-template-columns: 1fr; }
    .alpha-list .group { display: block; margin-bottom: 15px; margin-right: 0; }
}