/**
 * Camp Springs Events - user.css
 * Brand and visual styles mirrored from the original Joomla 3 template.
 * Bootstrap 5 grid/utility classes handle layout; this file covers only
 * colours, typography, and Camp Springs-specific component styles.
 */

/* ============================================================
   BRAND COLOURS (CSS custom properties for easy override)
   ============================================================ */
:root {
    --cs-brand-blue:       #03057a;   /* header border, home-sections bg */
    --cs-brand-orange:     rgb(192, 126, 62);  /* links, h3, event title bar */
    --cs-brand-orange-alt: #c07e3e;
    --cs-text:             #333;
    --cs-bg:               #fff;
    --cs-heading-blue:     rgb(3, 16, 114);    /* h2 colour */
}

/* ============================================================
   BASE / RESET CARRY-OVERS
   ============================================================ */
body {
    font-family: "Verdana", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 18px;
    color: var(--cs-text);
    background-color: var(--cs-bg);
}

a {
    color: var(--cs-brand-orange);
    text-decoration: none;
}
a:hover,
a:focus {
    color: var(--cs-brand-orange);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

p { margin: 0 0 9px; }

code, pre {
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 11px;
}
code {
    padding: 2px 4px;
    color: #d14;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 3px;
    white-space: nowrap;
}
pre {
    display: block;
    padding: 8.5px;
    margin: 0 0 9px;
    font-size: 12px;
    line-height: 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
}
pre code {
    padding: 0;
    color: inherit;
    background-color: transparent;
    border: 0;
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 12px 0;
    font-family: "Patua One", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
}
h1 { font-size: 28px; line-height: 30px; color:#120f75;}
h2 { font-size: 26px; line-height: 28px; color: var(--cs-heading-blue); }
h3 { font-size: 24px; line-height: 26px; color: var(--cs-brand-orange); }
h4 { font-size: 14px; line-height: 16px; }
h5 { font-size: 13px; line-height: 15px; }
h6 { font-size: 12px; line-height: 14px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.cs-header {
    background: #fff;
    border-bottom: solid 4px var(--cs-brand-blue);
}

.cs-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 20px;
}

.cs-logo-link {
    display: inline-block;
}

.cs-logo,
.cs-header-inner .custom img {
    max-width: 185px;
    height: auto;
}

.site-title {
    font-size: 40px;
    line-height: 48px;
    font-weight: bold;
    color: var(--cs-text);
}

/* Navigation */
.cs-navigation {
    /* inherits from template.css; colour overrides here */
}

.cs-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.cs-navigation li {
    position: relative;
}

.cs-navigation a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    line-height: 18px;
    color: #555;
    text-decoration: none;
}

.cs-navigation a:hover,
.cs-navigation a:focus {
    background-color: transparent;
    color: #333;
    text-decoration: none;
}

.cs-navigation .active > a {
    color: #555;
    background-color: #e6e6e6;
}

/* Dropdown / nav-child */
.cs-navigation .nav-child {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.cs-navigation li:hover > .nav-child,
.cs-navigation li > a:focus + .nav-child {
    display: block;
}

.cs-navigation .nav-child a {
    padding: 3px 20px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.cs-navigation .nav-child a:hover,
.cs-navigation .nav-child a:focus {
    color: #fff;
    background-color: #0081c2;
    background-image: linear-gradient(to bottom, #08c, #0077b3);
    text-decoration: none;
}

/* ============================================================
   SLIDESHOW
   ============================================================ */
.cs-slideshow {
    width: 100%;
}
.cs-slideshow img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   HOME SECTIONS (Events + Facebook row)
   ============================================================ */
.cs-home-sections {
    padding: 10px;
    background-color: var(--cs-brand-blue);
    border-bottom: 2px solid #000;
    border-top: 2px solid #fff;
}

.cs-home-sections .container,
.cs-home-sections .container-fluid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 5px;
}

.cs-home-events {
    padding: 1px 10px 10px 10px;
    border: solid 3px #F6F7F8;
    background: #fff;
}

.cs-home-events h3 {
    background: var(--cs-brand-orange);
    padding: 5px;
    color: #fff;
    border: solid 3px #000;
    font-weight: normal;
    text-align: center;
    font-size: 25px;
}

.cs-home-facebook {
    /* Facebook embed sits here — no special background needed */
}

/* ============================================================
   BODY / MAIN CONTENT AREA
   ============================================================ */
.cs-body {
    background-color: #fff;
}

.cs-body .container,
.cs-body .container-fluid {
    background-color: #fff;
    padding: 20px;
    max-width: 1200px;
}

/* ============================================================
   CONTAINER WIDTHS
   ============================================================ */
.container {
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* ============================================================
   CONTENT TYPOGRAPHY DETAILS
   ============================================================ */
.item-page ul li {
    padding: 3px;
}

.page-header {
    padding-bottom: 8px;
    margin: 2px 0 10px 0;
    border-bottom: 1px solid #eee;
}

.module-header {
    padding-bottom: 17px;
    margin: 20px 0 18px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    padding: 8px 15px;
    margin: 10px 0;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* ============================================================
   EVENTS BOOKING BUTTON BAR
   ============================================================ */
.eb-taskbar .btn {
    margin: 0;
    list-style: none;
    background: #c20000;
    color: #fff;
    font-size: 18px;
    padding: 10px;
    text-shadow: 1px 1px 1px #000;
    border: solid 1px #333;
}

.btn.eb-btn-facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

/* ============================================================
   SIDEBAR (position-8)
   ============================================================ */
.cs-sidebar {
    margin-bottom: 24px;
}

#aside .nav .nav-child {
    border-left: 2px solid #ddd;
    padding-left: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cs-footer {
    border-top: 1px solid #eee;
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
}

.cs-footer a {
    color: var(--cs-brand-orange);
}

.cs-footer hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* ============================================================
   WELLS
   ============================================================ */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
}

.well .page-header {
    margin: 0 0 5px 0;
}

/* ============================================================
   TABLES
   ============================================================ */
table {
    max-width: 100%;
    background-color: transparent;
    border-collapse: collapse;
}

.table {
    width: 100%;
    margin-bottom: 18px;
}

.table th,
.table td {
    padding: 8px;
    line-height: 18px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th {
    background-color: #f9f9f9;
}

.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th {
    background-color: #f5f5f5;
}

/* Events Booking responsive table */
@media screen and (max-width: 600px) {
    .eb-description-details .ebtable { border: 0; }
    .eb-description-details table thead { display: none; }
    .eb-description-details table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }
    .eb-description-details table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
    }
    .eb-description-details table td:last-child { border-bottom: 0; }
    .eb-description-details table td:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
    }
    .eb-description-details tr th { display: none; }
}

/* ============================================================
   ALERTS (Joomla system messages)
   ============================================================ */
.alert {
    padding: 8px 35px 8px 14px;
    margin-bottom: 18px;
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    border-radius: 4px;
    color: #c09853;
}
.alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #468847; }
.alert-danger,
.alert-error   { background-color: #f2dede; border-color: #eed3d7; color: #b94a48; }
.alert-info    { background-color: #d9edf7; border-color: #bce8f1; color: #3a87ad; }

/* ============================================================
   IMAGE HELPERS
   ============================================================ */
.img-rounded { border-radius: 6px; }
.img-circle  { border-radius: 500px; }
.thumbnail   {
    display: block;
    padding: 4px;
    line-height: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.055);
    transition: all .2s ease-in-out;
    margin-bottom: 9px;
}
.thumbnail.pull-left  { margin: 0 10px 10px 0; }
.thumbnail.pull-right { margin: 0 0 10px 10px; }

/* Figure captions */
figure { display: table; }
figcaption { display: table-caption; caption-side: bottom; }
figure.pull-center, img.pull-center { margin: 0 auto; }

/* ============================================================
   SEARCH HIGHLIGHT
   ============================================================ */
.search span.highlight {
    background-color: #FFFFCC;
    font-weight: bold;
    padding: 1px 4px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin: 18px 0; }
.pagination ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    list-style: none;
}
.pagination ul > li { display: inline; }
.pagination ul > li > a,
.pagination ul > li > span {
    float: left;
    padding: 4px 12px;
    line-height: 18px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left-width: 0;
}
.pagination ul > li > a:hover,
.pagination ul > .active > a,
.pagination ul > .active > span { background-color: #f5f5f5; }
.pagination ul > .active > a,
.pagination ul > .active > span { color: #999; cursor: default; }
.pagination ul > li:first-child > a,
.pagination ul > li:first-child > span {
    border-left-width: 1px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.pagination ul > li:last-child > a,
.pagination ul > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.nowrap  { white-space: nowrap; }
.small   { font-size: 11px; }
.muted   { color: #999; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-end    { text-align: right; }

hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* ============================================================
   MOBILE / RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .cs-header {
        background: var(--cs-brand-blue);
    }

    .cs-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-title {
        color: #fff;
    }

    .cs-navigation a {
        color: #ddd;
        border: 1px solid #555;
        border-bottom: 0;
        margin: 0;
        border-radius: 0;
    }

    .cs-navigation a:hover {
        background-color: #555;
        color: #fff;
    }

    .cs-navigation ul {
        flex-direction: column;
    }

    .cs-navigation .nav-child {
        position: static;
        border: none;
        box-shadow: none;
        border-radius: 0;
        display: block;
        background-color: transparent;
    }

    .cs-navigation .nav-child a {
        padding-left: 30px;
        color: #bbb;
    }

    .header-search {
        width: 100%;
    }

    .header-search .search-query {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .cs-body .container,
    .cs-body .container-fluid {
        padding: 10px;
    }
}
