/* 1. Global Reset for Box Model */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.space-between {
    justify-content: space-between;
}

.gap-10 {
    gap:10px;
}

/* 2. Variables */
:root {
    --primary: #004a99;
    --primary-dark: #003366;
    --text-main: #333333;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

/* 3. Base Styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    min-height:100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: #000;
    color:#FFF;
    text-align: center;
    height:2rem;
    line-height:2rem;
}

.content-wrapper {
    min-height:calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

/* 4. Common Elements */
h1 { 
    font-size: 2.25rem; 
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Forms are where border-box shines most */
input[type="text"], 
input[type="email"],
input[type="password"],
textarea {
    width: 100%;       /* Exactly 100% of parent */
    padding: 12px;     /* Padding stays INSIDE the 100% */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

button {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: var(--primary-dark);
}

/* Individual Content Block Style */
.content-block {
    background-color: #ffffff;
    
    /* Rounded corners - 8px to 12px is the 'sweet spot' for corporate design */
    border-radius: 10px;
    
    /* Crisp border to define the edge before the shadow starts */
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Multi-layered drop shadow for a high-end, soft feel */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Smooth transition for hover effects */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover state to make the interface feel responsive */
.content-block:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.08), 
        0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* --- Mobile Support & Responsiveness --- */

/* 1. Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Prevents text from touching screen edges */
}

/* 2. Simple Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
}

/* 3. Media Query for Tablets (max 992px) */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Drop to 2 columns */
    }
}

/* 4. Media Query for Mobile (max 600px) */
@media (max-width: 600px) {
    h1 {
        font-size: 1.75rem; /* Scale down large headings */
    }

    .grid {
        grid-template-columns: 1fr; /* Full width stacks on mobile */
    }

    .content-block {
        padding: 16px; /* Tighten internal padding */
    }

    /* Make buttons full-width on mobile for easier tapping */
    button, .btn {
        width: 100%;
        text-align: center;
    }
}