/* 
  Theme Name:   GeneratePress Child (DS Helping Forever)
  Theme URI:    https://dshelpingforever.cv/
  Description:  Next-Gen Sarkari Result Style Grid Layout (No Premium Plugins Required)
  Author:       Sunil (Digital Sunil)
  Template:     generatepress
  Version:      2.0.3
*/

/* Global Color Variables */
:root {
  --sr-red: #c90000;
  --sr-red-hover: #a30000;
  --sr-blue: #004488;
  --sr-blue-hover: #002d5a;
  --sr-green: #007a3d;
  --sr-dark: #1a1a1a;
  --sr-bg: #f4f6f9;
  --sr-card-bg: #ffffff;
  --sr-border: #e0e0e0;
  --sr-text: #2c3e50;
  --sr-link: #0808b4;
  --sr-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --sr-radius: 8px;
}

/* Global Box-Sizing Fix for Responsiveness */
*, *:before, *:after {
  box-sizing: border-box;
}

/* Container & Main Layout Fixes */
.ds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

/* Quick Navigation Links Bar (Above Main Grid) */
.ds-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.ds-quick-btn {
  background: var(--sr-card-bg) !important;
  color: var(--sr-blue) !important;
  border: 1px solid var(--sr-blue)!important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ds-quick-btn:hover {
  background: var(--sr-blue) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* 3-Column Modern Grid */
.ds-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .ds-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ds-main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Card Container */
.ds-box {
  background: var(--sr-card-bg);
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header Styling (Variants) */
.ds-header {
  padding: 12px 15px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

.ds-header.red { background: linear-gradient(135deg, var(--sr-red), #e63946); }
.ds-header.blue { background: linear-gradient(135deg, var(--sr-blue), #1d3557); }
.ds-header.green { background: linear-gradient(135deg, var(--sr-green), #2a9d8f); }

/* List Content Styling with Important Rules */
.ds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.ds-list li {
  padding: 10px 14px;
  border-bottom: 1px dashed var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ds-list li:last-child {
  border-bottom: none;
}

/* Box Links Styling with !important */
.ds-list a {
  color: #0808b4 !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-align: start !important;
  line-height: 1.4 !important;
  transition: color 0.15s ease;
  flex-grow: 1;
}

.ds-list a:hover {
  color: var(--sr-red) !important;
  text-decoration: underline !important;
}

/* "View All" Link at the bottom of boxes */
.ds-box > a:last-child,
.ds-view-all {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #004488 !important;
  background: #f9f9f9;
  border-top: 1px solid var(--sr-border);
  text-decoration: none;
  margin-top: auto;
}

.ds-box > a:last-child:hover,
.ds-view-all:hover {
  background: #f1f1f1;
  color: var(--sr-red) !important;
  text-decoration: underline;
}

/* Badges & Blinking Effects */
.badge-new {
  background-color: #ff0055 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  animation: pulse-red 1.2s infinite;
  white-space: nowrap;
}

.badge-updated {
  background-color: #007a3d !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

@keyframes pulse-red {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
.ds-site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  margin-top: 40px;
  border-top: 4px solid #003366;
  padding: 40px 0 20px 0;
  width: 100%;
}

.ds-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.ds-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.ds-footer-col h3 {
  color: #ffcc00;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid #333;
  padding-bottom: 6px;
}

.ds-footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  margin: 0 0 10px 0;
}

.ds-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-footer-links li {
  margin-bottom: 8px;
}

.ds-footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.ds-footer-links a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.ds-footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* ==========================================
   MOBILE TOGGLE & NAVIGATION STYLES
   ========================================== */
.ds-menu-toggle {
  display: none;
  background: #c90000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS (Media Queries)
   ========================================== */
@media (max-width: 992px) {
  .ds-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Mobile padding fixes to reduce extra space on sides */
  .ds-container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .ds-footer-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.site-content, 
  .site-content, 
  .inside-article {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .ds-header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ds-site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .ds-menu-toggle {
    display: flex;
  }

  .ds-nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #002244;
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 4px;
  }

  .ds-nav-menu.active {
    display: flex !important;
  }

  .ds-nav-menu li {
    text-align: center;
    width: 100%;
  }

  .ds-nav-menu li a {
    display: block;
    padding: 10px;
  }

  .ds-footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}