/* css/master_layout.css */

/* --- 1. GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Prevents side scrolling */
}

/* Base Elements */
img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* The Main Container (Keeps content centered) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* --- 2. UTILITY CLASSES (Used in all sections) --- */
.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* Typography Utils */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Generic Button Base (Theme adds colors) */
.btn-main {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    text-align: center;
}

/* Badges (For Work/Business Status) */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- 3. HEADER LAYOUT --- */
.main-header {
    width: 100%;
    z-index: 1000;
    position: relative;
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Desktop Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Mobile Toggle (Hidden by default) */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* --- 4. FEATURE SPECIFIC LAYOUTS --- */

/* News Tabs (Structure) */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    /* Base border */
    background: transparent;
}

/* Business Search Bar */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Gallery Grid Base */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Footer Base */
footer {
    margin-top: auto;
    padding: 50px 0 20px;
}

/* --- 5. MOBILE RESPONSIVE LOGIC --- */
@media (max-width: 900px) {

    /* Show Hamburger */
    .nav-toggle-label {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* Hide Desktop Menu & Style Mobile Drawer */
    .nav-list {
        display: none;
        /* Hidden */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Logic: Checkbox checked = Show Menu */
    #nav-toggle:checked~nav .nav-list {
        display: flex;
    }
}