/*
  askci.css — AskCI promotion on the citizensinformationboard.ie homepage

  Load from index.template only, via the PlaceHolderExtraHeaders block:

    {% block PlaceHolderExtraHeaders %}
    <link rel="stylesheet" type="text/css" href="/css/askci.css">
    {% endblock %}

  Colours and conventions follow main_responsive.css:
    #0091CE  brand blue (used by .blue_text and the news underline)
    #0A6726  dark green from the AskCI logo set, 7:1 with white text — buttons
    #005b9e  link blue used in page content
    #404040  body text
    #6b6b6b  .info section background
    #f7f7f7  .features background
    #FFBF47  3px focus/hover outline used site-wide

  This is the Option D build: the shared button/link styles plus the card.
*/


/* =========================================================
   Shared: button, link, sample chat card
   ========================================================= */

.askci_btn{
    display: inline-block;
    padding: 12px 26px;
    background-color: #0A6726;   /* dark green from the AskCI logo set: 7:1 with white text */
    color: #fff;
    font-family: "lato_bold", arial;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 2px;
    outline: 3px solid transparent;
    transition: all .2s linear;
}
.askci_btn:hover,
.askci_btn:focus{
    background-color: #074D1D;
    color: #fff;
    outline: 3px solid #FFBF47;
}

/* white button for use on blue or grey backgrounds */
.askci_btn.askci_btn_light{
    background-color: #fff;
    color: #005b9e;
}
.askci_btn.askci_btn_light:hover,
.askci_btn.askci_btn_light:focus{
    background-color: #f7f7f7;
    color: #005b9e;
}

.askci_kicker{
    display: block;
    font-family: "lato_bold", arial;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.askci_small{
    font-size: 15px;
    line-height: 22px;
    margin-top: 16px;
}

/* sample conversation card */
.askci_chat{
    background: #fff;
    color: #404040;
    border: 1px solid #dedede;
    border-radius: 8px;
    padding: 18px;
    font-family: "lato_regular", arial;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}
.askci_chat_head{
    border-bottom: 1px solid #dedede;
    padding-bottom: 10px;
    margin-bottom: 14px;
    font-family: "lato_bold", arial;
    font-weight: bold;
    overflow: hidden;
}
.askci_chat_head img{
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}
.askci_chat_head span{
    float: right;
    font-family: "lato_regular", arial;
    font-weight: normal;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 28px;
}
.askci_q,
.askci_a{
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
}
.askci_q{
    background: #e3f1f9;
    margin-left: 15%;
    border-bottom-right-radius: 2px;
}
.askci_a{
    background: #f7f7f7;
    margin-right: 8%;
    border-bottom-left-radius: 2px;
    margin-bottom: 0;
}
.askci_a a{
    color: #005b9e;
    text-decoration: underline;
    outline: 3px solid transparent;
}
.askci_a a:hover,
.askci_a a:focus{
    outline: 3px solid #FFBF47;
}
.askci_chat_note{
    margin-top: 12px;
    font-size: 13px;
    line-height: 18px;
    color: #6b6b6b;
}


/* =========================================================
   Option D: AskCI card between the ISL video and the services grid
   Standalone section (not inside .features), so it uses flexbox
   rather than the grid's float percentages.
   ========================================================= */

.askci_card{
    max-width: 1120px;
    margin: 40px auto 60px auto;
    padding: 30px 40px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.askci_card_logo{
    flex: 0 0 150px;
}
.askci_card_logo img{
    width: 150px;
    height: auto;
    display: block;
}
.askci_card_text{
    flex: 1 1 420px;
}
.askci_card h2{
    margin: 0 0 10px 0;
    color: #404040;
    font-family: "lato_bold", arial;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.askci_card p{
    margin: 0;
    color: #404040;
    font-family: "lato_regular", arial;
    font-size: 17px;
    line-height: 24px;
    max-width: 760px;
}
/* inline links in the card text — written with enough specificity to
   beat any site-wide link colour, and underlined so they read as links */
section.askci_card .askci_card_text p a,
section.askci_card .askci_card_text p a:link,
section.askci_card .askci_card_text p a:visited{
    color: #005b9e;
    text-decoration: underline;
    background: none;
    outline: 3px solid transparent;
}
section.askci_card .askci_card_text p a:hover,
section.askci_card .askci_card_text p a:focus{
    color: #404040;
    outline: 3px solid #FFBF47;
}
.askci_card_actions{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.askci_card_actions a{
    color: #005b9e;
    font-family: "lato_regular", arial;
    font-size: 17px;
    outline: 3px solid transparent;
}
.askci_card_actions a:hover,
.askci_card_actions a:focus{
    outline: 3px solid #FFBF47;
}
.askci_card_actions a.askci_btn{
    color: #fff;
}

@media (max-width: 1200px){
    .askci_card{
        margin-left: 40px;
        margin-right: 40px;
    }
}
@media (max-width: 500px){
    .askci_card{
        margin-left: 20px;
        margin-right: 20px;
        padding: 24px;
    }
    .askci_card_logo img{
        width: 120px;
    }
}
