body, html {
    margin: 0;
    padding: 0;
}

.header {
    position: fixed; /* Makes the header fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* define height explicitly */
    z-index: 1000; /* Ensures it stays above other content */    
    /* background-color: darkmagenta; */
    background-color: #034587;
    color: white;
    padding: 5px;
    font-size: 20px;
    font-weight: bolder;
    overflow: hidden;
}

.header .logo {
    width: 60px;
    height: 60px;
    float: left;
    margin-right: 10px;
}

.header .text {
    margin-left: 100px;
    margin-top: 20px;
    text-align: center;
    width: calc(100% - 25%);
}

/* .header-right {
    float: right;
} */

/* Responsive marquee*/
.marquee {
    position: fixed;
    top: 71px; /* Immediately below header */
    left: 0;
    width: 100%;
    z-index: 998;
    padding: 0px 0;
    font-family: 'Monotype Corsiva';
    font-size: 16px;
    font-weight: bold;
    color: yellow;
    background-color: black;
    text-align: center;
}

/* Custom Scrollbar for dropdown content */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.dropdown-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.dropdown-content::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

    
/* Responsive Navbar*/
.topnav {
    position: fixed;
    top: 90px; /* 70 (header) + 28 (marquee with padding) + 1 extra px */
    left: 0;
    width: 100%;
    z-index: 997;
    background-color: #034587;
    /* padding: 1px 0; */
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 16px;
}

.active1 {
    background-color: darkorange;
    color: white;
}

.topnav .icon {
    display: none;
}
    
/* dropdown part of nav*/
.dropdown {
    float: left;
    /* overflow: hidden; */
    overflow: visible;

}
.dropdown .dropbtn {   
    border: none;
    outline: none;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;    
    box-shadow: 0px 8px 12px 0px rgba(0,0,0,0.2);
    z-index: 1;
      /* Scrollbar behavior */
    max-height: calc(2.5em * 5); /* roughly 5 items visible */
    overflow-y: auto;
   
}
.dropdown-content a {
    float: none;
    color: black;
    
    padding: 12px 16px;
    font-size: 14px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #555;
    color: white;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* @media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
}
.topnav a.icon {
    float: right;
    display: block;
    }
}
    
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
}
.topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
}
.topnav.responsive .dropdown {float: none;}
.topnav.responsive .dropdown-content {position: relative;}
.topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    }
} */

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    float: none;
  }

  .topnav.responsive .dropdown-content {
    position: relative;
    max-height: none; /* show fully in mobile mode */
    overflow-y: visible;
  }

  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}
   

    
/* Responsive footer*/
.footer {
    position: fixed;
    bottom: 0;    
    left: 0;
    width: 100%;    
    z-index: 994;
    background-color: #034587;
    color: white;
    padding: 0px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}



.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: #f1f1f1;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

/* Flip to left */
.submenu.flip-right {
  left: auto;
  right: 0;
}


/* Desktop hover behavior */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .has-submenu:hover .submenu {
        display: block;
    }
}

/* Toggle visibility for mobile via JS */
.show {
    display: block !important;
}

button {
    background-color: #3532b2;
    color: white;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* Action button colors */
.btn-red { background-color: #e74c3c; }      /*Delete*/
.btn-green { background-color: #2ecc71; }    /*Save, Submit*/
.btn-blue { background-color: #3498db; }     /*Edit, Update*/
.btn-black { background-color: #011522; }     /*back*/
.btn-orange { background-color: #f39c12; }   /*Edit*/

/* New buttons */
.btn-purple { background-color: #8e44ad; }   /*Upload*/
.btn-brown { background-color: #a0522d; }    /*message*/


h2 {
    text-align: left;
    margin-bottom: 30px;
}

.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 280px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 0;
    color: #333;
}

.card p {
    color: #666;
    margin: 10px 0 20px;
}

.card a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}


/* CONTENT BOX */

.content-box {
    position: absolute;
    top: 130px; /* 70 + 20 + 20 */
    bottom: 50px; /* footer height */
    left: 0;
    right: 0;
    background-color: white;
    overflow-y: auto;
    overflow-x: auto;
    padding: 10px;
  }
/* Inner padding for content */
.content-inner {
    padding: 2px;
}

/* Scrollbar styling */
.content-box::-webkit-scrollbar {
    width: 0.5px;
}
.content-box::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 3px;
}
.content-box {
    scrollbar-width: thin;
    scrollbar-color: grey transparent;
}

/* DROPDOWN */
.download-dropdown {
  position: relative;
  display: inline-block;
}

.download-button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.download-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.download-menu a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.download-menu a:hover {
  background-color: #f1f1f1;
}

.download-dropdown:hover .download-menu {
  display: block;
}



/* MESSAGES */
.message {
    position: relative;
    padding: 12px 40px 12px 20px;
    margin: 10px auto;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    font-weight: bold;
    font-family: sans-serif;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

/* Close button (×) */
.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Hover effect for close button */
.close-btn:hover {
    color: #ff0000;
}

/* Message Types */
.msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msg-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.msg-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.msg-debug {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}




/* CSS for Contact.html */
.column {
    float: left;    
    width: 33.33%;
    padding: 5px;
}   
    
/* Clear floats after the columns */
.row::after {
    content: "";
    display: table;
    clear: both;
}
    
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width:600px) {
    .column {
        width: 100%;
    }
}

/* body {font-family: Verdana, Geneva, Tahoma, sans-serif;} */

* {box-sizing: border-box;}












.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;                /* default right side */
    min-width: 180px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    z-index: 10;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.sub-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
}

.sub-dropbtn {
    padding: 10px 16px;
    display: block;
}
