/*
Theme Name: Clickedwap Custom Theme
Theme URI: https://clickedwapng.com
Description: Custom theme matching the original Clickedwap Tech Blog design
Version: 1.0
Author: Clickedwap
Author URI: https://clickedwapng.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, technology
*/

/* Reset and Base Styles */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    background-color: #fff;
    visibility: visible !important;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

a {
    background-color: transparent;
    color: #4db2ec;
    text-decoration: none;
}

a:active, a:hover {
    outline: 0;
    color: #4db2ec;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.3;
}

p {
    margin: 0 0 15px 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
    line-height: 0;
}

.clearfix:after {
    clear: both;
}

/* Container - 1068px width matching original */
.td-container {
    width: 1068px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 24px;
}

.td-container:before,
.td-container:after {
    display: table;
    content: '';
    line-height: 0;
}

.td-container:after {
    clear: both;
}

/* Main Content Wrap */
.td-main-content-wrap {
    background-color: #fff;
    padding: 30px 0;
}

.td-theme-wrap {
    min-height: 100vh;
}

/* Header Styles */
.td-header-wrap {
    position: relative;
    z-index: 2000;
}

/* Top Menu Bar */
.td-header-top-menu-full {
    background-color: #222222;
    padding: 0;
}

.td-header-top-menu {
    font-size: 12px;
}

.top-header-menu {
    margin: 0;
    padding: 0;
}

.top-header-menu li {
    display: inline-block;
    margin-left: 0;
}

.top-header-menu li a {
    display: inline-block;
    color: #999;
    padding: 8px 15px;
    line-height: 20px;
}

.top-header-menu li a:hover {
    color: #fff;
}

/* Main Menu Bar */
.td-header-menu-wrap-full {
    background-color: #151515;
    height: 60px;
}

.td-header-main-menu {
    position: relative;
}

#td-header-menu {
    display: flex;
    align-items: center;
    height: 60px;
}

.td-main-menu-logo {
    float: left;
    margin-right: 10px;
    height: 48px;
    display: block;
}

.td-main-menu-logo a {
    line-height: 48px;
}

.td-main-menu-logo img {
    padding: 3px 0;
    position: relative;
    vertical-align: middle;
    max-height: 48px;
}

.td-logo {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: inherit !important;
}

/* Main Navigation Menu */
.sf-menu {
    margin: 0;
    padding: 0;
    display: flex;
}

.sf-menu > li {
    display: inline-block;
    position: relative;
}

.sf-menu > li > a {
    display: block;
    color: #fff;
    padding: 0 18px;
    line-height: 60px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.sf-menu > li > a:hover,
.sf-menu > .current-menu-item > a,
.sf-menu > .current-menu-ancestor > a {
    background-color: #4db2ec;
}

.sf-menu > li > a .td-icon-menu-down {
    margin-left: 5px;
    font-size: 10px;
}

/* Sub Menu */
.sf-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 9999;
}

.sf-menu li:hover > .sub-menu {
    display: block;
}

.sf-menu .sub-menu li {
    display: block;
}

.sf-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #222;
    border-bottom: 1px solid #eee;
}

.sf-menu .sub-menu li a:hover {
    color: #4db2ec;
}

/* Block Title */
.td-block-title-wrap {
    margin-bottom: 20px;
}

.td-block-title {
    margin: 0;
    padding: 0;
    border-bottom: 3px solid #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.td-block-title span {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 10px 12px;
}

/* Post Module Styles */
.td_module_wrap {
    margin-bottom: 30px;
}

.td-module-thumb {
    position: relative;
    margin-bottom: 12px;
}

.td-module-thumb a {
    display: block;
}

.td-module-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.entry-title a {
    color: #222;
}

.entry-title a:hover {
    color: #4db2ec;
}

/* Post Category Tag */
.td-post-category {
    display: inline-block;
    padding: 3px 6px;
    background-color: #4db2ec;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.td-post-category:hover {
    background-color: #222;
    color: #fff;
}

/* Post Meta Info */
.td-module-meta-info {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.td-post-author-name a {
    color: #999;
}

.td-post-author-name a:hover {
    color: #4db2ec;
}

.td-post-date {
    color: #999;
}

/* Excerpt */
.td-excerpt {
    font-size: 13px;
    line-height: 21px;
    color: #666;
    margin-top: 10px;
}

/* Post List Layout */
.td-block-row {
    margin: 0 -15px;
}

.td-block-row:before,
.td-block-row:after {
    display: table;
    content: '';
}

.td-block-row:after {
    clear: both;
}

.td-block-span6 {
    float: left;
    width: 50%;
    padding: 0 15px;
}

/* Content Area */
.td-pb-span8 {
    float: left;
    width: 66.66667%;
    padding: 0 24px;
}

.td-pb-span4 {
    float: left;
    width: 33.33333%;
    padding: 0 24px;
}

.td-pb-span12 {
    width: 100%;
    padding: 0 24px;
}

/* Pagination */
.page-nav {
    margin: 30px 0;
    text-align: center;
    clear: both;
}

.page-nav .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background-color: #f5f5f5;
    color: #222;
    font-size: 13px;
}

.page-nav .page-numbers:hover,
.page-nav .page-numbers.current {
    background-color: #4db2ec;
    color: #fff;
}

.page-nav .prev,
.page-nav .next {
    background-color: #222;
    color: #fff;
}

.page-nav .prev:hover,
.page-nav .next:hover {
    background-color: #4db2ec;
}

/* Single Post */
.td-post-header {
    margin-bottom: 20px;
}

.td-post-title {
    margin: 0 0 15px 0;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
}

.td-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.td-post-content p {
    margin-bottom: 20px;
}

.td-post-content h2,
.td-post-content h3,
.td-post-content h4 {
    margin: 25px 0 15px 0;
}

.td-post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.td-post-content a {
    color: #4db2ec;
}

.td-post-content a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.td-footer-wrapper {
    background-color: #222;
    padding: 26px 0;
}

.footer-social-wrap {
    text-align: center;
}

.td-social-icon-wrap {
    display: inline-block;
    margin-right: 30px;
    text-transform: uppercase;
    font-family: 'Open Sans', arial, sans-serif;
    color: #fff;
    font-size: 13px;
}

.td-social-icon-wrap i {
    margin-right: 8px;
}

/* Sub Footer */
.td-sub-footer-container {
    background-color: #0d0d0d;
    color: #ccc;
    font-size: 12px;
    font-family: 'Open Sans', arial, sans-serif;
}

.td-sub-footer-copy {
    line-height: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
    float: left;
}

.td-subfooter-menu {
    display: inline-block;
    margin: 7px 0;
    float: right;
}

.td-subfooter-menu li {
    display: inline-block;
    margin-left: 0;
    line-height: 18px;
}

.td-subfooter-menu li a {
    margin-right: 16px;
    line-height: 18px;
    display: inline-block;
    color: #ccc;
}

.td-subfooter-menu li a:hover {
    color: #4db2ec;
}

.td-subfooter-menu li:last-child a {
    margin-right: 0;
}

/* Responsive Styles */
@media (max-width: 1068px) {
    .td-container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .td-pb-span8,
    .td-pb-span4,
    .td-pb-span12 {
        float: none;
        width: 100%;
        padding: 0;
    }

    .td-block-span6 {
        float: none;
        width: 100%;
    }

    .sf-menu {
        display: none;
    }

    .td-header-menu-wrap-full {
        height: 54px;
    }

    .td-main-menu-logo {
        margin: 0 auto;
        text-align: center;
        float: none;
    }

    .td-sub-footer-container {
        text-align: center;
        padding: 6px 0;
    }

    .td-sub-footer-copy {
        float: none;
    }

    .td-subfooter-menu {
        float: none;
    }

    .td-social-icon-wrap {
        margin: 5px;
    }

    .entry-title {
        font-size: 16px;
    }

    .td-post-title {
        font-size: 24px;
    }
}
