/*
Theme Name: Three Sixty DS
Theme URI: https://threesixtyds.com
Author: The Idea Crowd
Description: The custom theme of Three Sixty DS offical website.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: threesixtyds
*/

body.admin-bar header nav {
  margin-top: 32px;
}

body header nav {
  border-bottom: 1px solid #fff;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media(max-width: 991px) {
  #menu-primary-nav {
    margin-top: 20px;
    border-top: 1px solid #fff;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.33);
  }
}

.navbar-overlay {
  background: transparent;
  transition: background 0.3s ease;
  padding: 20px 0;
}

body header nav a {
  color: #fff;
  padding: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

body header nav a:hover {
  color: #A40A0A;
}

@media(max-width: 991px) {
  body header nav a {
    display: block;
    padding: 10px;
  }
}

.navbar-scrolled,
.page-template-default .navbar,
.page-template-template-news .navbar,
.single-post .navbar,
.post-type-archive .navbar {
  background: #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
  background-size: 1px 107px;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

body.admin-bar::before {
  background-size: 1px 138px;
}

.page-content-container {
  position: relative;
  padding-top: 150px;
  background-color: #F5F5F5;
}

.page-content-container h2.sidebar-title {
  left: 20px;
  top: 275px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 80vh;
  background: url("./assets/homepage-hero.png") no-repeat;
  background-size: 120% auto;
  background-position: 19% center;
  padding: 100px 20px;
  padding-top: 120px;
}

main {
  background-color: #fff;
}

.hero-banner > .container {
  position: absolute;
  width: 600px;
  z-index: 2;
  text-align: left;
  padding-left: 0;
  left: calc(-50% + 78%);
}

/* Homepage styles */

body.home h1:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    background: black;
    left: -64px;
    top: 10px;
    z-index: -1;
}

body.home .dark-section h1:after {
    background: white;  
}

@media (min-width: 768px) {
  main .hp-hero-section {
      background-size: 120%;
      background-position: 0% 0%; /* = center right */
      transition: background-position 10s linear,
        background-size 10s linear;
  }

  main .hp-hero-section.pan {
    background-position: 50% 20%; /* = center left */
    background-size: 110%;
  }
}

.hp-hero-btn-right {
  justify-self: start;
  top: -1px;
  left: -3px;
}

.hp-hero-btn, .hp-hero-btn-right {
    border: 2px solid transparent;
    border-top-color: #fff;
    transition: border-color 0.3s ease;
}

.hp-hero-btn:hover, .hp-hero-btn-right:hover {
  border: 2px solid #A40A0A !important;
}

/* Homepage slider styles */
/*
.elementor-widget-image-carousel .swiper-slide {
  width: 20% !important;
}
*/

body.home .white-label h1:after {
  background: white;
}

/* SERVICES SECTION */
@media (min-width: 768px) {
  #services-accordion .e-n-accordion {
    columns: 2;
    column-gap: 16px;
  }
  #services-accordion .e-n-accordion-item {
    break-inside: avoid;
    display: block;
  }
  #services-accordion .e-n-accordion-item:nth-child(5) {
    break-after: column;
  }
}

/* CASE STUDIES SECTION */

.homepage-case-study a {
  position: absolute;
  display: block;
  width: 100px;
  height: 110px;
  right: 0;
  top: 0;
  color: #FFF;
  font-size: 50px;
  border-left: 1px solid #fff;
  text-align: center;
  line-height: 100px;
  font-family: "Bruno Ace";
}

/* CASE STUDY CAROUSEL SECTION */

.elementor-widget-image-carousel .swiper-slide {
  transition: width 1s ease;
}

@media (min-width: 768px) {
  .elementor-widget-image-carousel .swiper-slide.swiper-slide-active {
    width: 50% !important;
  }
}

#case-study-carousel .elementor-image-carousel-caption {
  display: none;
}

#case-study-carousel .swiper-slide-active .elementor-image-carousel-caption {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 1% 5%;
  color: #fff;
  display: block;
}

.e-n-accordion-item-title-text {
  transition: color 0.3s ease;
}

.e-n-accordion-item-title-text:hover {
  color: #A40A0A;
}

a {
  transition: color 0.3s ease;
}

a:hover {
  color: #A40A0A;
}

.elementor-swiper-button:hover svg path {
  fill: #A40A0A;
}

footer {
  background-color: #F5F5F5;
}

footer p {
  text-align: center;
}

footer ul li a {
  color: #333;
  text-decoration: none;
}

footer a svg {
  fill: #000;
}

footer ul li a:hover {
  color: #A40A0A;
}

footer .certificates img {
  margin: 0 5px;
}

/* Sidebar */
h2.sidebar-title {
    position: absolute;
    transform: rotate(270deg);
    color: #A40A0A;
    font-size: 16px !important;
    font-weight: 600 !important;
    left: -25px;
}

h2.sidebar-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    background: black;
    left: -64px;
    top: 10px;
    z-index: -1;
}

h2.sidebar-title.white {
    color: #fff;
}

h2.sidebar-title.white::after {
    background: white;
}

/* template parts styles */

.contact-footer {
  position: relative;
}

.contact-footer .container {
  max-width: 1000px;
  margin-bottom: 50px;
}

.contact-footer h2.sidebar-title {
  left: -5px;
  color: #A40A0A;
  top: 50px;
}

.contact-footer h2 {
  font-family: "Roboto", Sans-serif;
  font-size: 50px;
  font-weight: 600;
  color: #000;
  padding-left: 0;
}

.contact-footer svg {
  width: 3em;
  height: 3em;
  margin: 30px 0;
}

.contact-footer h5 {
  font-size: 1.75rem;
  font-weight: 600;
}

.contact-footer a {
  display: block;
  text-align: center;
  border: 2px solid #000;
  padding: 20px 20px 20px 20px;
  border-radius: 0;
  color: #000;
  text-decoration: none;
  margin-top: 30px;
}

.contact-footer a:hover {
  border: 2px solid #A40A0A;
}

.contact-footer p {
  color: #7A7A7A;
}

@media (max-width: 992px) {
    .contact-footer h2.sidebar-title {
        position: relative;
        transform: none;
        width: 50%;
        left: 75px;
        top: -40px;
    }


    .contact-footer .container h2 {
        font-size: 35px;
        margin-bottom: 35px;
    }

    .contact-footer svg {
        float: left;
        margin: 10px 0;
        margin-right: 15px;
    }

    .contact-footer .row {
        margin: 0 -5px;
    }
}

/* News page items */

.news-card {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    margin-bottom: 20px;
}

.news-card a {
    position: absolute;
    width: 100%;
    border-top: 1px solid #fff;
    bottom: 0;
    color: #fff;
    padding: 20px;
    text-decoration: none;
}

.news-card a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100px;
    height: 100%;
    width: 1px;
    background-color: #fff;
}

.news-card a::after {
    content: "";
    position: absolute;
    top: 37.5%;    /* (100% - 25%) / 2, centres it vertically */
    right: 40px;
    height: 25%;
    width: 20px;
    background-color: #fff;
    clip-path: polygon(0% 0%, 20% 0%, 100% 50%, 20% 100%, 0% 100%, 80% 50%);
    transition: background-color 0.2s ease;
}

.news-card a:hover::after {
    background-color: #A40A0A; /* colour on hover */
}


.news-card a .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-card a .sector {
   margin-bottom: 5px;
}

.recent-post-image {
  width: 100%;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.recent-post-card h3 {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
}

.recent-post-card h3:hover {
  color: #A40A0A;
}

#form_contact-form .frm_button_submit {
    background: none;
    color: #000;
    border-radius: 0;
    border: 1px solid #000;
    font-weight: 500;
    padding: 10px 50px;
}

#form_contact-form .frm_button_submit:hover {
  color: #A40A0A;
}