/*
 Theme Name: Modshive
 Theme URI: https://example.com/modshive/
 Author: xAI
 Author URI: https://x.ai/
 Description: A WordPress theme for Modshive, a mod distribution website.
 Version: 1.0
 Text Domain: modshive
*/

/* App Grids Design 2 - Responsive */

.app-grids-d2.container-d2 {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
   
}

.app-grids-d2.column-d2 {
    flex: 1;
    box-sizing: border-box;
    background: #f9f9f9;
    min-width: 250px; /* Minimum width for columns */
}

.app-grids-d2.featured-d2 {
    background: transparent;
}

.app-grids-d2.post-d2 {
    margin-bottom: 1px;
}

.app-grids-d2.featured-post-d2 {
    padding: 5px;
    background: #ffffff;
    border-radius: 5px;
}

.app-grids-d2.featured-post-d2 a {
    text-decoration: none;
    color: black;
}

.app-grids-d2.post-image-d2 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.app-grids-d2.post-image-d2.cover-image {
    width: 100%;
    max-width: 250px; /* Limit max width for larger screens */
    height: auto;
    aspect-ratio: 1/1; /* Maintain square aspect ratio */
    object-fit: cover;
}

.app-grids-d2.post-title-d2 {
    margin-bottom: 10px;
    font-size: 1.2em;
    margin-top: 10px;
    text-align: left;
}

.app-grids-d2.post-list-d2 {
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.app-grids-d2.post-item-d2 {
    padding: 8px;
    background: #ffffff;
    margin-bottom: 5px;
    border-radius: 5px;
}

.app-grids-d2.post-thumbnail-title-d2 {
    display: flex;
    align-items: center;
    margin: 0;
    text-align: left;
    background-color: white;
}

.app-grids-d2.post-thumbnail-title-d2 h3 {
    font-size: 14px !important;
}

.app-grids-d2.post-thumbnail-d2 {
    flex-shrink: 0;
    width: 30%;
    max-width: 100px; /* Limit thumbnail size */
    height: auto;
    overflow: hidden;
    margin-right: 10px;
}

.app-grids-d2.post-thumbnail-d2 img {
    width: 100%;
    height: auto;
    display: block;
}

.app-grids-d2.post-title-container-d2 {
    flex: 1;
}

.app-grids-d2.post-title-container-d2 h3 {
    margin: 0;
    font-size: 1.1em;
}

.app-grids-d2.post-title-container-d2 a {
    text-decoration: none;
    color: black;
}

.app-grids-d2.post-title-container-d2 a:hover {
    text-decoration: none;
    color: #67ad67;
}

.app-category-d1 {
    float: left;
    width: 100%;
    font-size: 14px;
    color: grey;
    font-family: sans-serif;
    text-align: left;
}

.app-category-d1 a {
    text-decoration: none;
    color: grey;
}

/* Media Queries for Responsive Design */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .app-grids-d2.container-d2 {
        flex-direction: column; /* Stack columns vertically */
        gap: 15px;
    }

    .app-grids-d2.column-d2 {
        min-width: 100%; /* Full width for columns */
    }

    .app-grids-d2.post-image-d2.feature-image {
        max-width: 100%; /* Full width for featured images */
        height: auto;
    }

    .app-grids-d2.post-thumbnail-d2 {
        width: 25%; /* Slightly smaller thumbnails */
        max-width: 80px;
    }

    .app-grids-d2.post-title-d2 {
        font-size: 1.1em; /* Slightly smaller titles */
    }

    .app-grids-d2.post-title-container-d2 h3 {
        font-size: 1em;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .app-grids-d2.container-d2 {
        padding: 0 5px; /* Reduce padding */
    }

    .app-grids-d2.post-image-d2.feature-image {
        max-width: 100%;
        height: auto;
    }

    .app-grids-d2.post-thumbnail-title-d2 {
        flex-direction: column; /* Stack thumbnail and title */
        align-items: flex-start;
    }

    .app-grids-d2.post-thumbnail-d2 {
        width: 100%; /* Full width for thumbnails */
        max-width: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .app-grids-d2.post-title-d2 {
        font-size: 1em; /* Smaller titles for mobile */
    }

    .app-grids-d2.post-title-container-d2 h3 {
        font-size: 0.9em;
    }

    .app-grids-d2.post-item-d2 {
        padding: 5px; /* Reduce padding */
    }

    .app-category-d1 {
        font-size: 12px; /* Smaller font for categories */
    }
}

/* General Body & Typography */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
	margin-top:30px;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-top:0px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #4CAF50;
}
.logo a{
	color: #00BF62;
	text-decoration:none;
}

.search-bar {
    width: 450px; /* Fixed width */
    position: relative;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 10px 40px 10px 15px; /* Space for button on right */
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background-color:#EFF2F5;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.1) !important;
}

.search-field::placeholder {
    color: #aaa;
}

.search-field:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    color: #4CAF50;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #45a049;
}

.search-submit .dashicons {
	font-size:26px;
    vertical-align: middle;
	margin-top:-8px;
}

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

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #4CAF50;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.content-sidebar-wrapper {
    display: flex;
    gap: 30px;
}

.content-wrapper {
    flex: 3;
}

.sidebar {
    flex: 1;
    max-width: 300px;
}

.sidebar-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-section h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.related-mods-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-mods-list li {
    margin-bottom: 10px;
}

.related-mods-list li a {
    text-decoration: none;
    color: #4CAF50;
    font-size: 16px;
    transition: color 0.3s ease;
}

.related-mods-list li a:hover {
    color: #45a049;
}

.ad-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.breadcrumbs {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 30px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1) !important;
}
.hero-banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hero-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(76, 175, 80, 0.9);
    color: #fff;
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    box-sizing: border-box;
}

/* Mod Info Section */
.mod-info-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.mod-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    margin-right: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mod-details h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.mod-details .last-modified {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.mod-details .category {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

/* APK Information Card */
.apk-information-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.apk-information-card h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
}

.info-value.get-it-on {
    display: flex;
    align-items: center;
}

.info-value.get-it-on img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Download Button */
.download-button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.download-apk-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 177, 64, 0.3);
    display: inline-block;
    text-decoration: none;
}

.download-apk-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Mod Description Section */
.mod-desc-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.mod-desc-section h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #333;
}

.mod-desc-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.mod-desc-section ul {
    list-style: disc; /* Use bullets for lists */
    margin: 10px 0; /* Margin around the list */
    padding-left: 30px; /* Padding for indenting bullets */
}

.mod-desc-section ul li {
    padding: 5px 10px; /* Padding inside each list item */
    margin-bottom: 5px; /* Spacing between list items */
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.mod-desc-section ol {
    margin: 10px 0; /* Margin around the list */
    padding-left: 30px; /* Padding for indenting bullets */
}

.mod-desc-section ol li {
    padding: 5px 10px; /* Padding inside each list item */
    margin-bottom: 5px; /* Spacing between list items */
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Related Posts Section */
.related-posts-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.related-posts-section h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

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

.related-post {
    display: flex;
    flex-direction: column;
}

.related-post-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-post h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.related-post h3 a {
    text-decoration: none;
    color: #4CAF50;
    transition: color 0.3s ease;
}

.related-post h3 a:hover {
    color: #45a049;
}

.related-post p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Comments Section */
.comments-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.comments-section h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.comments-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.comment-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.submit-comment-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-comment-button:hover {
    background-color: #45a049;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    border-bottom: 1px dashed #eee;
    padding: 15px 0;
}

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

.comment p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.comment p strong {
    color: #4CAF50;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav ul li {
    margin: 0;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #4CAF50;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.footer-widgets {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    max-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-sidebar-wrapper {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
    }

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

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo, .main-nav {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .search-bar {
        order: 3;
        margin: 15px 0 0 0;
        max-width: 100%;
    }

    .main-nav ul {
        justify-content: center;
    }

    .hero-overlay-text {
        font-size: 22px;
        padding: 15px;
    }

    .mod-info-section {
        flex-direction: column;
        text-align: center;
    }

    .mod-thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .mod-details h1 {
        font-size: 24px;
    }

    .download-apk-button {
        width: 100%;
        padding: 15px 20px;
    }

    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }

    .main-nav ul li {
        margin: 0 10px;
    }

    .hero-banner-image {
        height: 200px;
    }

    .hero-overlay-text {
        font-size: 18px;
        padding: 10px;
    }

    .mod-thumbnail img {
        width: 80px;
        height: 80px;
    }

    .mod-details h1 {
        font-size: 20px;
    }

    .apk-information-card h2 {
        font-size: 18px;
    }

    .mod-desc-section h2 {
        font-size: 18px;
    }

    .related-posts-section h2 {
        font-size: 18px;
    }

    .comments-section h2 {
        font-size: 18px;
    }

    .sidebar-section h2 {
        font-size: 18px;
    }

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

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}