/*
Theme Name: Abd Halim Hadi Custom Theme
Theme URI: https://abdhalimhadi.com
Author: MH Creative
Description: Custom theme matching the original Abd Halim Hadi website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abdhalimhadi
*/

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

html {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
    margin: 0;
    padding: 0;
    font-family: Questrial, helvetica, arial, sans-serif;
    background-color: #FFF;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Questrial, helvetica, arial, sans-serif;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

p {
    font-family: Questrial, helvetica, arial, sans-serif;
    margin: 0 0 15px 0;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout - Row System */
.row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.large-12 {
    width: 100%;
}

.columns {
    float: left;
    padding: 0 15px;
}

/* Wrapper */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header-wrapper {
    background-color: #fff;
}

#masthead {
    background-color: #fff;
    padding: 20px 0;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    margin-bottom: 20px;
}

#logo a {
    display: block;
}

#logo a img {
    max-height: 71px;
    width: auto;
}

.left-links {
    display: none;
}

.right-links {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Navigation */
.header-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-nav li {
    position: relative;
}

.header-nav li a {
    display: block;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 90%;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #000000;
}

.header-nav li a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.header-nav li a.nav-top-link {
    font-family: Questrial, helvetica, arial, sans-serif;
}

/* Dropdown Menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-nav li:hover .nav-dropdown {
    display: block;
}

.nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.nav-dropdown ul li a {
    padding: 8px 20px;
    font-size: 85%;
    text-transform: none;
}

/* Main Content */
#main-content {
    background-color: #FFF !important;
    flex: 1;
}

.page-wrapper {
    padding: 30px 0;
}

#content {
    padding: 0 15px;
}

/* Blog Post Styles */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-item {
    background: #fff;
    margin-bottom: 30px;
}

.post-item .post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-item .post-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-item .post-title a {
    color: #000;
}

.post-item .post-title a:hover {
    text-decoration: none;
    color: #3d3d3d;
}

.post-item .post-date {
    font-size: 12px;
    color: #000000;
    background-color: #000000;
    color: #fff;
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 10px;
    border-color: #000000;
}

.post-item .post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.post-item .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single Post Styles */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 15px;
}

.single-post-content .post-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.single-post-content .post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-post-content .post-meta span {
    margin-right: 15px;
}

.single-post-content .post-content {
    font-size: 16px;
    line-height: 1.8;
}

.single-post-content .post-content img {
    max-width: 100%;
    height: auto;
}

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

/* Back Link */
.back-to-blog {
    margin-bottom: 20px;
}

.back-to-blog a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.navigation-paging {
    text-align: center;
    margin: 40px 0 20px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.navigation-paging a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #000000;
    color: #000000;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navigation-paging a:hover {
    background-color: #000000;
    color: #fff;
    text-decoration: none;
}

/* Footer */
.footer-wrapper {
    margin-top: auto;
}

.absolute-footer {
    background-color: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.absolute-footer .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.absolute-footer .left,
.absolute-footer .right {
    font-size: 13px;
    color: #666;
}

.copyright-footer {
    color: #666;
}

/* Mobile Menu - Hidden on Desktop */
.mobile-menu {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #masthead {
        height: auto;
        padding: 15px 0;
    }

    .header-container {
        flex-wrap: wrap;
        height: auto;
    }

    #logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    #logo a {
        max-width: none;
        display: inline-block;
    }

    .right-links {
        width: 100%;
        justify-content: center;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-nav li a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

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

    .absolute-footer .row {
        flex-direction: column;
        text-align: center;
    }

    .absolute-footer .left,
    .absolute-footer .right {
        margin: 5px 0;
    }
}

/* Utility Classes */
.light {
    background-color: #fff;
}

.hfeed {
    display: block;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
