
#rss-manuals-interface body {
    background-color: #E8E8E8 !important; 
}

#rss-manuals-interface footer,
#rss-manuals-interface #footer,
#rss-manuals-interface .site-footer,
#rss-manuals-interface #colophon {
    background-color: #E8E8E8 !important; /* Footer background */
    color: #ffffff !important;            /* Footer text color ONLY */
}


/* Apply box-sizing to all elements within this interface for consistent layout */
#rss-manuals-interface *,
#rss-manuals-interface *::before,
#rss-manuals-interface *::after {
  box-sizing: border-box;
}

#rss-manuals-interface {
  font-family: 'Arial', sans-serif;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 40px 20px;
  min-height: 90vh;
  
  background: linear-gradient(
    to bottom,
    #c9c9c9 0%,
    #f2f2f2 100%
  );
}

#rss-manuals-interface h1 {
    font-size: 5rem;
    font-weight: 100;
    color: white;
    text-align: center;
}

#rss-manuals-interface .resource-buttons {
  display: flex;
  justify-content: space-between; 
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

/* === NEW BUTTON STYLES === */
#rss-manuals-interface .resource-button {
  background: #ffffff; /* White background */
  color: #555e68; /* Dark grey text color for the main title */
  border: 1px solid #e0e0e0; /* Subtle border */
  border-radius: 12px; /* Rounded corners like example */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  flex: 1; /* Allows buttons to grow */
  min-width: 200px; /* Minimum width for each button before wrapping */
  min-height: 160px; /* Adjusted height to better match visual proportion and content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px; /* Main text size (e.g., "User Manuals") */
  font-weight: 600; /* Bold main text */
  text-align: center;
  padding: 20px 15px; /* Generous padding */
  box-shadow: 0 4px 8px rgba(0,0,0,0.06); /* Softer shadow */
}

#rss-manuals-interface .resource-button:hover,
#rss-manuals-interface .resource-button:focus {
  transform: translateY(-3px); 
  box-shadow: 0 6px 12px rgba(0,0,0,0.09); /* Slightly more pronounced shadow on hover */
  border-color: #cccccc; 
  outline: none;
}

#rss-manuals-interface .resource-button svg {
  width: 50px;  /* Adjusted size */
  height: 50px; /* Adjusted size */
  margin-bottom: 15px; /* Space between icon and text */
  fill: #c0392b; /* Red icon color */
  transition: transform 0.2s ease-in-out;
}

#rss-manuals-interface .resource-button:hover svg,
#rss-manuals-interface .resource-button:focus svg {
  transform: scale(1.05); /* Subtle scale on hover */
}
/* === END NEW BUTTON STYLES === */


#rss-manuals-interface .popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#rss-manuals-interface .popup-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 90%;
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(0);
}

#rss-manuals-interface .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

#rss-manuals-interface .popup-title {
  font-size: 28px;
  color: #c0392b; /* Matched to icon red for consistency */
  font-weight: bold;
}

#rss-manuals-interface .popup-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
}

#rss-manuals-interface .popup-close:hover,
#rss-manuals-interface .popup-close:focus {
  color: #c0392b; /* Matched to icon red */
  outline: none;
}

#rss-manuals-interface .search-box {
  width: 100%;
  padding: 12px 15px; /* Increased padding */
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px; /* More rounded */
  font-size: 16px;
}

#rss-manuals-interface .resource-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 12px; /* Slightly reduced margin */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04); /* Softer shadow */
  position: relative;
  overflow: hidden;
  border: 1px solid transparent; /* for focus */
}

#rss-manuals-interface .resource-item:hover {
  background-color: #f0f3f5; /* Softer hover color */
  transform: translateX(3px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}
#rss-manuals-interface .resource-item:focus {
  outline: none;
  border-color: #c0392b; /* Red focus outline */
  background-color: #f0f3f5;
}


#rss-manuals-interface .resource-item::before {
  content: '\1F4C4';
  margin-right: 15px;
  font-size: 24px;
  flex-shrink: 0;
  color: #c0392b; /* Icon color for resource items */
}

#rss-manuals-interface .resource-item.video::before {
  content: '\1F3A5';
}

#rss-manuals-interface .resource-item-name {
  flex-grow: 1;
  margin-right: 80px; /* Space for the action button, adjust if needed */
  color: #333;
  font-weight: 500;
}

#rss-manuals-interface .resource-item-action {
  background: #c0392b; /* Matched to icon red */
  color: white;
  padding: 6px 12px; /* Adjusted padding */
  border-radius: 6px;
  font-size: 13px; /* Slightly smaller */
  font-weight: 500;
  position: absolute;
  right: 15px; /* Adjusted position */
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  text-align: center;
}

#rss-manuals-interface .resource-item:hover .resource-item-action,
#rss-manuals-interface .resource-item:focus .resource-item-action,
#rss-manuals-interface .resource-item:focus-within .resource-item-action { /* Show on focus of item */
  opacity: 1;
  visibility: visible;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  #rss-manuals-interface .resource-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for stacked view */
  }
  
  #rss-manuals-interface .resource-button {
    width: 100%; /* Takes full width when stacked */
    min-width: unset; /* Remove min-width for stacked view */
    margin-bottom: 0; /* Remove default margin if any was added */
    min-height: 140px; /* Adjust height for mobile if needed */
  }

  #rss-manuals-interface .popup-content {
    width: 95%; 
    max-height: 85vh;
    padding: 20px;
  }
  #rss-manuals-interface .popup-title {
    font-size: 24px;
  }
  #rss-manuals-interface .resource-item-name {
    margin-right: 70px; /* Adjust for smaller action button if needed */
  }
  #rss-manuals-interface .resource-item-action {
    padding: 5px 10px;
    font-size: 12px;
    right: 10px;
  }
}
@media (max-width: 480px) {
    #rss-manuals-interface .resource-button {
        font-size: 16px;
        min-height: 130px;
    }
    #rss-manuals-interface .resource-button svg {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    #rss-manuals-interface .popup-title {
        font-size: 20px;
    }
     #rss-manuals-interface .resource-item {
        padding: 12px 15px;
    }
    #rss-manuals-interface .resource-item::before {
        font-size: 20px;
        margin-right: 10px;
    }
}

a.clickable-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  padding: 40px 60px; /* more top/bottom and side padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  max-width: 600px;
  margin: 20px auto; /* center horizontally */
}
a.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
a.clickable-card .card-content {
  display: flex;
  align-items: center;
}
a.clickable-card .icon {
  margin-right: 20px;
  display: flex;
  align-items: center;
}
a.clickable-card .icon svg {
  width: 80px;
  height: 80px;
  fill: #c0392b; /* burgundy */
}
a.clickable-card .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
a.clickable-card .text h3 {
  margin: 0 0 5px 0;
  font-size: 2.5rem;
  color: #555; /* grey */
  border: none;
}
a.clickable-card .text p {
  margin: 0;
  font-size: 1rem;
  color: #777;
}