/* ============================================================
   NEWS PAGE CSS – Ancient Technology Museum
   File: assets/news-page.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #1a1a1a;
    padding: 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    background: #e6922a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li a {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    padding: 8px 12px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #e6922a;
}

.nav-menu li a.active {
    font-weight: 800;
    border-bottom: 2px solid #e6922a;
    padding-bottom: 6px;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #444;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   PAGE HEADER BANNER
   ============================================================ */
.page-header-banner {
    position: relative;
    background-image: url('assets/banner.jpg');
    background-color: #c0c0c0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(230, 130, 20, 0.88) 0%,
        rgba(160, 45, 20, 0.82) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 4vw, 40px);
    color: #fff;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* ============================================================
   BREADCRUMB BAR
   ============================================================ */
.breadcrumb-bar {
    background: #1a1a1a;
    padding: 11px 20px;
    text-align: center;
}

.breadcrumb-bar span {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.4px;
}

/* ============================================================
   NEWS SECTION (news.php grid page)
   ============================================================ */
.news-section {
    padding: 50px 0 70px;
    background: #fff;
}

.news-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ============================================================
   NEWS CARD
   ============================================================ */
.news-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.news-card-img-wrap {
    overflow: hidden;
    height: 280px;
    position: relative;
}

.img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.06);
}

.img-zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-zoom-icon i {
    color: #fff;
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.img-link:hover .img-zoom-icon {
    opacity: 1;
}

.img-link:hover .img-zoom-icon i {
    transform: scale(1);
}

.news-card-body {
    padding: 22px 24px 24px;
}

.news-card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.news-card-title a {
    color: #222;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: #e6922a;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-size: 11px;
    color: #aaa;
}

.meta-item a {
    color: #888;
    transition: color 0.2s;
}

.meta-item a:hover {
    color: #e6922a;
}

.meta-dot {
    color: #ccc;
    font-size: 12px;
}

.no-comments {
    font-style: italic;
    color: #aaa;
}

/* ============================================================
   NO NEWS MESSAGE
   ============================================================ */
.no-news-msg {
    text-align: center;
    padding: 80px 20px;
    color: #bbb;
}

.no-news-msg i {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
    color: #e0d5c8;
}

.no-news-msg p {
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a1a1a;
    padding: 20px 0;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #ccc;
    font-size: 13px;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-info i {
    color: #e6922a;
}

.footer-copy {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

/* ============================================================
   EMPTY IMAGE PLACEHOLDER
   ============================================================ */
.news-card-img-wrap.no-img {
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.news-card-img-wrap.no-img::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 48px;
    color: #ccc;
}

.news-card-img-wrap.no-img::after {
    content: 'Image not uploaded yet';
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #bbb;
    letter-spacing: 0.5px;
}

.page-header-banner.no-banner-img .page-header-overlay {
    background: linear-gradient(to right,
        rgba(210, 110, 10, 0.95) 0%,
        rgba(140, 35, 10, 0.95) 100%);
}

/* ============================================================
   SINGLE POST PAGE STYLES
   ============================================================ */
.single-section {
    padding: 50px 0 70px;
    background: #fff;
}

.single-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.single-post {
    background: #fff;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post-meta .meta-item a:hover { color: #e6922a; }
.single-post-meta .meta-dot { color: #ccc; }

/* ============================================================
   POST IMAGES STACK
   ============================================================ */
.post-images-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.post-images-stack .post-img-item {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #f5f5f5;
}

/* Landscape – wide & short */
.post-images-stack .post-img-item.type-landscape img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Portrait – taller */
.post-images-stack .post-img-item.type-portrait img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.post-images-stack .post-img-item:hover img {
    transform: scale(1.02);
}

/* Missing image placeholder */
.post-images-stack .post-img-item.img-missing {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #ccc;
}

.post-images-stack .post-img-item.img-missing::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 42px;
    color: #e0e0e0;
}

/* ---- Post content text ---- */
.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

/* ---- Share Row ---- */
.post-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
    font-size: 13px;
    color: #888;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.82; }
.share-btn.fb  { background: #3b5998; }
.share-btn.tw  { background: #000; }
.share-btn.pin { background: #bd081c; }
.share-btn.gp  { background: #dd4b39; }
.share-btn.li  { background: #0077b5; }
.share-btn.vm  { background: #1ab7ea; }
.share-btn.rd  { background: #ff4500; }

/* ============================================================
   COMMENT FORM
   ============================================================ */
.post-comment-section {
    margin-top: 10px;
}

.comment-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.comment-note {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cf-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cf-group input,
.cf-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.cf-group input:focus,
.cf-group textarea:focus {
    border-color: #e6922a;
}

.cf-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;
    text-transform: uppercase;
    cursor: pointer;
}

.cf-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #e6922a;
}

.cf-submit {
    align-self: flex-start;
    background: #fff;
    border: 2px solid #ccc;
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.cf-submit:hover {
    border-color: #e6922a;
    color: #e6922a;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.single-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    border: 1px solid #eee;
    background: #fff;
}

.sidebar-search-row {
    display: flex;
}

.sidebar-search-input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.sidebar-search-btn {
    background: #e6922a;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
}

.sidebar-widget-title {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #222;
    padding: 14px 18px 12px;
    border-bottom: 2px solid #e6922a;
    margin: 0;
}

.sidebar-post-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-post-list li {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-post-list li:last-child {
    border-bottom: none;
}

.sidebar-post-list li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    transition: color 0.2s, background 0.2s;
}

.sidebar-post-list li a:hover {
    color: #e6922a;
    background: #fdf6ec;
}

.sidebar-post-list li.active-post a {
    color: #e6922a;
    font-weight: 600;
    border-left: 3px solid #e6922a;
    padding-left: 15px;
}

.sidebar-no-content {
    padding: 14px 18px;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE – TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
    .top-bar-left {
        font-size: 11px;
    }

    .page-header-banner {
        height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-card-img-wrap {
        height: 240px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-info {
        flex-direction: column;
        gap: 8px;
    }

    .footer-copy {
        align-self: center;
    }

    .single-wrapper {
        grid-template-columns: 1fr 260px;
        gap: 28px;
    }
}

/* ============================================================
   RESPONSIVE – MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        display: none;
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 13px 24px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu li a.active {
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid #e6922a;
        padding-left: 21px;
        color: #e6922a;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .top-bar-left {
        padding: 8px 16px;
        font-size: 11px;
        justify-content: center;
        text-align: center;
    }

    .top-bar-right {
        clip-path: none;
        padding: 8px 16px;
        justify-content: center;
        font-size: 12px;
    }

    .page-header-title {
        font-size: 20px;
    }

    .news-section {
        padding: 30px 0 50px;
    }

    .news-card-img-wrap {
        height: 210px;
    }

    .news-card-body {
        padding: 16px 18px 18px;
    }

    .news-card-meta {
        gap: 4px;
    }

    .single-wrapper {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        position: static;
    }

    .post-images-stack .post-img-item.type-landscape img {
        height: 240px;
    }

    .post-images-stack .post-img-item.type-portrait img {
        height: 420px;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE – SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .nav-logo img {
        height: 40px;
    }

    .news-card-img-wrap {
        height: 180px;
    }

    .news-card-title {
        font-size: 14px;
    }

    .page-header-banner {
        height: 160px;
    }

    .footer-info {
        font-size: 12px;
    }

    .post-images-stack .post-img-item.type-landscape img {
        height: 180px;
    }

    .post-images-stack .post-img-item.type-portrait img {
        height: 320px;
    }

    .share-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}