/* css/style.css - simple modern styling */
*
{
	box-sizing:border-box;font-family:Inter,Arial,Helvetica,sans-serif
}

body{
	background:#f4f7fb;color:#111;
     padding-top: 10px;
}

/* =============== GLOBAL STYLE =============== */



/* =============== HEADER =============== */
header {
    background: #301CA0; /*linear-gradient(135deg, #5a3eff, #852dff);*/

    
    padding: 20px 0;
    color: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}
.logo {
    font-size: 1.8em;
    font-weight: bold;
}
nav {
    
    display: flex;
    align-items: center;
    gap: 18px;
    
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.18);
    transform:none;
}
/* =============== CONTAINER =============== */
.container nav {
    
    /* global container - centered and fluid */
  width: 100%;
  max-width: 1200px;   /* keeps large screens readable */
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;

    margin: 2px;
    padding: 0px;
}

/* =============== CARD / GLASS EFFECT =============== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
}

/* =============== FORM ELEMENTS =============== */
label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e6f0;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: 0.3s;
    background: #f8fbff;
}

input:focus, select:focus, textarea:focus {
    border-color: #7b3cff;
    box-shadow: 0 0 6px rgba(123, 60, 255, 0.3);
    outline: none;
}

/* =============== BUTTONS =============== */
button {
    background: linear-gradient(135deg, #6c3bff, #9c2dff);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5b2fff, #7f1bff);
}

/* Secondary Button */
.btn-secondary {
    background: #e7e7e7;
    color: #333;
}

.btn-secondary:hover {
    background: #d6d6d6;
}
.container,.my{
   max-width:100%;
   overflow-x:hidden;
}
.my{
    width:100%;
    overflow-x:auto;
    display:block;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;   /* keeps columns readable */
}

/*on small screens */
@media (max-width: 768px) {
    .my {
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 8px;
        white-space: nowrap;
        font-size: 13px;
    }
}



/* =============== TABLE DESIGN =============== */


.table th {
    background: #6f44ff;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 15px;
}

.table td {
    padding: 12px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}

.table tr:hover td {
    background: #f7f2ff;
}

/* =============== FILTERS =============== */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filters input, .filters select {
    border-radius: 8px;
}

/* =============== BADGE / USER NAME DISPLAY =============== */
.badge {
    background: #ffffff;
    color: #6c3bff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 100px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
    margin-right: 10px;
}

/* =============== DONATE PAGE QR =============== */
.qr {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 8px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* =============== FOOTER =============== */
/* ---------- FOOTER: guaranteed visible ---------- */
footer.footer,
.footer {
  width: 100%;
  background-color:#301CA0;       /* change to whatever color you want */
  color: #ffffff;                  /* footer text color */
  text-align: center;
  padding: 20px 16px;              /* space inside footer */
  margin-top: 40px;                /* space above footer */
  box-sizing: border-box;
  position: relative;
  z-index: 50;                     /* make sure it's above low z-index elements */
  border-top: 3px solid rgba(0,0,0,0.08);
  /* use the following only as a last resort to override other rules:
     background-color: #263e59 !important;
  */
}

/* =============== HOVER EFFECT ON LINKS =============== */
a {
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}
/* Slider (modern, responsive) */
.slider { 
    position: relative;
     max-width: 100%; 
     margin: 18px auto;
      border-radius: 12px;
       overflow: hidden; 
       box-shadow: 0 12px 30px rgba(20,20,60,0.08); }
.slides-js {
 position: relative; 
 height: 380px; }
.slide-js { 
    display: none;
     position: absolute; 
     inset: 0; }
.slide-js img { width: 100%;
 height: 380px;
  object-fit: cover; 
  display: block; 
}


.caption { 
    position: absolute; 
    left: 28px; bottom: 24px;
     background: rgba(0,0,0,0.45); 
     color: #fff; padding: 10px 16px; 
     border-radius: 8px; font-weight:600; 
     backdrop-filter: blur(4px); }

/* nav */
.nav { position: absolute; top: 45%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: none; font-size: 28px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.prev { left: 12px; } .next { right: 12px; }

/* Dots */
.dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display:flex; gap:8px; }
.dots button { width:10px; height:10px; border-radius:50%; border:0; background: rgba(255,255,255,0.5); cursor:pointer; }
.dots button.active { background: #6c3bff; box-shadow: 0 6px 14px rgba(108,59,255,0.2); }

/* small responsive tweak */
@media(max-width:720px){ .slide-js img { height: 220px; } .caption { left:14px; bottom:14px; font-size:14px } }

/* =========================================================
   ANIMATION EFFECTS FOR JNVU NOTES HUB
   ========================================================= */

/* ===== Smooth Fade In ===== */
.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Slide Up ===== */
.slide-up {
    animation: slideUp 0.9s ease forwards;
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Slide From Left ===== */
.slide-left {
    animation: slideLeft 0.9s ease forwards;
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== Slide From Right ===== */
.slide-right {
    animation: slideRight 0.9s ease forwards;
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== Zoom In ===== */
.zoom-in {
    animation: zoomIn 0.7s ease forwards;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===== Soft Pop Effect for Cards ===== */
.card {
    animation: softPop 0.7s ease-out forwards;
}
@keyframes softPop {
    0% { opacity: 0; transform: scale(0.92) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Hover Floating for Cards ===== */
.card:hover {
    transform: translateY(-5px) scale(1.02);
    transition: 0.3s ease;
}

/* ===== Glow Hover Buttons ===== */
button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(125, 75, 255, 0.4);
}

/* ===== Smooth Link Hover ===== */
.nav a {
    transition: 0.3s ease-in-out;
}
.nav a:hover {
    transform: translateY(-3px);
}

/* ===== Table Row Appearing Animation ===== */
.table tr {
    animation: rowFade 0.6s ease forwards;
}
@keyframes rowFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Delay appearance of table rows */
.table tr:nth-child(1) { animation-delay: .1s; }
.table tr:nth-child(2) { animation-delay: .2s; }
.table tr:nth-child(3) { animation-delay: .3s; }
.table tr:nth-child(4) { animation-delay: .4s; }
.table tr:nth-child(5) { animation-delay: .5s; }
footer.footer{
    background-color:#301CA0;
}
/* ===== Fade In Header ===== 
.header {
    animation: fadeInHeader 1s ease forwards;
}
@keyframes fadeInHeader {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
*/
/* for mobile fitted screens */
/* slider images */
.slider .slide-js img,
.slide-js img,
.slider img {
  width: 100%;
  height: auto;          /* allow height to scale */
  max-height: 480px;     /* limit for desktop - optional */
  object-fit: cover;     /* crop nicely while filling box */
  display: block;
}
/* to check table*/
@media (max-width: 700px) {

  .my {
    overflow-x: hidden !important;
  }

  .table,
  .table thead,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block !important;
    width: 100% !important;
  }

  .table thead {
    display: none !important;
  }

  .table tr {
    background: #fff;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }

  .table td {
    display: flex !important;
    justify-content: space-between;
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  .table td:last-child {
    border-bottom: none;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6a11cb;
  }

}

