 /* style.css — shared by all pages */
* { margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: Arial, sans-serif;
  background:#f4f4f4; color:#111;
  transition: background .3s, color .3s;
  overflow-x: hidden;
  
}

/* theme variables via classes */
body.dark { background:#121212; color:#f4f4f4; }



/*  */

/* responsive */

.sidebar{
  height:100vh; width:240px; background:#111; color:#fff;
  position:fixed; left:0; top:0;  padding-top:22px;
  display:flex; flex-direction:column;
  box-shadow:2px 0 6px rgba(0,0,0,.25); z-index:1000;

  

  overflow-y: auto;    /* ← Makes sidebar scrollable */
  scrollbar-width: thin; 

}


.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sidebar::-webkit-scrollbar-track {
  background: #222;
}


.sidebar h2 { text-align:center; margin-bottom:12px; font-size:18px; }
.sidebar a,.dropdown-container{
  color:#fff; text-decoration:none; padding:12px 18px; font-size:20px;
  transition: background .18s;
}
.sidebar a:hover{ background:#1e293b; }
.sidebar a.active{ background:#2f8f4e; }

/* content */
.content{ margin-left:240px; padding:22px; width:100%; min-height:100vh; }
.topbar{ display:flex; justify-content:flex-end; gap:8px; align-items:center; }

/* buttons */
.toggle-btn, .theme-btn{
  background:#2f8f4e; color:#fff; border:none; padding:10px 12px; border-radius:6px;
  cursor:pointer; font-size:18px;
}
.toggle-btn { position:fixed; top:30px; right:14px; z-index:1100; display:none; }



/* search bar */



.search-box {
    position: relative;
    width: 500px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
    background: #1e293b;
    color: #fff;
}

.search-box input:focus {
    box-shadow: 0 0 15px rgba(56,189,248,0.6);
}

.results {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    background: #020617;
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.results.show {
    max-height: 250px;
}

.results li a {
    display: block;
    padding: 12px 16px;
    color: #e5e7eb;
    text-decoration: none;
    transition: background 0.3s;
}

.results li a:hover {
    background: #1e293b;
}

/* search bar end */





        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background-color: #f4f6f8;
            color: #333;
        }

        /* Header */
        header {
            background-color: #1e3c72;
            color: white;
            padding: 50px 20px;
            text-align: center;
        }

        header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        header p {
            font-size: 1.1rem;
        }

        .btn {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 25px;
            background-color: #ff4b2b;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
        }

        .btn:hover {
            background-color: #e63e20;
        }

        /* Section */
        section {
            padding: 50px 20px;
            max-width: 1100px;
            margin: auto;
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 40px;
            color: #1e3c72;
        }

        /* Features */
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .card {
            background: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .card h3 {
            color: #ff4b2b;
            margin-bottom: 10px;
        }




@media(max-width:768px){

  .sidebar{
    background-color:#111; 
    transform:translateX(-100%);
    transition: transform .28s ease;
  }

  .sidebar.active{
    transform:translateX(0);
  }

  .toggle-btn{
    display:block;
    position:absolute;
  }

  /* .content{
    margin-left:0 !important;
    width:100% !important;
    padding-top:72px;
  } */

  .page{
    width:100% !important;
  }
  .search-box {
  width: 250px;
  padding-left: 10px;
  padding-top: 20px;
  }

  /* @media (max-width: 768px) { */
  .content {
    margin: 0 !important;
    padding: 0 !important;   /* ← NO SPACE */
    width: 100% !important;
  }


}








/* small helpers */
h1{ margin-bottom:10px; }
p{ margin:8px 0; line-height:1.5; }
table{ border-collapse:collapse; width:100%; margin:10px 0; }
table th, table td{ border:1px solid #ccc; padding:8px; text-align:left; }
body.dark table th, body.dark table td{ border-color:#444; }
.code{ font-family:monospace; background:rgba(0,0,0,.05); padding:6px 8px; border-radius:4px; display:inline-block; }

/* fade-in for main content changes (optional) */
#main-content{ animation: fade .28s ease; }
@keyframes fade { from{opacity:0; transform:translateY(6px)} to{opacity:1;transform:none} }



/* Style the sidenav links and the dropdown button */
.dropdown-btn {
  padding: 12px 18px;
  width: 100%;
  font-size: 20px;
  color: #fff;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background .18s;
}

/* On mouse-over */
.dropdown-btn:hover {
  color: #f1f1f1;
}



/* Add an active class to the active dropdown button */
.active {
  background-color: rgb(0, 0, 0);
  color: white;
}

/* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
.dropdown-container {
   display: none;
  background-color: #111; /* Same color as sidebar */
  padding-left: 20px;
  

}

/* Optional: Style the caret down icon */
.fa-caret-down {
  float: right;
  padding-right: 8px;
}
/* * Dropdown links (Present, Past, Future) */ 
.dropdown-container a {
  display: block;
  padding: 12px 18px;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  width: 100%;
  transition: background .18s;
}

.dropdown-container a:hover {
  background: #a17676;   /* Same hover as sidebar links */
}

/* Active dropdown button */
.dropdown-btn.active {
  background: #2f8f4e;
  color: white;
}








/* ANIMATION */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DARK MODE SUPPORT */
body.dark .submenu-btn {
    color: #ddd;
}

body.dark .submenu-content {
    background: #1a1a1a;
}


body.dark .footer {
  background: #1e1e1e;
  color: #eaeaea;
} 


/* page container stretches to full viewport height */
.page {
  min-height: 100vh;         /* full height */
  display: flex;
  flex-direction: column;    /* stack content + footer vertically */
}

/* main takes remaining space so footer is pushed to bottom when content is short */
.content {
  flex: 1;
  margin-left: 240px;
  padding: 22px;
  min-height: 100vh;
  width: calc(100% - 240px);   /* ← Fixes overflow + hidden text */
  box-sizing: border-box; 

  /* Fix long paragraph hidden text */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* normal (non-fixed) footer styling */
.footer {
  text-align: center;
  padding: 12px 8px;
  background: rgb(226, 224, 224);
  color: black;
}

/* dark mode support */
body.dark .footer {
  background: #1e1e1e;
  color: #eaeaea;
}


 
/* footer */
a.footer-a{
  color: rgb(1, 106, 175); 
  text-decoration: none;
}