/*
Theme Name: 	Charito WP Child
Theme URI: 		http://thememascot.net
Description: 	Charito WP Child Theme
Author: 		ThemeMascot Team
Author URI: 	http://themeforest.net/user/thememascot
Version: 		2.0
License: 		GNU General Public License v2 or later
License URI: 	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 	charito-wp-child
Template: 		charito-wp
*/

/* =============================================
   NEWS PAGES — Add to child theme style.css
   ============================================= */

/* --- Override parent theme: remove sidebar, page title, fix width --- */
.post-type-archive-news #secondary,
.post-type-archive-news .widget-area,
.post-type-archive-news .sidebar,
.single-news #secondary,
.single-news .widget-area,
.single-news .sidebar {
    display: none !important;
}

.post-type-archive-news #primary,
.post-type-archive-news .content-area,
.single-news #primary,
.single-news .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide parent theme page header / title bar */
.post-type-archive-news .page-header,
.post-type-archive-news .entry-header,
.post-type-archive-news .page-title-area,
.post-type-archive-news .page-title-wrap,
.post-type-archive-news .entry-title,
.post-type-archive-news h1.page-title,
.single-news .page-header,
.single-news .page-title-area,
.single-news .page-title-wrap {
    display: none !important;
}

/* Remove extra padding from parent theme content wrappers */
.post-type-archive-news .site-content,
.single-news .site-content {
    padding-top: 0 !important;
}

/* =============================================
   NEWS ARCHIVE — Card Grid
   ============================================= */
.news-archive-section {
    padding: 50px 0 60px;
    background: #f7f8fa;
}

.news-archive-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-archive-header {
    margin-bottom: 35px;
}

.news-archive-header h1 {
    font-size: 1.9rem;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.news-archive-subtitle {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

/* 3 Column Grid */
.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Card */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Card Image — compact, fixed height */
.news-card-image-link {
    display: block;
    text-decoration: none;
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8e8e8;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
}

/* Card Body */
.news-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: 0.78rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.news-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #0073aa;
}

.news-card-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.news-card-excerpt p {
    margin: 0;
}

.news-card-readmore {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.news-card-readmore:hover {
    color: #005177;
}

/* Pagination */
.news-archive-pagination {
    margin-top: 45px;
    text-align: center;
}

.news-archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.news-archive-pagination a,
.news-archive-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.news-archive-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.news-none {
    text-align: center;
    color: #888;
    padding: 60px 0;
}

/* =============================================
   RESPONSIVE — 2 cols on tablet, 1 on mobile
   ============================================= */
@media (max-width: 900px) {
    .news-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .news-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-archive-section {
        padding: 30px 0 40px;
    }

    .news-archive-header h1 {
        font-size: 1.5rem;
    }

    .news-card-image {
        height: 180px;
    }
}

/* =============================================
   SINGLE NEWS PAGE
   ============================================= */
.single-news-section {
    padding: 50px 0 60px;
}

.single-news-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-featured-image {
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 700;
}

.news-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 28px;
}

.news-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.news-content p {
    margin-bottom: 1.1em;
}

.news-back-link {
    margin-top: 45px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.news-back-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-back-link a:hover {
    color: #005177;
}

@media (max-width: 600px) {
    .news-title {
        font-size: 1.5rem;
    }

    .single-news-section {
        padding: 30px 0 40px;
    }
}

/* =============================================
   HOMEPAGE NEWS SHORTCODE (grid)
   ============================================= */
.homepage-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.homepage-news .news-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.homepage-news .news-box .news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.all-news-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.all-news-btn:hover {
    background: #005177;
}

@media (max-width: 768px) {
    .homepage-news .news-grid {
        grid-template-columns: 1fr;
    }
}

/* NEWS SECTION */
.homepage-news {
    padding: 60px 20px;
    background: #f8f9fa;
}

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

/* CARD */
.news-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    padding: 15px;
}

.news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

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

/* TITLE */
.news-box h3 {
    font-size: 20px;
    padding: 20px 0px 10px 0px;
    margin: 0;
    color: #1a1a1a;
}

/* TEXT */
.news-box p {
    /*padding: 0 20px;*/
    flex-grow: 1;
    color: #555;
    line-height: 1.6;
}

/* READ MORE BUTTON */
.read-more-btn {
    margin: 20px;
    padding: 6px;
    text-align: center;
    background: #d0383c; /* theme blue */
    color: #ffffff !important;
    text-decoration: none;
        font-size: 25px !important;
    border-radius: 40px !important;
}

.read-more-btn:hover, .read-more-btn a {
    text-decoration: none !important;
}

/* SE FLERE NYHETER BUTTON */
.news-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.all-news-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #d0383c; /* theme blue */
    color: #ffffff !important;
    text-decoration: none;
        font-size: 25px !important;
    border-radius: 40px !important;
}

.all-news-btn:hover, .all-news-btn a {
    text-decoration: none !important;
    
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.tm-sc.tm-sc-section-title.section-title.section-title-style1.text-center.lead.vc_custom_1770987686064 {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}
#page-21481 > div > div > div.vc_row.wpb_row.vc_row-fluid.om-oss-section.vc-row-tm-section-padding > div > div > div > div:nth-child(1) > div > div > div > div.tm-sc.tm-sc-section-title.section-title.section-title-style1.text-center.lead {
    margin-bottom: 0 !important;
}