/* styles.css - Cleaned and Organized */

/* ======================================== */
/* Global Styles */
/* ======================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Light grey */
    color: #333;
}

/* ======================================== */
/* Header Styles */
/* ======================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003366; /* Dark blue */
    color: white;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* ======================================== */
/* Dropdown Styling */
/* ======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #d6d6d6; /* Set background to the hover grey */
    list-style: none;
    padding: 0;
    min-width: 200px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.dropdown-menu li {
    padding: 10px;
    border-bottom: 1px solid #bbb; /* Adjusted for contrast */
}

.dropdown-menu li a {
    color: black;
    text-decoration: none;
    display: block;
}

.dropdown-menu li:hover {
    background: #b0b0b0; /* Darker grey on hover */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* ======================================== */
/* Hero Section Styling */
/* ======================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

/* ======================================== */
/* Services Section (Homepage) */
/* ======================================== */
.services-overview {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card img {
    width: 100%;
    border-radius: 5px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
}

.service-card p {
    font-size: 1rem;
    color: #555;
}

/* Services Grid - Dynamically Adjusting Tile Width */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusting tile width dynamically */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Initially show only one row (adjusts based on screen size) */
.services-grid .service-card {
    display: block; /* Ensure all tiles are visible but limited in rows */
}

/* Hide all services after the first row */
.services-grid .service-card:nth-child(n+4) {
    display: none;
}

/* Show all services when 'Show More' is clicked */
.show-all .services-grid .service-card {
    display: block;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller tiles on medium screens */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller tiles for tablets */
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #005bb5;
}
/* ======================================== */
/* Subpage Styles (Applies to All Subpages) */
/* ======================================== */
.page-header {
    background: #f4f4f4;
    text-align: center;
    padding: 30px 20px;
    border-bottom: 2px solid #ddd;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.content {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.content h2 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 10px;
}

.content p, .content ul, .content ol {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #005bb5;
}
/* ======================================== */
/* Footer Styles */
/* ======================================== */
footer {
    text-align: center;
    padding: 10px;
    background: #000;
    color: #fff;
    margin-top: 20px;
}
