/*
 * Theme Name: Gridmode Pro Child
 * Description: A child theme for Gridmode Pro.
 * Author: Your Name
 * Template: gridmode-pro
 * Version: 1.0.0
*/

/* ==============================================
   Defence News CPT Specific Styles
   ============================================== */

/* General Article Container */
.single-defence_news .site-main article {
    background-color: #ffffff; /* White background for the content area */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 30px; /* More padding for spacious feel */
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Entry Header (Title and Meta) */
.single-defence_news .entry-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

/* Title */
.single-defence_news .entry-title {
    font-size: 2.2em; /* Larger, more prominent title */
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333333; /* Darker text for good contrast */
    font-weight: 700; /* Bolder */
}

/* Entry Meta (Date, Source, Categories) */
.single-defence_news .entry-meta {
    font-size: 0.9em;
    color: #777777;
    margin-top: 15px;
}

.single-defence_news .entry-meta span {
    display: inline-block;
    margin-right: 15px;
}

.single-defence_news .entry-meta a {
    color: #0073aa; /* WordPress blue for links */
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-defence_news .entry-meta a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Featured Image */
.single-defence_news .post-thumbnail {
    margin: 25px 0;
    text-align: center; /* Center the image */
}

.single-defence_news .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* Slightly rounded corners for images */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Entry Content (Full Article Preview / Excerpt) */
.single-defence_news .entry-content {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 30px;
}

.single-defence_news .entry-content p {
    margin-bottom: 1em;
}

/* Read Full Article Link */
.single-defence_news .read-more-link {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.single-defence_news .read-more-link a {
    display: inline-block;
    background-color: #28a745; /* Green button for external link */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.single-defence_news .read-more-link a:hover {
    background-color: #218838;
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Admin Commentary Section */
.single-defence_news .admin-commentary {
    background-color: #f9f9f9; /* Light grey background */
    border-left: 5px solid #0073aa; /* Blue left border */
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.single-defence_news .admin-commentary h3 {
    margin-top: 0;
    color: #333333;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.single-defence_news .admin-commentary p {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}


/* Download Brief Button */
.single-defence_news .download-brief {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

.single-defence_news .download-brief a.download-button {
    display: inline-block;
    background-color: #007bff; /* Blue button for download */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.single-defence_news .download-brief a.download-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* Entry Footer (Tags, Social Sharing, Related News) */
.single-defence_news .entry-footer {
    border-top: 1px solid #eeeeee;
    padding-top: 25px;
    margin-top: 30px;
}

/* Post Tags (Keywords) */
.single-defence_news .post-tags {
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #666666;
}

.single-defence_news .post-tags span {
    font-weight: bold;
    margin-right: 5px;
}

.single-defence_news .post-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555555;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease;
}

.single-defence_news .post-tags a:hover {
    background-color: #e0e0e0;
    color: #333333;
}

/* Social Sharing Buttons */
.single-defence_news .social-sharing {
    margin-bottom: 25px;
}

.single-defence_news .social-sharing h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333;
}

.single-defence_news .social-sharing ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Arrange buttons horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Space between buttons */
}

.single-defence_news .social-sharing li {
    margin: 0; /* Override default list margin */
}

.single-defence_news .social-sharing li a {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 90px; /* Ensure buttons have minimum width */
    text-align: center;
}

/* Specific Social Button Colors (add more as needed) */
.single-defence_news .social-sharing li a[title*="Facebook"] { background-color: #3b5998; }
.single-defence_news .social-sharing li a[title*="Facebook"]:hover { background-color: #2d4373; transform: translateY(-1px); }

.single-defence_news .social-sharing li a[title*="LinkedIn"] { background-color: #007bb5; }
.single-defence_news .social-sharing li a[title*="LinkedIn"]:hover { background-color: #005983; transform: translateY(-1px); }

.single-defence_news .social-sharing li a[title*="X (Twitter)"] { background-color: #1da1f2; } /* Twitter blue */
.single-defence_news .social-sharing li a[title*="X (Twitter)"]:hover { background-color: #0c85d0; transform: translateY(-1px); }

.single-defence_news .social-sharing li a[title*="WhatsApp"] { background-color: #25d366; }
.single-defence_news .social-sharing li a[title*="WhatsApp"]:hover { background-color: #1da851; transform: translateY(-1px); }


/* Related News Section */
.single-defence_news .related-news {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #e0e0e0; /* Dashed line for separation */
}

.single-defence_news .related-news h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333333;
}

.single-defence_news .related-news ul {
    list-style: disc; /* Bullet points */
    margin-left: 20px;
    padding: 0;
}

.single-defence_news .related-news li {
    margin-bottom: 8px;
}

.single-defence_news .related-news li a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.single-defence_news .related-news li a:hover {
    text-decoration: underline;
    color: #005177;
}

/* Basic Responsiveness (adjust as needed based on parent theme) */
@media (max-width: 768px) {
    .single-defence_news .site-main article {
        padding: 20px;
    }
    .single-defence_news .entry-title {
        font-size: 1.8em;
    }
    .single-defence_news .entry-content {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .single-defence_news .social-sharing ul {
        flex-direction: column; /* Stack buttons vertically on very small screens */
    }
    .single-defence_news .social-sharing li a {
        width: 100%; /* Full width buttons */
        box-sizing: border-box; /* Include padding/border in width */
    }
}