/* ========================================
   CORPORATE WEBSITE STYLING
   Professional Official Website CSS
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and General Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Header Styling */
header {
  background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1em;
  font-weight: 300;
  opacity: 0.95;
}

/* Container Styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Headers */
h2 {
  color: #1a3a52;
  font-size: 1.8em;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #2c5aa0;
  font-weight: 600;
}

h3 {
  color: #2c5aa0;
  font-size: 1.3em;
  margin: 20px 0 15px 0;
  font-weight: 600;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: linear-gradient(135deg, #2c5aa0 0%, #1a3a52 100%);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95em;
}

/* Alternating Row Colors */
tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
  background-color: white;
}

/* Row Hover Effect */
tbody tr:hover {
  background-color: #e8f0f7;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Links in Tables */
a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

a:hover {
  color: white;
  background-color: #2c5aa0;
  text-decoration: none;
}

a:active {
  color: #1a3a52;
}

/* Group Headers in Table */
td[colspan] {
  background-color: #e8f0f7;
  font-weight: 600;
  color: #1a3a52;
}

/* First Column (Serial Numbers) */
table td:first-child {
  font-weight: 500;
  color: #2c5aa0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.4em;
  }
  
  table {
    font-size: 0.9em;
  }
  
  th, td {
    padding: 10px;
    font-size: 0.9em;
  }
  
  .container {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4em;
  }
  
  header p {
    font-size: 0.95em;
  }
  
  h2 {
    font-size: 1.1em;
    margin: 20px 0 15px 0;
  }
  
  table {
    font-size: 0.8em;
  }
  
  th, td {
    padding: 8px;
    font-size: 0.8em;
  }
  
  /* Stack columns on mobile for better readability */
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    display: block;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: white;
  }
  
  header {
    background: none;
    color: black;
    border-bottom: 2px solid #333;
  }
  
  table {
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  a {
    color: #2c5aa0;
    text-decoration: underline;
  }
}

/* Accessibility */
a:focus {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

button:focus {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* Footer Styling (Optional) */
footer {
  background-color: #1a3a52;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 0.95em;
}

footer p {
  margin: 5px 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.bold {
  font-weight: 600;
}

.highlight {
  background-color: #fffacd;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Button Styling (if needed) */
button, .btn {
  background-color: #2c5aa0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

button:hover, .btn:hover {
  background-color: #1a3a52;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active, .btn:active {
  transform: translateY(2px);
}

/* Section Divider */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #2c5aa0, transparent);
  margin: 40px 0;
}
