/*
==========================================================
PLEJADA e‑Sekretariat
CSS Version: 6.0
Autor: Karol Sugalski
Wsparcie: OpenAI ChatGPT

Zmiany:
- poprawione zagnieżdżone @media
- usunięto martwy blok .item-page .article-info
- zachowano zgodność z menu desktop (poziome)
  i mobile (pionowe)
==========================================================
*/

/* ==========================================================
   PLEJADA PANEL SŁUCHACZA
   Version: 6.0
   Joomla 6 + Cassiopeia Extended
   Mobile First
========================================================== */


/* ==========================================================
   DESIGN SYSTEM
========================================================== */

:root{

    --primary:#162f62;
    --secondary:#b1c900;
    --accent:#ff8447;

    --bg:#f5f7fb;
   /* --surface:#ffffff;*/

    --text:#24324a;
    --text-light:#6d7687;

    --border:#e5ebf3;

    --radius:18px;
    --radius-lg:24px;

    --shadow-sm:0 2px 8px rgba(22,47,98,.05);
    --shadow:0 12px 30px rgba(22,47,98,.08);

    --transition:.25s;

    --content-width:1180px;

}


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    background:var(--bg);

    color:var(--text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:16px;

    line-height:1.6;

}


/* ==========================================================
   JOOMLA CLEANUP
========================================================== */

.breadcrumb,
.article-info,
.icons{

    display:none;

}


/* ==========================================================
   HEADER
========================================================== */

.container-header{

    background:#ffffff;

    border-bottom:1px solid var(--border);

    box-shadow:var(--shadow-sm);

}

.container-nav{

    max-width:var(--content-width);

    margin:auto;

    padding:18px;

}


/* ==========================================================
   LOGO
========================================================== */

.navbar-brand{

    display:flex;

    justify-content:center;

    align-items:center;

    margin:0 auto 12px;

}

.navbar-brand img{

    display:block;

    width:auto;

    max-width:320px;

    max-height:70px;

}

.navbar-brand span{

    display:none;

}


/* ==========================================================
   MAIN CONTENT
========================================================== */

main{

    max-width:var(--content-width);

    margin:auto;

    padding:18px 18px 60px;

}

.com-content-article{

    background:#ffffff;

    border-radius:var(--radius-lg);

    padding:40px;

    box-shadow:var(--shadow);

}
/* ==========================================================
   MENU PLEJADA
========================================================== */
/* ==========================================================
   MENU PLEJADA
========================================================== */

ul.mod-menu.mod-list.nav.plejada-menu{

    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;

    justify-content:center;
    align-items:center;

    gap:14px;

    margin:0;
    padding: 0;

    list-style:none;

}

ul.mod-menu.mod-list.nav.plejada-menu > li{

    display:block;

    width:auto;

    flex:0 0 auto;

    margin:0;

    list-style:none;

}

ul.mod-menu.mod-list.nav.plejada-menu > li > a{

    display:flex;

    align-items:center;
    justify-content:center;

    min-height:48px;

    padding:0 22px;

    white-space:nowrap;

    border:1px solid var(--border);
    border-radius:14px;

    background:#fff;

    color:var(--primary);

    text-decoration:none;

    font-weight:600;

}

ul.mod-menu.mod-list.nav.plejada-menu > li.active > a,
ul.mod-menu.mod-list.nav.plejada-menu > li > a:hover{

    background:var(--primary);

    color:#fff;

}

/* ==========================================================
   LOGIN INTRO
========================================================== */

.main-top.login-intro{

    max-width:620px;

    margin:0 auto 8px;

    padding:0;

    background:none;

    border:none;

    box-shadow:none;

}

.login-intro,
.login-intro .card,
.login-intro .card-body{

    background:none !important;

    border:none !important;

    box-shadow:none !important;

    padding:0 !important;

}

.login-intro{

    text-align:center;

    max-width:620px;

    margin:10px auto 16px;

}

.login-intro .welcome-title{

    color:var(--primary);

    font-size:1.55rem;

    font-weight:700;

    line-height:1.25;

    margin-bottom:10px;

}

.login-intro .welcome-text{

    max-width:520px;

    margin:0 auto;

    color:var(--text-light);

    font-size:.96rem;

    line-height:1.7;

}


/* ==========================================================
   LOGIN CARD
========================================================== */

.login{

    max-width:430px;

    margin:0 auto 50px;

    padding:42px;

    background:#ffffff;

    border-radius:24px;

    box-shadow:var(--shadow);

}


/* ==========================================================
   INPUTS
========================================================== */

.login input:not([type="checkbox"]){

    height:54px;

    padding:0 18px;

    border:1px solid #d9e3ef;

    border-radius:14px;

    font-size:16px;

    transition:.2s;

}

.login input:not([type="checkbox"]):focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(22,47,98,.08);

    outline:none;

}


/* ==========================================================
   CHECKBOX
========================================================== */

.login input[type="checkbox"]{

    width:18px;

    height:18px;

    margin-right:8px;

}

.login .form-check,
.login .form-check-label{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:.92rem;

}


/* ==========================================================
   PASSWORD FIELD
========================================================== */

.password-group{

    display:flex;

    align-items:stretch;

}

.password-group input{

    flex:1;

    border-top-right-radius:0;

    border-bottom-right-radius:0;

}

.password-group .input-password-toggle{

    width:54px;

    min-width:54px;

    border-left:0;

    border-top-left-radius:0;

    border-bottom-left-radius:0;

    border-top-right-radius:14px;

    border-bottom-right-radius:14px;

    background:#ffffff;

    color:#666666;

    box-shadow:none;

}

.password-group .input-password-toggle:hover{

    background:#f5f7fb;

    color:var(--primary);

}


/* ==========================================================
   LOGIN BUTTON
========================================================== */

.com-users-login__submit .btn{

    display:block;

    width:100%;

    min-height:54px;

    margin-top:18px;

    border-radius:14px;

    font-size:1rem;

    font-weight:700;

}


/* ==========================================================
   LOGIN LINKS
========================================================== */

.login .list-group{

    margin-top:22px;

    background:none;

    border:none;

    box-shadow:none;

}

.login .list-group-item{

    padding:6px 0;

    background:none;

    border:none;

}
/* ==========================================================
   DASHBOARD
========================================================== */

.plejada-dashboard{

    max-width:1100px;

    margin:0 auto;

}

.plejada-dashboard h1{

    text-align:center;

    color:var(--primary);

    font-size:2.35rem;

    margin:0 0 12px;

}

.dashboard-lead{

    max-width:760px;

    margin:0 auto 42px;

    text-align:center;

    color:var(--text-light);

    font-size:1rem;

    line-height:1.7;

}

.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:28px;

}

.dashboard-card{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    min-height:220px;

    padding:34px 28px;

    text-align:center;

    text-decoration:none;

    color:inherit;

    background:#ffffff;

    border:1px solid var(--border);

    border-radius:22px;

    box-shadow:var(--shadow);

    transition:all .25s ease;

}

.dashboard-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 42px rgba(22,47,98,.14);

}

.dashboard-icon{

    font-size:56px;

    color:var(--primary);

    margin-bottom:18px;

}

.dashboard-card h3{

    margin:0 0 12px;

    color:var(--primary);

    font-size:1.35rem;

    font-weight:700;

}

.dashboard-card p{

    margin:0;

    color:var(--text-light);

    line-height:1.65;

}


/* ==========================================================
   PDF BUTTON
========================================================== */

a[href$=".pdf"]{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:48px;

    padding:0 24px;

    margin-top:22px;

    background:var(--accent);

    color:#ffffff !important;

    border-radius:14px;

    text-decoration:none;

    font-weight:600;

    transition:.2s;

}

a[href$=".pdf"]:hover{

    opacity:.92;

    transform:translateY(-1px);

}


/* ==========================================================
   BUTTONS
========================================================== */

.btn{

    border-radius:14px;

    transition:.2s;

}

.btn:hover{

    transform:translateY(-1px);

}


/* ==========================================================
   FOOTER
========================================================== */

.container-footer{

    margin-top:50px;

    padding:24px;

    text-align:center;

    color:var(--text-light);

    background:transparent;

    border-top:1px solid var(--border);

}

.container-footer a{

    display:none;

}
/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    /* ==========================
       HEADER
    ========================== */

    .container-nav{

        padding:14px;

    }

    .navbar-brand{

        margin-bottom:10px;

    }

    .navbar-brand img{

        max-width:220px;

        max-height:48px;

    }


    /* ==========================
       CONTENT
    ========================== */

    main{

        padding:18px 12px 36px;

    }

    .com-content-article{

        padding:22px;

        border-radius:18px;

    }


    /* ==========================
       MENU
    ========================== */

    ul.mod-menu.mod-list.nav.plejada-menu{

        flex-direction:column !important;

        align-items:stretch;

    }

    ul.mod-menu.mod-list.nav.plejada-menu > li{

        width:100%;

    }

    ul.mod-menu.mod-list.nav.plejada-menu > li > a{

        width:100%;

    }

    /* ==========================
       LOGIN INTRO
    ========================== */

    .main-top.login-intro{

        margin:0 auto 6px;

    }

    .login-intro{

        margin:14px auto 18px;

        padding:0 16px;

    }

    .login-intro .welcome-title{

        font-size:1.40rem;

    }

    .login-intro .welcome-text{

        font-size:.95rem;

    }


    /* ==========================
       LOGIN
    ========================== */

    .login{

        max-width:100%;

        margin:0;

        padding:0;

        background:transparent;

        border:none;

        border-radius:0;

        box-shadow:none;

    }

    .com-users-login{

        padding:0 16px;

    }

    .login input:not([type="checkbox"]){

        height:56px;

    }

    .password-group .input-password-toggle{

        width:56px;

        min-width:56px;

    }

    .com-users-login__submit .btn{

        min-height:56px;

    }


    /* ==========================
       DASHBOARD
    ========================== */

    .plejada-dashboard h1{

        font-size:2rem;

    }

    .dashboard-lead{

        margin-bottom:28px;

    }

    .dashboard-grid{

        grid-template-columns:1fr;

        gap:18px;

    }

    .dashboard-card{

        min-height:190px;

        padding:28px 22px;

    }

    .dashboard-icon{

        font-size:46px;

        margin-bottom:16px;

    }

    .dashboard-card h3{

        font-size:1.2rem;

    }

}


/* ==========================================================
   SMALL IMPROVEMENTS
========================================================== */

::selection{

    background:var(--primary);

    color:#ffffff;

}

img{

    max-width:100%;

    height:auto;

}

a{

    transition:.2s;

}

hr{

    border:none;

    border-top:1px solid var(--border);

}

/* ==========================================================
   PLEJADA - USUNIĘCIE KARTY MODUŁU MENU
========================================================== */

.top-a .card,
.top-a .card-body{

    background:transparent !important;

    border:none !important;

    box-shadow:none !important;

    padding:0 !important;

}

.top-a{

    margin-bottom:24px;

}

/* ==========================================================
   TOP-A
========================================================== */

.top-a{

    background:transparent !important;

    border:none !important;

    outline:none !important;

    box-shadow:none !important;

    padding:0 !important;

    margin:0 auto 18px !important;

}

.top-a::before,
.top-a::after{

    display:none !important;

    content:none !important;

}

.top-a > *{

    border:none !important;

    box-shadow:none !important;

}

/* ===== Rejestracja użytkownika ===== */

.com-users-registration {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.com-users-registration h1,
.com-users-registration legend {
    margin-bottom: 24px;
    font-weight: 700;
}

.com-users-registration .form-control,
.com-users-registration input,
.com-users-registration select {
    min-height: 48px;
    border-radius: 10px;
}

.com-users-registration .btn {
    min-height: 54px;
    border-radius: 14px;
    font-weight: 700;
}

.com-users-registration .form-text {
    font-size: .9rem;
    color: #6c757d;
}

.com-users-registration fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

/* Menu użytkownika */

ul.mod-menu.plejada-menu {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

@media (max-width: 768px) {

    ul.mod-menu.plejada-menu {
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

}

/* ==========================================
   Kafelki kategorii e-Sekretariat
========================================== */

.com-content-categories__item {

    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);

    border: 1px solid #e6ecf5;

    padding: 0;

    overflow: hidden;

    max-width: 520px;
    margin: 20px auto;

}

.com-content-categories__item a {

    display: flex;
    align-items: center;

    padding: 22px 24px;

    text-decoration: none;

    color: #163d80;

    font-size: 1.15rem;
    font-weight: 600;

}

.com-content-categories__item a::before {

    content: "📅";

    font-size: 2rem;

    margin-right: 18px;

}

.com-content-categories__item a::after {

    content: "›";

    margin-left: auto;

    font-size: 2rem;

    color: #163d80;

}

.com-content-categories__item:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(0,0,0,.12);

}

/* ==========================================================
   PLEJADA e-Sekretariat
   Dokumenty / Aktualności / Plany zajęć
   ========================================================== */

/* LISTA ARTYKUŁÓW */

.com-content-category-blog__item,
.com-content-category__item,
.category-list .list-group-item {

    background:#fff;
    border:1px solid #e7ecf3;
    border-radius:16px;

    padding:28px;
    margin-bottom:28px;

    box-shadow:0 8px 24px rgba(0,0,0,.06);

    transition:.25s ease;
}

.com-content-category-blog__item:hover,
.com-content-category__item:hover,
.category-list .list-group-item:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 34px rgba(0,0,0,.10);
}


/* TYTUŁ */

.com-content-category-blog__item h1,
.com-content-category-blog__item h2,
.com-content-category-blog__item h3,
.com-content-category__item h1,
.com-content-category__item h2,
.com-content-category__item h3,
.category-list h1,
.category-list h2,
.category-list h3{

    margin-bottom:16px;

    font-size:1.45rem;

    color:#173f7a;
}


/* IKONA DOKUMENTU */

.com-content-category-blog__item h1::before,
.com-content-category-blog__item h2::before,
.com-content-category-blog__item h3::before,
.com-content-category__item h1::before,
.com-content-category__item h2::before,
.com-content-category__item h3::before{

    content:"📄 ";

    font-size:1.2em;
}


/* TREŚĆ */

.com-content-category-blog__item p,
.com-content-category__item p{

    color:#555;

    line-height:1.7;
}


/* LINKI PDF */

.com-content-category-blog__item a[href$=".pdf"],
.com-content-category__item a[href$=".pdf"],
.item-page a[href$=".pdf"]{

    display:inline-block;

    margin-top:18px;

    background:#173f7a;

    color:#fff !important;

    padding:12px 24px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.25s;
}

.com-content-category-blog__item a[href$=".pdf"]:hover,
.com-content-category__item a[href$=".pdf"]:hover,
.item-page a[href$=".pdf"]:hover{

    background:#2457a6;

    transform:translateY(-2px);
}


/* DODAJ IKONĘ PDF */

.com-content-category-blog__item a[href$=".pdf"]::before,
.com-content-category__item a[href$=".pdf"]::before,
.item-page a[href$=".pdf"]::before{

    content:"📥 ";
}


/* POJEDYNCZY ARTYKUŁ */

.item-page{

    background:#fff;

    border-radius:18px;

    padding:36px;

    box-shadow:0 8px 28px rgba(0,0,0,.08);

    border:1px solid #e8edf5;
}


/* TYTUŁ POJEDYNCZEGO ARTYKUŁU */

.item-page .page-header h1{

    color:#173f7a;

    font-size:2rem;

    margin-bottom:22px;
}

.item-page .page-header h1::before{

    content:"📄 ";

}


/* META ukryte globalnie - brak dodatkowych stylów */

/* OBRAZY */

.item-page img{

    border-radius:12px;
}


/* RESPONSIVE */

@media (max-width:768px){

.item-page{

    padding:20px;
}

.com-content-category-blog__item,
.com-content-category__item{

    padding:20px;
}

}

/* ==========================================================
   e-Sekretariat 5.2
   Kosmetyka dokumentów
========================================================== */

/* Nagłówek sekcji */

.page-header{

    margin-bottom:26px;

    padding-bottom:16px;

    border-bottom:2px solid var(--border);

}

.page-header h1{

    display:flex;

    align-items:center;

    gap:12px;

    margin:0;

    color:var(--primary);

    font-size:2rem;

    font-weight:700;

}

.page-header h1::before{

    content:"📄";

    font-size:1.1em;

}

/* ========================================================== */

/* Lista dokumentów */

.com-content-category__item,
.com-content-category-blog__item{

    position:relative;

    overflow:hidden;

}

/* Pasek identyfikujący */

.com-content-category__item::before,
.com-content-category-blog__item::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    bottom:0;

    width:5px;

    background:var(--primary);

}

/* ========================================================== */

/* Tytuły */

.com-content-category__item h1,
.com-content-category__item h2,
.com-content-category__item h3,
.com-content-category-blog__item h1,
.com-content-category-blog__item h2,
.com-content-category-blog__item h3{

    margin-bottom:14px;

    color:var(--primary);

}

/* ========================================================== */

/* Przyciski PDF */

a[href$=".pdf"]{

    min-width:220px;

    justify-content:center;

    letter-spacing:.3px;

}

/* ========================================================== */

/* Delikatniejszy opis */

.com-content-category__item p,
.com-content-category-blog__item p{

    margin-bottom:18px;

    color:var(--text-light);

}

/* ========================================================== */

/* Więcej światła */

.item-page{

    max-width:900px;

    margin:auto;

}

/* ========================================================== */

/* Efekt hover */

.com-content-category__item:hover,
.com-content-category-blog__item:hover{

    border-color:rgba(22,47,98,.18);

}

/* ========================================================== */

/* Ładniejszy HR */

.item-page hr{

    margin:28px 0;

}

#item-content p{
    padding: 16px 24px 0 24px !important;
    margin: 0 !important;
}

/* ==========================================================
   Odstępy treści artykułów e-Sekretariat
========================================================== */

#item-content p + p{
    margin-top: 16px !important;
}



/* ==========================================================
   PLEJADA 6.0
   Nadpisanie paddingu Cassiopeia dla listy artykułów
========================================================== */

.blog-items .blog-item.com-content-category-blog__item{
    padding:24px;
}



.plejada-logo img{

    display:block;

    margin:0 auto;

    max-width:180px;

    height:auto;

}

.plejada-app-title{

    display:block;
    width:100%;
    text-align:center;
    margin-top:8px;
    color:var(--text-light);
    font-size:.90rem;
    letter-spacing:.08em;
}

.container-top-a{
    margin-top: 20px;
}

/* ==========================================================
   STOPKA e-Sekretariat
========================================================== */

.plejada-footer{

    width: fit-content;

    margin: 48px auto 24px;

    padding: 18px 28px;

    background: #edf2f8;

    border: 1px solid #d7e1ee;

    border-radius: 16px;

    text-align: center;

}

.plejada-footer .footer-copy{

    display:block;

    text-align:center;

    color:#50607a;

    font-size:.90rem;

    font-weight:600;

}

.plejada-footer .footer-version{

    display:block;

    text-align:center;

    margin-top:4px;

    color:#7d8ca4;

    font-size:.80rem;

}

/* ==========================================================
   Wyśrodkowanie stopki
========================================================== */

.container-footer.footer{
    display:flex;
    justify-content:center;
    align-items:center;
}