/* MEGAZINE CUSTOM THEME - ENHANCED CSS */

/* BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Roboto', Arial, sans-serif; 
    font-size: 15px; 
    color: #333; 
    background: #f5f5f5; 
    line-height: 1.6; 
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

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

/* BREAKING NEWS */
.breaking-news { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
    color: white; 
    padding: 10px 0; 
    font-size: 13px; 
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* HEADER */
.site-header { 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); 
    color: white; 
    padding: 25px 0; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.site-title { 
    font-size: 36px; 
    font-weight: 700; 
    color: #e74c3c; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}
.main-nav ul { display: flex; gap: 35px; list-style: none; margin-top: 20px; }
.main-nav a { 
    color: white; 
    font-weight: 500; 
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
}
.main-nav a:hover { 
    color: #e74c3c; 
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

/* MAIN CONTAINER */
.main-container { background: white; padding: 40px 20px; }

/* HERO SECTION - SIDE BY SIDE LAYOUT */
.hero-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}
.hero-main { 
    position: relative; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.hero-main img { 
    width: 100%; 
    height: 450px; 
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-main:hover img {
    transform: scale(1.05);
}
.hero-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white; 
    padding: 40px 30px 30px;
}
.hero-content .category { 
    display: inline-block; 
    background: #3498db; 
    color: white; 
    padding: 6px 14px; 
    font-size: 12px; 
    font-weight: 600; 
    border-radius: 4px; 
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-content h2 { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content .excerpt { 
    font-size: 15px; 
    color: #e8e8e8; 
    line-height: 1.6;
    margin-bottom: 15px;
}
.hero-content .read-more { 
    background: #e74c3c; 
    color: white; 
    padding: 12px 28px; 
    border-radius: 5px; 
    display: inline-block; 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}
.hero-content .read-more:hover { 
    background: #c0392b; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* POST GRID */
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    margin-bottom: 50px;
}
.post-card { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.post-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover img {
    transform: scale(1.1);
}
.post-card-content { padding: 20px; }
.post-card .category { 
    display: inline-block; 
    background: #3498db; 
    color: white; 
    padding: 4px 10px; 
    font-size: 11px; 
    font-weight: 600; 
    border-radius: 3px; 
    margin-bottom: 10px;
    text-transform: uppercase;
}
.post-card h3 { 
    font-size: 17px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    line-height: 1.4;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card h3:hover { color: #e74c3c; }
.post-card .meta { 
    font-size: 12px; 
    color: #7f8c8d; 
    display: flex;
    gap: 10px;
    align-items: center;
}

/* SECTION TITLES */
.section-title { 
    font-size: 28px; 
    font-weight: 700; 
    color: #2c3e50; 
    margin-bottom: 30px; 
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.view-all {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.view-all:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* FEATURED POSTS */
.featured-section { margin-bottom: 50px; }

/* SIDEBAR */
.sidebar { margin-top: 50px; }
.sidebar-widget { 
    background: white; 
    padding: 25px; 
    margin-bottom: 30px; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.sidebar-widget h3 { 
    font-size: 20px; 
    font-weight: 700; 
    color: #2c3e50; 
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { 
    padding: 12px 0; 
    border-bottom: 1px solid #ecf0f1;
    transition: padding-left 0.3s ease;
}
.sidebar-widget li:hover {
    padding-left: 8px;
    color: #e74c3c;
}

/* FOOTER */
.site-footer { 
    background: #2c3e50; 
    color: white; 
    padding: 50px 0 20px; 
    margin-top: 60px;
}
.footer-widgets { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    margin-bottom: 40px;
}
.footer-widget h3 { 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px;
    color: #e74c3c;
}
.footer-bottom { 
    text-align: center; 
    padding-top: 25px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    color: #95a5a6;
    font-size: 14px;
}

/* SINGLE POST */
.single-post { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}
.single-post .category { 
    display: inline-block; 
    background: #e74c3c; 
    color: white; 
    padding: 6px 14px; 
    font-size: 12px; 
    font-weight: 600; 
    border-radius: 4px; 
    margin-bottom: 15px;
    text-transform: uppercase;
}
.single-post h1 { 
    font-size: 42px; 
    font-weight: 700; 
    color: #2c3e50; 
    line-height: 1.3; 
    margin-bottom: 20px;
}
.single-post .meta { 
    color: #7f8c8d; 
    font-size: 14px; 
    margin-bottom: 30px; 
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}
.single-post .featured-image { 
    margin-bottom: 35px; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.single-post .featured-image img { 
    width: 100%; 
    height: auto;
}
.single-post .content { 
    font-size: 17px; 
    line-height: 1.8; 
    color: #444;
}
.single-post .content p { margin-bottom: 20px; }
.single-post .content h2 { 
    font-size: 30px; 
    margin: 35px 0 20px; 
    color: #2c3e50;
}
.single-post .content h3 { 
    font-size: 24px; 
    margin: 30px 0 15px; 
    color: #34495e;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav ul { gap: 15px; flex-wrap: wrap; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h2 { font-size: 24px; }
    .single-post { padding: 30px 20px; }
    .single-post h1 { font-size: 32px; }
    .footer-widgets { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .hero-content { padding: 25px 20px 20px; }
    .hero-content h2 { font-size: 20px; }
    .site-title { font-size: 28px; }
}

/* SOCIAL SHARE BUTTONS */
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* COMMENTS STYLING */
.comments-area {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
}
.comments-area h2,
.comments-area h3 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.comment:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.comment-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 8px;
}
.comment-author a {
    color: #e74c3c;
    text-decoration: none;
}
.comment-author a:hover {
    text-decoration: underline;
}
.comment-meta {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}
.comment-meta a {
    color: #7f8c8d;
    text-decoration: none;
}
.comment-meta a:hover {
    color: #e74c3c;
}
.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}
.comment-content p {
    margin-bottom: 10px;
}
.reply {
    margin-top: 15px;
}
.reply a,
.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.reply a:hover,
.comment-reply-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}
.children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid #e74c3c;
}
.comment-respond {
    background: white;
    padding: 35px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.comment-respond h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}
.comment-form p {
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}
.comment-form input[type="submit"],
.form-submit input[type="submit"] {
    background: #e74c3c;
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comment-form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}
.comment-awaiting-moderation {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 10px;
    display: inline-block;
}
.says {
    display: none;
}
.comment-edit-link {
    color: #7f8c8d;
    font-size: 12px;
    margin-left: 10px;
    text-decoration: none;
}
.comment-edit-link:hover {
    color: #e74c3c;
}