/* ===========================================================
   Base / shared site styles (from contact.css)
   Merged in here so learningmaterials.php and
   admin_learningmaterials.php don't need to link contact.css
   =========================================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Video Background */
video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(60%);
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* WhatsApp Chat */
.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #128C7E;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 0 10px #128C7E;
}

.chat#logIn {
  box-shadow: 0 0 10px #c87618ff;
}

.chat#profile {
  box-shadow: 0 0 10px #0066cc;
}

.chat#admin {
  box-shadow: 0 0 10px #228B22;
}

.chat a {
  font-size: 18px;
  padding: 10px;
  color: #fff;
  display: block;
}

/* Header */
.header {
  background: #111;
  box-shadow: 0 0 20px #222;
  padding: 2px;
  z-index: 10;
  position: relative;
}

.header .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  width: 150px;
  border-radius: 50%;
  padding: 30px 0;
}

/* Nav */
.nav {
  display: flex;
}

.nav-ul {
  display: flex;
  list-style: none;
  padding-right: 50px;
}

.nav-ul li {
  padding: 20px;
}

.nav-ul li a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  text-shadow: 0 0 1px #f2f2f2;
  transition: 0.3s;
}

.nav-ul li a:hover {
  color: #0062ad;
  text-shadow: 0 0 1px #0062ad;
}

/* Mobile Menu */
.menu {
  display: none;
}

#menuIcon {
  font-size: 25px;
  color: #fff;
  cursor: pointer;
  float: right;
  margin: 50px;
}

#closeIcon {
  font-size: 25px;
  color: #0062ad;
  cursor: pointer;
  float: right;
  margin: 50px;
}

#container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #e3e7f3;
  transition: 0.5s;
  z-index: 999;
}

#container.active {
  right: 0;
}

#navLinks #menu {
  list-style: none;
  padding-top: 100px;
  text-align: center;
}

#navLinks #menu li {
  margin: 20px 0;
}

#navLinks #menu li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.welcome {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.welcome .heading {
    color: #00487e;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    opacity: 1;
    letter-spacing: 3px;
    text-align: center;
    margin: 20px auto 0;
    z-index: 1;
}

.welcome .heading::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00487e);
    border-radius: 4px;
    margin: 18px auto 0;
}

.gmails {
    margin: 20px 0 0 160px;
}

.gmails p {
    color: #444;
    line-height: 30px;
    font-size: 18px;
}

.gmails a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-family: 'montserrat', sans-serif;
}

.gmails a i {
    color: #3b5998;
}

.addresses {
    display: flex;
    margin: 20px 200px 100px 160px;
    gap: 70px;
}

.header .japanese-smthing {
    color: #fff;
    margin-top: 60px;
    font-size: 22px;
}

.addresses .country .heading{
    color: #00487e;
    font-size: 25px;
    font-weight: 600;
    font-family: 'poppins', sans-serif;
    margin: 20px 0;
}

.country p {
    color: #555;
}

/* Container responsiveness */
.contactDiv {
    width: 90%; /* Fluid width for mobile */
    max-width: 500px; /* Limits size on desktop */
    margin: 20px auto;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    text-align: center;
    color: #111827;
    margin-bottom: 20px;
}

/* Form styling */
.input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px; /* Prevents auto-zoom on iOS */
    box-sizing: border-box; 
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.input {
    min-height: 150px;
    resize: none;

}

button[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Media Query for very small screens */
@media (max-width: 400px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-form h2 {
        font-size: 1.25rem;
    }
}

.hidden {
    display: none !important;
}

/* --- FOOTER STYLING --- */

.main-footer {
    background-color: #e2e2e2; /* Dark background */
    color: #fff;
    padding: 40px 20px 0;
    font-family: Arial, sans-serif;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-col {
    width: 23%; /* Approx width for 4 columns */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: #00487e; /* Your primary color */
    margin-bottom: 15px;
    border-left: 3px solid #00487e;
    padding-left: 10px;
}

.footer-col p {
  color: #222;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.footer-links ul li a:hover {
    color: #00487e;
    letter-spacing: 2px;
}

.footer-contact a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-contact a:hover {
    color: #00487e;
    letter-spacing: 2px;
}

/* Social Media */
.social-links a {
    display: inline-block;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    margin-top: 20px;
}

.social-links a.facebook {
  color: #1877F2;
}

.social-links a.facebook:hover {
  background: #1877F2;
  color: #fff;
}

.social-links a.youtube {
  color: #FF0000;
}

.social-links a.youtube:hover {
  background: #FF0000;
  color: #fff;
}

.social-links a.whatsapp {
  color: #075e54;
}

.social-links a.whatsapp:hover {
  background: #075e54;
  color: #fff;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

/* Media Queries */

@media (max-width: 1300px) {
  .nav-ul li {
    padding: 10px;
  }

  .gmails,
  .addresses {
    margin-left: 50px;
    margin-right: -50px;
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center; 
    padding-bottom: 30px;
  }

  .footer-col {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
    text-align: center; 
  }

  .footer-logo {
    margin: 0 auto 15px auto;
  }

  .footer-col h4 {
    border-left: none; 
    padding-left: 0;
  }

  
  .social-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .footer-links ul {
    display: inline-block;
    text-align: center; 
  }
}

@media (max-width: 1000px) {
  .header .flex .nav {
    display: none;
  }

  .header .flex .menu {
    display: block;
  }
}


@media (max-width: 700px) {
  .footer-bottom p {
    text-align: left;
  }

  .welcome .heading {
    font-size: 1.9rem;
    letter-spacing: 1.5px;
    padding: 0 15px;
  }

  .welcome .left-side {
    margin-top: 50px;
  }

  .materials-grid {
    gap: 28px;
    margin: 28px auto 50px;
    padding: 0 14px;
  }

  .material-info {
    padding: 18px 18px 22px;
  }

  .material-title {
    font-size: 19px;
  }

  .material-description {
    font-size: 14.5px;
  }
}

@media (max-width: 420px) {
  .welcome .heading {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .admin-shortcut-btn {
    font-size: 14px;
    padding: 9px 16px;
  }
}

/* ===========================================================
   Learning Materials page-specific styles
   =========================================================== */

/* ===== Public listing page ===== */

.admin-shortcut {
    display: flex;
    justify-content: center;
    margin: 10px 0 30px;
}

.admin-shortcut-btn {
    background-color: #228B22;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'montserrat', sans-serif;
}

.materials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 880px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

.no-materials {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 40px 0;
}

.material-card {
    background: #fff;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 72, 126, 0.12);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeef3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 72, 126, 0.18);
}

.material-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.material-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.material-fallback-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    gap: 8px;
}

.material-info {
    padding: 22px 26px 28px;
}

.material-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.platform-youtube {
    background: #ffe4e4;
    color: #cc0000;
}

.platform-facebook {
    background: #e4edff;
    color: #0066cc;
}

.platform-other {
    background: #eee;
    color: #555;
}

.material-title {
    font-family: 'montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a2b3c;
}

.material-description {
    font-size: 15.5px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ===== Admin management page ===== */

.admin-materials-wrap {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 30px;
}

.admin-back-link a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
}

.form-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-alert-error {
    background: #ffe4e4;
    color: #a10000;
}

.form-alert-success {
    background: #e3f6e3;
    color: #1e6b1e;
}

.admin-add-form {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.admin-add-form h2,
.admin-materials-list h2 {
    font-family: 'montserrat', sans-serif;
    margin-top: 0;
}

.admin-add-form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    color: #333;
}

.admin-add-form .input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.admin-add-form textarea.input {
    min-height: 90px;
    resize: vertical;
}

.admin-add-form button {
    margin-top: 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.admin-add-form button:hover {
    background: #004c99;
}

.admin-materials-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.admin-materials-table th,
.admin-materials-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.admin-materials-table th {
    background: #f4f4f4;
    font-family: 'montserrat', sans-serif;
}

.inline-form {
    display: inline;
}

.status-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

.status-active {
    background: #e3f6e3;
    color: #1e6b1e;
}

.status-inactive {
    background: #eee;
    color: #777;
}

.delete-btn {
    background: #ffe4e4;
    color: #a10000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ffcccc;
}