/*
Theme Name: Dataproof
Theme URI: https://www.dataproof.co.za
Author: Dataproof Communications
Description: Custom magazine-style theme replicating tagDiv Newspaper design for Dataproof Communications - cybersecurity operations management.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: dataproof
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', 'Roboto', Arial, sans-serif; color: #333; background: #f5f5f5; line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: #1a3a5c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #3a7fc2; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 20px; }
h1, h2, h3, h4, h5, h6 { color: #1a3a5c; font-weight: 700; line-height: 1.3; margin-bottom: 15px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin-bottom: 15px; }

/* ===== TOP BAR (white) ===== */
.top-bar { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 6px 0; font-size: 12px; color: #888; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 15px; }
.top-bar a { color: #666; font-size: 12px; transition: color 0.2s; }
.top-bar a:hover { color: #1a3a5c; }
.top-bar .fa { margin-right: 4px; color: #1a3a5c; }
.top-bar .current-date { font-weight: 600; color: #555; }

/* ===== HEADER (dark navy) ===== */
.site-header { background: #1a3a5c; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 0 0; min-height: 60px; }
.site-logo { padding: 10px 0; }
.site-logo img { height: 40px; width: auto; }
.site-logo a { display: inline-block; }

/* ===== NAVIGATION ===== */
.main-navigation { display: flex; align-items: stretch; height: 100%; }
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; }
.main-navigation > ul { height: 100%; }
.main-navigation li { position: relative; }
.main-navigation > ul > li > a,
.main-navigation .menu > li > a { color: #fff; padding: 18px 16px; display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; white-space: nowrap; }
.main-navigation > ul > li > a:hover,
.main-navigation .menu > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-parent > a,
.main-navigation .menu > li.current-menu-item > a { background: #0d2540; color: #c4a035; }

/* Dropdown menus */
.main-navigation ul ul,
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; background: #0d2540; min-width: 260px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.2); z-index: 9999; list-style: none; padding: 0; margin: 0; }
.main-navigation li:hover > ul,
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; }
.main-navigation ul ul li,
.main-navigation .sub-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.main-navigation ul ul a,
.main-navigation .sub-menu a { color: #cfd8e3; padding: 12px 18px; display: block; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.main-navigation ul ul a:hover,
.main-navigation .sub-menu a:hover { background: #1a3a5c; color: #fff; padding-left: 22px; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 15px; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== MAIN CONTENT AREA ===== */
.site-content { padding: 30px 0; background: #f5f5f5; }
.content-area { display: flex; gap: 30px; }
.main-column { flex: 1; min-width: 0; }
.sidebar { width: 340px; flex-shrink: 0; }

/* ===== BLOG POSTS (Newspaper style) ===== */
.post-item { background: #fff; margin-bottom: 25px; border: 1px solid #e8e8e8; border-radius: 3px; overflow: hidden; transition: box-shadow 0.3s, transform 0.2s; }
.post-item:hover { box-shadow: 0 3px 15px rgba(0,0,0,0.1); transform: translateY(-1px); }
.post-item .post-thumb { width: 100%; height: 200px; overflow: hidden; background: linear-gradient(135deg, #1a3a5c 0%, #3a7fc2 100%); display: flex; align-items: center; justify-content: center; }
.post-item .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-item:hover .post-thumb img { transform: scale(1.05); }
.post-item .post-thumb .no-thumb { color: rgba(255,255,255,0.3); font-size: 48px; }
.post-item .post-body { padding: 20px; }
.post-item .post-category { display: inline-block; background: #1a3a5c; color: #fff; padding: 3px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 10px; border-radius: 2px; }
.post-item .post-category a { color: #fff; }
.post-item .post-title { font-size: 20px; margin-bottom: 8px; line-height: 1.3; }
.post-item .post-title a { color: #1a3a5c; }
.post-item .post-title a:hover { color: #3a7fc2; }
.post-item .post-meta { font-size: 12px; color: #999; margin-bottom: 10px; }
.post-item .post-meta span { margin-right: 12px; }
.post-item .post-meta .fa { color: #1a3a5c; margin-right: 3px; }
.post-item .post-excerpt { color: #666; font-size: 14px; line-height: 1.6; }
.post-item .read-more { display: inline-block; margin-top: 12px; color: #1a3a5c; font-weight: 600; font-size: 13px; transition: color 0.2s; }
.post-item .read-more:hover { color: #3a7fc2; }

/* Big first post */
.post-item.featured-first { display: flex; }
.post-item.featured-first .post-thumb { width: 50%; height: auto; min-height: 300px; }
.post-item.featured-first .post-body { width: 50%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.post-item.featured-first .post-title { font-size: 26px; }

/* ===== SIDEBAR WIDGETS ===== */
.widget { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 25px; border-radius: 3px; overflow: hidden; }
.widget-title { background: #1a3a5c; color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.widget-title span { display: inline-block; border-bottom: 2px solid #c4a035; padding-bottom: 2px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 12px 18px; border-bottom: 1px solid #f0f0f0; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: #333; font-size: 14px; display: block; transition: color 0.2s; }
.widget li a:hover { color: #1a3a5c; }
.widget .post-date { font-size: 11px; color: #999; margin-top: 3px; }

/* Editor Picks / Popular Posts style */
.widget-editor-picks .post-item-mini,
.widget-popular-posts .post-item-mini { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f0f0f0; align-items: center; }
.widget-editor-picks .post-item-mini:last-child,
.widget-popular-posts .post-item-mini:last-child { border-bottom: none; }
.post-item-mini .mini-thumb { width: 70px; height: 70px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: linear-gradient(135deg, #1a3a5c 0%, #3a7fc2 100%); }
.post-item-mini .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item-mini .mini-info { flex: 1; }
.post-item-mini .mini-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.post-item-mini .mini-title a { color: #333; }
.post-item-mini .mini-title a:hover { color: #1a3a5c; }
.post-item-mini .mini-date { font-size: 11px; color: #999; }

/* ===== PAGE CONTENT ===== */
.page-content { background: #fff; padding: 30px; border: 1px solid #e8e8e8; border-radius: 3px; }
.page-content h1 { margin-bottom: 20px; border-bottom: 3px solid #1a3a5c; padding-bottom: 10px; }
.page-content h2 { margin-top: 30px; color: #1a3a5c; border-left: 4px solid #c4a035; padding-left: 12px; }
.page-content h3 { margin-top: 25px; }

/* ===== SERVICE TABLE STYLE ===== */
.service-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.service-table th { background: #1a3a5c; color: #fff; padding: 12px 15px; text-align: left; font-size: 14px; font-weight: 600; }
.service-table td { padding: 12px 15px; border-bottom: 1px solid #e8e8e8; font-size: 14px; vertical-align: top; }
.service-table tr:nth-child(even) td { background: #f8f9fa; }
.service-table tr:hover td { background: #eef2f7; }
.service-table ul { margin: 0; padding-left: 18px; }
.service-table li { margin-bottom: 5px; }

/* ===== FEATURE BOXES ===== */
.feature-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 25px 0; }
.feature-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 5px; padding: 25px; text-align: center; transition: all 0.3s; }
.feature-box:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #1a3a5c; }
.feature-box .icon { font-size: 40px; margin-bottom: 15px; color: #1a3a5c; }
.feature-box h3 { font-size: 18px; margin-bottom: 10px; }
.feature-box p { font-size: 14px; color: #666; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 12px; color: #999; margin-bottom: 15px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #1a3a5c; }
.breadcrumb span { margin: 0 5px; }

/* ===== PAGINATION ===== */
.pagination { text-align: center; padding: 20px 0; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #e0e0e0; color: #555; font-size: 14px; border-radius: 3px; transition: all 0.2s; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }

/* ===== FOOTER (dark navy) ===== */
.site-footer { background: #0d2540; color: #a0b4c8; padding: 40px 0 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-widget h4 { color: #fff; font-size: 16px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #c4a035; padding-bottom: 8px; display: inline-block; }
.footer-widget p { font-size: 14px; line-height: 1.7; color: #a0b4c8; margin-bottom: 10px; }
.footer-widget a { color: #c4a035; }
.footer-widget a:hover { color: #fff; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a { color: #a0b4c8; font-size: 14px; transition: all 0.2s; }
.footer-widget ul li a:hover { color: #c4a035; padding-left: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 13px; color: #7a8ea3; }

/* ===== CONTACT FORM ===== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; margin-bottom: 15px; font-family: inherit; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #1a3a5c; outline: none; box-shadow: 0 0 0 2px rgba(26,58,92,0.1); }
.contact-form .submit-btn { background: #1a3a5c; color: #fff; border: none; padding: 12px 30px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.contact-form .submit-btn:hover { background: #0d2540; }

/* ===== CONTACT INFO ===== */
.contact-info { margin-bottom: 30px; }
.contact-info h3 { margin-bottom: 15px; }
.contact-info p { margin-bottom: 8px; }
.contact-info .fa { color: #1a3a5c; margin-right: 8px; width: 16px; }

/* ===== SINGLE POST ===== */
.single-post .post-header { margin-bottom: 25px; }
.single-post .entry-title { font-size: 30px; }
.single-post .entry-meta { font-size: 13px; color: #999; margin-bottom: 15px; }
.single-post .entry-content { line-height: 1.8; }
.single-post .entry-content p { margin-bottom: 20px; }
.single-post .featured-image { margin-bottom: 25px; }
.single-post .featured-image img { width: 100%; border-radius: 3px; }
.single-post .post-tags { margin-top: 20px; }
.single-post .post-tags a { display: inline-block; background: #f0f0f0; color: #555; padding: 4px 10px; font-size: 12px; margin: 2px 3px; border-radius: 2px; }
.single-post .post-tags a:hover { background: #1a3a5c; color: #fff; }

/* ===== CATEGORY PAGE ===== */
.category-header { background: #1a3a5c; color: #fff; padding: 30px; margin-bottom: 25px; border-radius: 3px; }
.category-header h1 { color: #fff; margin: 0; }

/* ===== SEARCH FORM ===== */
.search-form { display: flex; }
.search-form input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-right: none; border-radius: 3px 0 0 3px; font-size: 14px; font-family: inherit; }
.search-form button { background: #1a3a5c; color: #fff; border: none; padding: 10px 18px; cursor: pointer; border-radius: 0 3px 3px 0; transition: background 0.2s; }
.search-form button:hover { background: #0d2540; }

/* ===== WP CF7 OVERRIDES ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; margin-bottom: 15px; font-family: inherit; }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: #1a3a5c; outline: none; box-shadow: 0 0 0 2px rgba(26,58,92,0.1); }
.wpcf7-form input[type="submit"] { background: #1a3a5c; color: #fff; border: none; padding: 12px 30px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.wpcf7-form input[type="submit"]:hover { background: #0d2540; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .content-area { flex-direction: column; }
    .sidebar { width: 100%; }
    .post-item.featured-first { flex-direction: column; }
    .post-item.featured-first .post-thumb,
    .post-item.featured-first .post-body { width: 100%; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d2540; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; width: 100%; }
    .main-navigation > ul > li > a,
    .main-navigation .menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .main-navigation ul ul,
    .main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; background: #0a1e33; box-shadow: none; display: none; min-width: 100%; }
    .main-navigation li:hover > ul,
    .main-navigation li:hover > .sub-menu { display: block; }
    .header-main { flex-wrap: wrap; position: relative; }
    .top-bar .container { flex-direction: column; gap: 5px; }
    .footer-widgets { grid-template-columns: 1fr; }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
}
