@charset "utf-8";
/* CSS Document */
/* Learning Resources Container */
.learning-resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "boreal", sans-serif;
}

@media (min-width: 1024px){
	.learning-resources-container{
		margin-top:15vh;
		position:relative;
		z-index:5;
	}
}

/* Header styles */
.lp-hero {
  background-image: linear-gradient(rgba(0, 51, 102, 0.65), rgba(0, 51, 102, 0.85)), url('images/1829-convention.jpg');
  background-size: cover;
  background-position: 10% 60%;
  color: #ffffff;
  padding: 4rem 0;
  margin-bottom: 0;
  position: relative;
	width:100vw;
	margin-left:calc(-50vw + 50%);
	box-sizing:border-box;
}

.lp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
	margin:0;
	padding: 0 1rem;
}

.lp-hero h1, 
.lp-hero .lp-lead {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lp-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lp-hero .lp-lead {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.resources-header {
  text-align: center;
  margin-bottom: 30px;
	margin-top:0;
}

.resources-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}


/* ========================================
   Resource Database Styles
   ======================================== */

/* ========================================
   Base Styles & Variables
   ======================================== */

.resources-section {
    margin: 0;
    padding: 120px 0 40px; /* Account for fixed header */
    box-sizing: border-box;
    font-family: "bebas-neue-pro", sans-serif;
}

.resources-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header Section
   ======================================== */

.resources-header-bar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

.resources-header-bar .resources-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resources-title h2 {
    font-size: 1.5rem;
    margin: 0;
    font-family: "bebas-neue-pro", sans-serif;
	color:#fff;
}

/* Search Bar */
.resources-search-bar {
    display: flex;
    width: 100%;
}

.resources-search-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    font-family: "montserrat", sans-serif;
}

.resources-search-bar button {
    background-color: #da9434;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.mobile-filter-toggle {
    background-color: #da9434;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    font-family: "montserrat", sans-serif;
}

/*  Main Content Layout */
.main-content{
	margin-top:0;
	padding:0;
}

.resources-section{
	margin-top:0;
	padding-top:0;
}

.resources-main {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

/* Filters Panel */
.filters {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default on mobile */
}

.filters.active {
    display: block;
}

.filter-section {
    margin-bottom: 20px;
	max-height: 300px;
	overflow-y: auto;
}

.filter-section h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
    font-family: "montserrat", sans-serif;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none;
    overflow-y: visible;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: "montserrat", sans-serif;
}

/* Grade Category Filters */
.grade-category {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: 500;
}

.category-label:hover {
    background-color: #e9ecef;
}

.expand-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.expand-toggle:hover {
    color: #495057;
}

.expand-toggle.expanded {
    transform: rotate(180deg);
}

.sub-filters {
    display: none;
    padding: 8px 12px 12px 12px;
    background-color: white;
    border-top: 1px solid #e0e0e0;
	position:relative;
	z-index:10;
}

.sub-filters.expanded {
    display: block;
	animation: expandDown 0.3s ease-out;
}
	
@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding-top: 8px;
        padding-bottom: 12px;
    }
}	

.sub-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    margin-left: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.sub-filters input[type="checkbox"] {
    margin: 0;
}

/* Category Checkbox Styling */
.category-checkbox {
    margin-right: 8px;
}

.category-checkbox:indeterminate {
    background-color: #007bff;
    border-color: #007bff;
}

.category-checkbox:indeterminate::after {
    content: '';
    display: block;
    width: 8px;
    height: 2px;
    background-color: white;
    margin: 3px auto;
}

.clear-filters-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-family: "montserrat", sans-serif;
}

/* Resources List Section */

.resources-container {
    flex: 1;
	width:100%;
}

.resources-list-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.resources-list-header h2 {
    font-family: "bebas-neue-pro", sans-serif;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: "montserrat", sans-serif;
}

/* Resource Cards */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    animation: fadeIn 0.5s ease-out;
	width:100%;
	margin:0 auto;
}

.resource-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-width:300px;
	display: flex;
	flex-direction:column;
	height:100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Resource Image */
.resource-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
	object-position:center;
    transition: transform 0.5s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

/* File Type Overlays */
.pdf-overlay,
.ppt-overlay,
.doc-overlay,
.xls-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.pdf-overlay i { font-size: 1.1rem; color: #ff5252; }
.ppt-overlay i { font-size: 1.1rem; color: #ff9800; }
.doc-overlay i { font-size: 1.1rem; color: #2196f3; }
.xls-overlay i { font-size: 1.1rem; color: #4caf50; }

/* Resource Content */
.resource-content {
    padding: 20px;
	display:flex;
	flex-direction:column;
	flex:1;
}

.resource-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-family: "bebas-neue-pro", sans-serif;
}

.resource-metadata {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* Tags & Labels */

/* Grade Tags */
.resource-grades {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.grade-tag {
    background-color: #e9f5ff;
    color: #0056b3;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Subject Tags */
.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
	margin-bottom:15px;
	margin-top:auto;
}

.subject-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
	flex-shrink:0;
	white-space:nowrap;
}

/* Subject-specific colors */
.subject-tag-american-revolution { background-color: #e0ffff; color: #008888; }
.subject-tag-arts { background-color: #ffe0ff; color: #cc0088; }
.subject-tag-civics { background-color:#C2DAF3; color:#1b365c;}
.subject-tag-civil-war { background-color: #fff0e0; color: #cc6600; }
.subject-tag-coal-mining { background-color: #e0e0e0; color: #333333; }
.subject-tag-culture { background-color: #f0e0ff; color: #8800cc; }
.subject-tag-economics { background-color: #e0ffe0; color: #008800; }
.subject-tag-exploration { background-color: #DAFBF1 ;color:#21CBA8;}
.subject-tag-french-and-indian-war { background-color:#EDDCD7; color:#946454;}
.subject-tag-frontier-life { background-color: #e0f0ff; color: #0066cc; }
.subject-tag-geography { background-color: #D2EDD5; color: #256736;}
.subject-tag-government { background-color: #e0e0ff; color: #0000cc; }
.subject-tag-great-depression { background-color:#E2EFF5; color: #415874 ;}
.subject-tag-history { background-color: #f0f0e0; color: #707000; }
.subject-tag-immigration { background-color:#F4E0F8 ; color: #613466;}
.subject-tag-industry { background-color: #D1D1D1; color: #353434; }
.subject-tag-medicine { background-color: #F0C8C8 ; color: #BD1C1E;}
.subject-tag-natural-resources { background-color: #D5E7C9; color: #2A3B24 ;}
.subject-tag-new-deal { background-color: #ECE2F3; color: #7F568A;}
.subject-tag-notable-people { background-color: #ECDDC7; color: #AD7100;}
.subject-tag-science { background-color: #E3DAF0; color: #8B008F;}
.subject-tag-statehood { background-color: #E4F7FF; color: #2373B4;}
.subject-tag-transportation { background-color: #FFF7E1; color: #E05300;}
.subject-tag-wwii { background-color: #EAE6FB; color: #221878;}

.subject-tag-powerpoint {background-color: #FFC2AE; color:#bd3718}
.subject-tag-graphic-organizer { background-color: #EFEBCA; color: #E0AE00;}
.subject-tag-mapping { background-color: #F5ECCE ; color:#DFA600 ;}
.subject-tag-rubric { background-color: #FFE5FC; color:#C700A7 ;}
.subject-tag-vocabulary { background-color: #D1ECCC ; color: #007202;}

/* Resource Type Tag */
.resource-type-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.resource-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1; /* This will expand to fill available space */
    /* Remove any text truncation */
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    display: block;
    max-height: none;
}

/* Resource Footer */
.resource-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
	align-items:center;
	margin-top:auto;
}

.resource-download,
.resource-preview {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-family: "bebas-neue-pro", sans-serif;
	text-transform: uppercase;
}

.resource-preview-frame iframe {
    border: 1px solid var(--navy);
    border-radius: 4px;
}


.resource-download {
    background-color: #0056b3;
    color: white;
    flex-grow: 1;
    justify-content: center;
}

.resource-download:hover {
    background-color: #003d7a;
}

.resource-preview {
    background-color: #f0f0f0;
    color: #333;
}

.resource-preview:hover {
    background-color: #e0e0e0;
}

/* ========================================
   Modal Styles
   ======================================== */

.resources-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.resources-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

.resources-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.resources-close:hover {
    color: #000;
}

.resource-detail h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-family: "contempora-sans-condensed", sans-serif;
}

.resource-preview-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}

.resource-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-full-description {
    margin-bottom: 25px;
}

.resource-full-description h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-family: "bebas-neue-pro", sans-serif;
}

.resource-full-description p {
    color: #666;
    line-height: 1.6;
    font-family: "montserrat", sans-serif;
}

/* ========================================
   Utility Classes
   ======================================== */

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.no-results i {
    margin-bottom: 15px;
    color: #999;
    font-size: 3rem;
}

.no-results h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-family: "bebas-neue-pro", sans-serif;
}

/* Loading Indicator */
.resources-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
    font-family: "montserrat", sans-serif;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Pagination Styles */
#pagination-container {
    margin-top: 40px; /* Add vertical space above pagination */
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e0e0e0; /* Optional: subtle separator line */
}

/* Style pagination buttons/links */
#pagination-container .pagination-btn,
#pagination-container .page-link,
#pagination-container button,
#pagination-container a {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Hover state */
#pagination-container .pagination-btn:hover,
#pagination-container .page-link:hover,
#pagination-container button:hover,
#pagination-container a:hover {
    background-color: #2C3E50;
    border-color: #2C3E50;
    color: #fff;
}

/* Active/current page */
#pagination-container .active,
#pagination-container .current {
    background-color: #DA9434;
    border-color: #DA9434;
    color: white;
}

/* Disabled state */
#pagination-container .disabled,
#pagination-container button:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #pagination-container {
        margin-top: 30px;
        padding: 15px 0;
        gap: 5px;
    }
    
    #pagination-container .pagination-btn,
    #pagination-container .page-link,
    #pagination-container button,
    #pagination-container a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Additional Resources Section */
.additional-resources-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.additional-resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.resource-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
    font-weight: 600;
}

/* Grid layout for PDF links */
.resource-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-link:hover {
    background-color: #f0f8ff;
    border-color: #0066cc;
    color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resource-link i {
    color: #dc3545;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-link:hover i {
    color: #0066cc;
}

/* List layout for additional resources */
.resource-links-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-link-item {
    background-color: white;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-link-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.resource-link-title:hover {
    color: #004499;
    text-decoration: underline;
}

.resource-link-title i {
    font-size: 1rem;
    flex-shrink: 0;
}

.resource-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .additional-resources-section {
        padding: 2rem 0;
    }
    
    .resource-links-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-link {
        padding: 0.75rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

	
	
/* Responsive Design - Mobile First */

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .resource-footer {
        flex-direction: column;
    }
    
    .resource-download, 
    .resource-preview {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet (480px and up) - More space for side-by-side layout */
@media (min-width: 480px) {
    .subject-tags {
        gap: 6px;
        margin-bottom: 8px; /* Updated to match your spacing preference */
    }
    
    .subject-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
        border-radius: 18px;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    /* Header Layout */
    .resources-header-bar .resources-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .resources-title {
        flex: 1;
    }
    
    .resources-search-bar {
        flex: 2;
        margin: 0 15px;
    }
    
    .mobile-filter-toggle {
        width: auto;
    }
    
    /* Main Layout */
    .resources-main {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }
    
    .filters {
        width: 200px;
        display: block;
        position: sticky;
        top: 120px;
        align-self: flex-start;
        flex-shrink: 0;
    }
    
    .resources-container {
        flex: 1;
        min-width: 0;
    }
    
    .resource-card {
        width: 100%;
        min-width: 300px; /* Fixed missing 'px' */
        overflow: hidden;
    }
    
    /* Ensure text content doesn't get cut off */
    .resource-content {
        padding: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .resource-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .resource-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px; /* Updated to match your spacing preference */
    }
    
    .subject-tags {
        gap: 8px;
        margin-bottom: 8px; /* Updated to match your spacing preference */
        justify-content: flex-start;
    }
    
    .subject-tag {
        font-size: 0.85rem;
        padding: 5px 12px;
        border-radius: 20px;
    }
    
    /* Grid Layout */
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Fixed typo */
        gap: 15px;
        width: 100%;
    }
    
    .resources-list-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Modal Responsive */
    .resources-modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 95%;
    }
    
    .resource-detail h2 {
        font-size: 1.5rem;
    }
}

/* Small Desktop (992px and up) */
@media (min-width: 992px) {
    .resources-main {
        gap: 18px;
    }
    
    .filters {
        width: 240px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .resource-card {
        width: 100%;
        min-width: 280px;
        overflow: hidden;
    }
    
    .resource-content {
        padding: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .resource-title {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .resource-description {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 8px; /* Updated to match your spacing preference */
    }
    
    .resource-footer {
        flex-direction: row;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .resources-title h2 {
        font-size: 1.8rem;
    }
    
    .resources-main {
        gap: 20px;
    }
    
    .filters {
        width: 360px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .resource-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .subject-tags {
        gap: 10px;
        margin-bottom: 8px; /* Updated to match your spacing preference */
    }
    
    .subject-tag {
        font-size: 0.9rem;
        padding: 6px 14px;
        border-radius: 22px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .subject-tag:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .resources-modal-content {
        width: 70%;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px; /* Reduced from 40px for better proportions */
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .site-header,
    .filters,
    .resource-actions,
    .mobile-filter-toggle,
    .resources-header-bar {
        display: none;
    }
    
    body {
        background-color: white;
        padding-top: 0;
    }
    
    .resources-section {
        padding-top: 0;
    }
    
    .resources-grid {
        display: block;
    }
    
    .resource-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}