/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.5.1768492411
Updated: 2026-01-15 15:53:31

*/
/* --- Main Grid Design --- */
.nif-main-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.nif-album-item { cursor: pointer; transition: 0.3s; }
.nif-album-item:hover { transform: translateY(-5px); }
.nif-album-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }
.nif-album-title h3 { text-align: center; margin-top: 10px; font-size: 18px; color: #000; }

/* --- Single Page Inner Grid --- */
.nif-inner-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.nif-gallery-img-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.nif-load-more-wrapper { text-align: center; margin: 40px 0; }
#nif-load-more-btn {
    background: #e44d26; color: white; border: none; padding: 10px 30px; border-radius: 20px; cursor: pointer;
}
.nif-back-link {
    text-decoration: underline; color: #333; font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nif-main-gallery-grid { grid-template-columns: repeat(1, 1fr); }
    .nif-inner-gallery-grid { grid-template-columns: repeat(1, 1fr); }
}


/* --- LOGIN ALERT DESIGN --- */
.nif-login-alert {
    text-align: center;
    padding: 50px 20px;
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 500px;
}
.nif-login-alert h3 { color: #d9534f; margin-bottom: 10px; }
.nif-login-btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* --- MAIN FORM CONTAINER --- */
.nif-admin-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nif-form-header {
    background: #222;
    color: #fff;
    padding: 25px;
    text-align: center;
}
.nif-form-header h2 { margin: 0; font-size: 24px; color: #fff; }
.nif-form-header p { margin: 5px 0 0; opacity: 0.8; font-size: 14px; }

.nif-create-album-form {
    padding: 30px;
}

/* --- FORM FIELDS --- */
.nif-field-group {
    margin-bottom: 25px;
}
.nif-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}
.nif-field-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}
.nif-field-group input[type="text"]:focus {
    border-color: #e44d26;
    outline: none;
}

/* --- BUTTONS --- */
.nif-btn-secondary {
    background: #f0f0f1;
    color: #2271b1;
    border: 1px solid #2271b1;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.nif-btn-secondary:hover {
    background: #eef5fa;
}

.nif-btn-primary {
    background: #e44d26;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
}
.nif-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- PREVIEWS --- */
.nif-preview-box {
    margin-top: 15px;
}
.nif-preview-box img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nif-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    min-height: 50px;
}
.nif-thumb-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* --- MESSAGES --- */
.nif-msg {
    padding: 15px;
    margin: 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}
.nif-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.nif-msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .nif-admin-form-container { margin: 20px 10px; }
    .nif-create-album-form { padding: 20px; }
    .nif-btn-primary { padding: 12px; font-size: 16px; }
}

/* blogs css */
/* --- LAYOUT: MAIN BLOG PAGE --- */
.nif-blog-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
}

.nif-blog-content {
    flex: 2; /* Left side width (66%) */
}

.nif-blog-sidebar {
    flex: 1; /* Right side width (33%) */
    border-left: 1px solid #eee; /* Optional divider */
    padding-left: 30px;
}

/* --- BLOG CARD DESIGN --- */
.nif-blog-card {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Thumbnail Styling */
.nif-post-thumbnail {
    flex: 0 0 40%; /* Image takes 40% width */
}
.nif-post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px; /* Rounded corners like image */
}

/* Content Styling */
.nif-post-details {
    flex: 1;
}

.nif-post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}
.nif-post-meta a { color: #333; text-decoration: none; }
.nif-separator { margin: 0 5px; color: #ccc; }

.nif-post-title {
    font-size: 24px;
    line-height: 1.3;
    margin: 10px 0;
}
.nif-post-title a {
    text-decoration: none;
    color: #000;
    transition: 0.3s;
}
.nif-post-title a:hover { color: #e44d26; }

.nif-post-excerpt p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Read More Button */
.nif-read-more-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}
.nif-read-more-btn:hover {
    background: #e44d26;
}

/* --- SIDEBAR STYLING --- */
.widget { margin-bottom: 40px; }
.widget-title {
    font-size: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Search Box */
.wp-block-search__button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
}
.wp-block-search__input {
    border: 1px solid #ccc;
    padding: 10px;
}

/* Categories & Lists */
.widget ul { list-style: none; padding: 0; }
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.widget ul li a { text-decoration: none; color: #333; font-weight: 500; }
.widget ul li a:hover { color: #e44d26; }

/* Latest Articles (Default WP Widget) */
.wp-block-latest-posts__list-image {
    width: 60px; height: 60px; object-fit: cover; border-radius: 4px;
}

/* --- SINGLE PAGE DESIGN --- */
.nif-single-post-container {
    max-width: 900px;
    margin: 0 auto 60px;
}
.nif-single-featured-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.nif-single-content-wrapper {
    padding: 40px 20px 0;
}
.nif-single-title {
    font-size: 36px;
    margin: 15px 0 30px;
    text-align: center;
}
.center-meta { text-align: center; margin-top: 20px; }
.nif-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}
.nif-entry-content img { max-width: 100%; height: auto; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nif-blog-container { flex-direction: column; }
    .nif-blog-sidebar { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 40px; }
    .nif-blog-card { flex-direction: column; }
    .nif-post-thumbnail img { height: 200px; }
    .nif-single-featured-img img { height: 300px; }
    .nif-single-title { font-size: 28px; }
}



/* Blog table page */


/* --- BLOG DASHBOARD STYLES --- */
.nif-dashboard-wrapper, .nif-form-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Header */
.nif-dash-header, .nif-form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
.nif-dash-header h2, .nif-form-top h2 { margin: 0; color: #333; }

/* Table */
.nif-dash-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.nif-dash-table th, .nif-dash-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.nif-dash-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.nif-dash-table img { border-radius: 4px; width: 50px; height: 50px; object-fit: cover; }

/* Buttons */
.nif-btn-primary {
    background: #000; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; border:none; cursor: pointer;
}
.nif-btn-primary:hover { background: #e44d26; }

.nif-btn-secondary {
    background: #eef; color: #333; padding: 8px 15px; border: 1px solid #ccd; border-radius: 4px; cursor: pointer;
}

.nif-btn-small {
    padding: 5px 10px; font-size: 12px; border-radius: 3px; text-decoration: none; color: white; display: inline-block; margin-right: 5px; border:none; cursor: pointer;
}
.nif-btn-small.edit { background: #28a745; }
.nif-btn-small.delete { background: #dc3545; }

.nif-status {
    padding: 4px 8px; border-radius: 12px; font-size: 11px; text-transform: uppercase; font-weight: bold;
}
.nif-status.publish { background: #d4edda; color: #155724; }
.nif-status.draft { background: #fff3cd; color: #856404; }

/* --- FORM STYLES --- */
.nif-form-group { margin-bottom: 25px; }
.nif-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.nif-form-group input[type="text"], 
.nif-form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px;
}
.nif-flex-row { display: flex; gap: 30px; }
.nif-col-half { flex: 1; }

/* Categories Box */
.nif-cat-box { background: #fcfcfc; padding: 20px; border: 1px solid #eee; border-radius: 6px; }
.nif-cat-actions { display: flex; gap: 10px; margin-bottom: 15px; }
.nif-cat-checklist { 
    max-height: 200px; overflow-y: auto; border: 1px solid #eee; padding: 10px; background: white;
}
.nif-cat-item { 
    display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #eee; 
}
.nif-del-cat { color: red; cursor: pointer; font-weight: bold; padding: 0 5px; visibility: hidden; }
.nif-cat-item:hover .nif-del-cat { visibility: visible; }

/* Responsive */
@media (max-width: 768px) {
    .nif-dash-table { display: block; overflow-x: auto; }
    .nif-flex-row { flex-direction: column; gap: 0; }
}