/*
Theme Name: Action Time USA
Version: 4.0 (Responsive + Premium UI)
*/

/* ===== RESET ===== */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: Arial, sans-serif;
color:#111;
background:#fff;
line-height:1.7;
overflow-x:hidden;
}

/* ===== CONTAINER ===== */
.container{
width:92%;
max-width:1200px;
margin:auto;
}

/* ===== HEADER ===== */
header{
border-bottom:1px solid #eee;
padding:15px 0;
background:#fff;
position:sticky;
top:0;
z-index:999;
}

header .container{
display:flex;
align-items:center;
justify-content:space-between;
}

.logo img{
width:260px;
max-width:100%;
}

/* MENU */
nav ul{
list-style:none;
display:flex;
gap:25px;
}

nav ul li a{
text-decoration:none;
color:#111;
font-weight:600;
font-size:15px;
}

/* MOBILE MENU BUTTON */
.menu-toggle{
display:none;
font-size:26px;
cursor:pointer;
}

/* ===== HERO ===== */
.hero{
background:#f4f4f4;
padding:70px 0;
text-align:center;
}

.hero h1{
font-size:36px;
margin-bottom:10px;
}

.hero p{
color:#666;
}

/* ===== POSTS GRID ===== */
.posts{
padding:60px 0;
}

.grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:30px;
}

.card{
border:1px solid #eee;
background:#fff;
overflow:hidden;
transition:.3s;
border-radius:10px;
}

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

.card h3{
padding:15px;
}

.card p{
padding:0 15px 15px;
color:#444;
}

.card:hover{
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transform:translateY(-5px);
}

/* ===== SINGLE POST ===== */

/* FEATURED IMAGE */
.featured-image{
margin:20px 0 25px;
}

.featured-image img{
width:100%;
border-radius:12px;
border:3px solid #eee;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* META */
.post-meta{
display:flex;
gap:12px;
align-items:center;
margin-bottom:20px;
flex-wrap:wrap;
}

.post-meta .category a{
background:#111;
color:#fff;
padding:5px 12px;
border-radius:20px;
font-size:12px;
text-decoration:none;
}

.post-meta .date{
color:#777;
font-size:14px;
}

/* CONTENT */
.single-content h1{
font-size:30px;
margin-bottom:10px;
}

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

/* ===== POST NAV ===== */
.post-navigation{
display:flex;
justify-content:space-between;
gap:20px;
margin-top:50px;
}

.post-navigation a{
display:block;
background:#f7f7f7;
padding:18px;
border-radius:10px;
text-decoration:none;
color:#111;
transition:.3s;
}

.post-navigation a:hover{
background:#eee;
}

.post-navigation span{
font-size:13px;
color:#777;
}

/* ===== FOOTER ===== */
.main-footer{
background:#111;
color:#fff;
padding:50px 0 0;
margin-top:60px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.footer-bottom{
border-top:1px solid #333;
text-align:center;
padding:20px;
margin-top:40px;
color:#aaa;
}

/* ================= MOBILE ================= */

@media(max-width:900px){

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

.footer-grid{
grid-template-columns:1fr;
}

.post-navigation{
flex-direction:column;
}

}

/* ===== MOBILE MENU ===== */
@media(max-width:768px){

.menu-toggle{
display:block;
}

header .container{
flex-direction:row;
}

nav{
display:none;
width:100%;
margin-top:10px;
}

nav.active{
display:block;
}

nav ul{
flex-direction:column;
gap:12px;
background:#fff;
padding:10px 0;
}

/* HERO */
.hero{
padding:40px 15px;
}

.hero h1{
font-size:24px;
}

/* IMAGE FIX */
.card img{
height:auto;
}

/* CONTENT */
.container{
width:95%;
}

}
/* TABLE RESPONSIVE FIX */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* important */
}

.table-wrapper th,
.table-wrapper td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* MOBILE IMPROVE */
@media (max-width: 768px) {

    .table-wrapper {
        overflow-x: auto;
    }

    .table-wrapper table {
        min-width: 600px;
    }

}
/* REMOVE UNDERLINE FROM LINKS */

a {
    text-decoration: none;
}

/* BLOG CARDS / POSTS LINKS */
.card a,
.post-card a,
.posts a {
    text-decoration: none;
    color: #111;
}

/* HOVER EFFECT (optional) */
.card a:hover,
.post-card a:hover {
    color: #0073aa;
}
/* ===== MODERN CARD DESIGN ===== */

.card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

/* CONTENT */
.card h3 {
    font-size: 18px;
    padding: 12px 15px 5px;
}

.card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #555;
}
/* TITLE LOOK */

.card h3 a {
    color: #111;
    text-decoration: none;
    transition: 0.3s;
}

.card h3 a:hover {
    color: #0073aa;
}
/* IMAGE ZOOM EFFECT */

.card img {
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.05);
}