/* Base Mobile Styles (Mobile-First) */
body {
/* background-color: #f4f4f9; */
    background-color: #f0f0f0;
    font-family: sans-serif;
    transition: background-color 0.3s ease;
}
p {
  margin-bottom: 1.5rem; /* Adjust this value to increase or decrease spacing */
}

.box {
    padding: 20px;
    text-align: center;
}
.bordercolor {
    background-color: #f0f0f0;
}
.maincolor {
    background-color: #f0f0f0;
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    body {
        background-color: #e0f7fa; /* Light Blue */
   
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    body {
        background-color: #e8f5e9; /* Light Green */
    }
}





/* Reset and Universal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}



/* Navbar Base (Mobile First) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 15px 20px;
    color: white;
    position: relative;
}

.nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    padding: 10px 0;
}

/* JavaScript toggles this class to show the menu */
.nav-links.active {
    display: flex;
}

.nav-links a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
}

/* Hamburger Icon Style */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

/* Main Grid Content Area */
.container {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stacks vertically on mobile */
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card1 {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card2 {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);

}

/* -----------------------------------------
   Desktop and Tablet Layout (Screen > 768px)
   ----------------------------------------- */
@media (min-width: 768px) {
    .menu-toggle {
        display: none; /* Hide hamburger menu icon on desktop */
    }

    .nav-links {
        display: flex; /* Always show links on desktop */
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
    }

    .nav-links a {
        padding: 0 15px;
    }

    .container {
        flex-direction: row; /* Horizontal layout elements side-by-side */
    }

    .card {
        flex: 1; /* Scales equally across the space */
    }
}
