* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
h1, h2, h3 {
    color: #0b3d2e;
}

p {
    line-height: 1.6;
}

ul {
    list-style: none;
}

body {
    color: #333;
    animation: fadeIn 0.8s ease-in;
    background: linear-gradient(to right, #f8f9fa, #eef2f3);
    line-height: 1.6;
    
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  overflow-x: hidden;
}

main.container {
    flex: 1;
}
/* ===== HEADERS ===== */
.page-header h2,
.record-header h1,
.record-header h2 {
  margin: 0;
}

.muted {
  color: #666;
  font-size: 0.9rem;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-bar select,
.filter-bar button {
  padding: 0.4rem 0.6rem;
}

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  background: #143454;
  font-weight: 600;
  top: 0;
  z-index: 2;
  position: sticky;
  color: rgb(212, 141, 9);
}
.data-table tr:hover {
  background: #f1f1f1;
  transition: background 0.3s ease; 
}
.table-scroll {
  width: 100%;
  max-width: 100vw;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}
.table-scroll::-webkit-scrollbar {
  height: 6px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.sticky-col {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 2;
  border-right: 2px solid #eee;
}

.empty {
  text-align: center;
  padding: 1rem;
}

/* ===== TABLE MOBILE SCROLL ===== */
.table-wrapper {
  overflow-x: auto;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success,
.badge.success {
  background: #e6f4ea;
  color: #1e7e34;
}

.badge-danger,
.badge.danger {
  background: #fdecea;
  color: #b02a37;
}

.badge-muted {
  background: #eee;
  color: #555;
}
/* ===== STUDENT HEADER ===== */
.record-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.student-photo img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.photo-placeholder {
  width: 90px;
  height: 110px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #666;
}

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* ===== DOCUMENT LIST ===== */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

/* ===== ACTION BUTTONS ===== */
.actions {
  margin-top: 1rem;
  text-align: right;
}

/* NAVBAR */
.navbar {
    background: #0422ba;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.apply-btn {
    background: #1abc9c;
    padding: 6px 12px;
    border-radius: 4px;
}
button, .apply-btn {
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover, .apply-btn:hover {
    transform: scale(1.05);
    background: #148f77;
}
.card .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;

}
/* Dashboard Menu */
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.dashboard-menu li {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-menu li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-menu a {
    display: block;
    padding: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Logout button */
.logout-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #b91c1c;
}
.reveal {
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* MOBILE MENU */
.menu-toggle {
    display: none;
    background: none;
    color: white;
    font-size: 24px;
    border: none;
}

/* CONTENT */
.container {
    padding: 30px;
}

/* FOOTER */
footer {
    background: #0422ba;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

/* PROGRAM CARDS */
.card {
    background: white;
    padding: 20px;
    margin: 40 auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
}

.card h2 {
    margin-bottom: 16px;
    font-size: 22px;
    color: #222;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.image-text {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.image-text img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.image-text .text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;

}

th, td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

th {
    background: #0b3d2e;
    color: white;
}
#nav-menu.active {
    display: flex;
}

img {
    max-width: 100%;
    height: auto;
}
form input, form select, form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

button {
    background: #0b3d2e;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    margin-bottom: 1.2rem;
}

.features p {
    margin: 0.3rem 0 0;
    color: #666;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0 0.3rem;
    background: #003366;
    color: #fff;
}

.btn.primary {
    background: #1e88e5;
    color: #fff;
}

.btn.secondary {
    background: #43a047;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

.cta {
    text-align: center;
}
.accreditations {
  background: #f8f9fa;
  padding: 50px 0;
}

.accreditations h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.accreditation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  align-items: center;
}

.accreditation-grid a {
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}

.accreditation-grid a:hover {
  transform: scale(1.05);
}

.accreditation-grid img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.accreditation-grid span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== PRINT ===== */
@media print {
  .actions,
  form {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .card {
        width: 100%;
        max-width: calc(100vw - 20px); /* accounting for margins */
        overflow: hidden; 
        margin: 10px auto;
        padding: 15px;
    }
    .table-scroll {
        display: block;       /* Required for overflow to work on a div */
        width: 100%;          /* Box stays same size as card */
        overflow-x: auto;     /* Enables horizontal scroll */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; 
        border: 1px solid #eee; /* Optional: helps define the area */
    }
    .data-table {
        min-width: 800px;     /* Forces the table to be wide INSIDE the scroll box */
        display: table;       /* Keeps it behaving like a table */
        font-size: 0.85rem;
    }
    .data-table th, .data-table td {
        white-space: nowrap;  /* Keeps data on one line so columns stay aligned */
        padding: 10px 8px;
        text-align: left;     /* Reset from your previous 'right' align */
    }
    .data-table th {
        font-size: 0.9rem;
        color: rgb(212, 141, 9);
        background-color: #003366;
    }
    .container {
        padding: 10px;
        overflow-x: hidden;
    }
    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        background: #0b3d2e;
        width: 100%;
    }

    #nav-menu a {
        padding: 10px;
        border-top: 1px solid rgba(255,255,255,.2);
    }
    .image-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .image-text img {
        width: 100px;
        height: 130px;
    }
    .image-text .text {
        text-align: left;
        margin-top: 10px;
    }
    .grid-2 {
    grid-template-columns: 1fr;
  }

  .record-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .data-table {
    font-size: 0.8rem;
    size-adjust: inherit;
    width: 100%;
    text-align: justify;
    overflow-x: auto;
    table-layout: auto;
  }
  .data-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
  }
  td {
    border-bottom: 1px solid #eee;
  }
  td::before {
    position: absolute;
    left: 15px;
    width: 45%;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: #555;
  }
  td:last-child {
    border-bottom: none;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

}


