/* ======================= */
/* === 1. GLOBAL/BODY  === */
/* ======================= */
body {
    background: url('/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, sans-serif;
}

/* =========================== */
/* === 2. CONTAINER (public and inner content blocks) === */
/* =========================== */
.container {
    background-color: #ffffff;
    max-width: 800px;
    margin: 0px auto;
    padding: 10px 40px 30px;
    text-align: center;
    border: 5px solid #d2d2d2;
    border-radius: 0px;
    box-sizing: border-box;

}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ======================= */
/* === 3. TYPOGRAPHY   === */
/* ======================= */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 0;
}
h1 { font-size: 32px; color: #333; }
h2 { font-size: 26px; color: #666; }
h3 { font-size: 20px; color: #666; }
p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.3;
    font-family: Verdana, Arial, sans-serif;
    text-align: justify;
}

/* ======================= */
/* === 4. CTA BUTTONS  === */
/* ======================= */
.cta-button {
    padding: 5px 20px;
    font-size: 20px;
    font-weight: bold; 
    background-color: #ff914d;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-family: Montserrat, Arial, sans-serif;
    margin-top: 0px;
    animation: pulseGlow 1.8s infinite;
    box-shadow: 0 0 0 rgba(255, 145, 77, 0.4);
    transition: transform 0.2s ease-in-out;
}
.cta-button:hover {
    transform: scale(1.02);
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.6);}
    70% { box-shadow: 0 0 0 12px rgba(255, 145, 77, 0);}
    100% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0);}
}

/* ======================= */
/* === 5. FORMS & INPUTS === */
/* ======================= */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-size: 18px;
    text-align: center;
    font-family: verdana, Arial, sans-serif;
}

form input[type="submit"] {
    padding: 14px 25px;
    background-color: #ff914d;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    font-family: montserrat, Arial, sans-serif;
}
.privacy { margin-top: 20px; font-size: 14px; color: #777; }

/* ======================= */
/* === 6. MODALS       === */
/* ======================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background: white;
    margin: 40px auto;
    padding: 30px 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 0px;
    text-align: center;
    font-family: verdana, Arial, sans-serif;
}
.close {
    position: absolute; top: 10px; right: 15px;
    font-size: 28px; font-weight: bold; color: #aaa;
    cursor: pointer;
}
.close:hover { color: black; }

/* ======================= */
/* === 7. AD GRIDS     === */
/* ======================= */
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }
.ad-col { flex: 1 1 220px; max-width: 468px; text-align: center; }
.ad-block img, .ad-col img { width: 100%; height: auto; max-width: 468px; display: block; margin: 0 auto 10px; }
.ad-link { display: block; font-size: 14px; color: #0066cc; margin: -10px 0; }
.highlight-box { background-color: #fffbe6; padding: 0px 20px 30px; border: 1px solid #f2cd5c; margin: 30px 0; }
.small-print { font-size: 14px; color: #999; margin-top: 30px; text-align: center; }
.grid-125 { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }
.grid-125 a img { width: 100px; height: 100px; object-fit: contain; display: block; border: 1px solid #ccc; padding: 0px; background: white; }

/* ======================= */
/* === 8. APP SHELL    === */
/* ======================= */
.app-wrapper, .centered-card {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}
.sidebar-navbar {
    width: 220px;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 30px;
    border-radius: 0;
    /* height: 100%;   <-- REMOVE */
    /* min-height: 100%; <-- REMOVE */
}

.sidebar-logo { margin-bottom: 28px; }
.sidebar-logo img {
    width: 145px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 0;
}
.sidebar-links {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-link {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
    font-family: 'verdana', Arial, sans-serif;
    font-size: 16px;
    padding: 5px 0 5px 10px; /* Thinner links! */
    border-left: 5px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s, padding 0.2s;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 0;
}
.sidebar-link:hover,
.sidebar-link.active {
    background: #ff914d;
    color: #fff;
    border-left: 5px solid #000;
    border-radius: 0;
}

/* App content next to sidebar */
.app-content {
    flex: 1;
    min-width: 0;
    padding: 20px 20px 20px 20px; /* Top, Right, Bottom, Left */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: none;
}

/* Subnavbar (Tabs) */
.subnavbar {
    background: #f2f3fa;
    border-bottom: 2px solid #e6e9f0;
    padding: 0;
    margin: 10px 0 20px 0;
    border-radius: 0;
}
.subnavbar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 950px;
    margin: 0 auto;
    padding-left: 8px;
    border-radius: 0;
}
.subnavbar-link {
    color: #333;
    font-size: 16px;
    font-family: 'Verdana', Arial, sans-serif;
    text-decoration: none;
    padding: 5px 20px 5px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    cursor: pointer;
    border-radius: 0;
    font-weight: 500;
    display: block;
}
.subnavbar-link:hover,
.subnavbar-link.active {
    color: #191970;
    background: #e6e9f8;
    border-bottom: 3px solid #ff914d;
    text-decoration: none;
    border-radius: 0;
}







ul,
ol {
    font-family: Verdana, Arial, sans-serif;
    color: #444;
    line-height: 1.3;
    text-align: left;
    margin: 20px 0 20px 20px; /* space from content */
    padding: 0 0 0 18px;
    list-style: none;
    /* Optional: background: none; */
}





.bullets {
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;        /* Enforce base size */
    color: #444;
    line-height: 1.3;
    text-align: left;
    margin: 20px 0 20px 24px;
    padding: 0 0 0 18px;
    list-style: none;
}
.bullets li {
    font-size: 16px;        /* Force list item size */
    margin-bottom: 9px;
    padding-left: 2px;
    position: relative;
}
.bullets li::before {
    content: '•';
    color: #ff914d;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    width: 18px;
    margin-left: -18px;
    margin-right: 6px;
    vertical-align: middle;
    font-family: Verdana, Arial, sans-serif;
}






.light:hover {
	opacity:0.8;
	cursor:pointer;	
	}



img.light:hover {
    border: none;
    opacity:0.8;
    }





/* ======================= */
/* === ADMIN FORMS & BUTTONS (page_manager.php style) === */
/* ======================= */
.pm-input, .pm-select {
    font-size: 18px;
    padding: 9px 10px;
    border-radius: 7px;
    border: 1.7px solid #d6d7e5;
    background: #f9f9fb;
    margin-bottom: 2px;
    transition: border 0.2s;
    outline: none;
}
.pm-input:focus, .pm-select:focus {
    border: 1.7px solid #ff914d;
}
.pm-btn {
    padding: 9px 19px;
    background: #ff914d;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: background 0.15s;
}
.pm-btn:hover { background: #fa7a23; }
.pm-btn-save { background: #38b349; }
.pm-btn-save:hover { background: #219a1c; }
.pm-btn-del { background: #d73333; }
.pm-btn-del:hover { background: #b51b0e; }



















/* ======================= */
/* === 9. RESPONSIVE   === */
/* ======================= */
@media (max-width: 1100px) {
    .app-wrapper { max-width: 99vw; }
    .subnavbar-links { max-width: 95vw; }
}
@media (max-width: 900px) {
    .sidebar-navbar {
        width: 90px;
    }
    .sidebar-link { font-size: 0.92rem; padding-left: 10px; }
    .sidebar-logo img { width: 44px; }
}
@media (max-width: 700px) {
    .app-wrapper { flex-direction: column; max-width: 99vw; min-height: 400px; }
    .sidebar-navbar { flex-direction: row; width: 100vw; height: auto; min-height: 0; padding: 7px 0; }
    .app-content { padding-top: 0; }
    .subnavbar-links { flex-direction: column; padding-left: 0; }
    .subnavbar-link { padding: 13px 15px 12px 15px; }
}






@media (max-width: 700px) {
    .app-wrapper {
        flex-direction: column;
        max-width: 99vw;
        min-height: 400px;
    }
    .sidebar-navbar {
        flex-direction: column;    /* Stack vertically */
        width: 100vw;
        height: auto;
        min-height: 0;
        padding: 7px 0;
        align-items: center;
        justify-content: flex-start;
    }
    .sidebar-logo {
        margin: 0 0 6px 0;        /* Add margin below logo */
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sidebar-logo img {
        width: 60px;              /* Adjust as needed */
        margin: 0 auto 4px auto;
        display: block;
    }
    .sidebar-links {
        flex-direction: column;   /* Stack links vertically below logo */
        display: flex;
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    .sidebar-link {
        font-size: 1rem;
        padding: 10px 0 10px 38px;
        border-left: none;
        border-top: 3px solid transparent;
        text-align: left;
    }
    .sidebar-link.active, .sidebar-link:hover {
        border-top: 3px solid #ff914d;
        background: #191970;
        color: #fff;
        border-radius: 0;
    }
}






.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px,1fr)); gap: 20px; justify-content: center; margin-bottom: 34px; }
.db-grid-btn { background: #fff; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); width: 125px; height: 125px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow 0.2s; overflow: hidden; }
.db-grid-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); border-color: #ff914d; }
.db-grid-img { max-width: 90px; max-height: 90px; margin-bottom: 5px; }
.db-grid-title { font-size: 14px; font-weight: bold; color: #333; text-align: center; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }





.resource-optin-btn {
  display:inline-block;margin-bottom:22px;padding:9px 24px;background:#ff914d;color:#fff;border:none;border-radius:4px;font-weight:bold;font-size:1.13em;cursor:pointer;transition:background .13s;box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.resource-optin-btn:hover {background:#e2660d;}

.resource-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 22px; justify-content: center; margin-bottom: 34px; max-height:350px; overflow-y:auto; padding-right:8px;}
.resource-grid-btn { background: #fff; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); width: 140px; height: 140px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow 0.2s; overflow: hidden; }
.resource-grid-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); border-color: #ff914d; }
.resource-grid-img { max-width: 100px; max-height: 100px; margin-bottom: 7px; }
.resource-grid-title { font-size: 15px; font-weight: bold; color: #333; text-align: center; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-modal-bg { position:fixed;z-index:10000;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.68);display:none;align-items:center;justify-content:center; }
.resource-modal { background:#fff; padding:32px 30px 24px 30px; border-radius:14px; max-width:470px; width:95vw; text-align:center; box-shadow:0 8px 38px rgba(0,0,0,.18); position:relative; }
.resource-close { position:absolute;top:12px;right:16px;background:none;border:none;font-size:2.1em;color:#888;cursor:pointer;line-height:1; }
.resource-save-btn { padding: 10px 32px; background: #ff914d; color: #fff; border: none; border-radius: 4px; font-weight: bold; font-size: 1.11em; display:inline-block; }
.subnavbar { background: #f2f3fa; border-bottom: 2px solid #e6e9f0; margin: 8px 0 22px 0; padding: 0; }
.subnavbar-links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; overflow-x: auto; max-width: 920px; margin: 0 auto; padding-left: 8px; }
.subnavbar-link { font-weight: normal; }






