/* ============================================================
   Home page: modern refresh consistent with the how-to guides,
   FAQ, Features and Screenshots pages.
   Scoped to .homev2 so it never affects other pages.
   Shares the green card-based palette used in css/guides.css
   ============================================================ */

.homev2 {
    background: #fff;
    padding: 10px 0 50px;
}

/* ---- Section titles: centred heading with green underline ---- */
.homev2 .section-title {
    text-align: center;
    margin: 38px 0 28px;
}

.homev2 .section-title h2 {
    display: inline-block;
    position: relative;
    font-size: 28px;
    font-weight: 400;
    color: #26331e;
    padding-bottom: 14px;
    margin: 0;
}

.homev2 .section-title h2:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #45b53f, #1f7a1c);
}

/* Hide the legacy <hr /> beneath the section titles */
.homev2 .section-title hr {
    display: none;
}

/* Make sure every row clears its floated columns so sections never overlap */
.homev2 > .container > .row:before,
.homev2 > .container > .row:after {
    content: "";
    display: table;
}

.homev2 > .container > .row:after {
    clear: both;
}

/* ---- Feature card rows align to equal height ----
   Only rows whose direct children are span4 feature columns become
   flex; mixed rows (section-title + span6 / span12) keep float layout. */
.homev2 > .container > .row.feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -14px;
    margin-right: -14px;
}

.homev2 > .container > .row.feature-row > .span4 {
    float: none;
    display: flex;
    box-sizing: border-box;
    width: 33.3333%;
    flex: 0 0 33.3333%;
    margin-left: 0;
    padding-left: 14px;
    padding-right: 14px;
}

/* ---- Each feature becomes a clean white card (matches the
   "Why you will love" cards: unified white card, soft border,
   rounded corners, hover lift) ---- */
.homev2 .feature-screened {
    background: #ffffff;
    border: 1px solid #e8ece6;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 22px 24px 26px;
    margin-bottom: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.homev2 .feature-screened:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(31,122,28,.12);
}

/* ---- Thumbnail treatment: clean rounded image, no inset frame ---- */
.homev2 .feature-screened .thumbnail {
    display: block;
    position: relative;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 18px;
    /*background: #f1f4ef;*/
    box-shadow: none;
}

.homev2 .feature-screened .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform .25s ease;
}

.homev2 .feature-screened:hover .thumbnail img {
    transform: scale(1.03);
}

/* ---- Card headings (clean bold heading, matching the love cards) ---- */
.homev2 .feature-screened h4 {
    font-size: 18px;
    font-weight: 500;
    color: #26331e;
    margin: 0 0 10px;
    padding: 0;
}

/* ---- Card caption copy ---- */
.homev2 .feature-screened p {
    font-size: 14px;
    line-height: 1.65;
    color: #41493b;
    margin: 0;
}

/* ---- "See more features" button ---- */
.homev2 .btn.btn-info.btn-large {
    background: linear-gradient(135deg, #45b53f, #1f7a1c);
    border: none;
    border-radius: 30px;
    padding: 12px 26px;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(31,122,28,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.homev2 .btn.btn-info.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(31,122,28,.32);
    color: #ffffff;
}

/* ============================================================
   Masthead call-to-action buttons (Download Now / Buy Now)
   styled as modern pills to match the "See more features" button.
   ============================================================ */
.masthead-actions .btn.btn-large {
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.masthead-actions .btn.btn-large:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* Download Now - green pill */
.masthead-actions .btn.btn-large.btn-success {
    background: linear-gradient(135deg, #45b53f, #1f7a1c);
    box-shadow: 0 6px 16px rgba(31,122,28,.25);
}

.masthead-actions .btn.btn-large.btn-success:hover {
    box-shadow: 0 10px 22px rgba(31,122,28,.32);
}

/* Buy Now - blue pill */
.masthead-actions .btn.btn-large.btn-primary {
    background: linear-gradient(135deg, #3a93e6, #1f6fcc);
    box-shadow: 0 6px 16px rgba(31,111,204,.25);
}

.masthead-actions .btn.btn-large.btn-primary:hover {
    box-shadow: 0 10px 22px rgba(31,111,204,.32);
}

/* ============================================================
   "Why you will love Fotosizer" - mark-list cards
   ============================================================ */
.homev2 .mark-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.homev2 .mark-list li.circle {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8ece6;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 24px 26px 24px 96px;
    margin-bottom: 24px;
    min-height: 96px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.homev2 .mark-list li.circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(31,122,28,.12);
}

.homev2 .mark-list li.circle .mark {
    position: absolute;
    left: 26px;
    top: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #45b53f, #1f7a1c);
    box-shadow: 0 6px 16px rgba(31,122,28,.25);
    color: #ffffff;
    text-align: center;
}

.homev2 .mark-list li.circle .mark i {
    line-height: 52px;
    font-size: 22px;
    color: #ffffff;
}

.homev2 .mark-list li.circle h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: #26331e;
}

.homev2 .mark-list li.circle p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #41493b;
}

.homev2 .mark-list li.circle p a {
    color: #1f7a1c;
    font-weight: 600;
}

/* ============================================================
   "Watch Fotosizer in action" - video card
   The legacy .flex-video uses a padding-bottom aspect-ratio hack
   with an absolutely positioned iframe, so we must NOT add padding
   to it. Instead we frame it with a rounded border + shadow and
   round the iframe corners.
   ============================================================ */
.homev2 .flex-video {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid #e8ece6;
}

.homev2 .flex-video iframe {
    border-radius: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .homev2 > .container > .row.feature-row {
        display: block;
    }

    .homev2 > .container > .row.feature-row > .span4 {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .homev2 .section-title h2 {
        font-size: 22px;
    }
}
