/*
Theme Name:  Gulf News
Theme URI:
Author:
Description: WordPress blog theme matched to GulfGoldRate.com style.1.40.6.css
Version:     1.3.2
Text Domain: gulfnews
Tags:        blog, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* Original sets ALL i and span to inline-block */
i, span { display: inline-block; }

body {
    font-family: 'Poppins', sans-serif;
    background: #e3e2da;
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Original p style */
p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

/* Links inherit parent colour; hover goes to #A59A74 (from Brown Color section) */
a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}
a:hover, a:focus { color: #A59A74; }

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

/* ============================================================
   WRAPPER  — perspective enables 3D rotateY on sidebar
============================================================ */
.wrapper {
    display: flex;
    align-items: stretch;
    perspective: 1500px;
    max-width: 1280px;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR  — background: #BFB695 (gold, same as content)
============================================================ */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #BFB695;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    transform-origin: bottom left;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

/* Desktop active = sidebar flies out with 3D flip */
#sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg);
}

/* Sidebar header */
#sidebar .sidebar-header {
    padding: 20px;
    background: #BFB695;
}

#sidebar .sidebar-header h3 {
    margin: 0 auto;
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

#sidebar .sidebar-header h3 a,
#sidebar .sidebar-header h3 a:hover { color: #fff; }

#sidebar .sidebar-header h3 small { color: #fff; }

/* Logo fills full sidebar width */
#sidebar img.sidebar-logo { width: 100%; max-width: 100%; }

#sidebar .site-name-text { font-size: 1.1em; font-weight: bold; color: #fff; }

/* Sidebar search */
#sidebar ul.current { font-weight: bold; }

/* Original hides <strong> inside sidebar header */
#sidebar .sidebar-header strong { display: none; font-size: 1.3em; }

#header_search { margin: 0; }

#header_search .search-form {
    display: block;   /* override general .search-form{display:flex} — sidebar uses inline elements */
    padding: 10px;
    width: 100%;
    font-size: 0.9em;
}

#header_search .search-form input.search {
    padding: 6px;
    width: calc(100% - 43px);
    color: #333;
    display: inline;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid #ccc;
    background: #fff;
    font-family: inherit;
}

#header_search .search-form input.search:focus { color: #666; }

#header_search .search-form button.searchbtn,
#header_search .search-form input.btn.searchbtn {
    width: 40px;
    color: #666;
    display: inline;
    background-color: #fff;
    font-weight: bold;
    border-radius: 0;
    padding: 6px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    cursor: pointer;
    font-family: inherit;
}

/* General search form (search page, 404) */
.search-form { display: flex; width: 100%; }

.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1; min-width: 0;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.search-form button[type="submit"],
.search-form input[type="submit"] {
    width: 40px;
    padding: 6px;
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.search-form button[type="submit"]:hover,
.search-form input[type="submit"]:hover { background: #BFB695; color: #fff; }

/* Sidebar nav lists */
#sidebar ul.components { padding: 10px; list-style: none; margin: 0; }
#sidebar ul.list-unstyled { list-style: none; padding: 0; margin: 0; }

/* All sidebar links — compact padding matching original */
#sidebar ul li a { text-align: left; padding: 2px 7px; font-size: 1.0em; display: block; }
#sidebar ul li a:hover { color: #666256; }
#sidebar ul li a i { margin-right: 5px; }

/* Active/expanded item merges with sidebar bg */
#sidebar ul li.active > a,
a[aria-expanded="true"] { color: #fff; background: #BFB695; }

/* Sub-list */
#sidebar ul li ul { list-style: none; padding: 0; margin: 0; }
#sidebar ul li ul li a { padding: 1px 10px 1px 20px; font-size: 1em; }

/* list-a and list-b on the same line: inline + float */
li a.list-a, li a.list-b { display: inline; }

li a.list-a {
    width: 85%;
    width: calc(100% - 25px);
    max-width: 85%;
    max-width: calc(100% - 25px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* list-b: 25px white box floated right, pulled up */
li a.list-b {
    float: right;
    min-width: 25px;
    width: 25px;
    background: #fff;
    margin-top: -20px;
    position: relative;
}

li a.list-b:hover { color: #fff; background-color: #666256; }

li a.list-c {
    width: 85%;
    width: calc(100% - 25px);
    max-width: 85%;
    max-width: calc(100% - 25px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Collapse arrow — same chevron for both states, never flips */
a[data-toggle="collapse"] { position: relative; }

a[aria-expanded="false"]::before,
a[aria-expanded="true"]::before {
    content: '\e114';
    font-family: 'Glyphicons Halflings';
    display: block;
    position: absolute;
    right: 10px;
    top: 4px;
    font-size: 0.6em;
    font-weight: bold;
}

/* #sidebarCollapse: 40x40 brown box, default shows X, .active shows hamburger */
#sidebarCollapse {
    width: 40px;
    height: 40px;
    background: #666256;
    color: #fff;
    margin-top: 25px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    box-shadow: 0px 1px 5px rgb(100,100,100);
    flex-shrink: 0;
    outline: none;
}

#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #fff;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

/* Default = sidebar open on desktop → X */
#sidebarCollapse span:first-of-type  { transform: rotate(45deg)  translate(2px,  2px);  }
#sidebarCollapse span:nth-of-type(2) { opacity: 0; }
#sidebarCollapse span:last-of-type   { transform: rotate(-45deg) translate(1px, -1px); }

/* .active = sidebar closed → hamburger ≡ */
#sidebarCollapse.active span { transform: none; opacity: 1; margin: 5px auto; }

.navbar-header:hover,
.navbar-header:hover a,
.navbar-header:hover i { color: #333; }

#sidebarCollapse span:hover { background-color: #333; }

/* Sidebar widget area */
.sidebar-widgets { padding: 15px; border-top: 1px solid rgba(255,255,255,0.25); }
.sidebar-widgets .widget { margin-bottom: 22px; }
.sidebar-widgets .widget:last-child { margin-bottom: 0; }

.sidebar-widgets h4.widget-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.sidebar-widgets ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widgets ul li a { display: block; padding: 4px 0; color: #fff; font-size: 12px; }
.sidebar-widgets ul li a:hover { color: #666256; }
.sidebar-widgets p { color: #fff; font-size: 12px; line-height: 1.6; font-weight: 300; }

.sidebar-widgets .tagcloud a {
    display: inline-block; margin: 3px 2px; padding: 3px 8px;
    background: rgba(255,255,255,0.2); color: #fff !important;
    font-size: 12px !important; border-radius: 2px;
}
.sidebar-widgets .tagcloud a:hover { background: #666256; color: #fff !important; }

.sidebar-widgets .widget_search .search-form { display: flex; }
.sidebar-widgets .widget_search input[type="search"] {
    flex: 1; padding: 5px 8px; border: none;
    background: rgba(255,255,255,0.3); color: #fff; font-size: 12px;
}
.sidebar-widgets .widget_search button {
    padding: 5px 8px; background: #fff; border: none;
    cursor: pointer; font-size: 12px; color: #666;
}

/* ============================================================
   NAVBAR — display:none on desktop; #e5e3d3 bg when mobile
============================================================ */
.navbar-default { display: none; }

.navbar {
    background: #e5e3d3;
    border: 1px solid #d1d1d1;
    border-radius: 0;
    padding: 0 10px;
    margin-bottom: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.navbar-header { width: 100%; float: none; margin-right: -15px; margin-left: -15px; }

.navbar-box { margin-top: 15px; margin-bottom: 10px; color: #A59A74; text-align: center; }

.navbar-box img.navbar-logo {
    width: 100%; max-width: 220px; display: inline; position: relative; left: -15px;
}

.navbar-box a.navbar-brand { color: #A59A74; font-size: 1.6em; float: none; font-weight: bold; padding: 0; }
.navbar-box a.navbar-brand:hover { color: #A59A74; }

.navbar-site-name { color: #A59A74; font-size: 1.6em; font-weight: bold; display: block; }
.navbar-tagline   { color: #A59A74; font-size: 0.9em; font-family: 'Poppins', sans-serif; }

/* ============================================================
   CONTENT AREA
   padding:20px — all children sit inside this breathing room
============================================================ */
#content {
    background: #BFB695;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    min-width: calc(100% - 250px);
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

/* ============================================================
   PAGE TITLE  h1.single-title
   Roboto, 1.7em bold, centred, #E5E3D3 bg, border + shadow
============================================================ */
h1.single-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.7em;
    font-weight: bold;
    background: #E5E3D3;
    color: #666256;
    text-align: center;
    padding: 15px;
    margin: 0;
    border: 1px solid #D1D1D1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    line-height: 1.4;
}

h1.single-title a       { color: #666256; }
h1.single-title a:hover { color: #7F7A6C; }

.single-logo     { height: 1.7em; vertical-align: middle; margin-right: 8px; }
img.single-logo  { height: 1.7em; width: auto; }
i.single-logo    { vertical-align: middle; }

/* ============================================================
   BREADCRUMBS — no background, just text on gold
============================================================ */
.bread-crumbs { margin-top: 10px; font-size: 0.9em; color: #888; }
.bread-crumbs a { color: #888; }
.bread-crumbs a:hover { color: #A59A74; }
.bread-crumbs a.current { color: #A59A74; font-weight: bold; }
.bread-crumbs .glyphicon { color: #999; }

/* ============================================================
   POST GRID — mirrors .single-box from original
============================================================ */
.post-grid { margin-top: 15px; flex: 1; }

.post-card {
    background: #EFEEE3;
    margin-bottom: 20px;
    border: 1px solid #D1D1D1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.22); }

.post-card-thumb {
    overflow: hidden;
    height: 190px;
    background: #BFB695;
    flex-shrink: 0;
}

.post-card-thumb a { display: block; height: 100%; }

.post-card-thumb img {
    width: 100%; height: 190px; object-fit: cover;
    display: block; transition: transform 0.3s;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.no-thumb {
    width: 100%; height: 190px;
    background: linear-gradient(145deg, #c9b884 0%, #9a8555 50%, #7a6840 100%);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
}

.no-thumb .glyphicon { font-size: 44px; color: rgba(255,255,255,0.45); }

.post-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }

.post-card-meta { font-size: 11px; color: #999; margin-bottom: 8px; }
.post-card-meta a { color: #666256; }
.post-card-meta a:hover { text-decoration: underline; }
.meta-sep { margin: 0 5px; color: #ccc; }

h2.post-card-title { font-size: 14px; font-weight: bold; margin: 0 0 10px; line-height: 1.45; font-family: 'Roboto', sans-serif; }
h2.post-card-title a { color: #666256; }
h2.post-card-title a:hover { color: #7F7A6C; }

.post-card-excerpt { font-size: 12px; color: #666; line-height: 1.65; margin-bottom: 12px; flex: 1; font-weight: 400; }

.post-card-footer {
    border-top: 1px solid #D1D1D1;
    padding-top: 10px; margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
}

.post-card-cat a {
    display: inline-block; padding: 2px 8px;
    background: #666256; color: #fff; font-size: 11px; border-radius: 2px;
}
.post-card-cat a:hover { background: #7F7A6C; }

.btn-readmore { font-size: 12px; color: #666256; font-weight: bold; }
.btn-readmore:hover { color: #7F7A6C; }

/* ============================================================
   ARCHIVE / CATEGORY / TAG HEADER
============================================================ */
.archive-header {
    background: #E5E3D3;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #D1D1D1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    text-align: center;
}

.archive-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em; color: #666256;
    margin: 0 0 4px; font-weight: bold;
}

.archive-header .archive-description { font-size: 0.9em; color: #888; margin: 0; }
.archive-header .archive-description p { margin: 0; color: #888; font-weight: 300; }

/* ============================================================
   SINGLE POST
============================================================ */
.single-content-area { margin-top: 15px; flex: 1; }

.post-single {
    background: #EFEEE3;
    padding: 20px;
    border: 1px solid #D1D1D1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.post-single h1.post-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em; font-weight: bold; color: #666256;
    margin: 0 0 12px; line-height: 1.35;
}

.post-single .post-meta {
    font-size: 12px; color: #999;
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid #D1D1D1;
}

.post-single .post-meta a { color: #666256; }
.post-single .post-meta a:hover { text-decoration: underline; }
.post-single .post-meta .meta-item { margin-right: 14px; }

.post-featured-image { margin-bottom: 20px; }
.post-featured-image img { width: 100%; height: auto; display: block; }

.post-body { font-size: 14px; line-height: 1.85; color: #444; }
.post-body p { font-size: 14px; font-weight: 400; color: #444; line-height: 1.85; }

.post-body h2, .post-body h3, .post-body h4 {
    color: #666256; font-family: 'Roboto', sans-serif;
    margin-top: 28px; margin-bottom: 12px;
}

.post-body a { color: #666256; }
.post-body a:hover { color: #7F7A6C; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 15px 0; }

.post-body blockquote {
    border-left: 4px solid #BFB695;
    background: #EFEEE3; padding: 14px 18px;
    color: #555; font-style: italic; margin: 20px 0;
}

.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 15px; }
.post-body li { margin-bottom: 5px; }

.post-body table {
    width: 100%; border-collapse: collapse;
    margin: 15px 0; font-size: 13px;
    background: #E8E5D3; border: 1px solid #D8D4C3;
}
.post-body table th, .post-body table td { border: 1px solid #D8D4C3; padding: 5px 8px; text-align: center; }
.post-body table th { background: #DBD2AD; font-weight: bold; color: #666256; }
.post-body table tr:nth-child(even) { background: #EFEEE3; }

.page-links { margin-top: 20px; font-size: 13px; color: #666; }
.page-links a {
    display: inline-block; padding: 3px 8px;
    background: #DBD2AD; color: #666256; margin: 0 2px;
    border-radius: 2px; border: 1px solid #BFB695;
}
.page-links a:hover { background: #BFB695; }

.post-tags { margin-top: 20px; padding-top: 14px; border-top: 1px solid #D1D1D1; font-size: 12px; color: #888; }
.post-tags a {
    display: inline-block; margin: 3px 2px; padding: 3px 8px;
    background: #DBD2AD; color: #666256; border: 1px solid #BFB695; font-size: 12px; border-radius: 2px;
}
.post-tags a:hover { background: #BFB695; color: #fff; }

.post-nav-links {
    background: #EFEEE3; padding: 14px; margin-top: 16px;
    border: 1px solid #D1D1D1; box-shadow: 0 0 5px rgba(0,0,0,0.2);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px; font-size: 13px;
}
.post-nav-links a { color: #666256; font-weight: bold; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-nav-links a:hover { color: #7F7A6C; }

/* ============================================================
   STATIC PAGE
============================================================ */
.page-content-area { margin-top: 15px; flex: 1; }

.page-content-wrap {
    background: #EFEEE3; padding: 20px;
    border: 1px solid #D1D1D1; box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.page-content-wrap h1.page-title {
    font-family: 'Roboto', sans-serif; font-size: 1.6em;
    font-weight: bold; color: #666256;
    margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #D1D1D1;
}

.page-content-wrap .page-body { font-size: 14px; line-height: 1.85; color: #444; }
.page-content-wrap .page-body p { font-size: 14px; font-weight: 400; color: #444; line-height: 1.85; }
.page-content-wrap .page-body a { color: #666256; }
.page-content-wrap .page-body a:hover { color: #7F7A6C; }

/* ============================================================
   COMMENTS
============================================================ */
#comments.comments-area {
    background: #EFEEE3; padding: 20px; margin-top: 16px;
    border: 1px solid #D1D1D1; box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

h3.comments-title {
    font-family: 'Roboto', sans-serif; font-size: 1.3em; color: #666256;
    margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid #D1D1D1;
}

h3.comment-reply-title {
    font-family: 'Roboto', sans-serif; font-size: 1.1em; color: #666256;
    margin: 20px 0 14px;
}

ol.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid #D8D4C3; }
.comment-list .comment:last-child { border-bottom: none; }
.comment-list .children { list-style: none; padding-left: 25px; margin: 10px 0 0; border-left: 2px solid #D8D4C3; }

.comment-meta { margin-bottom: 6px; font-size: 12px; color: #999; }
.comment-author .fn { font-weight: bold; color: #666256; font-size: 13px; font-style: normal; }
.comment-content { font-size: 13px; color: #555; line-height: 1.7; clear: both; }
.comment-content p { font-size: 13px; font-weight: 400; color: #555; line-height: 1.7; margin: 0 0 8px; }

.reply { margin-top: 6px; }
.comment-reply-link {
    font-size: 11px; color: #666256; border: 1px solid #BFB695; padding: 2px 8px; border-radius: 2px;
}
.comment-reply-link:hover { background: #BFB695; color: #fff; }
.comment-awaiting-moderation { font-size: 11px; color: #c0963c; font-style: italic; }

.comment-form .comment-notes,
.comment-form .logged-in-as { font-size: 12px; color: #888; margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }

.comment-form label { display: block; font-size: 12px; color: #666256; font-weight: bold; margin-bottom: 5px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: 6px 10px; border: 1px solid #D1D1D1;
    background: #fff; font-size: 13px; color: #444; font-family: inherit; outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #BFB695; }
.comment-form textarea { height: 120px; resize: vertical; }

.comment-form .submit,
.comment-form input[type="submit"] {
    background: #666256; color: #fff; border: none;
    padding: 8px 22px; font-size: 13px; cursor: pointer;
    font-family: inherit; font-weight: bold; border-radius: 3px;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { background: #7F7A6C; }

p.no-comments { font-size: 13px; color: #888; font-style: italic; }

/* ============================================================
   PAGINATION  — WP-PageNavi + fallback
============================================================ */
.pagination-wrap { margin: 15px 0 5px; text-align: center; }

.wp-pagenavi { text-align: center; }

.wp-pagenavi a, .wp-pagenavi span {
    display: inline-block; padding: 4px 10px; margin: 0 2px;
    border: 1px solid #BFB695; color: #666256; font-size: 12px; background: #EFEEE3;
}
.wp-pagenavi span.current  { background: #666256; color: #fff; border-color: #666256; }
.wp-pagenavi a:hover        { background: #BFB695; color: #fff; border-color: #BFB695; }
.wp-pagenavi span.pages     { background: transparent; border-color: transparent; color: #888; }

.posts-navigation .nav-links { display: flex; justify-content: space-between; }
.posts-navigation .nav-links a {
    display: inline-block; padding: 5px 12px;
    background: #EFEEE3; color: #666256; border: 1px solid #BFB695; font-size: 12px;
}
.posts-navigation .nav-links a:hover { background: #BFB695; color: #fff; }

/* ============================================================
   NO RESULTS
============================================================ */
/* search-header: repeat-search form shown on search results page */
.search-header { margin-top: 10px; margin-bottom: 15px; }

.no-results-area { text-align: center; padding: 40px 0; }
.no-results-area .glyphicon { font-size: 48px; color: #BFB695; display: block; margin-bottom: 15px; }
.no-results-area h3 { font-family: 'Roboto', sans-serif; color: #666256; margin-bottom: 8px; }
.no-results-area p { font-size: 13px; }

/* ============================================================
   404
============================================================ */
.error-404-area { padding: 40px 0; text-align: center; flex: 1; }
.error-404-area .glyphicon { font-size: 60px; color: #BFB695; display: block; margin-bottom: 20px; }
.error-404-area h2 { font-family: 'Roboto', sans-serif; font-size: 1.8em; color: #666256; margin-bottom: 10px; }

.error-404-area .btn-home {
    display: inline-block; margin-top: 15px; padding: 8px 20px;
    background: #666256; color: #fff; font-size: 14px;
    border-radius: 3px; border: 1px solid #BFB695;
}
.error-404-area .btn-home:hover { background: #7F7A6C; color: #fff; }

/* ============================================================
   FOOTER — no background; sits directly on gold #content
============================================================ */
.footer { font-size: 0.9em; padding: 14px 0 0; border-top: 1px solid #D1D1D1; margin-top: auto; }

.footer .footer-individual { margin-bottom: 6px; }
.footer .footer-individual a { color: #666256; }
.footer .footer-individual a:hover { text-decoration: underline; }

.footer .footer-lang { color: #666256; padding: 5px 0; font-size: 12px; }
.footer .footer-lang a { color: #666256; }
.footer .footer-lang a:hover { text-decoration: underline; }

.footer .footer-all { color: #999; }
.footer .footer-all a { color: #999; }
.footer .footer-all a:hover { color: #666256; }

.footer .footer-copy { font-size: 11px; color: #888; margin-top: 5px; }

/* ============================================================
   AD UNITS  — matches original style.1.40.6.css
============================================================ */
.ads {
    padding: 0;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    border: 0;
    max-width: 100%;
    background: transparent;
    overflow: hidden;
    display: block;
}

.ads.mt10  { margin-top: 10px; }
.ads.mb10  { margin-bottom: 10px; }
.ads.nopad { padding: 0; }

/* Sidebar ad units sit on the gold sidebar background */
.sidebar-ad {
    padding: 8px 10px;
    text-align: center;
}

.sidebar-ad .ads { overflow: hidden; }

/* ============================================================
   UTILITIES  — clearline uses padding-top (original), not height
============================================================ */
.clearfix        { clear: both; width: 100%; }
.clearline       { clear: both; width: 100%; padding-top: 15px; }
.clearline-mid   { clear: both; width: 100%; padding-top: 10px; }
.clearline-small { clear: both; width: 100%; padding-top: 5px;  }
.nowrap      { white-space: nowrap; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.min-height-set { min-height: 70%; }

.btn-standard { background-color: #DBD2AD; border-color: #BFB695; color: #666256; }
.btn-standard:active,
.btn-standard:hover,
.btn-standard:focus { background-color: #BFB695; }

.row.row-eq-height { margin-left: 0; margin-right: 0; }

/* ============================================================
   MOBILE OVERLAY  — not in original, added for UX
============================================================ */
.sidebar-overlay {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1045; cursor: pointer;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   RESPONSIVE
============================================================ */

/* DESKTOP ≥769px: flex rows, sidebar always open */
@media (min-width: 769px) {
    .row-eq-height {
        display: -webkit-box; display: -webkit-flex;
        display: -ms-flexbox; display: flex; flex-wrap: wrap;
    }
    .row-eq-height > [class*='col-'] { display: flex; flex-direction: column; }

    /* Desktop active: slide + 3D flip */
    #sidebar.active { margin-left: -250px; transform: rotateY(100deg); }
}

/* TABLET 769–992px */
@media (min-width: 769px) and (max-width: 992px) {
    #sidebar { min-width: 220px; max-width: 220px; }
    #sidebar.active { margin-left: -220px; }
    #content { min-width: calc(100% - 220px); width: calc(100% - 220px); }
}

/* MOBILE ≤768px */
@media (max-width: 768px) {

    /* Show navbar */
    .navbar-default { display: inherit; padding: 0 10px; margin-bottom: 10px; }
    .navbar-header,
    .container-fluid > .navbar-header { float: none; margin-right: -15px; margin-left: -15px; }

    /* Sidebar: fixed, 3D page-flip from left pivot */
    #sidebar {
        position: fixed; top: 0; left: 0; bottom: 0;
        height: 100%; min-width: 250px; max-width: 250px; z-index: 1050;
        box-shadow: 4px 0 18px rgba(0,0,0,0.35);
        transform: perspective(1500px) rotateY(-90deg);
        transform-origin: 0% 50%;
        transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
        margin-left: 0;
    }

    #sidebar.active { transform: perspective(1500px) rotateY(0deg); margin-left: 0; }

    /* Content full width */
    #content { min-width: 100%; width: 100%; padding: 10px; }

    /* Hamburger default on mobile = ≡ */
    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type { transform: none; opacity: 1; margin: 5px auto; }

    /* .active on mobile = X */
    #sidebarCollapse.active span              { margin: 0 auto; }
    #sidebarCollapse.active span:first-of-type  { transform: rotate(45deg)  translate(2px, 2px);  }
    #sidebarCollapse.active span:nth-of-type(2) { opacity: 0; }
    #sidebarCollapse.active span:last-of-type   { transform: rotate(-45deg) translate(1px, -1px); }

    h1.single-title { font-size: 1.4em; }
    .post-single    { padding: 12px; }
    #comments.comments-area { padding: 12px; }
    .page-content-wrap { padding: 12px; }
    .post-nav-links a { max-width: 48%; }
}

@media (max-width: 480px) {
    .meta-sep { display: none; }
    .post-single h1.post-title { font-size: 1.3em; }
}
