/*
Theme Name:   Magazine-child
Theme URI:    
Description:  Child theme to store and display directory of palliwal samaaj member's information
Author:       Anktech
Author URI:   http://anktech.com
Template:     oceanwp
Version:      1.0.0
*/
@import url('../twentytwentythree/style.css');



.home_page_heading {
    font-size: 40px;
    text-align: center;
}

.magazine-cover {
    text-align: center;
    margin-bottom: 20px;
}

.magazine-last_page {
    text-align: center;
}

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/*CSS for displaying article list */
.post-item {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Create the spiral binding effect */
.post-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 20px;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            #333 10px,
            #333 15px);
    border-radius: 10px 10px 0 0;
}

/* Spiral Binding Adjustments */
.post-item::before {
    background-size: 20px 20px;
    border-radius: 50% 50% 0 0;
    height: 20px;
}

.post-title {
    font-size: 1.5em;
    margin: 0 0 10px;
}

.post-author {
    font-style: italic;
    margin: 0 0 10px;
}

.post-excerpt {
    margin: 0 0 10px;
    font-size: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 15px;
    background: #59C0E3;
    ;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.read-more:hover {
    background: #005177;
}

/* css for articles cover  */

.article-cover {
    text-align: center;
    margin-bottom: 20px;
}

.article_content {
    text-align: justify;
    font-size: 18px;
}

/* shadow effects css sarts here */
.edition-cover {
    position: relative;
    margin: 30px;
    display: inline-block;
    max-width: 100%;
    perspective: 1000px;
}

.edition-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 15px 25px rgba(0, 0, 0, 0.1);
    transform: rotateY(-10deg);
    transition: transform 0.3s ease-in-out;
}

.edition-cover:hover img {
    transform: rotateY(0deg) rotateX(5deg) translateZ(10px);
}

.edition-cover:before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
    background: #f0f0f0;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 2px 0 0 2px;
    z-index: -1;
}

.edition-cover:after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 5px;
    height: 100%;
    background: linear-gradient(to right, #fff, #eee);
    box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 2px 2px 0;
    z-index: -1;
}

.edition-cover-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background-color: #fafafa;
    border-radius: 10px;
}

/* shadow effects css ends here */
.editions-grid {
    display: flex;
    flex-wrap: wrap;
    gap:1%;
}

.edition-item {
    padding: 15px;
    border: 1px solid #ddd;
    width: 48%;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;

}

.edition-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.edition-description {
    font-size: 1em;
    color: #666;
}

.site_note {
	display:none;
    font-size: 17px;
    margin: 35px 0;
    padding: 15px;
    box-shadow: 0px 0px 24px 0px #efefef;
    border-radius: 12px;
}

.note {
    font-size: 18px;
    margin: 15px 0;
}

/* for previous and next button on single aticle page css starts here */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.post-navigation a {
    text-decoration: none;
    color: #59C0E3;
    font-weight: bold;
}

.post-navigation a:hover {
    color: #005177;
}

/* css for back button */

.back-button {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.back-link:hover {
    background-color: #005177;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-link:active {
    background-color: #003d6a;
}

/* css for post detail */

.post-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Post title styling */
.post-title {
    font-size: 2em;
    margin: 0;
    color: #333;
    flex: 1;
}

/* Container for post meta information */
.post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* Author and date styling */
.post-author,
.post-date {
    font-size: 14px;
    color: #555;
}

/* Spacing between author and date */
.post-date {
    margin-top: 5px;
}

input::placeholder {
    font-size: 11px;
}

/* responsive magazines */


@media (max-width: 768px) {
    .editions-grid {
        flex-wrap: wrap;
    }

    .edition-item {
        width: 100%;
        margin: 10px;
    }

    .edition-cover {
        margin: 15px;
    }

    .post-item {
        flex: 1 1 calc(50% - 20px);
    }
}


@media (max-width: 600px) {

    .edition-title {
        font-size: 1.1em;
    }

    .post-item {
        flex: 1 1 100%;
    }

    /* for first page of the edition */
    .mukhpatra-layout {
        flex-direction: column;
    }

    .mukhpatra-layout .column-left,
    .mukhpatra-layout .column-right {
        flex: 0 0 100%;
    }

    /* for site note*/
    .site_note {
    	display:none;
        margin: 40px 0;
        font-size: 16px;
    }

    .home_page_heading {
        font-size: 35px;
        margin: 20px 0;
    }

    /* Optional: Adjust gap between columns on smaller screens */
    .mukhpatra-layout {
        gap: 10px;
    }

    .back-link {
        padding: 0 10px;
    }

}


.page-header {
    display: none;
}

.edition-item a:focus {
    outline: solid 0px !important;
}

.single-article .author-image {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.single-article .author-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.mukhpatra-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.mukhpatra-layout .column-left {
    flex: 0 0 25%;
}

.mukhpatra-layout .column-right {
    flex: 0 0 75%;
}

.mahasabha-content,
.patrika-content {
    margin-bottom: 20px;
}

.mahasabha_title {
    font-size: 20px;
    font-weight: bold;
}

/* css for first page header */

.mukhpatra-header {
    background-color: #4fb7dc;
    border: 2px solid black;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    max-width: 110px;
    height: auto;
}

.first_headings {
    width: 80%;
    text-align: center;
}

.sub-heading-top,
.main-heading,
.sub-heading-bottom {
    margin: 0;
    padding: 0;
}

.main-heading {
    font-size: 25px;
}

.sub-heading-top {
    font-size: 1.6em;
    color: #333;
}

.main-heading {
    font-size: 4em;
    font-weight: bold;
    color: #000;
}

.sub-heading-bottom {
    font-size: 1.6em;
    color: #333;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-logo {
        margin-bottom: 10px;
    }

    .headings {
        text-align: center;
    }

    /* resposive author info AND TITLE OG THE ARTICLE   */
    .post-details {
        flex-direction: column;
    }

    .post-meta {
        width: 100%;
        justify-content: right;
    }
}

/* css for single metrimonial page  */
.matrimonial-single-container {
    padding: 20px;
    text-align: center;
}

/* Wrapper for the image */
.matrimonial-image-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.metrimonial_data{
    margin-bottom:10px;
}

/* Image Styling */
.matrimonial-data-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .matrimonial-single-container {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .matrimonial-single-container {
        padding: 10px;
    }
}


/* for metrimonial archive page */

.matrimonial-archive-container {
    padding: 20px;
    background-color: #f9f9f9;
}

/* Flex Container */
.matrimonial-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Flex Item */
.matrimonial-flex-item {
    flex: 1 1 32%;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    /* Ensure items maintain 33% width */
    min-width: 300px;
}

/* Labels */
.matrimonial-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 20px;
}

.matrimonial-info {
    font-size: 18px;
}

/* Title and Content */
.matrimonial-title,
.matrimonial-age,
.matrimonial-occupation,
.matrimonial-address {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Know More Button */
.matrimonial-know-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 16px;
    color: #fff;
    background-color: #59C0E3;
    ;
    text-decoration: none;
    border-radius: 4px;
}

.matrimonial-know-more:hover {
    background-color: #005177;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .matrimonial-flex-item {
        flex: 1 1 50%;
    }
}

@media screen and (max-width: 480px) {
    .matrimonial-flex-item {
        flex: 1 1 100%;
    }
}


/* css formatrimonial page search bar */
/* Container for heading and search form */
.matrimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#gender-select {
    height: 2.9em !important;
}

/* Heading styles */
.metrimonial_page_heading {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Search form styles */
.matrimonial-search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.matrimonial-search-form input[type="text"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    width: 250px;
    box-sizing: border-box;
}

.matrimonial-search-form button {
    padding: 10px;
    background-color: #59C0E3;
    ;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    height: 100%;
    box-sizing: border-box;
}

.matrimonial-search-form button:hover {
    background-color: #005f8d;
}

/* Responsive styles */
@media(max-width:992px) {
    .matrimonial-header {
        flex-direction: column;
    
    }
    .filter_wrapper{
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .matrimonial-header {
        flex-direction: column;
        /* align-items: flex-start; */
        justify-content: center;
    }

    .matrimonial-search-form {
        width: 100%;
        /* margin-top: 10px; */
    }

    .matrimonial-search-form input[type="text"] {
        width: calc(100% - 100px);
    }
    .filter_wrapper{
        flex-direction: column;
    }
}

/* header section design */
.header_main {
    background-color: #59C0E3;
    margin-bottom: 20px;
}

.header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    margin: 10px;


}

.image {
    width: 20%;
}

.logo {
    max-width: 100px;
    max-height: 100px;

}

.text-container {
    text-align: center;
    width: 80%;
}

.text-container h1 {
    margin: 0;
    font-size: 4.5rem;
    font-weight: bold;
}

.text-container h2 {
    margin: 5px 0;
    font-size: 1.8rem;
    color: #3c3a3a;

}

.text-container p {
    margin: 0;
    color: #4a4848;
    font-size: 1.2rem;

}

@media screen and (max-width: 784px) {
    .header {

        text-align: center;
        padding: 10px 0px 5px;
    }

    .logo {
        margin: 0px 10px 10px 0px;
        max-width: 80px;
        max-height: 80px;
    }

    .text-container {
        margin: 0;
    }

    .text-container h1 {
        font-size: 1.8rem;
    }

    .text-container h2 {
        font-size: 1.5rem;
    }

    .text-container p {
        font-size: 1.2rem;
    }
}

/* add new article form */
.add-article-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-article-form h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.add-article-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.add-article-form input[type="text"],
.add-article-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.add-article-form input[type="submit"] {
    background-color: #59C0E3;
    ;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.add-article-form input[type="submit"]:hover {
    background-color: #005177;
}

.acf-field {
    margin-bottom: 20px;
}

/* css for article list page */

.article-list .container {
    margin: 0 auto;
    padding: 20px;
}

/* Heading Styling */
.article-list h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Table Styling */
.table.articles-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.table.articles-table th,
.table.articles-table td {
    padding: 15px 20px;
    text-align: left;
}

.table.articles-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
}

.table.articles-table td {
    border-bottom: 1px solid #eee;
    color: #555;
}

/* Table Row Hover Effect */
.table.articles-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Edit Button Styling */
.edit-button {
    display: inline-block;
    background-color: #59C0E3;
    ;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.edit-button:hover {
    background-color: #005b7f;
}

/* Responsive Design */
@media (max-width: 768px) {

    .table.articles-table th,
    .table.articles-table td {
        padding: 10px;
    }

    .article-list h2 {
        font-size: 24px;
    }
}

/* Alternate Row Colors */
.table.articles-table tbody tr:nth-child(odd) {
    background-color: #f7f7f7;
}


/* add new article page css */
.add-article-form {
    max-width: 100%;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-article-form h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.add-article-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.add-article-form input[type="text"],
.add-article-form input[type="number"],
.add-article-form textarea,
.add-article-form select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #fff;
}

.add-article-form input[type="submit"] {
    background-color: #59C0E3;
    ;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.add-article-form input[type="submit"]:hover {
    background-color: #005177;
}

.acf-field {
    margin-bottom: 20px;
}

.acf-field.hidden {
    display: none;
}

/* for input type number */
form input[type=number] {
    max-width: 300px !important;

}

/*  Pending Articles List css */
.pending-articles-list {
    max-width: 100%;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pending-articles-list table {
    width: 100%;
    border-collapse: collapse;
}

.pending-articles-list th,
.pending-articles-list td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.pending-articles-list th {
    background-color: #0073aa;
    color: #fff;
}

.pending-articles-list tr:nth-child(even) {
    background-color: #f2f2f2;
}

.pending-articles-list button {
    background-color: #59C0E3;
    ;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.pending-articles-list button:hover {
    background-color: #005177;
}

.view-button {
    background-color: #59C0E3;
    ;
    color: #ffffff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 10px;
    display: inline-block;
}

.view-button:hover {
    background-color: #005177;
}

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

.edition_title {
    font-size: 23px;
    font-weight: 600;
}

.button-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px;
}

.publish-article-form {
    margin: 20px auto !important;
}

.publish-input-field {
    margin: 10px 0;
}

.button-section .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #59C0E3;
    ;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
}

.button-section .btn:hover {
    background-color: #005b7f;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .button-section {
        flex-direction: column;
        align-items: center;
    }

    .button-section .btn {
        width: 100%;
    }
}
