/*Paragraph Spacing*/
body p {
margin: 0;
padding: 0;
}

/*Boxed Div*/
.boxedborder{
    background-color: #fff;
    color: #666;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
padding:10px;}

/*Button to Div Bottom*/
.bottomdiv {
display: flex; 
  flex-direction: column;}
.buttondiv {
  margin-top: auto;
}

/* Rotating slider module styling */
.rotating-slider {
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center; 
  text-align: center;
}

/* Mobile view: reduce text size */
@media screen and (max-width: 767px) {
  .rotating-slider h1 {
    font-size: 26px;       /* make H1 smaller than the rest */
  }
}

/* Black overlay on top of the background */
.rotating-slider::before {
  content: "";                     /* required for pseudo-element */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* 40% transparent black */
  z-index: 1;                        /* sits below text */
}
/* Keep text above overlay */
.rotating-slider > * {
  position: relative;
  z-index: 2;
  margin: 0;                         /* optional, remove extra spacing */
}
/* Responsive height for mobile */
@media (max-width: 768px) {
  .rotating-slider {
    height: 250px; /* smaller height on tablets and phones */
  }
}

/* Hide page heading only on homepage (Menu ID 101) */
body.itemid-101 #PageHeading {
    display: none;
}

/* Page heading horizontal line for all other pages */
#PageHeading h1 {
    border-bottom: 2px solid #e6d000; /* Line thickness and colour */
    padding-bottom: 10px; /* Space between text and line */
    width: 100%; /* Line spans full width */
    display: block; /* Ensures the width is respected */
}

/* Home button style */
.btnhome {
    background: transparent;
    border: 2px solid #e6d000;
    border-radius: 0px;
    color: #ffffff;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btnhome:hover {
    background: #e6d000;
    color: #464547;
    text-decoration: none;
}

/* Define the color for the underline on heading tags */
h1, h2, h3, h4, h5, h6 {
  border-bottom: 2px solid #E6D000;
  display: inline-block;
  padding-bottom: 5px;
}

/* Circle Icon Container */
.circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background-color: #ADADAD;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin: 0 auto 15px auto; /* centres block-level flex container */
}
.circle-icon:hover {
  background-color: #E6D000; /* Hover yellow */
}
.circle-icon img {
  max-width: 60%;
  max-height: 60%;
}

/* hide default heading container */
.page-header {
    position: relative;
    top: 0; /* reset any default */
}

/* move it into your visual wrapper */
.mycustom-wrapper {
    position: relative;
}

/* “pull” the heading into the wrapper visually */
.mycustom-wrapper .page-header h1 {
    position: relative;
    top: -50px;  /* adjust as needed */
    left: 0;
    margin: 0;
}
