/* Colors */
:root{
    --primary-color: #864b03;
    --white: #F5F6F7;
    --dark-bg:rgb(136, 77, 3);
    --light-bg: #E6EEF2;

    --danger: #d10909;
    --accent: #0C4061;
    --accent-two: #126599;
    --success: #037e09;
}


/* Fonts */

/* Poppins Thin */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Thin.ttf');
    font-weight: 100;
    font-style: normal;
}
/* Poppins Thin Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-ThinItalic.ttf');
    font-weight: 100;
    font-style: italic;
}
/* Poppins ExtraLight */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-ExtraLight.ttf');
    font-weight: 200;
    font-style: normal;
}
/* Poppins ExtraLight Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-ExtraLightItalic.ttf');
    font-weight: 200;
    font-style: italic;
}
/* Poppins Light */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Light.ttf');
    font-weight: 300;
    font-style: normal;
}
/* Poppins Light Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-LightItalic.ttf');
    font-weight: 300;
    font-style: italic;
}
/* Poppins Regular */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}
/* Poppins Regular Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Italic.ttf');
    font-weight: 400;
    font-style: italic;
}
/* Poppins Medium */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Medium.ttf');
    font-weight: 500;
    font-style: normal;
}
/* Poppins Medium Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-MediumItalic.ttf');
    font-weight: 500;
    font-style: italic;
}
/* Poppins SemiBold */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf');
    font-weight: 600;
    font-style: normal;
}
/* Poppins SemiBold Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-SemiBoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
}
/* Poppins Bold */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}
/* Poppins Bold Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
}
/* Poppins ExtraBold */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-ExtraBold.ttf');
    font-weight: 800;
    font-style: normal;
}
/* Poppins ExtraBold Italic */
@font-face {
    font-family: "Poppins";
    src: url('../fonts/Poppins/Poppins-ExtraBoldItalic.ttf');
    font-weight: 800;
    font-style: italic;
}


/* General Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
body{
    background-color: var(--light-bg);
}
section{
    width: 100vw;
    padding: 50px 40px;
    height: fit-content;
}
section > header{
    width: 100%;
    justify-items: center;
}
section > header h1{
    text-align: center;
    color: var(--primary-color);
    width: fit-content;
    text-transform: capitalize;
    font-weight: 2rem;
    margin-bottom: 20px;
}
section > header h1::after{
    content: '';
    display: block;
    width: 70%;
    height: 5px;
    border-radius: 5px;
    background-color: var(--primary-color);
    margin-top: 4px;
    margin: auto;
}
button{
    border: none;
    outline: none;
    background-color: var(--accent);
    cursor: pointer;
    color: var(--white);
    font-weight: 600;
    padding: 12px;
    transition: .3s ease;
}
a{
    text-decoration: none;
    color: var(--white);
}
.no-scroll{
    height: 100vh;
    overflow: hidden;
}
.modal{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}
.modal .modal-backdrop{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.modal .modal-content{
    background: var(--primary-color);
    padding: 20px;
    z-index: 3;
    box-shadow: 5px 5px 0px var(--dark-bg);
    border-radius: 10px;
    min-width: 50%;
}
.modal .modal-content > header{
    width: 100%;
    justify-items: center;
}
.modal .modal-content > header h1{
    text-align: center;
    color: var(--white);
    width: fit-content;
    text-transform: capitalize;
    font-weight: 2rem;
    margin-bottom: 20px;
}
.modal .modal-content > header h1::after{
    content: '';
    display: block;
    width: 70%;
    height: 5px;
    border-radius: 5px;
    background-color: var(--white);
    margin-top: 4px;
    margin: auto;
}
.modal .modal-content .buttons{
    display: flex;
    justify-self: right;
    gap: 10px;
    margin-top: 20px;
}
.modal .modal-content .buttons button{
    padding: 10px 40px;
    border-radius: 5px;
    background: var(--success);
    box-shadow: 3px 3px 0 var(--dark-bg);
}
.modal .modal-content .buttons button#cancel,
.modal .modal-content .buttons button#close{
    background: var(--danger);
}

/* Header */
.header{
    height: 10vh;
    width: 100vw;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.header .logo{
    color: var(--white);
    font-weight: 700;
    font-size: 1.7rem;
}
.header .nav-links{
    display: flex;
    align-items: center;
    height: 100%;
    gap: 18px;
}
.header .nav-links a{
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    width: fit-content;
    font-size: .9rem;
}
.header .nav-links a::after{
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    margin: auto;
    border-radius: 2px;
    background-color: var(--white);
    transition: .3s ease;
    transition-delay: .1s;
}
.header .nav-links a:hover::after{
    width: 100%;
}
.header .nav-links .quick-actions{
    margin-left: 0px;
    padding-left: 15px;
    border-left: 2px solid var(--dark-bg);
}
.header .nav-links .quick-actions button{
    background-color: var(--accent);
    color: var(--white);
    cursor: pointer;
    padding: 8px 15px;
    font-weight: 600;
    margin-right: 7px;
    border-radius: 3px;
    font-size: .8rem;
}

/* --- Mobile Menu Toggle Styles --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  margin-left: 10px;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
  .header .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-color);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .header .nav-links.active {
    display: flex;
  }
  .header {
    position: relative;
  }
}
@media (max-width: 600px) {
  .header {
    flex-direction: row;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
  }
  .logo {
    font-size: 1.2rem;
  }
}
/* --- End Mobile Menu Toggle Styles --- */

/* Study Tools */
.study-tools .tools{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7%;
    margin-top: 50px;
    width: 85%;
    justify-self: center;
}
.study-tools .tools .tool{
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow-y: hidden;
    transition: .3s ease;
    min-height: 180px;
}
.study-tools .tools .tool:hover{
    background: var(--accent);
}
.study-tools .tools .tool strong{
    font-size: 5rem;
    color: var(--light-bg);
}
.study-tools .tools .tool label{
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
}

/* WhatsApp CTA */
.whatsapp-class-section{
    padding-top: 10px;
}
.whatsapp-class-link{
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    color: inherit;
}
.whatsapp-class-box{
    background: #25d366;
    color: #ffffff;
    text-transform: capitalize;
    border-radius: 12px;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.whatsapp-class-box i{
    font-size: 1.2rem;
    line-height: 1;
}
.whatsapp-class-box:hover{
    background: #1faa52;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(31, 170, 82, 0.3);
}


/* Footer */
.footer{
    background: var(--primary-color);
}
.footer .footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--white);
}
.footer .footer-left h3 {
    font-size: 1.6rem;
}
.footer .footer-links a {
    margin: 0 12px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s ease;
}
.footer .footer-links a:hover {
    color: var(--accent);
}
.footer .footer-socials a {
    margin: 0 10px;
    color: var(--white);
    font-size: 1.2rem;
    transition: 0.3s ease;
}
.footer .footer-socials a:hover {
    color: var(--accent);
}
.footer .footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--white);
    color: var(--white);
    opacity: .7;
}

/* ============================
   RESPONSIVE DESIGN (CLEAN)
   Replace your old responsive blocks with this
   ============================ */

/* Prevent horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Media elements */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* IMPORTANT: Your base section uses width:100vw + padding => overflow on mobile
   We override to width:100% safely */
section {
  width: 100%;
}

/* ✅ DO NOT force buttons 100% globally (breaks header buttons)
   Only inputs/textarea/select should be full width */
input, select, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1em;
  margin-bottom: 0.5em;
}

button {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================
   HEADER + MOBILE NAV TOGGLE
   ============================ */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;

  /* ✅ push to the far right */
  margin-left: auto;

  /* tap area */
  padding: 6px 10px;
}

@media (max-width: 900px) {
  /* Keep header in one row (logo left, toggle right) */
  .header {
    position: relative;
    height: auto;
    width: 100%;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header .logo {
    font-size: 1.3rem;
  }

  /* show toggle on mobile */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide nav by default on mobile */
 .header .nav-links {
  display: none;
  flex-direction: column;

  /* FULL-WIDTH DROPDOWN PANEL */
  width: 100%;
  min-height: calc(100vh - 60px); /* fills screen below header */
  background-color: var(--primary-color);

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;

  padding: 16px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


  /* Show nav when active */
  .header .nav-links.active {
    display: flex;
  }

  /* Make links full width */
  .header .nav-links a {
    width: 100%;
    padding: 10px 14px;
  }

  /* Quick actions layout */
  .header .nav-links .quick-actions {
    width: 100%;
    border-left: none;
    padding-left: 0;
    margin-top: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px;
  }

  .header .nav-links .quick-actions button {
    margin-right: 0;
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 18px 14px;
  }

  /* Make form buttons full width only on small phones */
  form button {
    width: 100%;
  }
}

/* ============================
   STUDY TOOLS GRID (INDEX)
   ============================ */

/* Desktop stays grid 3 columns from your main CSS:
   .study-tools .tools { display:grid; grid-template-columns:1fr 1fr 1fr; } */

@media (max-width: 900px) {
  .study-tools .tools {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .study-tools .tools {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 25px;
  }

  .study-tools .tools .tool {
    min-height: 150px;
    padding: 16px;
  }

  .study-tools .tools .tool strong {
    font-size: 3.5rem;
  }

  .study-tools .tools .tool label {
    font-size: 1.1rem;
  }

  .whatsapp-class-box {
    font-size: 0.95rem;
    padding: 14px 12px;
  }
}

/* ============================
   FOOTER
   ============================ */

@media (max-width: 600px) {
  .footer .footer-container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 0 14px;
  }

  .footer .footer-links a {
    display: inline-block;
    margin: 6px 0;
  }

  .footer .footer-socials a {
    margin: 0 10px 0 0;
  }
}

/* Hide scrollbars on mobile */
@media (max-width: 600px) {
  ::-webkit-scrollbar {
    display: none;
  }
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}
