/*
Theme Name: Trogon Media
Theme URI: https://trogonmedia.com
Author: Trogon Media
Author URI: https://trogonmedia.com
Description: Custom WordPress theme for Trogon Media - converted from static HTML site.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trogonmedia
*/

/* ==========================================================================
   WhatsApp Floating Button (global - used on all pages)
   ========================================================================== */

.open-button {
    background-color: #25D366;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0px;
    border: none;
    cursor: pointer;
    opacity: 1;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 50px;
}

.open-button i {
    font-size: 40px;
}

.open-button:hover i {
    color: #fff;
}

/* ==========================================================================
   Blog Card Styles (used on blog listing and single post pages)
   ========================================================================== */

.blog-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    color: #000;
}

.blog-content h3 a {
    color: #000;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #3949ab;
}

.blog-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.blog-content a {
    text-decoration: none;
    color: #3949ab;
    font-weight: bold;
}

/* ==========================================================================
   Blog Single Post Styles
   ========================================================================== */

.blog-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-single-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.blog-single-meta span {
    margin-right: 1.5rem;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

.blog-pagination {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #27ae60;
    color: #fff;
}

/* ==========================================================================
   Custom Logo sizing
   ========================================================================== */

.header-logo .custom-logo {
    width: 170px;
    height: auto;
}

/* ==========================================================================
   WordPress Admin Bar offset
   ========================================================================== */

body.admin-bar header.style-4 {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.style-4 {
        top: 46px;
    }
}
