/* ==========================================================================
   BHARANI INTERNATIONAL MODERN SCHOOL (CBSE)
   Mandatory Public Disclosure Stylesheet (disclosure.css)
   Applies to:
   - mandatory-public-disclosure.html
   ========================================================================== */

/* 1. Disclosure Header & Filter Bar */
.doc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.doc-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.doc-section-title-wrap h3 {
  margin: 0;
  color: var(--color-brown-dark, #1C0F07);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.doc-count-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.08) 100%);
  color: var(--color-gold-deep, #D97706);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc-search-box {
  position: relative;
  min-width: 280px;
  max-width: 380px;
  flex: 1;
}

.doc-search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-main, sans-serif);
  font-size: 0.9375rem;
  color: var(--color-text-dark, #1C0F07);
  background: #FFFDF9;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(28, 15, 7, 0.03);
}

.doc-search-box input:focus {
  border-color: var(--color-gold, #F59E0B);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: #FFFFFF;
}

.doc-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #92755D;
  pointer-events: none;
}

/* 2. Statutory Document Download Cards */
.doc-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem 0;
}

.doc-card {
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #E6DFD5;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(28, 15, 7, 0.03);
  cursor: pointer;
}

.doc-card:hover {
  border-color: var(--color-gold, #F59E0B);
  background: #FFFDF9;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(28, 15, 7, 0.08);
}

.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FEF3E2;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-gold-deep, #D97706);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.doc-card:hover .doc-card-icon {
  background: #1C0F07;
  color: #FBBF24;
  border-color: #1C0F07;
}

.doc-card-icon svg {
  width: 22px;
  height: 22px;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-card h4,
.doc-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #1C0F07;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.doc-card:hover .doc-title {
  color: var(--color-gold-deep, #D97706);
}

.doc-type-label {
  display: block;
  font-size: 0.775rem;
  color: #8C786A;
  margin-top: 0.25rem;
  font-weight: 500;
}

.doc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  background: #FAF7F2;
  border: 1px solid #E6DFD5;
  color: #2B170B;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.doc-action-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-action-btn {
  background: var(--color-gold, #F59E0B);
  color: #FFFFFF;
  border-color: var(--color-gold, #F59E0B);
}

.doc-card:hover .doc-action-btn svg {
  transform: translate(2px, -2px);
}

.no-docs-message {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #FFFDF9;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  color: #7B6858;
}

.no-docs-message p {
  font-size: 1.05rem;
  margin: 0.5rem 0 0 0;
}

/* 3. Statutory CBSE Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(28, 15, 7, 0.05);
  margin: 1.75rem 0 2rem 0;
  background: #FFFFFF;
}

.table-data {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.table-data thead th {
  background: linear-gradient(135deg, #2B170B 0%, #1C0F07 100%);
  color: var(--color-gold-bright);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84375rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 2px solid var(--color-gold);
  white-space: nowrap;
}

.table-data tbody tr {
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  transition: background-color var(--transition-fast);
}

.table-data tbody tr:nth-child(even) {
  background-color: #FFFDF8;
}

.table-data tbody tr:hover {
  background-color: rgba(254, 243, 199, 0.4);
}

.table-data td {
  padding: 1.05rem 1.4rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  vertical-align: top;
}

.table-data td:first-child {
  font-weight: 700;
  color: var(--color-brown-dark);
}

/* 4. Responsive Rules */
@media (max-width: 768px) {
  .doc-section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-search-box {
    max-width: 100%;
    min-width: 100%;
  }
  .doc-download-grid {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 1.1rem 1.15rem;
    gap: 0.85rem;
  }
  .doc-card-icon {
    width: 42px;
    height: 42px;
  }
}
