/** 
 *------------------------------------------------------------------------------
 * @package       T3 Framework for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt, JoomlaBamboo, (contribute to this project at github 
 *                & Google group to become co-author)
 * @Google group: https://groups.google.com/forum/#!forum/t3fw
 * @Link:         http://t3-framework.org 
 *------------------------------------------------------------------------------
 */


// ---------------------------------------------------------
// GENERIC ARTICLE STYLES
// ---------------------------------------------------------

//
// Articles Layout
// --------------------------------------------------------
.blog {
  text-align: left;

  h2.article-title, 
  .article-header h2 {
    @media screen and (min-width: @screen-md) {
      font-size: @font-size-h1;
    }
  }

  .item-image {
    margin-bottom: @t3-global-margin;

    img {
      width: 100%;
    }
  }
	
	.readmore a, 
	.readmore .btn {
		display: inline-block;
	}

  .content_rating {
    display: none;
  }

}


// Rating Form
// ------------
.rating-info {
  margin: -@t3-global-margin 0 @t3-global-margin 0;
}

.rating-form {
  display: inline-block;
  line-height: 16px;
  vertical-align: middle;

  .rating-log {
    display: inline-block;
    font-size: @font-size-small;
    margin: 0;
    padding: 0 0 0 5px;
  }

  .formLogLoading, .rating-log-loading {
    background: url("@{t3-image-path}/loading.gif") no-repeat left center transparent;
    height: 25px;
    padding: 0 0 0 20px;
  }

  .rating-list,
  .rating-list a:hover,
  .rating-list .rating-current {
    background: url("@{t3-image-path}/rating-stars.png") repeat-x left -1000px;
  }

  .rating-list {
    background-position: left top;
    float: left;
    height: 16px !important;
    list-style: none outside none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 80px;
  }

  .rating-list li {
    background: none;
    display: inline;
    padding: 0;
    border: none;
    float: left;
    width: 100%;
  }

  .rating-list a,
  .rating-list .rating-current {
    border: medium none;
    cursor: pointer;
    height: 16px;
    left: 0;
    line-height: 16px;
    outline: medium none;
    overflow: hidden;
    position: absolute;
    text-indent: -1000px;
    top: 0;
    .transition(none);
  }

  .rating-list a:hover {
    background-position: left bottom;
  }

  .rating-list {
    .one-star {
      width: 20%;
      z-index: 6;
    }

    .two-stars {
      width: 40%;
      z-index: 5;
    }

    .three-stars {
      width: 60%;
      z-index: 4;
    }

    .four-stars {
      width: 80%;
      z-index: 3;
    }

    .five-stars {
      width: 100%;
      z-index: 2;
    }

    .rating-current {
      background: url("@{t3-image-path}/rating-stars.png") repeat-x 0 center !important;
      margin: 0;
      padding: 0;
      z-index: 1;
    }
  }
}

// Home Blog
.blog-featured {
}

// Leading Article Rows
.items-leading {
}

.items-leading .leading {
  margin-bottom: @t3-global-margin * 2;
    
  &:after {
    content: "";
    display: block;
    background: url("../images/ico/divide-side.png") repeat center center;
    height: 13px;
    margin-bottom: @t3-global-margin*1.5;
    margin-top: @t3-global-margin*1.5;
    max-width: 100%;
  }
}

// Article Rows
.items-row {

  &:last-child {
    .item:after {
      display: none;
    }
  }
}

.items-row .item {
  margin-bottom: @t3-global-margin * 2;
  text-align: left;
    
  &:after {
    content: "";
    display: block;
    background: url("../images/ico/divide-side.png") repeat center center;
    height: 13px;
    margin-bottom: @t3-global-margin*1.5;
    margin-top: @t3-global-margin*1.5;
    max-width: 100%;
  }
}

// Divider
.divider-vertical {
  margin: 0 0 (@t3-global-margin * 2);
  border: 0;
  border-top: 1px solid @hr-border;
}


// Article Aside
// -------------------------
.article-aside {
  color: @gray-light;
  font-size: @t3-font-size-small;
  margin-bottom: 0;
  .clearfix();
}

.article-info {
  margin: 0;
  width: 85%;
  float: left;
  font-size: @font-size-base;

  a {
    color: @gray;
    // Link states
    &:hover, &:focus, &:active {
      color: @black;
    }
  }
  
  .article-info-term {
    display: none;
  }
  
  dd {
    display: inline-block;
    margin-left: 0;
    margin-right: 10px;
    white-space: nowrap;
    strong {
      font-weight: bold;
    }
  }

}

// Author
.createdby {
}

// Category Name
.category-name {
  a {
    
  }
}

.item-image + .category-name  {
  display: block;
  margin-top: -@t3-global-margin;
  a {
    background: @brand-primary;
    text-transform: uppercase;
    color: @white;
    padding: 5px;

    &:hover {
      background: @gray-dark;
    }
  }
}

// URL
.article-url {
}

// Publish Date
.published {
}

// Modified Date
.modifydate {
}

// Article Desciption
.contentdescription {
}

.contentdescription p {
}


// Article Footer
// -------------------------
.article-footer {
  color: @gray-light;
  font-size: @font-size-small;
  margin-bottom: @t3-global-margin;
}


// Article Images
// -------------------------

.article-intro,
.article-content {

  // Make the image reponsive.
  // Remove if you don't want article images to be responsived.
  img {
    .img-responsive();
  }

  // Add proper margin
  img[align=left],
  .img_caption.left,
  .pull-left.item-image {
    margin: 0 (@t3-global-margin*1.5) @t3-global-margin 0;
    float: none !important;
  }

  img[align=right],
  .img_caption.right,
  .pull-right.item-image {
    margin: 0 0 @t3-global-margin (@t3-global-margin* 1.5);
    float: none !important;
  }

}

.article-content {
  iframe {
    @media (max-width: @screen-sm) {
      width: 100% !important; 
      height: auto;
    }
  }

  h3 {
    color: #000;
  }
}

.img-intro-none,
.img-intro-left,
.img-intro-right,
.img-fulltext-none,
.img-fulltext-left,
.img-fulltext-right,
.img_caption {
  position: relative;
}

.img-intro-none,
.img-intro-left,
.img-intro-right,
.img-fulltext-none,
.img-fulltext-left,
.img-fulltext-right,
.img_caption {
  margin-bottom: @t3-global-margin;
  max-width: 100%;
}

.img-fulltext-left {
  float: left;
  margin-right: @t3-global-margin;
}

.img-fulltext-right {
  float: right;
  margin-left: @t3-global-margin;
}

.img-intro-none img,
.img-intro-left img,
.img-intro-right img,
.img-fulltext-none img,
.img-fulltext-left img,
.img-fulltext-right img {
  margin: 0;
}

// Image caption
.img_caption img {
  margin-bottom: 1px !important;
}

.img_caption p.img_caption {
  background: @gray-lighter;
  color: @gray;
  font-size: @font-size-small;
  width: 100%;
  margin: 0;
  padding: 5px;
  text-align: center;
  clear: both;
}


// Reponsive Article Images
@media screen and (max-width: @screen-xs-max) {
  article img[align=left], .img_caption.left,
  article img[align=right], .img_caption.right,
  .img-fulltext-left, .img-fulltext-right {
    float: none !important;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
  }
}


// Article Actions
// -------------------------
article aside .btn-group {
  .dropdown-menu {
    padding: 10px;

    > li > a {
      padding: 5px 10px;
    }
  }
  
  > .dropdown-toggle,
  > .dropdown-toggle:hover,
  > .dropdown-toggle:active,
  > .dropdown-toggle:focus {
    padding: 2px 5px;
    box-shadow: none;
  }

  > .dropdown-toggle .caret {
    margin-left: 2px;
  }

  &.open .dropdown-toggle {
    box-shadow: none;
  }

}




// ---------------------------------------------------------
// ROW LISTS
// ---------------------------------------------------------
// List types using in Joomla! Core

// Alternating Rows
.row-even,
.row-odd {
  padding: 5px;
  width: 99%;
  border-bottom: 1px solid @table-border-color;
}

.row-odd {
  background-color: @table-bg;
}

.row-even {
  background-color: @table-bg-accent;
}

.blog-row-rule,
.blog-item-rule {
  border: 0;
}

// Row reveal
.row-fluid .row-reveal {
  visibility: hidden;
}

.row-fluid:hover .row-reveal {
  visibility: visible;
}

// Nav List Offset
.nav-list > li.offset > a {
  padding-left: 30px;
  font-size: 12px;
}


// Striped
// -------
.list-striped,
.row-striped {
  list-style: none;
  line-height: @line-height-computed;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid @table-border-color;
  margin-left: 0;
  padding-left: 0;

  h3 {
    margin: 0;
    font-size: @font-size-h4;
  }
}

.list-striped li,
.list-striped dd,
.row-striped .row,
.row-striped .row-fluid {
  border-bottom: 1px solid @table-border-color;
  padding: 10px 15px;
}

.list-striped li:nth-child(odd),
.list-striped dd:nth-child(odd),
.row-striped .row:nth-child(odd),
.row-striped .row-fluid:nth-child(odd) {
  background-color: @table-bg-accent;
}

.list-striped li:hover,
.list-striped dd:hover,
.row-striped .row:hover,
.row-striped .row-fluid:hover {
  background-color: @table-bg-hover;
}

.row-striped .row-fluid {
  width: 97%; // lower than 100% since we have padding
}

.row-striped .row-fluid [class*="span"] {
  min-height: 10px;
}

.row-striped .row-fluid [class*="span"] {
  margin-left: 8px;
}

.row-striped .row-fluid [class*="span"]:first-child {
  margin-left: 0;
}


// Condensed
// ---------
.list-condensed {
  li {
    padding: 5px 10px;
  }
}

.row-condensed {
  .row, .row-fluid {
    padding: 5px 10px;
  }
}


// Bordered
// --------
.list-bordered,
.row-bordered {
  list-style: none;
  line-height: 18px;
  text-align: left;
  vertical-align: middle;
  margin-left: 0;
  border: 1px solid @table-border-color;
}



// ---------------------------------------------------------
// COMMON JOOMLA STYLES
// ---------------------------------------------------------

//
// LOGIN
// ---------------------------------------------------------
.login-wrap {
  width: 360px;
  padding: @t3-global-padding;
  border: 1px solid @t3-border-color;
  margin: 0 auto;

  @media screen and (max-width: @screen-xs-max) {
    width: auto;
  }
  // Header
  .page-headder {
  }

  // Description
  .login-description {

  }

  // Login Form
  form {

    fieldset {
    }

    .control-label {
      text-align: left;
    }

    label {
      text-align: left;
    }

    .form-group {
      margin-bottom: @t3-global-margin/2;

      input[type="text"],
      input[type="password"] {
        width: 100%;
      }

      .checkbox input[type="checkbox"] {
        margin-top: 8px;
      }
    }

  }

  .btn {
    width: 100%;
  }

  // Links
  .other-links {
    ul {
      padding: 0;
      text-align: center;
      font-size: @t3-font-size-small;

      li {
        display: inline-block;
        padding: 0 5px;
      }

    }
  }

}



//
// REGISTER
// ---------------------------------------------------------
.form-register {

  fieldset {
    padding: 0 0 10px;
  }

  p {
    margin: 0 0 5px;
  }

  p.form-des {
    margin: 15px 0;
  }

  label {
    display: block;
    float: left;
    font-weight: bold;
    text-align: right;
    width: 130px;
  }

  .input,
  .inputbox {
    margin-left: 10px;
    width: 200px;
  }

  .btn,
  .button {
    margin-left: 140px;
  }

}

.registration {
  padding: @t3-global-padding;
  border: 1px solid @t3-border-color;
  margin: 0 auto;

  @media screen and (min-width: @screen-sm) {
    width: 560px;
  }

  legend {
    padding-bottom: @t3-global-padding/2;
    border-color: @t3-border-color;
  }

  fieldset dt {
    margin-right: 5px;
  }

  .form-actions {
    border: none;
    padding: 0;
  }
}

.admintable textarea {
  max-width: 90% !important;
  resize: none;
}



//
// MAILTO WINDOWS
// ---------------------------------------------------------
.com_mailto {
  body {
    padding: @t3-global-padding / 2;
  }

  .t3-mainbody {
    padding-top: 0;
    padding-bottom: 0;
  }

  .t3-content {
    width: auto;
  }
}

#mailto-window {
  background: #fff;
  margin: 10px 0 20px;
  padding: 0;
  position: relative;

  h2 {
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .mailto-close {
    a {
      :hover {

      }
    }
  }
}

#mailtoForm {
  .formelm {
    padding: 5px 0;
    vertical-align: middle;
    overflow: hidden;
  }
  
  .formelm label {
    display: inline-block;
    float: left;
    font-weight: bold;
    vertical-align: middle;
    width: 100px;
  }
  
  p {
    margin-top: 20px;
  }
  
  .input,
  .inputbox {
    width: 65%;
  }
  
  .btn,
  .button,
  button {
    margin-right: 5px;
  }
}



//
// USERS
// ---------------------------------------------------------
.user-details {
  padding: 10px 0;

  p {
    margin: 0 0 5px;
  }
  
  label {
    display: block;
    float: left;
    font-weight: bold;
    text-align: right;
    width: 130px;
  }
  
  .input,
  .inputbox {
    margin-left: 10px;
    width: 200px;
  }
  
  .btn,
  button {
    margin-left: 140px;
  }
  
  .paramlist {
    .paramlist_key {
      padding: 0 0 5px;
      width: 130px;
    }
    
    .paramlist_value {
      padding: 0 0 5px;
    }
  }
  
  .user_name span {
    font-weight: bold;
    padding-left: 10px;
  }
}


// Reset & Remind
// --------------
.reset .form-validate p,
.remind .form-validate p {
  background: @gray-lighter;
  border: 1px solid @t3-border-color;
  margin-bottom: @t3-global-margin;
  padding: (@t3-global-padding / 2) @t3-global-padding;
  border-radius: @border-radius-base;
}

.reset .form-validate fieldset dl,
.remind .form-validate fieldset dl {
  margin: 0;
}

.reset .form-validate fieldset dt,
.remind .form-validate fieldset dt {
  margin: 4px 0 0 0;
}


// Profile
//---------

.profile {
  padding: @t3-global-padding;
  border: 1px solid @t3-border-color;
  margin: 0 auto;

  @media screen and (min-width: @screen-sm) {
    width: 720px;
  }

  legend {
    padding-bottom: @t3-global-padding/2;
    border-color: @t3-border-color;
  }
}

.profile .dl-horizontal {
  dd {
  }
  
  dt {
  }
}


// Edit Profile
// ------------
.profile-edit {
  padding: @t3-global-padding;
  border: 1px solid @t3-border-color;
  margin: 0 auto;

  @media screen and (min-width: @screen-sm) {
    width: 720px;
  }

  #jform_params_helpsite_chzn + .btn {
    margin-top: @t3-global-margin/2;
  }

  .form-actions {
    border: none;
    margin-top: 0;
    margin-bottom: 0;
  }

  input {
    .make-sm-column(6, @padding-base-horizontal);  // Make the input have the same width
  }
  select {
    .make-sm-column(6, @padding-base-horizontal);  // Make the select have the same width
  }
  select + button {
    margin-left: 5px;
  }
}


//
// SEARCH
// ---------------------------------------------------------
.search {
  .page-title, .page-header h1 {
    font-size: @font-size-h2;
    text-transform: uppercase;
    margin-bottom: @t3-global-margin/2;
  }
}

.searchintro {
}


// Search Form
// -----------
#searchForm {
  .clearfix();

  .search-box {
    border: 1px solid @t3-border-color;
    padding: @t3-global-padding;
  }

  .form-group {
    margin-bottom: @t3-global-margin/2;
  }

  fieldset {
    margin: 0 0 @t3-global-margin 0;
  }

  legend {
    margin-bottom: @t3-global-margin / 2;
    border: none;
    font-size: @t3-font-size-bigger;
    font-weight: @font-weight-bold;
  }

  .radio-inline,
  .checkbox-inline {
  }

  select {
    width: auto;
    display: inline-block;
    margin-left: 5px;
    padding-left: 5px;
  }

  .form-limit {
    margin-top: @line-height-computed;
    .counter {
      margin-top: 0;
    }
  }

  .phrases-box input[type="radio"],
  .only input[type="checkbox"] {
    vertical-align: top;
    margin-top: 7px;
  }

  .chzn-container,
  label[for=limit] {
    float: left;
    margin-right: 10px;
  }

  #ordering_chzn {
    float: none;
    margin-left: 5px;
    display: inline-block;
  }
}

#search-form {
  ul#finder-filter-select-list {
    margin-left: 0;
    padding-left: 0;
    li {
      list-style: none;
      padding: (@t3-global-padding / 2) 0;
      label {
        width: 150px;
      }
    }
  }
  .word .form-group {
    margin-bottom: @t3-global-margin / 2;
  }
}

// Block level forms elements on Mobile
@media screen and (max-width: @screen-sm-min) {
  #searchForm {
    .radio-inline,
    .checkbox-inline {
      display: block;
      width: 100%;
      margin-left: 0;
    }
  }
}


// Search Result
// -------------
.search-results {
  margin-top: @t3-global-margin;
  margin-left: 0;
  padding-left: 0;

  // Title
  .result-title {
    font-size: @t3-font-size-bigger;
    margin-top: @t3-global-margin;
  }

  // Category
  .result-category {
    font-size: @t3-font-size-smaller;
    color: @gray-light;
  }

  // Result Text
  .result-text {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  // Result URL
  .result-url {
    color: @gray;
    margin-top: @line-height-computed;
  }

  // Date
  .result-created {
    font-size: @t3-font-size-smaller;
    color: @gray-light;
  }

  // Higlight
  .highlight {
  }
}



//
// SMART SEARCH
// ---------------------------------------------------------
div.finder {
  margin-bottom: @line-height-computed;

  #search-form {
  }

  #advancedSearch {
  }

  // The Form
  #finder-search {
  }

  // The result
  #search-results {
    #search-query-explained{
    }
  }

}

#finder-filter-window {
  .filter-branch {
    .clearfix();
    .make-row();
  }

  .finder-selects {
    padding-right: @grid-gutter-width/2;
    padding-left: @grid-gutter-width/2;
  }
}

//
// CONTACT
// ---------------------------------------------------------
.contact {
  color: @gray-dark-lv3;



  @media (min-width: @screen-sm) {    
    padding-top: @t3-global-padding*2;
  }

  .thumbnail {
    @media (max-width: @screen-sm) {    
      width: 100%;
    }
  }

  .dl-horizontal {
    > dt {
      display: none;
    }

    > dd {     
      margin-left: 0;
    }
  }

  .page-header {
    border-bottom: 1px solid @t3-border-color;
    margin: 0 0 @t3-global-margin;
    padding-bottom: @t3-global-padding;
    text-align: left;
    text-transform: none;
    
    h2, h3 {
      color: @gray-dark;
      font-size: @font-size-h3;
      font-weight: @font-weight-500;
      text-transform: uppercase;
      margin: 0;
    }
  }

  h3 {
    color: @gray-dark;
    font-size: @font-size-h4;
    font-weight: @font-weight-500;
    text-transform: uppercase;
  }

  .box-contact {
    @media (min-width: @screen-sm) {    
      margin-bottom: @t3-global-padding*1.5;
    }
      
    h3 {
      margin: 0 0 @t3-global-margin/2;
    }
  }

  .contact-left {
    > h3 {
      border-bottom: 1px solid @t3-border-color;
      margin: 0 0 @t3-global-margin;
      padding-bottom: @t3-global-padding;
      font-size: @font-size-h3;
      font-weight: @font-weight-500;
      text-transform: uppercase;
    }
  }

  .tab-content {
    padding-top: @t3-global-padding;
  }

}

.com_contact {
  .contact-image {
    margin-bottom: @grid-gutter-width;
  }
}

// Contact form
.contact-form {
  legend {
    border-bottom: 0;
    margin-bottom: 0;
    color: @yellow;
    font-size: @t3-font-size-small;
    text-transform: none;
  }
  
  #jform_captcha-lbl {
    margin-bottom: @t3-global-margin/4;
  }
  
  .form_captcha {
    @media (min-width: @screen-md) {
      display: inline-block;
    }
  }

  .form-group {
    margin-bottom: @t3-global-margin/2;
  }

  .checkbox input[type="checkbox"] {
    margin-left: 0;
    margin-top: 8px;
    width: auto;
    padding: 0;
  }

  .control-btn {
    margin-top: @t3-global-margin/2;

    @media (min-width: @screen-sm) {
      margin-top: 0;  
      text-align: right;
    }
  }

  input {
    width: 100%;

    &.invalid {
      border-color: @red;
    }
  }

  textarea {
    height: 220px;
    width: 100%;
  }
}

.contact-address {
  dd {
    margin-bottom: 5px;

    .fa {
      width: 16px;
      margin-right: 6px;
    }

    a {
      color: @brand-secondary;

      &:hover {
        color: @brand-primary;
      }
    }
  }
}

.contact-links {
  ul li {
    display: inline-block;
    margin-right: 10px;

    a {
      color: @brand-secondary;
      padding: 0 !important;
      margin: 0 10px 5px 0;

      &:hover, &:active, &:focus {
        background: none;
        color: @brand-primary;
      }
    }
  }
}



//
// TAG CATEGORY
// ---------------------------------------------------------
.tag-category {

  .filters {
    border-bottom: 1px solid @t3-border-color;
    padding-bottom: @t3-global-padding;
    margin: 0 0 @t3-global-margin/2 0;
  }

  .category {
    li {
      h3 {
        margin: @t3-global-margin/3 0;
        font-size: @font-size-h5;
        font-weight: 400;

        a {
          color: @black;

          &:hover,
          &:focus {
            color: @link-color;
          }
        }
      }
    }
  }

  // Listing
  .tags-list {
    .media {
      padding-top: @t3-global-padding;
      padding-bottom: @t3-global-padding;
      background: none;
      border-bottom: 1px solid @t3-border-color;
      
      .media-object {
        width: 100%;
        height: auto;
        margin: 0 0 @t3-global-margin;
        padding: 0;

        @media screen and (min-width:@screen-md) {
          width: 300px;
          height: auto;
          margin-right: @t3-global-margin;
        }
      }

      .tag-title {
        margin-top: 0;
        font-weight: 700;
        font-size: @font-size-h3;
        line-height: normal;
        color: @black;
        text-transform: uppercase;
      }

      &:hover {
        background: none;
        .tag-title a {
          color: @link-color;
        }
      }
    }
    
  }
}


//
// ARCHIVED ITEMS
// ---------------------------------------------------------
#archive-items {
  > li {
    line-height: normal;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .intro {
    clear: both;
    overflow: hidden;
  }
}



//
// CATEGORY LIST
// ---------------------------------------------------------
.categories-list {
  margin-bottom: @line-height-computed;
}

.category-desc {
}


// Category List
// -----------------
.category-item {
  .clearfix();

  .page-header {
    line-height: normal;
    padding: (@line-height-computed / 2) 5px;
    margin: 0;
    font-size: @font-size-large;
    font-weight: normal;
  }

  // Sub Categories
  .category-item {
    margin-bottom: 0;
    margin-left: @grid-gutter-width;

    .page-header {
      font-size: @font-size-base;
    }
  }

}

// Children Category List
// -----------------------
.cat-children,
.categories-list {
  h3 {}
  .page-header {
    line-height: normal;
    padding: 0 0 (@line-height-computed / 2) 0;
    margin: 0;
    font-size: @font-size-large;
    font-weight: normal;
    border: 0;

  }

  > div,
  .category-item {
    @media screen and (min-width: @screen-sm) {
      padding: @t3-global-padding;
      border: 1px solid @t3-border-color;
      margin-right: -1px;

      .category-item {
        width: auto;
        float: none;
        margin: 0;
      }

      &:hover {
        background: @gray-lightest;
      }

      &.first {

      }

      &.last {
      }
    }
  }
}



//
// NEWS FEEDS
// ---------------------------------------------------------

// Feed categories
// ---------------
.newsfeed-category,
.newsfeed {
  > h2 {
    border-bottom: 1px solid @t3-border-color;
    padding-bottom: @t3-global-padding;
    margin-bottom: @t3-global-margin;
    margin-top: 0;
  }

  .category-desc {
    margin-bottom: @t3-global-margin;
  }
  
  .category {
    li {
      .clearfix();
    }
  }
}


// Feeds item
// ----------
.newsfeed {
  > h2 {
    border-bottom: 1px solid @t3-border-color;
    padding-bottom: @t3-global-padding;
    margin-bottom: @t3-global-margin;
    margin-top: 0;
  }

  .feed-description {
    margin-bottom: @t3-global-margin;
    font-size: @t3-font-size-bigger;
  }
  
  .feed-item-description .feed-description {
    font-size: @font-size-base;
  }
  
  ol li > a {
    font-weight: bold;
    font-size: @t3-font-size-bigger;
  }
}

.article-intro-media {
  margin-bottom: @t3-global-margin;
}

// 
// CONTENT NAVIGATIONS
// ---------------------------------------------------------

//  Pagebreak Nav
// --------------
.article-content .pagination {

  ul {
    display: block;
    list-style: none;
    padding: 0;
    overflow: hidden;

    li {
      border: 1px solid @t3-border-color;
      float: left;
      line-height: normal;
      margin-right: (@t3-global-margin / 2);
      padding: (@t3-global-padding / 2) @t3-global-padding;

      // Hover state
      &:hover {
      }
    }

    li a {
      border: 0;
      text-decoration: none;
      background-color: transparent;
      line-height: normal;
      padding: 0;
      // Link States
      &:hover, &:focus, &:active {
      }
    }
  }
  
}



.pagenavcounter {
  margin: 0 0 @t3-global-margin;
  font-weight: bold;


}

.pagination-wrap {
  .counter {
    background: @black;
    color: @white;
    border-color: @black;
  }

  .pagination {
    li {
      text-transform: uppercase;
    }
  }
}

.pager {
  ul {
    padding: @t3-global-padding/2 0;
    margin: 0;
    border-top: 1px solid @t3-border-color;
    border-bottom: 1px solid @t3-border-color;

    li {
      a {
        border: 0;
      }
    }
  }
}



// PageBreak Index
// ---------------
#article-index,
.article-index {
  border: 1px solid @t3-border-color;
  border-radius: @border-radius-base;
  float: right;
  padding: 10px;
  margin: 0 0 @t3-global-margin @t3-global-margin;
  width: 25%;
  
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;

    > li {
      border: 0;
      margin-top: 2px;
    }

    // Link
    > li > a {
      border: 0;
      padding: 5px;
      border-radius: @nav-pills-border-radius;
      // Link states
      &:hover, &:active, &:focus {
      }
    }

    // Active
    > .active > a {
      border: 0;
      background: @nav-pills-active-link-hover-bg;
      color: @nav-pills-active-link-hover-color;
      // Link states
      &:hover, &:active, &:focus {
        border: 0;
        background: @nav-pills-active-link-hover-bg;
        color: @nav-pills-active-link-hover-color;
      }
    }

  }
}


// Articles Navigation
// -------------------
.pagenav {
  margin: 0;
  padding: 0;
  list-style: none;
    @media screen and (max-width: @screen-xs-max) {
    margin: 0 @grid-gutter-width/2;
  }

  > li {
    margin: 0;
    padding: 0;
    float: left;
  }
  
  > li.pagenav-prev,
  > li.previous {
    margin-right: 10px;
  }
  
  > li.pagenav-next,
  > li.next {
  }

  li > a {
    padding: (@t3-global-padding / 2) @t3-global-padding;
    line-height: normal;
    border: 1px solid @pagination-border;
    border-radius: @border-radius-base;
    text-transform: uppercase;
    &:hover, &:active, &:focus {
      background-color: @pagination-hover-bg;
    }
  }

}


// Items More
// -----------
.items-more {
  h3 {
    margin: 0 0 @t3-global-margin;
    font-size: @font-size-h4;
    text-transform: uppercase;
  }
  
  .nav {
    > li {
      border-top: 1px solid @t3-border-color;
    }
    > li > a {
      padding: @padding-base-vertical 5px;
      color: @gray-dark;

      &:hover,
      &:focus {
        color: @black;
      }
    }
  }
}

// Section Read More
// -----------------

.readmore {
  a,
  .btn {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


// Back Buttons
// -----------
.back_button a {
  display: block;
  margin: 10px 0;
  // Link states
  &:hover, &:focus, &:active {
  }
}


// Form Control
// ------------
.filters {
  margin: (@t3-global-margin / 2) 0;
}

.display-limit {
  margin: (@t3-global-margin / 2) 0 5px;
}

.filters .filter-search {
  
}

.filters .display-limit {
  float: right;
  text-align: right;
}




// ---------------------------------------------------------
// MESSAGES & NOTIFICATIONS
// ---------------------------------------------------------

//
// MESSAGES
// ---------------------------------------------------------
#system-message {
  dt {
    font-weight: bold;
  }
  
  dd {
    font-weight: bold;
  }

  dd.message ul,
  dd.error ul,
  dd.notice ul {
    margin: 0;
    padding: 0;
  }
  
  dd.message ul li,
  dd.error ul li,
  dd.notice ul li {
    background: none;
    margin: 0;
    padding: 5px;
  }
}


// System Standard Messages
// ------------------------
#system-message dd.message ul {
}

// System Error Messages
// ---------------------
.error {
}

.error h2 {
}

#system-message dd.error ul {
}


// System Notice Messages
// ----------------------
#system-message dd.notice ul {
}

.alert.alert-message {
  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
}
.alert.alert-notice {
  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
}
.alert.alert-error {
  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}


//
// Tooltips
// ---------------------------------------------------------
.tip-wrap {
  background: #fff6df;
  border: 1px solid #fb3;
  border-radius: 5px;
  .box-shadow (none);
  max-width: 300px;
  z-index: 999;
}

.tip-title {
  border-bottom: 1px solid #fb3;
  font-weight: bold;
  padding: 5px 10px;
}

.tip-text {
  font-size: @font-size-base;
  margin: 0;
  padding: 5px 10px;
}

.hasTip img {
  border: none;
  margin: 0 5px 0 0;
}



// ---------------------------------------------------------
// MISC
// ---------------------------------------------------------

// Language 
// --------
.languageswitcherload {
  border-right: 1px solid @gray-darker;
  float: right;
  padding: 0 @t3-global-padding / 4;
  text-align: center;

  .mod-languages {
    text-align: right;

    a {
      .fa {
        color: @white;
      }

      &:hover,&:focus,&:active {
        .fa {
          color: @brand-primary;
        }
      }
    }

    ul {
      // Desktop view
      @media (min-width: @screen-xs-max) {
        left: auto;
        right: 0;
      }

      li {
        margin: 0;

        img {
          margin-right: @t3-global-margin / 4;
        }
      }
    }
  }
}

// Calendar 
// --------
div.calendar {
  width: 187px;
}

// Edit 
// --------
.edit.item-page {
  fieldset {
    .btn-toolbar {
      margin-top: (@t3-global-margin / 2);
    }
  }

  #adminForm >.btn-toolbar {
    margin-bottom: @t3-global-margin;
    padding-bottom: @t3-global-padding;
    border-bottom: 1px solid @t3-border-color;
  }
}

.chzn-container-multi .chzn-choices li.search-field input[type="text"] {
  height: auto;
}

// ---------------------------------------------------------
// JOOMLA 3.0 EXTENDING BOOTSTRAP
// ---------------------------------------------------------

// iFrames
.iframe-bordered {
  border: 1px solid @table-border-color;
}

// Fixed for Chosen
.chzn-container {
  display: block;
}

.chzn-container-single .chzn-single,
.chzn-container-multi .chzn-choices .search-field input,
.chzn-container-single .chzn-search input {
  height: 26px;
}

.chzn-container-single .chzn-drop,
.chzn-container .chzn-drop {
  .box-sizing (content-box) !important;
}

.chzn-container-single .chzn-single {
  background: none;
  line-height: 36px;
  height: 40px;
  border-radius: 0;
  border-color: @input-border;
  box-shadow: none;

  div b {
    background-position: 0 8px;
  }
}

.chzn-container-active .chzn-single-with-drop div b {
  background-position: -18px 8px;
}

.chzn-container .chzn-drop {
  border-color: @input-border;
}

// Input Prepend Chosen Select Boxes
.input-prepend .chzn-container-single .chzn-single {
  border-color: @input-border;
  height: 26px;
  border-radius: 0 3px 3px 0;
  .box-shadow(none);
}

.input-prepend .chzn-container-active .chzn-single-with-drop {
  border-radius: 0 3px 0 0;
}

.input-prepend .chzn-container-single .chzn-drop{
  border-color: @input-border;
}

// Chosen proper wrapping in Bootstrap btn-group
.btn-group .chzn-results {
  white-space: normal;
}


.article-tools {
  .view-tools,
  .typo-tools {
    ul {
      margin: 0;
      padding: 0;

      li {
        list-style: none;
        display: inline-block;

        a {
          color: @gray;

          &:hover,
          &:focus {
            color: @link-color;
          }
        }
      }
    }
  }
}

.has-article-tools {
  .content_rating,
  .content_rating + form {
    display: none;
  }
}


// Tags

.tags {
  margin-bottom: @t3-global-margin;
  span {
    display: inline-block;

    a,
    a.label {
      background: @gray-lighter;
      border-radius: 0;
      color: @gray;
      display: block;
      font-size: @font-size-base;
      font-weight: @font-weight-normal;
      padding: @t3-global-padding/2;
      // Links states
      &:hover,
      &:focus,
      &:active {
        background: @link-color;
        color: @white;
        text-decoration: none;
      }
    }
  }
}

// Position preview
.mod-preview-info {
  z-index: 10;
}

// Edit Modules

.com_config {

  .form-horizontal .t3onoff {
    padding: 0;
    
    label {
      padding: 0;
      border: 0;
      left: 0;
      height: 34px;
      
      &::before {
        padding: 3px 14px;
      }
      
      &.on::before {
        text-align: left;
      }
    }
  }
}

.window #imageForm .pull-right {
  margin-right: @grid-gutter-width/2;
}