:root {
    --font-sans: "Inter", sans-serif;
    --font-display: "Outfit", sans-serif;
    --bg-dark: #ffffff;
    --bg-col: #ffffff;
    --bg-glow: #2A86FD;
    --grey-input: #D9D9D9;
    --danger: #ffffff;
}

body {
    background-color: #F6F4F0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: var(--font-sans);
    display: flex; 
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.sidebar {
  position: fixed;
  width: 235px;
  height: 100%;
  background-color: #ffffff ;
  padding: 20px;
  border-right: 1px solid #DCD6C9;
}

.pad {
  margin-top: 10%;
  gap: 10px
}

.menu-active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(120, 90, 90, 0.5);
    color: #000000;
    font-size: 16px;
    text-decoration: none;
    width: 210px;
    font-weight: bold;
    border-width: 2px;
    border: 1px solid #000000;
}

.active-bordericon {
  width: 35px;
  height: 33px;
  border-radius: 10px;
  background-color: #800000 ;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-icon {
  width: 24px;
  height: 24px;
  color: #ffff;
}

.menu-btn {
    width: 210px;
    align-items: center;
    display: flex;
    margin-top: 10px;
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
    color: #000000;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none;
}

.non-active-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.non-active-bordericon {
  width: 35px;
  height: 33px;
  border-radius: 10px;
  background-color: #785a5a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  background: #785a5a64;
  color: #000000;
  width: 210px;
  font-weight: bold;
}

.menu-btn:hover .non-active-bordericon {
  background-color: #c72828;
}

.sidebar-divider {
  border: none;
  height: 1px;
  background-color: #fff, transparent 80%;
  width: 100%;
}


/* header  */
 /* --- FIX: Main Content Container --- */
main {
    flex: 1;                     /* Take up remaining width */
    margin-left: 265px;          /* Sidebar width (235px) + its padding (30px) */
    height: 100vh;
    overflow-y: auto;            /* Allow scrolling inside the main area */
}

/* --- FIX: Sticky Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 10, 20, 0.6); /* Translucent */
    backdrop-filter: blur(15px);     /* Glass effect */
    padding: 20px 0;                 /* Vertical padding */
    margin-bottom: 20px;
}

/* Header Brand Layout */
.topmenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #800000 ;
    backdrop-filter: blur(15px);
    padding: 20px 40px;
    margin-left: 24px;
    width: 1320px;
    border-radius: 20px;
    margin-top: 15px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-sq {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.brand-logo {
    width: 90px;       /* Adjust this % to make the logo bigger or smaller inside the square */
    height: 90px;      /* Keep this the same as width */
    object-fit: contain; /* Ensures the logo isn't stretched */
}

.brand-text h1 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.brand-text span {
    color: #ffffff;
    font-size: 0.65rem;
    display: block;
}

/* Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.avatar {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* content */
/* --- Dashboard Grid Layout --- */
.dashboard-grid {
  display: grid;
  /* Splits main area into two equal columns, max width 1fr */
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; /* Space between the cards */
  padding-bottom: 60px; /* Space for the breadcrumb at the bottom */
  align-items: flex-start; /* Prevents cards from stretching vertically */
}

/* --- Common Card Styling (Glassmorphism Effect) --- */
.card {
  border-radius: 20px;
  overflow: hidden;
}

/* --- Welcome Card Specifics (Centering) --- */
.help-card {
  /* Overrides .card's dark translucent glass background/blur for this
     card only — text was black-on-dark-glass, which is why it was hard
     to read. Every other .card on registrar/SASO/academic-affairs pages
     is untouched. */
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid #DCD6C9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  margin-left: 24px;
  width: 1390px;
  
  /* FIXED: Changed from 80vh and overflow-y auto to prevent internal scrollbars */
  height: auto;
  min-height: 80vh; 
  overflow: visible;
  
  box-sizing: border-box;
}

.help-content {
  width: 100%; /* Fill the full card instead of a narrow left column */
}

.help-content h2 {
  color: rgb(0, 0, 0);
  font-size: 1.8rem;
  margin-bottom: 20px;
  margin-top: 0;
  font-family: var(--font-sans);
  display: inline-block;
}

.help-header {
  display: flex;
  align-items: center;
}

.role-badge {
  display: inline-block;
  margin: 0 0 20px 14px;
  padding: 5px 14px;
  background: #800000;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}

.help-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 10px;
}

.help-col > .help-topic:first-child {
  margin-top: 0;
}

.help-topic h3,
.help-topic h4 {
  margin: 0;
}

.help-icon-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #800000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-icon-badge svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* Subtle hover affordance on the FAQ accordion */
.help-content summary:hover {
  background: #EFECE4;
}

.help-intro {
  max-width: 900px;
  font-size: 1.05rem;
  color: #4B4B4B;
  border-left: 4px solid #800000;
  padding: 4px 0 4px 18px;
  margin: 5px 0 28px;
}

.help-content > hr {
  border: none;
  border-top: 3px solid #800000;
  margin: 24px 0 0 0;
}

.help-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
  align-items: start;
  position: relative;
  margin-top: 24px;
}

/* Vertical line down the middle, touching the hr above it (top: -24px
   cancels help-columns' margin-top so there's no visible gap) */
.help-columns::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 3px;
  height: calc(100% + 24px);
  background: #800000;
  transform: translateX(-50%);
}

.help-col h3:first-child,
.help-col h4:first-child {
  margin-top: 0;
}

.help-code {
  font-family: "Consolas", "Courier New", monospace;
  background: #F6F4F0;
  border: 1px solid #E4DFD6;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
  font-size: 0.9rem;
  color: #4A0000;
}

.help-content code {
  font-family: "Consolas", "Courier New", monospace;
  background: #F6F4F0;
  border: 1px solid #E4DFD6;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: #4A0000;
}

.help-download {
  margin: 16px 0 24px;
}

.help-download-btn {
  display: inline-block;
  background: #800000;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: 0.2s;
}

.help-download-btn:hover {
  background: #a30000;
}

.help-download-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  max-width: 480px;
}

/* FAQ accordion — visible borders + explicit +/- indicator instead of
   relying on the hard-to-see native disclosure triangle. This page's
   CSS never had this, so the FAQ list was rendering with the plain,
   easy-to-miss default browser marker. */
.help-content details {
  border: 1px solid #E4DFD6;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.help-content details[open] {
  border-color: #800000;
}

.help-content summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F4F0;
}

.help-content summary::-webkit-details-marker { display: none; }

.help-content summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: #800000;
  margin-left: 12px;
  flex-shrink: 0;
}

.help-content details[open] summary::after { content: "\2212"; }

.help-content details p {
  padding: 4px 16px 14px;
  margin: 0;
  color: #4B4B4B;
}


/* --- Responsive Layout (Phones/Tablets) --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
        gap: 20px;
    }

    .help-columns {
        grid-template-columns: 1fr; /* Stack help columns on smaller screens too */
    }

    .help-columns::before {
        display: none;
    }
}

/* paa ni rod --- */

footer{
    position: sticky;
    bottom:0;
    z-index:100;

    background:#F6F4F0;

    border-top:1px solid #DCD6C9;
    border-left:1px solid #DCD6C9;
    box-shadow:0 -4px 15px rgba(0,0,0,.06);

    padding:25px 0;
}

.footer-content {
    display: flex;
    justify-content: flex-end; /* Moves text to the right */
    padding-right: 40px; /* Adds some space from the edge */
}

.page-label{
    color:#6B7280;
}

.page-name{
    color:#800000;
    font-weight:700;
}

/* Ensure the main container allows the footer to sit at the bottom */
.footer {
  background-color: none;
  margin-left: 10px;
  width: 1416px;
}


.footer-brand{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
}

.footer-divider{
    width: 500px;      /* adjust length */
    border: none;
    border-top: 1px solid #4B4B4B;
    margin: 0 0 12px 0; /* only 12px gap below */
}

.footer-brand-content{
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo{
    width:60px;
    height:60px;
    object-fit:contain;
    border-radius:12px;
}

.footer-brand-text h3{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#800000;
}

.footer-brand-text p{
    margin:4px 0;
    font-size:14px;
    color:#000000;
}

.footer-brand-text small{
    color:#6B7280;
    font-size:12px;
}


.brand-link{
    text-decoration:none;
    color:#000000;
    font-size:14px;
    transition:0.2s;
}


p {
  color: #000000;
  text-align: justify;
  hyphens: auto;
}

.help-col p {
  text-indent: 40px;
}


.email-link {
  color: #000000;
  text-decoration: underline;
  font-weight: 600;
}

.email-link:hover {
  text-decoration: none;
  color: #800000;
  font-weight: 650;
}



.sidebar-footer{
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    padding: 8px 0 5px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #DCD6C9;
}

.copyright {
    font-size: 10px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.btn-privacy{
    color:#666;
    text-decoration: none;
    padding: 10px 10px 0 0; /* Horizontal wide button */
    border-radius: 9999px; /* Fully rounded */
    font-size: .8rem;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-privacy:hover {
    color: #800000; /* Darker blue on hover */
    transform: translateY(-2px);
    font-weight: bold;
    text-decoration: underline;
}