/* ==============================
   Media Library (Magazine) Archive
   ============================== */

/* Reset container width (Astra fix) */
.post-type-archive-media_librarys .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Main Wrapper */
.magazine-archive-main {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}

/* ------------------------------
   Hero Section (Full Width BG)
   ------------------------------ */
.magazine-archive-hero {
    width: 100%;
    background: #f0f0f0;  /* light gray background */
    padding: 60px 20px;
    margin-top: 120px;
}

.magazine-archive-hero .inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.magazine-archive-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}
/* Full width line under title */
.magazine-archive-line {
    width: 100%;
    height: 1px;
    background: #333; /* line color */
    margin: 15px 0;   /* spacing above & below */
}


.magazine-archive-subtitle {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

/* ------------------------------
   Filter Form
   ------------------------------ */
.magazine-filter-wrapper {
    margin: 40px auto;
    text-align: center;
}

.magazine-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Search */
.magazine-filter-form .search-group {
    display: flex;
    gap: 10px;
}
.magazine-filter-form .search-group input {
    padding: 10px;
    width: 280px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.magazine-filter-form .search-group button {
    padding: 10px 20px;
    background: #007A09;
    color: #fff;
    border: none;
    border-radius: -2px 0 0 0;
    cursor: pointer;
}
.magazine-filter-form .search-group button:hover {
    background: #005f08;
}

/* Dropdown */
.magazine-filter-form .dropdown-row select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Reset link */
.magazine-filter-form .reset-group {
    margin-top: -5px;
}
.magazine-filter-form .reset-link {
    color: #007A09;
    text-decoration: underline;
    font-size: 14px;
}

/* ------------------------------
   Grid
   ------------------------------ */
.magazine-grid-wrapper {
    padding: 50px 20px;
}
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.magazine-card {
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    background: #fff;
    overflow: hidden;
    color: #0000
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background:#ECECEC;
}
.magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Thumbnail */
.magazine-thumb {
    position: relative;
}
.magazine-thumb img {
    width: 100%;
    height: 310px; /* bigger image */
    object-fit: cover;
    border-radius: 15px;
}

/* "View Magazine" label */
.magazine-thumb .view-label {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #007A09;
    color: #fff;
    font-size: 14px;
    padding: 0px 11px;
    font-weight: 600;
    border-radius: 0px 15px 0px 0px; 
    /* top-left | top-right | bottom-right | bottom-left */
    font-family: Helvetica;
}


/* Title */
.magazine-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 10px 8px;
    color: #000;
    line-height: 1.4;
    font-family: Helvetica;
}

.magazine-title:hover {
    color: #005F08;
}

.shortcode-grid .magazine-title {
  all: unset;
  display: block !important;
  font-size: 20px !important;
  font-weight: bold !important;
  margin: 12px 12px !important;
  color: #333 !important;
  font-family: Helvetica;
}


/* Description */
.magazine-desc {
    font-size: 14px;
    color: #444;
    margin: 0 10px 15px;
    line-height: 1.6;
    text-align: justify;
}

.shortcode-grid  .magazine-desc {
    font-size: 14px;
    color: #444;
    margin: 0 10px 15px;
    line-height: 1.6;
    text-align: justify;
    font-family: Helvetica;
}



/* Download Button */
.download-btn {
    display: block;
    margin: 0 10px 15px;
    padding: 8px 16px;
    background: #007A09;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    max-width:220px;
    text-align: center;
    border-radius: 28px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: Helvetica;
}

.download-btn:hover {
    background: #005f08;
    color :  #fff;
}

/* ------------------------------
   Pagination
   ------------------------------ */
.magazine-pagination {
    margin-top: 40px;
    text-align: center;
}

/* No results */
.no-magazine {
    text-align: center;
    padding: 50px 0;
    font-size: 16px;
}

/* ------------------------------
   Responsive
   ------------------------------ */
@media(max-width: 992px) {
    .magazine-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 20px;
    }
    .magazine-thumb img {
        height: 220px;
    }
    .magazine-archive-title {
        font-size: 32px;
    }
}

@media(max-width: 600px) {
    .magazine-thumb img {
        height: 200px;
    }
    .magazine-title {
        font-size: 16px;
    }
    .magazine-desc {
        font-size: 13px;
    }
}