/*
Theme Name: ColorMag Pro Child
Theme URI: https://themegrill.com/themes/colormag/
Description: Child theme for ColorMag Pro with IGIHE-style homepage layout.
Author: Your Name
Template: colormag-pro
Version: 1.0
*/


h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000 !important;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}

/* ===== IGIHE-Style Header ===== */
.igeze-header {
  background-color: #0073b7 !important;
  border-bottom: 1px solid #005b92;
}

.igeze-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.igeze-menu-toggle {
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}



#igeze-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0073b7;
  padding: 10px 15px;
  z-index: 9999;
}

#igeze-nav .igeze-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#igeze-nav .igeze-menu li {
  margin: 6px 0;
}

#igeze-nav .igeze-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (min-width:768px) {
  .igeze-menu-toggle {
    display: none;
  }

  #igeze-nav {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
  }

  #igeze-nav .igeze-menu {
    flex-direction: row;
  }

  #igeze-nav .igeze-menu li {
    margin: 0 12px;
  }
}

/* ===== IGIHE-Style Homepage Posts ===== */
.igeze-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 20px auto;
}

.igeze-post {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.igeze-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.igeze-content {
  padding: 10px 15px 15px;
}

.igeze-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
  line-height: 1.3;
}

.igeze-title a {
  text-decoration: none;
  color: inherit;
}

.igeze-title a:hover {
  color: #005b92;
}

.igeze-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.igeze-share {
  text-decoration: none;
  color: #0073b7;
}

.igeze-share:hover {
  text-decoration: underline;
}







.cm-header-builder .cm-site-branding img {
  width: 145px !important;
}

@media (max-width: 600px) {
  .cm-header-builder .cm-site-branding img {
    width: 140px !important;
  }
}

@media (max-width: 768px) {
  .cm-header-builder .cm-site-branding img {
    width: 145px !important;
  }
}

.cm-header-builder .cm-mobile-row .cm-menu-toggle svg {
  width: 30px;
  height: 30px;
  fill: #fff !important;
}

.bn-news ul li a {
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  padding: 0 10px;
  color: #333;
  position: relative;
  display: block;
  overflow: hidden;
  left: 40px;
}





/*

.cm-featured-posts.cm-featured-posts--style-1{}




.cm-featured-posts--style-1 .mc-psts {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px;
  background-color: yellow;
  width: 100%;
  box-sizing: border-box;
}
.cm-featured-posts--style-1 .mc-psts .mc-pst {
  width: 100%;
  box-sizing: border-box;
}

*/

/*
.cm-container{
  
  }

.cm-header-builder {
  
}

.cm-header-builder .cm-bottom-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: 0 solid;
  position: relative;
  height: 40px;
}



@media (max-width: 768px) {
  .cm-header-builder .cm-site-branding img {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .cm-header-builder .cm-site-branding img {
    
  }
}



.cm-header-builder .cm-header-main-row {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .cm-header-builder .cm-site-branding img {
    width: 205px;
    margin-top: 3px;
    position: absolute;
  }

  .custom-logo {
    width: 110px !important
  }

*/


h1.cm-entry-title{ display:none}
@media (min-width: 768px) {
  .cm-primary{margin-right:25px}
  
section.widget.cm-featured-posts.cm-featured-posts--style-1{}
section.widget.cm-featured-posts.cm-featured-posts--style-1 .cm-entry-title a{font-size: 1.6em;}
}





@media (max-width: 768px) {
  .cm-container {

    margin-left: auto;
    margin-right: auto;
    padding-left: 8px;
    padding-right: 8px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
  }

  .cm-featured-category-slider {
    display: none;
  }



  #colormag_featured_posts_widget-1 .cm-posts .cm-post a {

    order: 2;
  }




  .cm-highlighted-posts .entry-date.published {

    color: black;
  }



  .cm-highlighted-posts .cm-post-content {
    position: unset !important;
    background: unset !important;
  }

  .cm-highlighted-posts .cm-entry-title a {
    color: black !important;
    font-weight: 700;
    text-shadow: none;
  }

  .cm-highlighted-posts .cm-post-date svg {
    fill: black !important;
  }



  .home .cm-beside-slider-widget #colormag_highlighted_posts_widget-1 {
    display: block;
  }











  .cm-front-page-top-section {
    margin-bottom: 0 !important;
  }

  .cm-content {

    padding-top: 0 !important;

  }

  .single .cm-entry-header .cm-entry-title {
    font-size: 2.2rem;
  }

  img.size-full,
  img.size-large {
    max-width: 100%;
    height: auto
  }

  .cm-posts .post {
    overflow: hidden;
    border-radius: 0px;
  }

}

/*.cm-entry-summary p{display: none;}*/





/*#####################################################*/

.cm-highlighted-posts .entry-date.published {
  color: black;
}

.cm-highlighted-posts .cm-post-content {
  position: unset !important;
  background: unset !important;
}

.cm-highlighted-posts .cm-entry-title a {
  color: black !important;
  font-weight: 700;
  text-shadow: none;
}

.cm-highlighted-posts .cm-post-date svg {
  fill: black !important;
}

.cm-entry-summary p {
  display: block;
}

.cm-featured-posts .cm-entry-summary p {
  display: none;
}

.colormag_tabbed_widget-1 .cm-tabbed-widget-recent .cm-post a {
  order: 2;
}

.cm-header-builder .cm-header-main-row {
  padding-top: 0px;
  padding-bottom: 0px;
}

.cm-right-sidebar .cm-content .cm-primary {
  padding-right: 0em;
}

@media(max-width:600px) {
  .cm-featured-category-slider {
    display: none;
  }

  #colormag_featured_posts_widget-1 .cm-posts .cm-post a {
    order: 2;
  }

  .home .cm-beside-slider-widget #colormag_highlighted_posts_widget-1 {
    display: block;
  }

  .cm-front-page-top-section {
    margin-bottom: 0 !important;
  }

  .cm-content {
    padding-top: 0 !important;
  }

  .cm-entry-summary p {
    display: block;
  }
}






/* Desktop: show only 4 posts */
@media (min-width: 768px) {
  .cm-post.high-post-item {
    display: none;
    /* hide all by default */
  }
  /* Show only posts 5, 6, and 7 */
  .cm-post.high-post-item:nth-child(5),
  .cm-post.high-post-item:nth-child(6),
  .cm-post.high-post-item:nth-child(7),
  .cm-post.high-post-item:nth-child(8) {
    display: block;
  }

  .cm-post.customimage-itangazo {
    display: none;
  }

 .cm-slide-content h3.cm-entry-title a{ color:#fff; }
 .cm-slide-content .cm-below-entry-meta{ display:none}
}


/* Mobile: show 10 posts */
@media (max-width: 767px) {
  .cm-post.high-post-item {
    display: none;
    /* hide all by default */
  }

  .cm-post.high-post-item:nth-child(-n+10) {
    display: block;
    /* show first 10 */
  }

  .cm-post.customimage-itangazo {
    display: block;
  }


  .cm-single-post-content .cm-entry-summary {
    padding: 0 10px;
    margin: 12px 0;
  }
  .cm-single-post-content .cm-entry-summary p{ font-size:1.0em}
}



/*

.cm-entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 4;
   Limit to 2 lines * /
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 6.2em;
  /* Optional: 1.3em per line × 4 lines * /
  line-height: 1.6em;
}*/

.cm-post-content.bighome .cm-entry-title a {

  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5.8em;
  /* Optional: 1.3em per line × 4 lines */
  line-height: 1.3em;
  
}




.default-wp-page {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.default-wp-page {
  flex-direction: row;
}

.default-wp-page li {
  flex: 1 1 auto;
}

.default-wp-page li {
  flex: 1;
  max-width: 120px;
}

/* Make links buttons */
.default-wp-page li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0073aa;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
  position: relative;
  width: 100%;
  color: #fff;
  /* for arrows if needed */
}

/* Completely hide the text nodes inside the link */
.default-wp-page li a {
  font-size: 0;
  /* hides the text completely */
  line-height: 0;
  /* prevents space */
}

/* Show arrows at normal size */
.default-wp-page li a svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  font-size: initial;
  /* reset SVG font-size */
}

/* Optional hover effect */
.default-wp-page li a:hover {
  background: #005177;
}

.default-wp-page li.previous a::after {
  content: "Previous";
}

.default-wp-page li.next a::after {
  content: "Next";
}



.first-fp {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 5px;
}

.first-fp .cm-entry-title {
  font-size: 1.2em;
}







.cm-entry-header-meta .cm-post-categories {
  display: none
}

.ad.customimage-itangazo img {
  width: 100% !important;
}


/*Pagination */
.cm-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  gap: 5px;
}

.cm-pagination li {
  margin: 0;
}

.cm-pagination a,
.cm-pagination span {
  display: block;
  padding: 8px 12px;
  background: #f0f0f0;
  color: #333;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cm-pagination a:hover {
  background: #0073aa;
  color: #fff;
}

.cm-pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}


#cm-primary.cm-primary{margin-bottom:-150px}


.container-hm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 20px;
  margin-top:-20px
}

.card {
  display: flex;
  border-radius: 5px;
  border:1px solid #f2f2f2;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* FIXED WIDTH image, same for all cards */
.card img {
  width: 140px;        /* ✅ same width for every image */
  height: auto;       /* optional: to keep same height */
  /*object-fit: cover;   /* ensures cropping, not stretching */
  flex-shrink: 0;      /* prevents image from shrinking */
}

/* text fills remaining space */
.card-content {
  flex: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content .cm-author.cm-vcard{display:none}
.card-content a{font-size:1.0em !important;}











/* Card layout */
.container-hm .card2 {
  display: flex;
  flex-direction: column; /* ✅ stack image on top, content below */
  background: #fff;
  border-radius: 5px;
  border:1px solid #f2f2f2;
  overflow: hidden;
  transition: transform 0.2s ease;
}

/* Image always same width */
.container-hm .card2 img {
  width: 100%;        /* full width of card */
  height: 250px;      /* fixed height for uniformity */
  object-fit: cover;  /* crop neatly without stretching */
  display: block;
}

/* Text section */
.container-hm .card-content2 {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.tibsd{
  background:#b9061b;
  padding: 10px 20px;margin-bottom:0px;
  display: flex;
  justify-content: space-between; /* pushes left & right */
  align-items: center; /* vertical alignment */
  font-weight: bold;
  font-size: 1.8em;
  color:#fff;
  border:1px solid #ddd; border-bottom:0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3)
}


#cm-secondary.cm-secondary{ }


#colormag_featured_posts_vertical_widget-2.widget.cm-featured-posts.cm-featured-posts--style-2{
  padding:10px;
	border:1px solid #ddd;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.yue{margin-top:-20px}
		
			
.cm-column-half.uiweu .cm-one-half .widget.cm-featured-posts.cm-featured-posts--style-1 .container-hm{ 
  width:100%;
  margin-top: 20px;
}
.cm-column-half.uiweu .cm-one-half .widget.cm-featured-posts.cm-featured-posts--style-1 .container-hm .card2 {
  display: flex;
  flex-direction: row;
}
.cm-column-half.uiweu .cm-one-half { padding-top:10px}



/* Container styling */
.comments-area {
    max-width: 100%;
    margin-bottom:600px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-bottom:100px;
}

/* Respond title */
.comment-reply-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #b9061b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form container */
.comment-form {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap:8px;
}

/* Notes */
.comment-notes {
    font-size: 0.85em;
    color: #555;
}

/* Labels */
.comment-form label {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
}

/* Inputs and textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #b9061b;
    box-shadow: 0 0 5px rgba(185, 6, 27, 0.3);
}

/* Checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    font-size: 0.85em;
}

.comment-form-cookies-consent input {
    margin-right: 8px;
}

/* Submit button */
.comment-form .submit {
    background-color: #b9061b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #e60d2a;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .comments-area {
        margin: 10px;
    }
    .comment-form {
        padding: 15px;
    }
}
