@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

.post-content-wrapper{  max-width: calc(1280px + 40px); padding-left: 20px !important;padding-right: 20px !important; margin: 0 auto; }


:root {
    /* COLORS */
  --white: #ffffff;
  --black: #000000;
  --orange: #F69322;
  --gray: #C7C7C7;
  --light-gray:#F8F9FA;
  --blue:#0E73BA;
  --green: #056A37;
  --red : #C0282D;

  --fontNato : 'Noto Sans', sans-serif;
  --f55:55px;
  --f45:45px;
  --f24:24px;
  --f20:20px;
  --f18:18px;
  --f36:36px;
  --f22:22px;

  --sp100:100px;
  --sp90:90px;
  --sp80: 80px;
  --sp70: 70px;
  --sp60: 60px;
  --sp50: 50px;
  --sp40: 40px;
 
  --gap100: 100px;
  --gap70: 70px;
  --gap60: 60px;
  --gap50: 50px;
  --gap40: 40px;
  --gap30: 30px;
  --gap20: 20px;

}


/* ==========================================================================
   Resource Library CSS
   ========================================================================== */

/* Wrapper - Sidebar + Content Layout */
.resource-library-wrapper { display: flex; flex-wrap: wrap; gap: var(--gap70);padding: var(--sp70) 0 var(--sp100) 0; width: 100%; font-family: var(--fontNato);}
.resource-library-sidebar {max-width: 350px;flex: 0 0 100%;background-color: var(--light-gray);padding: 0px;}
.resource-filters{display: flex;flex-direction: column;gap: 10px;max-height: calc(100vh);overflow-y: auto;padding: 20px;}
.filters-title { font-size: var(--f24); font-family: var(--fontNato); font-weight: 700; letter-spacing: 0.06em; color: var(--black); margin: 0 0 10px 0;position: relative;}
.filter-search { margin-bottom: 10px; }
.filter-search input {width: 100%;padding: 11px 40px 11px 15px;border: 1px solid var(--gray);border-radius: 0px;font-size: 16px;color:var(--black);background-color: var(--white);background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18.414" height="18.413" viewBox="0 0 18.414 18.413"><g id="Group_12" data-name="Group 12" transform="translate(-1119 -1224.919)"><ellipse id="Ellipse_1" data-name="Ellipse 1" cx="7.111" cy="7.11" rx="7.111" ry="7.11" transform="translate(1120 1225.919)" fill="none" stroke="%23000" stroke-linecap="round" stroke-width="2"/><path id="Path_4" data-name="Path 4" d="M3065.007,1152.09l3.556,3.556" transform="translate(-1932.562 86.272)" fill="none" stroke="%23000" stroke-linecap="round" stroke-width="2"/></g></svg>');background-repeat: no-repeat;background-position: calc(100% - 15px) 50%;transition: border-color 0.2s ease;}

.filter-search input:focus { outline: none; border-color: var(--orange); box-shadow: none; }
.filter-search input::placeholder { color: rgba(0, 0, 0, 0.4); }

/* Filter Groups */
.filter-group { padding: 10px 0; display: flex; flex-direction: column; gap: 14px;}
.filter-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap:15px;}
.filter-header h4 { font-size: var(--f18); font-family: var(--fontNato); font-weight: 600; color: var(--black); margin: 0; }
.filter-toggle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;color: var(--black); transition: color 0.2s ease; }
.filter-group.active .filter-toggle .stroke-horizontal { opacity: 0; }

/* Filter Options */
/* .filter-group:not(.active) .filter-options { display: none;}  */

.filter-option { cursor: pointer; position: relative;display: block;transition: color 0.2s ease; padding-left: 30px;text-transform: capitalize;}
.filter-option:not(:last-child) { margin-bottom: 10px; }
.filter-option input[type="checkbox"], .filter-option input[type="radio"] { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; position: absolute; left: 0; opacity: 0; }

.filter-option span { font-size: 16px; font-weight: 500; line-height: 1.375 !important; color: rgba(0, 0, 0, 0.5) }
.filter-option span:before{content:""; position:absolute; left:0px; top:2px; width:18px; height:18px; background:var(--white); border:1px solid var(--gray); border-radius:0px;}
.filter-option span:after{content:""; position:absolute; left:3px; top:5px; width:12px; height:12px; background:var(--orange); opacity: 0; transition: opacity 0.2s ease;}
.filter-option:has(input[type="radio"]) span:before, .filter-option:has(input[type="radio"]) span:after {border-radius: 50%;}
.filter-option:has(input[type="checkbox"]:checked) span:after, .filter-option:has(input[type="radio"]:checked) span:after  { opacity: 1; }
.filter-option:has(input[type="checkbox"]:checked) span, .filter-option:has(input[type="radio"]:checked) span{ color: var(--black); }

.resource-library-content { flex: 1; min-width: 200px;position: relative; }

/* Header - Count, Date Filter, Sort */
.resource-library-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--gap20); padding-bottom: var(--sp40); }
.resource-count { font-size: var(--f18); font-weight: 700; color: var(--black); }
.resource-header-controls { display: flex; gap: 15px; align-items: center; }
.date-filter select, .sort-filter select { padding: 10px 35px 10px 15px; border: 1px solid var(--gray); border-radius: 0px; font-size: 16px; color: rgba(0, 0, 0, 0.7); background-color: var(--white); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 16px; background-position: calc(100% - 15px) 50%; appearance: none; cursor: pointer; min-width: 160px; transition: border-color 0.2s ease; }

.date-filter select:focus,
.sort-filter select:focus {
    outline: none;
    /* border-color: #3b82f6; */
}

/* ==========================================================================
   Resource Grid
   ========================================================================== */
.resource-library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap40); transition: opacity 0.2s ease; }
.resource-library-grid.loading { opacity: 0.5; pointer-events: none; }
.resource-card {display: flex; flex-direction: column; width: 100%;}

/* Card Image */
.resource-card-image { position: relative; padding-top: 73.41%; overflow: hidden; background: var(--white); border: 1px solid var(--gray); }
.resource-card-image a { position: absolute; left:0; top:0; display: block; width: 100%; height: 100%; }
.resource-card-image img { position: absolute; left: 0; top:0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.resource-card:hover .resource-card-image img { transform: scale(1.07); }
.resource-placeholder-image { width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); display: flex; align-items: center; justify-content: center; }
.resource-placeholder-image::after { content: ''; width: 50px; height: 50px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E") no-repeat center; opacity: 0.5; }
/* Card Content */
.resource-card-content { padding: 20px 0;display: flex; flex-direction: column;flex: 1 1 0;}
.resource-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.resource-tag { display: inline-block; padding: 4px 10px; font-size: 14px; font-weight: 500; line-height: 1.145; border-radius: 6px; }
.tag-stage { background: color-mix(in srgb, var(--blue) 5%, transparent); color: var(--blue); }
.tag-audience { background: color-mix(in srgb, var(--green) 5%, transparent); color: var(--green); }
.tag-media-type { background: color-mix(in srgb, var(--orange) 5%, transparent); color: var(--orange); }

/* Card Title */
.resource-card-title { font-size: var(--f20); font-weight: 600; line-height: 1.4; color: var(--black); margin: 0 0 15px 0; }

/* Card Link */
.resource-card-link { display: inline-flex; align-items: center; gap: 10px;margin-top: auto;font-size: var(--f18); font-weight: 700; color: var(--orange); text-decoration: none; text-transform: uppercase; letter-spacing: 0.15em; transition: color 0.2s ease, gap 0.2s ease;text-decoration: none; }
.resource-card-link:hover { color: var(--red); }

.pagination-wrapper{display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: var(--sp80) 0 0; padding: 0; justify-content: center;}

/* ==========================================================================
   No Results
   ========================================================================== */
.no-resources-found { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #f9fafb; border-radius: 10px; }
.no-resources-found p { font-size: 16px; color: #6b7280; margin: 0; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.resource-library-pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; justify-content: center; }
.pagination-link {     width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray); text-decoration: none; color: var(--black); transition: all ease .3s; }
.pagination-link:hover, .pagination-link.pagination-current { background-color: var(--orange); color: var(--white); border-color: var(--orange); }

.pagination-prev, .pagination-next { border-color: var(--orange); color: var(--orange); }
.pagination-ellipsis { padding: 0; color: var(--black); align-self: flex-end; }
.resource-library-sidebar .filterToggle{display: none; color:var(--white);}

/* ==========================================================================
   Loading Indicator
   ========================================================================== */
.resource-library-loading { position: fixed; top: 0; left: 0; background: rgb(0 0 0 / 55%); padding: 20px 40px;  z-index: 1000; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.resource-library-loading span { font-size: 14px; font-weight: 600; color: var(--white); }
.resource-library-loading::before { content: ''; display: inline-block; width: 20px; height: 20px; margin-right: 12px; border: 2px solid var(--gray); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
a.pagination-link,.resource-card-link{text-decoration: none !important;}
.resource-card__desc { display: -webkit-box; -webkit-line-clamp: 5; /* number of lines */ -webkit-box-orient: vertical; overflow: hidden; }

.resourcePublishDateandLengthWrap { display: flex; gap: 5px;  font-weight: 600; flex-wrap: wrap; justify-content: space-between; margin-bottom: 15px; }
p.resource-card-comment-title { margin-bottom: 5px; }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1200px) {
    :root {
        --f55:52px;
    --f45:42px;
    --f24:22px;
    --f22:20px;

    --sp100:80px;
    --sp90:75px;
    --sp80: 70px;
    --sp70: 65px;
    --sp60: 55px;
    --sp50: 45px;
    --sp40: 35px;
     --f36:32px;
    --gap100: 80px;
    --gap70: 60px;
    --gap60: 50px;
    --gap50: 40px;
    --gap40: 30px;

    }

    .resource-library-grid { grid-template-columns: repeat(2, 1fr);}

}

@media (max-width: 991px) {
    :root {
         --f55:45px;
    --f45:40px;

    --sp100:70px;
    --sp90:65px;
    --sp80: 60px;
    --sp70: 55px;
    --sp60: 50px;
    --sp50: 40px;
    --sp40: 30px;
    --f36:30px;
     --f22:18px
    
    --gap100: 70px;
    --gap70: 50px;
    --gap60: 40px;
    --gap50: 35px;

    }

    .resource-library-sidebar .filterToggle {display:block; border-radius: 0 30px 30px 0;width: 36px;height: 36px;padding: 5px;display: block;background-color: var(--orange);position: absolute;right: -36px;top: 135px;z-index: 99;}
    .resource-library-sidebar {width: 300px; position: fixed; left: -300px; top: 0; height: 100%; z-index: 1010; transition: all 0.3s ease-in-out;}
    .resource-library-sidebar:has(.filterToggle.active){left:0;}
    body:has(.filterToggle.active):before{content: ""; inset: 0; position: fixed; z-index: 1009; background-color: rgba(0, 0, 0, 0.5);backdrop-filter: blur(6px); }
}

@media (max-width: 767px) {
    :root {
         --f55:40px;
    --f45:38px;
    --f18:16px;
--f36:25px;
    --sp100:60px;
    --sp90:55px;
    --sp80: 50px;
    --sp70: 45px;
    --sp60: 40px;
    --sp50: 35px;
    --sp40: 30px;
     --f22:16px;
    
    --gap100: 50px;
    --gap70: 40px;
    --gap60: 35px;
    --gap50: 30px;

    }


    .resource-library-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .resource-header-controls {
        width: 100%;
        flex-direction: column;
    }

    .date-filter,
    .sort-filter {
        width: 100%;
    }

    .date-filter select,
    .sort-filter select {
        width: 100%;
    }

}

/* Mobile */
@media (max-width: 576px) {
    .resource-library-grid { grid-template-columns: 1fr; }
    .pagination-link { width: 36px; height: 36px; }
}

/* ==========================================================================
   Filter Active States (Visual Indicators)
   ========================================================================== */
/* .filter-option input[type="checkbox"]:checked + span,
.filter-option input[type="radio"]:checked + span {
    color: #1f2937;
} */

/* Active filter count badge (optional enhancement) */
.filter-header .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    border-radius: 10px;
    margin-left: 8px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .resource-library-sidebar,
    .resource-library-header,
    .resource-library-pagination,
    .resource-library-loading {
        display: none;
    }

    .resource-library-wrapper {
        display: block;
    }

    .resource-library-grid {
        display: block;
    }

    .resource-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}