/*
Theme Name: DMPS
Author: NJ Technos
Description: A custom WordPress theme designed for modern schools and portfolio.
Version: 1.0.0
*/

/* -------------------------------------- */
/* --- Google Fonts (Only Poppins + Lato) --- */
/* -------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Lato:wght@300;400;700&family=Mukta:wght@300;400;600;700&display=swap');

/* -------------------------------------- */
/* --- Reset & Base --- */
/* -------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", Arial, sans-serif; /* Main font */
  font-size: 11px;
  font-weight: 400;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
    max-width: 100vw;

}


html, body {
  overflow-x: hidden;
}


/* -------------------------------------- */
/* --- Typography --- */
/* -------------------------------------- */

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: auto;
  margin-bottom: 20px;
  position: relative; /* Important for bottom bar */
  padding-bottom: 15px; /* Space for border bar */
}

/* Apply styling only to Gutenberg block headings */
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading{
    
  color:#660B13;
    position: relative;
    padding-bottom: 12px; /* space for bar */
}

/* Bottom bar for ALL wp-block-heading elements */
h1.wp-block-heading::after,
h2.wp-block-heading::after,
h3.wp-block-heading::after,
h4.wp-block-heading::after,
h5.wp-block-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10%;
    height: 6px;
    background-color: #660B13;
    border-radius: 0;
}


/* Sizes */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 18px;margin-bottom:0; }

/* Paragraphs use Lato */
p {
    text-align:justify !important;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
}

/* -------------------------------------- */
/* --- Additional global styles below --- */
/* -------------------------------------- */

.wp-block-image img {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    margin-bottom: 20px;
}


.wp-block-quote {
    position: relative;
    background:#ffcd7b;
    padding: 60px 70px; /* bigger spacing */
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: 50px 0;
}

/* Top-left quote */
.wp-block-quote::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 15px;
    font-size: 120px;
    color: #660B13;
    font-weight: 700;
}

/* Bottom-right quote */
.wp-block-quote::after {
    content: "”";
    position: absolute;
    bottom: -44px;
    right: 30px;
    font-size: 120px;
    color: #660B13;
    font-weight: 700;
}




/* Apply infographic numbers ONLY to ordered lists */
ol.wp-block-list {
    counter-reset: step-counter;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Each list item styled */
ol.wp-block-list > li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Number badge */
ol.wp-block-list > li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: #FFCD7B;
    border: 2px solid #660B13;
    border-radius: 50%;
    font-weight: 700;
    color: #660B13;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Fix multiline alignment */
ol.wp-block-list > li br {
    line-height: 1.7;
}

/* Left padding ONLY for UL wp-block-list */
ul.wp-block-list {
    padding-left: 15px !important;  /* Adjust this value as you like */
    margin-left: 10px !important;
}

/* Optional: spacing for each item */
ul.wp-block-list li {
    margin-bottom: 12px;
}

a {
    color: currentcolor;
    text-decoration: none;
}

@media (max-width: 768px) {

  .wp-block-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-table table {
    width: max-content;   /* 🔥 important */
    max-width: 100%;
    border-collapse: collapse;
  }

  .wp-block-table th,
  .wp-block-table td {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {
    .book-animation {
        padding: 40px 0;
    }
}

