/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: tahoma;
    background: #f5f5f5;;
    color: #333;
    padding: 0;
    margin-top: 80px;
    margin-bottom: 220px;
    /*background-image: url("../media/images/Designer-baskets.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  optional nice effect */
}

/* ===== Cards (Dashboard) ===== */
.card {
    background: #ffffffe8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* Post image */
.post-image {
  width: 100%;
  height: 200px;
  background: url('../media/images/car-training.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* spacing between buttons */
  margin-top: 10px;
}

/* ===== Layout ===== */
h1 {
    font-weight: bolder;
}

h2{
    border-bottom: 2px solid #000;
}

/* ===== Layout ===== */
.container {
    width: 90%;
    margin: auto;
}

.post-card{
    background:#ffffffe8;
    padding:15px;
    margin:10px;
    border-radius:8px;
    width: 240px;
    box-shadow: 0 2px 5px #0076d773;
    border:1px solid #ccc;
}

.post-card p{
    font-size: small;
    color: #333333;
}

.post-card span{
    font-size: xx-small;
    font-weight:bold;
    padding: 2px;
    border-radius: 3px;
    background-color: aquamarine;
}

/* ===== Assessment display ===== */

.assessment {
    display: flex;
    flex-wrap: wrap;
    gap:10px;
}

.post-assessment{
    background:#ffffffe8;
    padding:15px;
    margin:6px;
    width: 380px;
    box-shadow: inset 0 1px 30px #0076d7e3;
    border-radius:10px; 
    padding:18px;
}

.post-assessment p{
    font-size: small;
    color: #333333;
}

.post-assessment span{
    font-size: xx-small;
    font-weight:bold;
    padding: 2px;
    border-radius: 3px;
    background-color: aquamarine;
}

/* ===== Home post ===== */

.post-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 20px;
}
.post-column {
    padding:0;
    background-color: #ffffff;
    box-shadow: inset 0 1px 30px #ffffffe3;
    border-radius: 10px;
}

.post-column p {
    padding: 10px;  
    box-shadow: inset 0 1px 1px #0076d7b5; 
    border-radius: 5px; 
    margin: 20px;
}
.post-column h1, h2, h3, h4, h5, h6 {
    margin: 20px;
}


/* Overlay buttons */
.overlay-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #2facd9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.overlay-btn:hover {
  background: #2facd9;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .overlay-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .overlay-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 6px;
  }
}


#filterMenu {
    margin: 10px 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap; /* allows wrapping on small screens */
    gap: 8px; /* consistent spacing between items */
}

#filterMenu a {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    flex: 1 1 auto; /* buttons expand/shrink evenly */
    text-align: center;
}

/* Background colors per filter */
#filterMenu a[data-filter="all"] { background-color: #1c2833; }       /* dark slate black */
#filterMenu a[data-filter="Nursery"] { background-color: #2ecc71; }   /* bright green */
#filterMenu a[data-filter="Lower-primary"] { background-color: #27ae60; } /* deep green */
#filterMenu a[data-filter="Upper-primary"] { background-color: #2980b9; } /* medium blue */
#filterMenu a[data-filter="O-level"] { background-color: #1f618d; }   /* navy blue */
#filterMenu a[data-filter="A-level"] { background-color: #154360; }   /* dark navy */
#filterMenu a[data-filter="Level-3"] { background-color: #0e6655; }   /* teal green */
#filterMenu a[data-filter="Level-4"] { background-color: #2c3e50; }   /* charcoal black */
#filterMenu a[data-filter="Level-5"] { background-color: #34495e; }   /* steel blue-black */
#filterMenu a[data-filter="University"] { background-color: #1a5276; } /* deep blue */
#filterMenu a[data-filter="General"] { background-color: #117864; }   /* emerald green */

#filterMenu a:hover {
    opacity: 0.85;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #34495e;
    color: white;
}

td, th {
    padding: 10px;
    border: 1px solid #ddd;
}


/* ✅ Buttons */
button {
    padding: 10px 18px;
    margin-right: 10px;
    border: none;
    border-radius: 6px;
    background: #0078d7;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #005fa3;
}

.login {
    width: 480px;
    margin: 230px auto;
    padding: 15px 20px;

    background: rgba(43, 124, 255, 0.631);
    border: 1px solid rgba(43, 124, 255, 0.25);
    border-radius: 10px;

    color: #fff;
    line-height: 1.6;
    box-sizing: border-box;
}

.login legend {
    padding: 4px 12px;

    background: #2b7cff;
    color: #fff;

    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.login a {
    color: #00ffe5;
}

.login form input{
    padding: 10px;
}

/* Form container */
.otp-form {
    width: 90%;
    max-width: 320px;
    margin: 80px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Label */
.otp-form label {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* Email text */
.email-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    word-break: break-word;
}

/* OTP input */
.otp-input {
    width: 100%;
    padding: 14px;
    font-size: 22px;
    letter-spacing: 6px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: 0.3s ease;
}

/* Focus */
.otp-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0,123,255,0.4);
}

/* Button */
.otp-form button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover */
.otp-form button:hover {
    background: #0056b3;
}

/* ✅ Small phones (extra adjustment) */
@media (max-width: 768px) {
    .otp-input {
        font-size: 18px;
        letter-spacing: 4px;
        padding: 12px;
    }

    .otp-form {
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login {
        margin: 10px;
        padding: 12px 15px;
    }

    .login legend {
        font-size: 13px;
        padding: 4px 10px;
    }
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ===== Buttons ===== */
button{
    background:#2b7cff;
    color:#fff;
    border:0;
    padding:5px;
    float:right;
    border-radius: 5px;
    box-shadow: inset;
}

button:hover {
    background: #00ffe5;
}

/* ===== Links ===== */
a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Alerts ===== */
.success {
    color: green;
}

.error {
    color: red;
}

/* ===== Footer ===== */
footer {
    margin-top: 20px;
    text-align: center;
    color: #330;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #0076d7b5;
    background: #FFF;
}

/* ===== Header ===== */
header {
    background: #FFF;
    color: #330;
    padding: 8px;
    margin-bottom: 20px;
    top: 0;
    position: fixed;
    width: 100%;
    border-bottom: 1px solid #0076d7b5;

}

header h1 {
    font-size: 22px;
    margin-bottom: 20px;
    font-family: cursive;
}



/* Navigation links */
nav a {
    color: #333;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: none;
}

nav .right {
    color: #333;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight:normal;
    float: right;
    color: #0073ff; 
}

nav .right:hover {
    text-decoration: none;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    font-weight: bold;
    margin-right: 15px;
    color: #333;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background: #000;
    padding: 10px;
    border-radius: 4px;
    list-style: none;
    min-width: 120px;
    z-index: 1000;
}

.dropdown-content li {
    margin: 5px 0;
}

.dropdown-content li a {
    color: white;
    text-decoration: none;
}

.dropdown-content li a:hover {
    color: #007bff;
}

/* Show dropdown when .show class is added */
.dropdown-content.show {
    display: block;
}




.pagination {
    margin-top: 20px;
    text-align: center;
    background-color: beige;
}
.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.pagination a.active {
    background: #2b7cff;
    color: #fff;
    border-color: #2b7cff;
}


.error {
  color: #fff;                /* White text for contrast */
  background-color: #d9534f;  /* Bootstrap-style red */
  border: 1px solid #b52b27;  /* Darker red border */
  padding: 10px 15px;         /* Space around text */
  margin: 10px 0;             /* Space above/below */
  border-radius: 4px;         /* Rounded corners */
  font-weight: bold;          /* Emphasize text */
  text-align: center;         /* Center the message */
}
/* ✅ Responsive for smaller screens */
.success {
  color: #fff;                /* White text for contrast */
  background-color: #4fd958;  /* Bootstrap-style red */
  border: 1px solid #27b52e;  /* Darker red border */
  padding: 10px 15px;         /* Space around text */
  margin: 10px 0;             /* Space above/below */
  border-radius: 4px;         /* Rounded corners */
  font-weight: bold;          /* Emphasize text */
  text-align: center;         /* Center the message */
}

/* =========================================
   TABLET RESPONSIVE (768px and below)
========================================= */
@media screen and (max-width: 768px) {

    body {
        margin-top: 90px;
        margin-bottom: 70px;
        font-size: 15px;
        background-size: cover;
    }

    .container {
        width: 95%;
    }

    header {
        padding: 10px;
    }

    header h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    nav a {
        display: inline-block;
        margin: 5px;
        font-size: 14px;
    }

    /* Dashboard Cards */
    .card {
        padding: 15px;
    }

    /* Posts */
    .post-container {
        grid-template-columns: 1fr; /* single column */
    }

    .post-card {
        width: 100%;
        margin: 0;
    }

    .post-assessment {
        width: 100%;
        margin: 0;
    }

    .post-column {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    /* academic level */

    #filterMenu {
        flex-direction:row; /* stack vertically */
    }
    #filterMenu a {
        flex: none; /* prevent uneven stretching */
        width: auto;
    }

    img {
        max-width: 100%;
        height: auto;
    }
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    td, th {
        font-size: 14px;
        padding: 8px;
    }
   
    /* Login Form */
    .login {
        width: 100%;
        margin: 5px auto;
    }

    input,
    select,
    textarea {
        font-size: 14px;
        padding: 10px;
    }

    button {
        padding: 8px 14px;
    }

    /* Pagination */
    .pagination a {
        padding: 5px 10px;
        font-size: 14px;
    }

    /* Footer */
    footer {
        font-size: 14px;
        padding: 10px;
    }
}



/* Price plan */

    /* Main content */
    main {
      padding: 100px 20px 60px; /* space for header/footer */
      margin-left: 0;
      transition: margin-left 0.3s ease;
    }
    
    .price-container {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .price-card {
      width: 320px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      background: #fff;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    .price-card:hover {
      box-shadow: 0 8px 50px rgba(0, 0, 0, 0.679);
    }

    .price-card-header {
      height: 80px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .price-circle {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      font-weight: bold;
    }

    .price-card-content {
      padding: 20px;
      text-align: left;
      flex-grow: 1;
    }

    .price-price {
      font-size: 24px;
      font-weight: bold;
      margin: 10px 0;
      text-align: center;
    }

    .price-period {
        font-size: 0.95rem;          /* slightly smaller than main text */
        font-weight: 500;            /* medium emphasis */
        color: #2c7a7b;              /* teal tone for clarity */
        margin-top: 8px;             /* spacing above */
        padding: 4px 8px;            /* subtle padding */
        background-color: #f0fdfa;   /* light background highlight */
        border-left: 3px solid #38b2ac; /* accent line */
        border-radius: 4px;          /* rounded corners */
    }


    .price-checklist {
      list-style: none;
      padding: 0;
      margin: 15px 0;
    }

    .price-checklist li {
      margin: 8px 0;
      padding-left: 25px;
      position: relative;
    }

    .price-checklist li::before {
      content: "✔";
      position: absolute;
      left: 0;
      color: #00b050;
      font-weight: bold;
    }

    .price-card-footer {
      background: #f0f0f0;
      padding: 15px;
      text-align: center;
    }

    .price-card-footer button {
      background: #333;
      color: #fff;
      border: none;
      padding: 10px 15px;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .price-card-footer button:hover {
      background: #00b050;
    }

    .pending-payment {
        background: #fff8e1; /* soft yellow background */
        border: 2px solid #fbc02d; /* golden border */
        border-radius: 8px;
        padding: 20px;
        margin: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        font-family: Arial, sans-serif;
    }

    .pending-payment h2 {
        color: #e65100; /* deep orange heading */
        margin-bottom: 10px;
    }

    .pending-payment p {
        font-size: 16px;
        margin: 8px 0;
    }

    .pending-payment strong {
        color: #2e7d32; /* green for emphasis */
    }

    .pending-payment form {
        margin-top: 15px;
    }

    .pending-payment button {
        background-color: #0288d1;
        color: white;
        border: none;
        padding: 10px 16px;
        margin-right: 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    .pending-payment button:hover {
        background-color: #0277bd;
    }

    .pending-payment button[name="cancel_payment"] {
        background-color: #d32f2f;
    }

    .pending-payment button[name="cancel_payment"]:hover {
        background-color: #c62828;
    }


    .package {
        float: right;
        color: #fff;
        padding: 0;
        background-color: #000;
        font-weight: bolder;
        border-radius: 5px;
        box-shadow: inset 0 1px 5px #0076d7;;
        position: fixed;
        top: 70px;
        cursor: pointer;
        z-index: 1001;
        right: 0;
    }
    .countdown {
        font-family: system-ui, sans-serif;
        font-weight: bold;
        color: #fff;
        background: #0076d7;
        padding: 4px 8px;
        border-radius: 5px;
        display: inline-block;
        min-width: 120px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Optional: change color when expired */
    .countdown.expired {
        background: #d9534f; /* red */
        color: #fff;
    }


    /* Specific colors for each card */
    .price-card1 .price-card-header { background: #f9c7a7; }
    .price-card1 .price-circle { color: #f9c7a7; }

    .price-card2 .price-card-header { background: #006d77; }
    .price-card2 .price-circle { color: #006d77; }

    .price-card3 .price-card-header { background: #00b050; }
    .price-card3 .price-circle { color: #00b050; }

    .price-card4 .price-card-header { background: #00b0ad; }
    .price-card4 .price-circle { color: #00b0ad; }
    
    .price-card5 .price-card-header { background-color: #1c2833; } /* dark slate black */
    .price-card5 .price-circle { background-color: #1c2833; } /* dark slate black */

    .price-card6 .price-card-header { background-color: #2ecc71; } /* bright green */
    .price-card6 .price-circle { background-color: #2ecc71; } /* bright green */

    .price-card7 .price-card-header { background-color: #27ae60; } /* deep green */
    .price-card7 .price-circle { background-color: #27ae60; } /* deep green */

    .price-card8 .price-card-header { background-color: #2980b9; } /* medium blue */
    .price-card8 .price-circle { background-color: #2980b9; } /* medium blue */

    .price-card9 .price-card-header { background-color: #1f618d; } /* navy blue */
    .price-card9 .price-circle { background-color: #1f618d; } /* navy blue */

    .price-card10 .price-card-header { background-color: #154360; } /* dark navy */
    .price-card10 .price-circle { background-color: #154360; } /* dark navy */

    .price-card11 .price-card-header { background-color: #0e6655; } /* teal green */
    .price-card11 .price-circle { background-color: #0e6655; } /* teal green */

    .price-card12 .price-card-header { background-color: #2c3e50; } /* charcoal black */
    .price-card12 .price-circle { background-color: #2c3e50; } /* charcoal black */

    .price-card13 .price-card-header { background-color: #34495e; } /* steel blue-black */
    .price-card13 .price-circle { background-color: #34495e; } /* steel blue-black */

    .price-card14 .price-card-header { background-color: #1a5276; } /* deep blue */
    .price-card14 .price-circle { background-color: #1a5276; } /* deep blue */

    .price-card15 .price-card-header { background-color: #117864; } /* emerald green */
    .price-card15 .price-circle { background-color: #117864; } /* emerald green */

    /* Responsive layout */
    @media (max-width: 768px) {
      .price-container {
        flex-direction: column;
        align-items: center;
      }
      .price-card {
        width: 100%;
        max-width: 400px;
      }
      .price-sidebar {
        height: calc(100% - 110px);
      }
    }

.attempt-nav {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.attempt-link {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #f9f9f9;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.attempt-link:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
}

.attempt-link.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    font-weight: bold;
}


.schools-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content:start; /* centers cards nicely */
}

.school-card {
  border: 1px solid #ccc;
  padding: 15px;
  flex: 1 1 300px; /* flexible width, min 300px */
  max-width: 400px; /* prevents cards from stretching too wide */
  border-radius: 8px;
  background-color: #f9f9f9;
  box-sizing: inset 0 1px 15px #0076d7;
}

.school-card h3 {
  margin-top: 0;
  color: #333;
}

.school-actions {
  margin-top: 10px;
}

.school-actions a {
  color: #0066cc;
  text-decoration: none;
}

.school-actions a:hover {
  text-decoration: underline;
}

/* ✅ Responsive tweaks */
@media (max-width: 768px) {
  .schools-container {
    flex-direction: column; /* stack cards vertically */
    align-items: center;
  }

  .school-card {
    width: 90%; /* take most of the screen width */
    max-width: none;
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  width: 100%;              /* allow flexibility */
  max-width: 406px;         /* keep your intended max size */
  margin: auto;             /* center in parent */
}

.course-card:hover {
  box-shadow: inset 0 1px 5px #0056b3;
}

.course-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #2facd9, #1f8bb5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.course-content {
  padding: 16px;
}

.course-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.overlay-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: #2facd9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.overlay-btn:hover {
  background: #1f8bb5;
  transform: scale(1.05);
}

/* Responsive layout */
@media (min-width: 768px) {
  .course-card {
    flex-direction: row;
    max-width: 700px; /* wider card for desktop */
  }
  .course-image {
    width: 40%;
    height: auto;
  }
  .course-content {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .course-title {
    font-size: 16px;
  }
  .course-description {
    font-size: 13px;
  }
  .overlay-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}
