/*
Theme Name: Hello SWFL
Theme URI: http://www.helloswfl.com/
Author: Hello SWFL
Author URI: http://www.helloswfl.com/
Description: A new approach to local news focused on connection, balance and depth. Hello SWFL is Southwest Florida's local news and community website covering Fort Myers, Cape Coral, Naples and surrounding areas.
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: helloswfl
Tags: news, magazine, blog, grid-layout, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0077c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005a99;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: #1a1a2e;
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid #2a2a4e;
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left .date-display {
    color: #aaa;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right .social-icons a {
    color: #aaa;
    font-size: 0.85rem;
    transition: color 0.2s;
    margin-left: 8px;
}

.top-bar-right .social-icons a:hover {
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

.site-logo .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.site-logo .logo-text span {
    color: #e74c3c;
}

.site-logo .logo-tagline {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -2px;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.header-search input[type="text"] {
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
}

.header-search button {
    background: #e74c3c;
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #c0392b;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-navigation {
    background-color: #1a1a2e;
    position: relative;
    z-index: 99;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    background-color: #e74c3c;
    color: #fff;
}

/* Dropdown */
.nav-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    border-top: 3px solid #e74c3c;
}

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

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, padding-left 0.2s;
}

.nav-menu .sub-menu li a:hover {
    background-color: #f8f8f8;
    padding-left: 24px;
    color: #e74c3c;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-news {
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: #c0392b;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 15px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
}

.breaking-news .ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.breaking-news .ticker {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.breaking-news .ticker a {
    color: #fff;
    font-size: 0.85rem;
    margin-right: 50px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   FEATURED SLIDER / HERO
   ============================================ */
.featured-section {
    margin: 25px auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #222;
    min-height: 220px;
}

.featured-item.large {
    grid-row: span 2;
    min-height: 444px;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.featured-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.featured-item .category-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
}

.featured-item .overlay h2 {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

.featured-item .overlay h2 a {
    color: #fff;
}

.featured-item .overlay h2 a:hover {
    color: #e74c3c;
}

.featured-item.large .overlay h2 {
    font-size: 1.8rem;
}

.featured-item .meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.featured-item .meta a {
    color: rgba(255,255,255,0.85);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.site-content {
    padding: 30px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.main-content {
    min-width: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #1a1a2e;
    padding-bottom: 0;
}

.section-header h2 {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.section-header::after {
    content: '';
    flex: 1;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-card .card-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.article-card .card-thumb .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.article-card .card-content {
    padding: 18px;
}

.article-card .card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-card .card-content h3 a {
    color: #1a1a2e;
}

.article-card .card-content h3 a:hover {
    color: #e74c3c;
}

.article-card .card-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card .card-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-card .card-meta a {
    color: #888;
}

.article-card .card-meta .meta-date::before {
    content: '\1F4C5 ';
}

.article-card .card-meta .meta-author::before {
    content: '\270D ';
}

.article-card .card-meta .meta-comments::before {
    content: '\1F4AC ';
}

/* List style articles */
.articles-list .article-list-item {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.articles-list .article-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.articles-list .list-thumb {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
}

.articles-list .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
    transition: transform 0.4s;
}

.articles-list .article-list-item:hover .list-thumb img {
    transform: scale(1.05);
}

.articles-list .list-content {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-list .list-content .category-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-radius: 2px;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
}

.articles-list .list-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.articles-list .list-content h3 a {
    color: #1a1a2e;
}

.articles-list .list-content h3 a:hover {
    color: #e74c3c;
}

.articles-list .list-content .card-excerpt {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 10px;
}

.articles-list .list-content .card-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    gap: 12px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    min-width: 0;
}

.widget {
    background: #fff;
    border-radius: 3px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}

.widget-title {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.widget-content {
    padding: 18px;
}

/* Social widget */
.widget-social .social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.widget-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 3px;
    color: #fff;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.widget-social .social-links a:hover {
    opacity: 0.85;
}

.widget-social .social-links .facebook { background: #3b5998; }
.widget-social .social-links .twitter { background: #1da1f2; }
.widget-social .social-links .youtube { background: #ff0000; }
.widget-social .social-links .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.widget-social .social-links .pinterest { background: #bd081c; }

/* Popular posts widget */
.widget-popular .popular-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-popular .popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-popular .popular-item:first-child {
    padding-top: 0;
}

.widget-popular .popular-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 12px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
}

.widget-popular .popular-item h4 {
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 600;
}

.widget-popular .popular-item h4 a {
    color: #333;
}

.widget-popular .popular-item h4 a:hover {
    color: #e74c3c;
}

.widget-popular .popular-item .pop-meta {
    font-size: 0.7rem;
    color: #999;
    margin-top: 3px;
}

/* Newsletter widget */
.widget-newsletter .widget-content {
    text-align: center;
}

.widget-newsletter p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 15px;
}

.widget-newsletter .newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.widget-newsletter .newsletter-form button {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.widget-newsletter .newsletter-form button:hover {
    background: #c0392b;
}

/* Ad widget */
.widget-ad .widget-content {
    padding: 0;
    text-align: center;
}

.widget-ad .widget-content img {
    width: 100%;
}

/* Tag cloud widget */
.widget-tags .tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 4px 8px 0;
    background: #f0f0f0;
    color: #555;
    font-size: 0.78rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.widget-tags .tag-cloud a:hover {
    background: #e74c3c;
    color: #fff;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    background: #1a1a2e;
    padding: 35px 0;
    margin: 30px 0;
}

.video-section .section-header {
    border-bottom-color: #e74c3c;
}

.video-section .section-header h2 {
    background: #e74c3c;
}

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

.video-item {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    background: #111;
}

.video-item .video-thumb {
    position: relative;
    overflow: hidden;
}

.video-item .video-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s;
}

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

.video-item .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-item:hover .play-btn {
    background: rgba(231, 76, 60, 1);
}

.video-item .play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.video-item .video-info {
    padding: 14px;
}

.video-item .video-info h4 {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.35;
}

.video-item .video-info h4 a {
    color: #fff;
}

.video-item .video-info h4 a:hover {
    color: #e74c3c;
}

.video-item .video-meta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    margin: 30px 0;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.event-card .event-date-box {
    background: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 10px;
    float: left;
    margin-right: 15px;
    min-width: 65px;
}

.event-card .event-date-box .day {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.event-card .event-date-box .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.event-card .event-info {
    padding: 15px;
    overflow: hidden;
}

.event-card .event-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.event-card .event-info h4 a {
    color: #1a1a2e;
}

.event-card .event-info h4 a:hover {
    color: #e74c3c;
}

.event-card .event-location {
    font-size: 0.78rem;
    color: #888;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    margin-bottom: 25px;
}

.single-post-header .category-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
}

.single-post-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-post-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
}

.post-content {
    background: #fff;
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.post-content .featured-image {
    margin: -30px -30px 25px;
}

.post-content .featured-image img {
    width: 100%;
}

.post-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 28px 0 15px;
    font-size: 1.5rem;
}

.post-content h3 {
    margin: 22px 0 12px;
    font-size: 1.2rem;
}

.post-content blockquote {
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin: 20px 0;
    background: #fafafa;
    font-style: italic;
    color: #555;
}

.post-content ul, .post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
    margin-bottom: 6px;
}

/* Share buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 25px;
}

.post-share span {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 3px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.post-share a:hover { opacity: 0.85; }
.post-share .share-facebook { background: #3b5998; }
.post-share .share-twitter { background: #1da1f2; }
.post-share .share-pinterest { background: #bd081c; }
.post-share .share-email { background: #888; }

/* Author box */
.author-box {
    background: #fff;
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.author-box .author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box .author-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-box .author-info p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Comments */
.comments-area {
    background: #fff;
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment .comment-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.comment .comment-author .author-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.comment .comment-author .comment-date {
    font-size: 0.75rem;
    color: #999;
}

.comment-respond .comment-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-respond .comment-form input,
.comment-respond .comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.comment-respond .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-respond .comment-form .submit {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header {
    background: #1a1a2e;
    padding: 35px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #fff;
    font-size: 2rem;
}

.page-header .breadcrumbs {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 8px;
}

.page-header .breadcrumbs a {
    color: #ddd;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
}

.footer-widgets {
    padding: 45px 0 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-widget .footer-widget-title {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
    font-family: 'Montserrat', sans-serif;
}

.footer-widget p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #aaa;
}

.footer-widget .footer-logo {
    margin-bottom: 15px;
}

.footer-widget .footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.footer-widget .footer-logo .logo-text span {
    color: #e74c3c;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #aaa;
    font-size: 0.85rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-widget ul li a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.footer-widget .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-widget .footer-social {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.footer-widget .footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.footer-widget .footer-social a:hover {
    background: #e74c3c;
    color: #fff;
}

/* Recent posts in footer */
.footer-widget .footer-recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget .footer-recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-widget .footer-recent-post img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.footer-widget .footer-recent-post h5 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.footer-widget .footer-recent-post h5 a {
    color: #ccc;
}

.footer-widget .footer-recent-post h5 a:hover {
    color: #e74c3c;
}

.footer-widget .footer-recent-post .date {
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

.footer-bottom p a {
    color: #e74c3c;
}

.footer-bottom .footer-bottom-links a {
    color: #888;
    font-size: 0.8rem;
    margin-left: 20px;
    transition: color 0.2s;
}

.footer-bottom .footer-bottom-links a:hover {
    color: #e74c3c;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: #c0392b;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 15px;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-404 p {
    color: #666;
    margin-bottom: 25px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header-main {
        flex-direction: column;
        gap: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu > li > .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
    }

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

    .featured-item.large {
        grid-row: span 1;
        min-height: 250px;
    }

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

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

    .articles-list .article-list-item {
        flex-direction: column;
    }

    .articles-list .list-thumb {
        width: 100%;
    }

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

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

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

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

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .single-post-header h1 {
        font-size: 1.5rem;
    }

    .post-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-search input[type="text"] {
        width: 150px;
    }

    .featured-item .overlay h2 {
        font-size: 1.1rem;
    }

    .featured-item.large .overlay h2 {
        font-size: 1.3rem;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
