/*
    Theme Name: DGweb Theme
    Author: Snap
    Author URI: http://www.snap.ie/
    Version: 1.0
    Description: Theme that is flexible and looks great on any device, big or small.
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*  ============================================================================
    TABLE OF CONTENTS
    ============================================================================

    # TYPOGRAPHY
    # LAYOUT
    # - Wrappers
    # - Rows
    # - Sections
    # COMPONENTS
    # - Logo
    # - hCard
    # - Bootstrap navbar
    # - Custom menu
    # - Footer menu
    # - News feed carousel
    # - Testimonials feed carousel
    # - Gallery
    # - Forms
    # - Buttons
    # - Optional
    # WORDPRESS
    # HELPERS
    --------------------------------------------------------------------------*/

/*  ----------------------------------------------------------------------------
    # TYPOGRAPHY
    ------------------------------------------------------------------------- */

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
        font-weight: 400;
        color: #2e368e;
    }

    h1, .h1 { font-size: 24px; }
    h2, .h2 { font-size: 22px; }
    h3, .h3 { font-size: 20px; }
    h4, .h4 { font-size: 18px; }
    h5, .h5 { font-size: 16px; }
    h6, .h6 { font-size: 14px; }

    h1, .h1, h2, .h2, h3, .h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    h4, .h4, h5, .h5, h6, .h6 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    a {
        color: #23408f;
    }

    a:hover,
    a:focus {
        color: #40b048;
    }

    .alert {
        padding: 5px 15px;
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {

        h1, .h1 { font-size: 26px; }
        h2, .h2 { font-size: 24px; }
        h3, .h3 { font-size: 22px; }
        h4, .h4 { font-size: 20px; }
        h5, .h5 { font-size: 18px; }
        h6, .h6 { font-size: 16px; }
        
    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992) {

        h1, .h1 { font-size: 28px; }
        h2, .h2 { font-size: 26px; }
        h3, .h3 { font-size: 24px; }
        h4, .h4 { font-size: 22px; }
        h5, .h5 { font-size: 20px; }
        h6, .h6 { font-size: 18px; }
        
    }

/*  ----------------------------------------------------------------------------
    # LAYOUT
    ------------------------------------------------------------------------- */

    body {
        color: #333333;
        background-color: #e6e6e6; 
        margin-bottom: 3em;
        position: relative;
    }

/*  ----------------------------------------------------------------------------
    - Wrappers */

    .header-wrapper {
        margin-top: 15px;
        position: relative;
    }

    .main-wrapper {
    }

    .widget-wrapper-1 {
        padding-bottom: 20px;
    }

/*  ----------------------------------------------------------------------------
    - Rows */
    
    .header-row-1 {
        padding: 10px 0;
        background: #2e368e;
    }

    .header-row-2 {
        background: #fff;
        margin-bottom: 15px;
        border: 1px solid #23408f;
    }

    .header-row-3 {
    }

    .main-row-1 {
        padding-top: 20px;
        background: #fff;
    }

    .main-row-2 {
        background: #fff;
    }

    .footer-row {
        padding: 10px 0;
    }

/*  ----------------------------------------------------------------------------
    - Sections */

    .main-section {
        padding-bottom: 20px; 
    }

/*  ----------------------------------------------------------------------------
    # COMPONENTS
    ------------------------------------------------------------------------- */

/*  ----------------------------------------------------------------------------
    - Logo */

    .logo {
        display: block;
        height: 55px;
        width: 100%;
        overflow: hidden;
        text-align: left;
    }

    .logo img {
        position: relative;
        top: -45px;
        left: -7px;
        width: 140px;
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {

        .logo {
            height: auto;
            text-align: center;
        }
        
        .logo img {
            top: 0;
            left: 0;
            width: auto;
        }

    }

/*  ----------------------------------------------------------------------------
    - hCard */

    .vcard_address {
        padding-bottom: 1em;
    }

    .vcard_address span {
        display: block;
    }

    /* Option 1 */
    .vcard-1 .vcard_email {
        color: #fff;
        font-weight: 200;
    }
    
    .vcard-1 .vcard_email-link {
        color: #fff;
        padding-left: 5px;
    }
    
    /* Option 2 */
    .vcard-2 .vcard_tel-link {
        color: #333;
        text-decoration: none;
    }
    
    /* Break point */
    @media (min-width: 560px) {
        
        .vcard_address {
            float: left;
            width: 50%;
        }

    }
    
    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {
        
        .vcard_address {
            float: none;
            width: 100%;
        }
        
    }

/*  ----------------------------------------------------------------------------
    - Bootstrap navbar */

    .navbar {
        min-height: 1px;
        margin-bottom: 0;
        border: 0;
        background-color: #40b048;
        position: absolute;
        bottom: 15px;
        z-index: 10;
    }

    .navbar-brand {
        color: #fff;
        padding: 12px 15px;
        font-size: 16px;
        line-height: 20px;
    }

    .navbar-nav > li > a {
        color: #fff;
        text-transform: uppercase;
        font-size: 0.9em;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .navbar-nav > li > a:hover,
    .navbar-nav > li > a:focus {
        color: #23408f;
    }

    .navbar-nav > .active > a,
    .navbar-nav > .active > a:hover,
    .navbar-nav > .active > a:focus {
        color: #23408f;
    }

    .navbar-toggle {
        padding: 7px 8px;
        margin-top: 7px;
        margin-bottom: 7px;
        border: 1px solid #fff;
        border-radius: 0;
    }

    .navbar-toggle:hover,
    .navbar-toggle:focus {
    }

    .navbar-toggle .icon-bar {
        background-color: #fff;
    }

    .navbar-nav > .dropdown > a:hover .caret,
    .navbar-nav > .dropdown > a:focus .caret {
        border-top-color: #2e368e;
        border-bottom-color: #2e368e;
    }
    
    .navbar-nav > .open > a,
    .navbar-nav > .open > a:hover,
    .navbar-nav > .open > a:focus {
        color: #2e368e;
        background-color: #28aae1;
    }
    
    .navbar-nav > .open > a .caret,
    .navbar-nav > .open > a:hover .caret,
    .navbar-nav > .open > a:focus .caret {
        border-top-color: #2e368e;
        border-bottom-color: #2e368e;
    }
    
    .navbar-nav > .dropdown > a .caret {
        border-top-color: #fff;
        border-bottom-color: #fff;
    }

    .navbar-collapse {
        border-top: 0;
        box-shadow: none;
    }

    .no-js .navbar-collapse {
        display: block !important;
    }

    .dropdown-menu {
        border: 0;
        border-radius: 0px;
    }

    .no-js .navbar-nav li:hover .dropdown-menu {
        display: block !important;
    }

    .navbar-nav .open .dropdown-menu {
        background-color: #fff;
    }

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus {
        color: #28aae1;
        background-color: #fff;
    }
    
    .dropdown-menu > .active > a,
    .dropdown-menu > .active > a:hover,
    .dropdown-menu > .active > a:focus {
        color: #28aae1;
        background-color: #fff;
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {

        .navbar-brand {
            display: none;
        }
        
        .navbar-nav > li > a {
            padding: 10px;
        }

    }

/*  ----------------------------------------------------------------------------
    - Custom menu */

    .custom-menu-wrapper ul,
    .custom-menu-wrapper ul li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    ul.custom-menu li a {
        cursor: pointer;
        display: block;
        padding: 5px 10px;
        border-bottom: 1px solid #e6e6e6;
        text-decoration: none;
    }

    ul.custom-menu li.menu-item a:link,
    ul.custom-menu li.menu-item a:visited {
        color: #333333;
    }

    ul.custom-menu li:hover a:link,
    ul.custom-menu li:hover a:visited,
    ul.custom-menu li.menu-item a:hover,
    ul.custom-menu li.menu-item a:active,
    ul.custom-menu li.current-menu-item a:link,
    ul.custom-menu li.current-menu-item a:hover,
    ul.custom-menu li.current-menu-item a:active,
    ul.custom-menu li.current-menu-item a:visited {
        color: #28aae1;
    }

/*  ----------------------------------------------------------------------------
    - Footer menu */

    .footer-menu-wrapper {
        text-align: center;
        color: #333333;
        margin-bottom: 1em;
        font-size: 0.9em;
    }

    .footer-menu-wrapper ul,
    .footer-menu-wrapper ul li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    ul.footer-menu li {
        display: inline;
        padding: 0 3px;
    }

    ul.footer-menu li a {
        display: inline-block;
    }

    ul.footer-menu li.menu-item a:link,
    ul.footer-menu li.menu-item a:visited {
        color: #333333;
        text-decoration: none;
    }

    ul.footer-menu li:hover a:link,
    ul.footer-menu li:hover a:visited,
    ul.footer-menu li.menu-item a:hover,
    ul.footer-menu li.menu-item a:active {
        color: #333333;
        text-decoration: underline;
    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) {

        .footer-menu-wrapper {
            text-align: right;
        }

    }

/*  ----------------------------------------------------------------------------
    - News feed carousel */
    
    .news-feed-init,
    .news-feed {
        overflow-x: hidden;
    }

    .no-js .news-feed {
        height: 250px;
        /*display: none;*/
    }

    .news-feed-item {
        display: block;
        float: left;
        width: 100%;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #e6e6e6;
        color: #333333;
    }

    a.news-feed-item:hover,
    a.news-feed-item:focus {
        text-decoration: none;
    }

    .news-feed-item-heading {
        color: #28aae1;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .news-feed-item-text {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .news-feed-item-text:hover,
    .news-feed-item-text:focus {
        color: #28aae1;
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {

        .no-js .news-feed {
            height: 308px;
        }

    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) {

        .no-js .news-feed {
            height: 237px;
        }

    }    

/*  ----------------------------------------------------------------------------
    - Testimonials feed carousel */
    
    .testimonials-feed-init,
    .testimonials-feed {
        overflow-x: hidden;
    }

    .testimonials-feed-item {
        display: block;
        float: left;
    }

    .testimonials-feed-item blockquote {
        margin: 0;
    }

    .no-js .testimonials-feed {
        height: 140px;
        /*display: none;*/
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) {

        .no-js .testimonials-feed {
            height: 90px;
        }

    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) {

        .no-js .testimonials-feed {
            height: 133px;
        }

    }

/*  ----------------------------------------------------------------------------
    - Gallery */

    /* Gallery thumbnails */
    .es-carousel-wrapper {
        margin-bottom: 15px;
        position: relative;
        padding: 5px 30px;
        background: #cccccc;
    }

    .es-carousel {
        overflow: hidden;
    }

    .es-carousel ul {
        display: block;
        padding: 0;
        margin: 0 40px;
        white-space: nowrap;
    }

    .es-carousel ul li {
        height: 100%;
        float: left;
        display: block;
    }

    .es-carousel ul li a {
        display: block;
        border: 1px solid #cccccc;
        opacity: 0.8;
        -webkit-touch-callout: none;
        -webkit-transition: all 0.2s ease-in-out;
        -moz-transition: all 0.2s ease-in-out;
        -o-transition: all 0.2s ease-in-out;
        -ms-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    .es-carousel ul li.selected a,
    .es-carousel ul li a:hover {
        border-color: #28aae1;
        opacity: 1.0;
    }

    .es-carousel ul li a img {
        display: block;
        border: none;
        height: auto;
        max-width: 100%;
    }

    .es-nav span {
        position: absolute;
        top: 50%;
        background: url(images/gallery/nav_thumbs.png) no-repeat;
        width: 14px;
        height: 26px;
        margin-top: -13px;
        text-indent: -9999px;
        cursor: pointer;
        opacity: 0.5;
    }
    
    .es-nav span.es-nav-next {
        right: 8px;
        left: auto;
        background-position: top right;
    }
    
    .es-nav span.es-nav-prev {
        left: 8px;
        right: auto;
        background-position: top left;
    }

    .es-nav span:hover {
        opacity: 1.0;
    }

    /* Gallery images */
    .rg-image-wrapper {
        position: relative;
        padding: 0 28px;
        background: #fff;
        margin-bottom: 15px;
        min-height: 196px;
    }

    .rg-image {
        position: relative;
        text-align: center;
    }

    .rg-image img {
        height: auto;
        max-width: 100%;
    }

    .rg-image-nav a {
        position: absolute;
        top: 0;
        background: url(images/gallery/nav.png) no-repeat #ccc;
        width: 28px;
        height: 100%;
        text-indent: -9999px;
        cursor: pointer;
        outline: none;
    }

    .rg-image-nav a.rg-image-nav-next {
        background-position: -33px 50%;
        right: 0;
        left: auto;
    }

    .rg-image-nav a.rg-image-nav-prev {
        background-position: 5px 50%;
        left: 0;
        right: auto;
    }

    .rg-image-nav a:hover {
        background-color: #28aae1;
    }

    .rg-caption {
        position: relative;
        text-align: center;
        margin-top: 15px;
        font-size: 0.9em;
    }

    .rg-loading {
        width: 46px;
        height: 46px;
        position: absolute;
        top: 50%;
        left: 50%;
        background: #000 url(images/gallery/ajax-loader.gif) no-repeat center center;
        margin: -23px 0px 0px -23px;
        z-index: 100;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        opacity: 0.7;
    }

/*  ----------------------------------------------------------------------------
    - FlexSlider */

    /*
     * jQuery FlexSlider v2.2.0
     * http://www.woothemes.com/flexslider/
     *
     * Copyright 2012 WooThemes
     * Free to use under the GPLv2 license.
     * http://www.gnu.org/licenses/gpl-2.0.html
     *
     * Contributing author: Tyler Smith (@mbmufffin)
     */

    /* Browser Resets
    *********************************/
    .flex-container a:active,
    .flexslider a:active,
    .flex-container a:focus,
    .flexslider a:focus  {outline: none;}
    .slides,
    .flex-control-nav,
    .flex-direction-nav {margin: 0; padding: 0; list-style: none;}

    /* Icon Fonts
    *********************************/
    /* Font-face Icons */
    @font-face {
        font-family: 'flexslider-icon';
        src:url('fonts/flexslider-icon.eot');
        src:url('fonts/flexslider-icond41d.eot?#iefix') format('embedded-opentype'),
            url('fonts/flexslider-icon.woff') format('woff'),
            url('fonts/flexslider-icon.ttf') format('truetype'),
            url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
        font-weight: normal;
        font-style: normal;
    }

    /* FlexSlider Necessary Styles
    *********************************/
    .flexslider {margin: 0; padding: 0;}
    .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
    .flexslider .slides img {max-width: 100%; height: auto; display: block;}
    .flex-pauseplay span {text-transform: capitalize;}

    /* Clearfix for the .slides element */
    .slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
    html[xmlns] .slides {display: block;}
    * html .slides {height: 1%;}

    /* No JavaScript Fallback */
    /* If you are not using another script, such as Modernizr, make sure you
     * include js that eliminates this class on page load */
    .no-js .slides > li:first-child {display: block;}

    /* FlexSlider Default Theme
    *********************************/
    .flexslider { margin: 0; position: relative; zoom: 1; }
    .flexslider .slides { zoom: 1; }

    .flex-caption {
        position: absolute;
        left: 0;
        bottom: 10px;
        background: #fff;
        padding: 3px 7px;
        margin: 0;
        font-size: 0.9em;
    }

    /* Direction Nav */
    .flex-direction-nav {
        *height: 0;
    }
    
    .flex-direction-nav a  {
        display: block;
        width: 40px;
        height: 40px;
        margin: -20px 0 0;
        position: absolute;
        top: 50%;
        z-index: 10;
        overflow: hidden;
        cursor: pointer;
    }
    
    .flex-direction-nav .flex-prev {
        left: 10px;
        text-align: left;
    }
    
    .flex-direction-nav .flex-next {
        right: 10px;
        text-align: right;
    }
    
    .flex-direction-nav a:before {
        font-family: 'flexslider-icon';
        font-size: 35px;
        display: inline-block;
        content: '\f001';
    }
    
    .flex-direction-nav a.flex-next:before  {
        content: '\f002';
    }

    /* Control Nav */
    .flex-control-nav {
        width: 100%;
        position: absolute;
        left: 0;
        top: 10px;
        z-index: 999;
        text-align: right;
    }
        
    .flex-control-nav li {
        margin: 0 5px;
        display: inline-block;
        zoom: 1;
        *display: inline;
    }
    
    .flex-control-paging li a {
        width: 11px;
        height: 11px;
        display: block;
        background: #28aae1;
        cursor: pointer; 
        font: 0/0 a;
        text-shadow: none;  
        color: transparent;
        overflow: hidden;
    }
    
    .flex-control-paging li a:hover {
        background: #2e368e;
    }
    
    .flex-control-paging li a.flex-active {
        background: #2e368e;
        cursor: default;
    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) {

        .flex-caption {
            padding: 5px 15px;
            font-size: 1.1em;
        }

    }

/*  ----------------------------------------------------------------------------
    - Forms */

    .form-control {
        max-width: 100%;
    }

    .form-control:focus {
        border-color: #28aae1;
    }

    .input-important {
        display: none !important;
    }
    

    input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  width: 100%;
}

select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  width: 100%;
}

input[type="submit"]{
    width: 20%;
}

/*  ----------------------------------------------------------------------------
    - Buttons */

    /* Form Button */
    .btn-custom {
        color: #ffffff;
        background-color: #40b048;
        border-color: #40b048;
    }

    .btn-custom:hover,
    .btn-custom:focus,
    .btn-custom:active,
    .btn-custom.active,
    .open .dropdown-toggle.btn-custom {
        color: #ffffff;
        background-color: #23408f;
        border-color: #23408f;
    }

    .btn-custom:active,
    .btn-custom.active,
    .open .dropdown-toggle.btn-custom {
        background-image: none;
    }

    .btn-custom.disabled,
    .btn-custom[disabled],
    fieldset[disabled] .btn-custom,
    .btn-custom.disabled:hover,
    .btn-custom[disabled]:hover,
    fieldset[disabled] .btn-custom:hover,
    .btn-custom.disabled:focus,
    .btn-custom[disabled]:focus,
    fieldset[disabled] .btn-custom:focus,
    .btn-custom.disabled:active,
    .btn-custom[disabled]:active,
    fieldset[disabled] .btn-custom:active,
    .btn-custom.disabled.active,
    .btn-custom[disabled].active,
    fieldset[disabled] .btn-custom.active {
        background-color: #2e368e;
        border-color: #28aae1;
    }

    .btn-custom .badge {
        color: #2e368e;
        background-color: #fff;
    }

/*  ----------------------------------------------------------------------------
    - Optional */

    .map-iframe {
        width: 100% !important;
    }

    .copyright,
    .website-by {
        text-align: center;
        font-size: 0.9em;
    }

       .copyright,
    .website-by  a{
        color: #000;
    }

   
    .website-by  a: hover{
        font-weight: bold;
        text-decoration: none;
    }
    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) {

        .copyright,
        .website-by {
            text-align: left;
        }

    }

/*  ----------------------------------------------------------------------------
    # WORDPRESS CUSTOM (all default styles are in bootsrap.css)
    ------------------------------------------------------------------------- */

    .post-item {
        margin-bottom: 20px;
    }

    .page-header {
        padding-bottom: 10px;
        margin: 0 0 20px;
        border-bottom: 1px solid #eeeeee;
    }

    /* Post Thumbnail */
    .attachment-post-thumbnail {
        float: right;
        margin: 7px 10px;
    }

    .comment-reply-link {
        color: #ffffff;
        background-color: #5cb85c;
        border-color: #4cae4c;
    }

/*  ----------------------------------------------------------------------------
    # HELPERS
    ------------------------------------------------------------------------- */

    .no-gutter {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }




    /*  ----------------------------------------------------------------------------
    # Custom
    ------------------------------------------------------------------------- */

* {
  -webkit-border-radius: 0 !important;
     -moz-border-radius: 0 !important;
          border-radius: 0 !important;
}

.navbar-nav.navbar-right:last-child{
    margin-right: 0px;
}


.main-wrapper .container{
    border: 1px solid #23408f;
}


.details{
    background-color: #40b048;
    padding: 10px;
    color: #fff;
}

.details span{
    display: block;
}





@media only screen and (min-width:0) and (max-width:767px){

    .navbar {
     position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    }

}

@media only screen and (min-width:0) and (max-width: 420px){


#menu-primary{
    margin:0;
}

.navbar-collapse.in{
    margin: 0;
    background-color: #40B048;
}

.navbar-nav > li > a{
    background-color: #40B048;
    color: #fff;
}
    

     .navbar {
     position: absolute;
   top: 0;
    width: 100%;
    }


   .main-row-1{
        text-align: center;
    }

    .details{
        text-align: center;
    }

}