
/* ========================================
   VISFORMS – STYL FORMULARZA
   ======================================== */

/* Główny formularz */
#visformcontainer #visform1 {
    padding: 28px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20, 35, 65, .06);
    color: #303846;
}

/* Informacja o wymaganych polach */
#visformcontainer .vis_mandatory {
    margin-bottom: 18px;
    color: #303846;
    font-size: 14px;
    text-align: right;
}

/* Odstępy między polami */
#visformcontainer .form-group.row {
    align-items: center;
    margin-bottom: 16px;
}

#visformcontainer .form-group {
    margin-bottom: 0;
}

/* Etykiety */
#visformcontainer label {
    color: #303846;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Gwiazdki przy polach wymaganych */
#visformcontainer .asterix-ancor:after,
#visformcontainer .vis_mandatory {
    color: #bf1722;
}

/* Pola tekstowe */
#visformcontainer .form-control {
    min-height: 46px;
    padding: 10px 14px;
    color: #303846;
    font-size: 16px;
    background: #f5f7fb;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    box-shadow: none;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

#visformcontainer textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

#visformcontainer .form-control:hover {
    background: #eef2f9;
    border-color: #d7e0ef;
}

#visformcontainer .form-control:focus {
    color: #303846;
    background: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .10);
}

/* Pola wyboru */
#visformcontainer .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}

#visformcontainer .form-check-input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    border: 1px solid #aab5c7;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
}

#visformcontainer .form-check-input:checked {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

#visformcontainer .form-check-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .10);
}

#visformcontainer .form-check-label {
    cursor: pointer;
    font-weight: 500;
}

/* Linki */
#visformcontainer a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

#visformcontainer a:hover {
    color: #294ba3;
    text-decoration: underline;
}

/* Komunikaty błędów i walidacji */
#visformcontainer .alert-danger {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 8px;
}

#visformcontainer [data-error-field-id] {
    color: #bf1722;
    font-size: 14px;
}

/* Przyciski */
#visformcontainer .pbBtnCon {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #e8edf5;
}

#visformcontainer .btn {
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s, border-color .2s;
}

/* Wyślij zgłoszenie */
#visformcontainer .btn-primary {
    color: #fff;
    background: #1e3a8a;
    border-color: #1e3a8a;
}

#visformcontainer .btn-primary:hover {
    color: #fff;
    background: #294ba3;
    border-color: #294ba3;
}

/* Wyczyść formularz */
#visformcontainer .btn-danger {
    color: #303846;
    background: #f5f7fb;
    border-color: #e8edf5;
}

#visformcontainer .btn-danger:hover {
    color: #1e3a8a;
    background: #eef2f9;
    border-color: #d7e0ef;
}

/* Nieaktywne przyciski */
#visformcontainer .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Telefony i małe ekrany */
@media (max-width: 767px) {
    #visformcontainer #visform1 {
        padding: 18px 14px;
    }

    #visformcontainer .form-group.row {
        margin-bottom: 10px;
    }

    /* Etykiety nad polami */
    #visformcontainer .form-group.row > label {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-bottom: 7px;
    }

    #visformcontainer .form-group.row > div:not(.form-check) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    /* Wyrównanie pól wyboru i komunikatów */
    #visformcontainer .offset-3 {
        margin-left: 0;
    }

    #visformcontainer .form-control {
        min-height: 44px;
    }

    #visformcontainer .pbBtnCon {
        padding-top: 18px;
    }

    #visformcontainer .pbBtnCon .form-group.row {
        gap: 10px;
    }

    #visformcontainer .pbBtnCon .col-auto {
        flex: 1 1 100%;
        text-align: center;
    }

    #visformcontainer .pbBtnCon .btn {
        width: 100%;
    }
}

/* Ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
    #visformcontainer .form-control,
    #visformcontainer .btn {
        transition: none;
    }
}

/* = PAPIESKA INTENCJA MISYJNA =*/

/* Zdjęcie jako tło części z artykułem */
#sp-intencja-papieska .papieska-intencja .sp-module-content {
    background-image: url("https://parafianawojowa.com.pl/images/tla/papiez-www.png");
    /*background-size: cover;*/
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
   /* overflow: hidden;*/
    min-height: 400px;
}

/* Lista artykułów */
#sp-intencja-papieska .mod-articles-items {
    list-style: none;
    margin: 0;
    padding: 38px 42px;
}

/* Artykuł */
#sp-intencja-papieska .mod-articles-item {
    margin: 0;
    padding: 0;
}

/* Treść – ograniczona do lewej części zdjęcia */
#sp-intencja-papieska .mod-articles-item-content {
    max-width: 50%;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Miesiąc */
#sp-intencja-papieska h4.mod-articles-title {
    color: #ffffff !important;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 20px !important;
}

/* Temat intencji */
#sp-intencja-papieska .mod-articles-item-content p:first-of-type {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px;
}

/* Treść intencji */
#sp-intencja-papieska .mod-articles-item-content p:not(:first-of-type) {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

/* Pogrubienia w treści */
#sp-intencja-papieska .mod-articles-item-content strong {
    color: #ffffff;
}
/* = TABLETY I TELEFONY = */

@media (max-width: 991px) {
    #sp-intencja-papieska .mod-articles-items {
        padding: 30px;
    }

    #sp-intencja-papieska .mod-articles-item-content {
        max-width: 65%;
    }

    #sp-intencja-papieska .mod-articles-item-content p:first-of-type {
        max-width: 50%;
        font-size: 22px;
    }

    #sp-intencja-papieska .mod-articles-item-content p:not(:first-of-type) {
        max-width: 50%;
        font-size: 16px;
    }
}
    
@media (max-width: 767px) {
    #sp-intencja-papieska .papieska-intencja .sp-module-content {
        border-radius: 8px;
    }

    #sp-intencja-papieska .mod-articles-items {
        padding: 26px 22px;
    }

    #sp-intencja-papieska .mod-articles-item-content {
        max-width: 100%;
    }

    #sp-intencja-papieska h4.mod-articles-title {
        font-size: 28px;
        margin-bottom: 14px !important;
    }

    #sp-intencja-papieska .mod-articles-item-content p:first-of-type {
        max-width: 50%;
        font-size: 21px;
    }

    #sp-intencja-papieska .mod-articles-item-content p:not(:first-of-type) {
        max-width: 50%;
        font-size: 15px;
        line-height: 1.65;
    }
}

/* Wymuszenie zdjęcia w tle na tabletach i telefonach */

@media (max-width: 991px) {
    #sp-intencja-papieska .papieska-intencja .sp-module-content {
        background-image: url("https://parafianawojowa.com.pl/images/tla/papiez-www.png") !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-color: #80674f;
        min-height: 350px;
        margin: 0 0 20px !important;
    }
}

@media (max-width: 767px) {
    #sp-intencja-papieska .papieska-intencja .sp-module-content {
        background-image: url("https://parafianawojowa.com.pl/images/tla/papiez-www.png") !important;
        background-size: auto 100% !important;
        background-repeat: no-repeat !important;
        background-color: #80674f;
        min-height: 300px;
        margin: 0 0 20px !important;
    }
}

/* powyżej papieska intencja*/

.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.quick-card {
  background: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #fff; /* granatowy */
}

.quick-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.quick-card p {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 15px;
}

.quick-card .btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #eef2ff;
  color: #1e3a8a;
  text-decoration: none;
  transition: background 0.2s;
}

.quick-card .btn:hover {
  background: #c7d2fe;
}

/* ukrywa znacznik WYRÓŻNIONE w liście artykułów (blog view) */
.article-list .article .featured-article-badge {
    display: none;
    visibility: hidden;
}

/* ukrywa Featured w widoku pojedynczego artykułu */
.article-details .featured-article-badge {
    display: none;
    visibility: hidden;
}

/* ewentualnie ogólnie, jeśli powyższe nie działają */
span.badge.bg-danger.featured-article-badge {
    display: none !important;
}

/* = PRZYCISK -> CZYTAJ WIĘCEJ = */

.readmore {
    margin-top: 18px;
}

.readmore a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    background-color: #1e3a8a;
    color: #ffffff !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none !important;
    border: 1px solid #1e3a8a;
    border-radius: 6px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Strzałka */
.readmore a::after {
    /* tutaj kod dotyczący strzałki - nastąpiła zmiana na sam grot 
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px; 

    transition: transform 0.2s ease; koniec kodu od strzałki */
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Najechanie kursorem */
.readmore a:hover {
    background-color: #294ba3;
    border-color: #294ba3;
    color: #ffffff !important;
}

/* Delikatny ruch strzałki 
.readmore a:hover::after {
    transform: translateX(3px);
} koniec - kod do strzałki*/
.readmore a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Widoczność przy nawigacji klawiaturą */
.readmore a:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 3px;
}

/* Urządzenia mobilne */
@media (max-width: 767px) {
    .readmore a {
        padding: 11px 18px;
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .readmore a::after {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ograniczenie animacji na życzenie użytkownika */
@media (prefers-reduced-motion: reduce) {
    .readmore a,
    .readmore a::after {
        transition: none;
    }
}