/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

 
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}


.astrology-solution {
    background-color: #f8f8f8;
    padding: 30px 0;
    margin-top: 50px;
}

.title-text {
    margin: 20px 0;
}

.title-text em {
    color: #333333;
    font-style: normal;
    font-size: 16px;
}

.title-text h2, .title-text h1 {
    color: #222222;
    font-size: 35px;
    font-weight: 800;
    margin-top: 0;
}

.title-text span {
    color: #600A52;
}

.single-what-we-do .img-wrap, .single-what-we-do.content-left .content {
    float: left;
}

.single-what-we-do .img-wrap img {
    transform: scale(1);
    transition: all 0.5s;
}

.single-what-we-do .content, .single-what-we-do.content-left .img-wrap {
    float: right;
}

.single-what-we-do .content {
    padding: 20px 20px 0 38px;
    position: relative;
    width: 50%;
    border: 1px solid #E5E5E5;
    /* padding-bottom: 38px; */
    float: left;
    min-height: 300px;
    background-color: #fac908;
}

.content h2 {
    color: #600A52;
    font-size: 25px;
}

.content p {
    font-size: 16px;
    color: #000;
}

.content a {
    background-color: #600A52;
    color: #fff;
    padding: 8px 15px;
    display: inline-block;
    font-size: 16px;
}

.single-what-we-do .content::after {
    background: url(../images/arrow.png) no-repeat 0 0;
    width: 34px;
    height: 300px;
    content: ' ';
    position: absolute;
    top: -1px;
    left: -34px;
    z-index: 9;
}

.single-what-we-do .img-wrap {
    width: 50%;
    overflow: hidden;
    position: relative;
    float: left;
}

img {
    vertical-align: middle;
}

.single-what-we-do {
    margin-top: 25px;
    margin-bottom: 10px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */
















 /* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* layout */
.why-choose-wrap-layout2 .row {
    display: flex;
    align-items: flex-start;
}

/* columns */
.why-choose-wrap-layout2 .col-lg-7 { width: 65%; }
.why-choose-wrap-layout2 .col-lg-5 { width: 35%; }

/* full width section */
.full-width-content {
    width: 100%;
    margin-top: 20px;
}

/* text */
.why-choose-box-layout3 p,
.full-width-content p {
    text-align: justify;
    line-height: 1.8;
}



/* Global Heading Colors Override */
h1, h2, h3, h4, h5, h6, 
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.item-title, .item-title *,
.heading-title, .heading-title *,
.section-title, .section-title *,
.title, .title *,
.about-box-layout4 .item-title,
.about-box-layout1 .item-title {
  color: var(--text-light) !important;
}

/* Secondary highlight elements */
.item-title.accent-heading {
  color: var(--accent) !important;
}

/* Specific headings */
.text-primary, .text-Primary {
  color: var(--accent) !important;
}
.about-box-layout3 .item-title,
.about-box-layout7 .item-title,
.why-choose-box-layout4 .item-title,
.service-box-layout3 .item-title {
  color: var(--text-light) !important;
}
.service-box-layout1 .item-title a,
.service-box-layout2 .item-title a,
.service-box-layout4 .item-title a {
  color: var(--text-light) !important;
}
.service-box-layout1 .item-title a:hover,
.service-box-layout2 .item-title a:hover,
.service-box-layout4 .item-title a:hover {
  color: var(--accent) !important;
}
.widget-title, .widget-title * {
  color: var(--text-light) !important;
}


/* Gold Heading Colors Override */
h1, h2, h3, h4, h5, h6, 
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.item-title, .item-title *,
.heading-title, .heading-title *,
.section-title, .section-title *,
.title, .title *,
.about-box-layout4 .item-title,
.about-box-layout1 .item-title,
.widget-title, .widget-title * {
  color: var(--accent) !important; /* #D4AF37 */
}


/* ============================= */
/* 🔥 GLOBAL FIXES */
/* ============================= */

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

section {
  overflow: hidden;
}

/* ============================= */
/* 🔥 NAVBAR FIX (MOBILE MENU) */
/* ============================= */

.navbar {
  position: relative;
  z-index: 9999;
}

.navbar-collapse {
  z-index: 9999;
}

.navbar-toggler {
  border: none;
  outline: none;
}

/* ============================= */
/* 📱 MOBILE RESPONSIVE FIX */
/* ============================= */

@media (max-width: 991px) {

  .navbar-collapse {
    background: #2b1b4d; /* change if needed */
    padding: 15px;
  }

  .navbar-nav {
    text-align: left;
  }

  .navbar-nav li {
    margin-bottom: 10px;
  }
}

/* ============================= */
/* 📱 FULL MOBILE LAYOUT FIX */
/* ============================= */

@media (max-width: 768px) {

  /* Containers */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .row {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
  }

  /* All columns full width */
  [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 100% !important;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Text resizing */
  h1 {
    font-size: 22px !important;
    line-height: 1.4;
  }

  h2, h3 {
    font-size: 18px !important;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Remove unwanted spacing */
  .container, .row {
    margin: 0 !important;
  }

  /* ============================= */
  /* 🔥 FORM FIX (IMPORTANT) */
  /* ============================= */

  .talk-to-astrologer,
  .contact-form,
  .enquiry-form {
    position: static !important;
    width: 100% !important;
    margin-top: 20px !important;
    right: auto !important;
    left: auto !important;
  }

  .talk-to-astrologer form,
  .contact-form form,
  .enquiry-form form {
    width: 100%;
  }

  /* ============================= */
  /* 🔥 REMOVE OVERFLOW / BREAKING */
  /* ============================= */

  .hero-section,
  .banner,
  .home-section {
    padding: 20px 0 !important;
  }

  /* Fix buttons */
  button,
  .btn {
    width: auto;
    padding: 10px 15px;
    font-size: 14px;
  }

}

/* ============================= */
/* 🚫 FORCE REMOVE BAD STYLES */
/* ============================= */

@media (max-width: 768px) {

  * {
    left: auto !important;
    right: auto !important;
  }

  /* Prevent elements going outside */
  .container,
  .row,
  div {
    max-width: 100% !important;
  }

}