/*
Theme Name: Shelly Mažoretkinje
Theme URI: https://shellymajorettes.hr
Author: Shelly Mažoretkinje
Description: Prilagođena WordPress tema izrađena iz postojeće Shelly HTML stranice, s dinamičkim WordPress blogom.
Version: 1.5.0
Text Domain: shelly-majorettes
*/


  :root{
    --bg-deep: #EDE2D6;
    --bg-deep-2: #F4E9E4;
    --gold: #EDE2D6;
    --pink: #D38BA7;
    --cream: #2D1E3A;
    --muted: #8a7481;
    --line: rgba(45,30,58,0.14);
    --white: #ffffff;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background:var(--bg-deep);
    color:var(--cream);
    font-family:'Montserrat', sans-serif;
    overflow-x:hidden;
  }
  h1,h2,h3, .display{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    letter-spacing:0;
    margin:0;
  }
  a{ color:inherit; }
  img{ max-width:100%; display:block; }

  .wrap{
    max-width:1120px;
    margin:0 auto;
    padding:0 28px;
  }

  /* ---------- NAV (over hero photo, sticks while scrolling) ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:50;
    transition:background .25s ease, box-shadow .25s ease;
  }
  header.scrolled{
    background:var(--bg-deep);
    box-shadow:0 2px 18px -6px rgba(45,30,58,0.25);
  }
  nav.wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:28px; padding-bottom:16px;
    transition:padding .25s ease;
  }
  header.scrolled nav.wrap{
    padding-top:16px; padding-bottom:16px;
  }
  .brand-corner{
    text-decoration:none;
    font-family:'Montserrat', sans-serif;
    font-size:13px; font-weight:700;
    letter-spacing:0.22em;
    text-transform:uppercase;
    color:var(--white);
    text-shadow:0 2px 12px rgba(0,0,0,0.55);
    transition:color .25s ease, text-shadow .25s ease;
  }
  header.scrolled .brand-corner{
    color:var(--cream);
    text-shadow:none;
  }
  .navlinks{
    display:flex; gap:30px;
    list-style:none; margin:0; padding:0;
    font-size:13px; font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
  }
  .navlinks a{
    text-decoration:none;
    color:var(--white);
    text-shadow:0 2px 12px rgba(0,0,0,0.55);
    transition:color .2s ease;
    position:relative;
  }
  header.scrolled .navlinks a{
    color:var(--cream);
    text-shadow:none;
  }
  .navlinks a:hover, .navlinks a:focus-visible{ color:var(--gold); }
  .navlinks a::after{
    content:"";
    position:absolute; left:0; right:0; bottom:-6px;
    height:2px; background:var(--gold);
    transform:scaleX(0); transform-origin:left;
    transition:transform .25s ease;
  }
  .navlinks a:hover::after{ transform:scaleX(1); }
  .navtoggle{ display:none; }

  /* ---------- WAVE CUT (solid colour transition between sections) ---------- */
  .wave-cut{
    position:relative;
    width:100%;
    height:90px;
    margin-top:-89px;
    z-index:4;
    pointer-events:none;
  }
  .wave-cut svg{
    display:block;
    width:100%;
    height:100%;
  }
  @media (max-width:640px){
    .wave-cut{ height:56px; margin-top:-55px; }
  }

  /* ---------- HERO (photo background + overlay text) ---------- */
  .hero{
    position:relative;
    height:100vh;
    min-height:520px;
    max-height:880px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:14vh;
    text-align:center;
    overflow:hidden;
  }
  .hero-bg{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    object-position:center 25%;
  }
  .hero-overlay{
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(20,13,36,0.55) 0%, rgba(20,13,36,0.15) 40%, rgba(20,13,36,0.65) 100%);
  }
  .hero-logo{
    position:relative;
    z-index:2;
    font-family:'Great Vibes', cursive;
    font-weight:400;
    text-transform:none;
    letter-spacing:0.01em;
    font-size:clamp(40px, 12vw, 128px);
    color:var(--white);
    line-height:1;
    padding:0 16px;
    max-width:100%;
    text-shadow:0 6px 30px rgba(0,0,0,0.55);
  }

  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 30px;
    font-size:14px; font-weight:700; letter-spacing:0.05em;
    text-transform:uppercase; text-decoration:none;
    border-radius:999px;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .btn-primary{
    background:var(--pink); color:var(--white);
    box-shadow:0 10px 30px -8px rgba(211,139,167,0.6);
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 34px -6px rgba(211,139,167,0.75); }
  .btn-ghost{
    background:transparent; color:var(--cream);
    border:1px solid var(--line);
  }
  .btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

  /* ---------- STATS SHOWCASE ---------- */
  .stats-showcase{
    position:relative;
    background:var(--cream);
    overflow:hidden;
    padding:100px 0;
  }
  .stats-showcase::before{
    content:"";
    position:absolute; inset:0;
    background-image:
      radial-gradient(rgba(245,239,230,0.08) 1.5px, transparent 1.5px);
    background-size:26px 26px;
    opacity:0.6;
  }
  .stats-showcase::after{
    content:"";
    position:absolute;
    top:-20%; right:-10%;
    width:60%; height:140%;
    background:radial-gradient(ellipse, rgba(211,139,167,0.18), transparent 60%);
    pointer-events:none;
  }
  .stats-heading{
    position:relative;
    text-align:center;
    font-family:'Great Vibes', cursive;
    font-size:clamp(38px, 6vw, 64px);
    color:var(--white);
    margin-bottom:64px;
  }
  .stats-grid{
    position:relative;
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:40px;
    max-width:1000px;
    margin:0 auto;
  }
  .stat-card{
    text-align:center;
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s ease, transform .7s ease;
  }
  .stat-card.in-view{
    opacity:1;
    transform:translateY(0);
  }
  .stat-card:nth-child(2){ transition-delay:.15s; }
  .stat-card:nth-child(3){ transition-delay:.3s; }
  .stat-icon{
    width:84px; height:84px;
    margin:0 auto 24px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(145deg, var(--pink), var(--gold));
    box-shadow:0 12px 28px -8px rgba(211,139,167,0.55);
  }
  .stat-icon svg{ width:38px; height:38px; }
  .stat-number{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    font-size:clamp(48px, 7vw, 72px);
    line-height:1;
    color:var(--white);
  }
  .stat-label{
    margin-top:12px;
    font-size:15px;
    letter-spacing:0.04em;
    color:rgba(245,239,230,0.75);
    text-transform:uppercase;
    font-weight:600;
  }
  @media (max-width:700px){
    .stats-grid{ grid-template-columns:1fr; gap:48px; }
  }
  @media (prefers-reduced-motion: reduce){
    .stat-card{ opacity:1; transform:none; transition:none; }
  }

  /* ---------- SECTION SHELL ---------- */
  section{ padding:100px 0; position:relative; scroll-margin-top:90px; }
  .section-head{
    display:flex; align-items:baseline; gap:18px;
    margin-bottom:52px;
    border-bottom:1px solid var(--line);
    padding-bottom:22px;
  }
  .section-head .num{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    font-size:16px; color:var(--pink);
  }
  .section-head h2{
    font-size:clamp(30px, 4vw, 44px);
  }
  .section-head p{
    margin-left:auto; color:var(--muted); font-size:15px; max-width:280px; text-align:right;
  }
  @media (max-width:640px){
    .section-head{ flex-direction:column; }
    .section-head p{ text-align:left; margin-left:0; }
  }

  /* ---------- O NAMA ---------- */
  .about-grid{
    display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:stretch;
  }
  .about-grid p{ color:var(--muted); font-size:17px; line-height:1.75; margin-bottom:16px; }
  .eyebrow{
    font-family:'Montserrat', sans-serif; font-weight:600;
    font-size:12px; letter-spacing:0.22em; text-transform:uppercase;
    color:var(--pink); margin-bottom:10px;
  }
  .about-lead{
    font-family:'Cormorant Garamond', serif; font-weight:600; font-style:italic;
    color:var(--pink) !important; font-size:24px !important; line-height:1.35 !important;
    margin-bottom:14px !important;
  }
  .about-stats{
    display:flex; gap:28px;
    margin-top:22px; padding-top:20px;
    border-top:1px solid var(--line);
  }
  .about-stat-num{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    color:var(--cream); font-size:24px; line-height:1;
  }
  .about-stat-label{ color:var(--muted); font-size:12px; margin-top:4px; }
  @media (max-width:480px){
    .about-stats{ gap:20px; }
  }
  .photo-frame{
    aspect-ratio:4/5; border-radius:18px;
    background:linear-gradient(145deg, var(--bg-deep-2), #F4E9E4);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:14px; text-align:center; padding:20px;
    position:relative; overflow:hidden;
  }
  .photo-frame::before{
    content:"";
    position:absolute; inset:0;
    background:repeating-linear-gradient(45deg, rgba(237,226,214,0.05) 0 10px, transparent 10px 20px);
  }
  @media (max-width:800px){ .about-grid{ grid-template-columns:1fr; } }

  /* ---------- LIGHTBOX (klik za uvećanje slike) ---------- */
  .lightbox-img{
    cursor:zoom-in;
    transition:transform .25s ease, filter .25s ease;
  }
  .lightbox-img:hover{
    transform:scale(1.015);
    filter:brightness(1.03);
  }
  .lightbox-overlay{
    position:fixed; inset:0;
    background:rgba(10,9,11,0.9);
    display:none;
    align-items:center; justify-content:center;
    z-index:999;
    cursor:zoom-out;
    padding:24px;
    animation:lightbox-fade .2s ease;
  }
  .lightbox-overlay.open{ display:flex; }
  .lightbox-card{
    display:flex; flex-direction:column;
    max-width:92vw; max-height:88vh;
    border-radius:16px;
    overflow-y:auto;
    box-shadow:0 30px 70px -20px rgba(0,0,0,0.6);
  }
  .lightbox-overlay img{
    display:block;
    max-width:92vw; max-height:88vh;
    object-fit:contain;
  }
  .lightbox-card img{ max-height:56vh; flex-shrink:0; }
  .lightbox-caption{
    display:none;
    background:linear-gradient(135deg, rgba(211,139,167,0.9), rgba(237,226,214,0.85));
    padding:20px 26px 24px;
    text-align:center;
  }
  .lightbox-caption.show{ display:block; }
  .lightbox-caption-age{
    font-family:'Cormorant Garamond', serif; font-weight:600; color:#2D1E3A; font-size:14px; letter-spacing:0.03em;
    margin-bottom:6px;
  }
  .lightbox-caption h3{
    font-family:'Cormorant Garamond', serif; font-weight:600; color:#fff; font-size:22px; margin:0 0 6px;
  }
  .lightbox-caption p{
    color:rgba(255,255,255,0.92); font-size:14px; line-height:1.55; margin:0; max-width:520px; margin:0 auto;
  }
  .lightbox-close{
    position:absolute; top:22px; right:28px;
    color:#fff; font-size:32px; line-height:1;
    background:none; border:none; cursor:pointer;
    font-family:'Cormorant Garamond', serif; font-weight:600;
  }
  @keyframes lightbox-fade{
    from{ opacity:0; }
    to{ opacity:1; }
  }


  /* ---------- UPISI MODAL ---------- */
  .modal-overlay{
    position:fixed; inset:0;
    background:rgba(20,14,28,0.72);
    display:none;
    align-items:flex-start;
    justify-content:center;
    z-index:999;
    padding:70px 24px 40px;
    overflow-y:auto;
    animation:lightbox-fade .2s ease;
  }
  .modal-overlay.open{ display:flex; }
  .modal-box{
    position:relative;
    background:var(--bg-deep-2);
    border-radius:20px;
    max-width:920px;
    width:100%;
    padding:40px 36px 44px;
    box-shadow:0 30px 70px -20px rgba(0,0,0,0.5);
  }
  .modal-close{
    position:absolute; top:18px; right:18px;
    width:38px; height:38px; border-radius:50%;
    background:var(--bg-deep); color:var(--cream);
    border:1px solid var(--line);
    font-size:22px; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .2s ease, color .2s ease;
    z-index:5;
  }
  .modal-close:hover{ background:var(--pink); color:var(--white); }
  @media (max-width:640px){
    .modal-overlay{ padding:60px 12px 24px; }
    .modal-box{ padding:28px 20px 32px; border-radius:14px; }
  }

  .modal-box-wide{ max-width:1140px; }
  .modal-box-article{
    max-width:760px;
    padding:0;
    overflow:hidden;
  }
  .article-modal-image{
    width:100%;
    aspect-ratio:4/3;
    object-fit:contain;
    display:block;
    background:linear-gradient(135deg, var(--gold), var(--pink));
  }
  .article-modal-body{ padding:32px 32px 36px; }
  .article-modal-body h2{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    color:var(--cream);
    margin:0 0 6px;
    font-size:clamp(24px,3vw,32px);
  }
  .article-modal-body .blog-card-date{ margin-bottom:16px; }
  .article-modal-body .article-content p{
    color:var(--cream);
    line-height:1.7;
    margin:0 0 14px;
  }
  @media (max-width:640px){
    .article-modal-body{ padding:22px 20px 26px; }
  }
  .modal-box-gallery{
    max-width:1100px;
    padding:0;
    overflow:hidden;
    background:var(--pink);
  }

  .sponsor-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:18px;
  }
  .sponsor-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:14px;
    aspect-ratio:3/2;
    display:flex; align-items:center; justify-content:center;
    padding:22px;
    text-decoration:none;
    box-shadow:0 8px 20px -16px rgba(45,30,58,0.25);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .sponsor-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px -14px rgba(45,30,58,0.35);
  }
  .sponsor-card img{
    max-width:100%; max-height:100%;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:0.7;
    transition:filter .2s ease, opacity .2s ease;
  }
  .sponsor-card:hover img{ filter:grayscale(0%); opacity:1; }
  .sponsor-placeholder{
    font-family:'Montserrat', sans-serif;
    font-weight:700; letter-spacing:0.05em;
    text-transform:uppercase;
    font-size:12px; color:var(--muted);
    text-align:center;
  }
  @media (max-width:640px){
    .sponsor-grid{ grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:12px; }
  }

  /* ---------- GALERIJA (full-width karusel) ---------- */
  .gallery-carousel-outer{
    position:relative;
    width:100vw;
    left:50%;
    margin-left:-50vw;
    background:var(--pink);
  }
  .gallery-carousel{
    position:relative;
    height:78vh;
    max-height:680px;
    min-height:360px;
    overflow:hidden;
  }
  .gallery-slide{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:contain;
    background:var(--pink);
    opacity:0;
    cursor:zoom-in;
    transition:opacity .5s ease;
  }
  .gallery-slide.active{ opacity:1; z-index:1; }
  .gallery-carousel::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(20,14,28,0.15) 0%, rgba(20,14,28,0.55) 100%);
    pointer-events:none;
  }
  .gallery-arrow{
    position:absolute; top:50%; transform:translateY(-50%);
    width:52px; height:52px; border-radius:50%;
    background:rgba(20,14,28,0.45); color:#fff; border:none;
    font-size:24px; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    z-index:3; transition:background .2s ease;
  }
  .gallery-arrow:hover{ background:rgba(211,139,167,0.75); }
  .gallery-arrow.prev{ left:20px; }
  .gallery-arrow.next{ right:20px; }
  .gallery-counter{
    position:absolute; bottom:20px; right:24px; z-index:3;
    color:#fff; font-family:'Cormorant Garamond', serif; font-weight:600; font-size:13px;
    background:rgba(20,14,28,0.5); padding:6px 16px; border-radius:20px;
    letter-spacing:0.05em;
  }
  @media (max-width:640px){
    .gallery-carousel{ height:56vh; min-height:300px; }
    .gallery-arrow{ width:42px; height:42px; font-size:19px; }
  }

  /* ---------- BLOG (portal layout) ---------- */
  .blog-top{
    display:grid;
    grid-template-columns: 1.5fr 1fr;
    gap:22px;
    margin-bottom:22px;
  }
  .blog-side-col{
    display:grid;
    grid-template-rows: 1fr 1fr;
    gap:22px;
  }
  .blog-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
    margin-top:22px;
  }
  .blog-card{
    position:relative;
    display:block;
    border-radius:16px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    background:var(--white);
    box-shadow:0 10px 24px -18px rgba(45,30,58,0.35);
    cursor:pointer;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .blog-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 34px -16px rgba(45,30,58,0.4);
  }
  .blog-card-image{
    width:100%;
    aspect-ratio:16/10;
    object-fit:contain;
    display:block;
    background:linear-gradient(135deg, var(--gold), var(--pink));
  }
  .blog-top .blog-card.featured .blog-card-image{ aspect-ratio:4/3; }
  .blog-top .blog-card:not(.featured) .blog-card-image{ aspect-ratio:16/8; }
  .blog-card-body{ padding:20px 22px 22px; }
  .blog-card.featured .blog-card-body{ padding:26px 28px 28px; }
  .blog-card-tag{
    display:inline-block;
    font-family:'Cormorant Garamond', serif; font-weight:600;
    font-size:11px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--pink);
    background:rgba(211,139,167,0.1);
    padding:4px 12px;
    border-radius:20px;
    margin-bottom:10px;
  }
  .blog-card-date{
    font-size:12px;
    color:var(--muted);
    margin-bottom:8px;
  }
  .blog-card h3{
    font-family:'Cormorant Garamond', serif; font-weight:600;
    line-height:1.15;
    color:var(--cream);
    margin:0 0 10px;
    font-size:18px;
  }
  .blog-card.featured h3{ font-size:clamp(22px,2.4vw,30px); }
  .blog-card p{
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .blog-card.featured p{ -webkit-line-clamp:4; font-size:15px; }
  .blog-card-more{
    display:inline-block;
    margin-top:12px;
    font-size:13px;
    font-weight:600;
    color:var(--pink);
  }
  @media (max-width:900px){
    .blog-top{ grid-template-columns:1fr; }
    .blog-side-col{ grid-template-rows:1fr 1fr; grid-template-columns: 1fr 1fr; display:grid; }
    .blog-grid{ grid-template-columns:repeat(2, 1fr); }
  }
  @media (max-width:640px){
    .blog-side-col{ grid-template-columns:1fr; }
    .blog-grid{ grid-template-columns:1fr; }
  }

  /* ---------- RASPORED ---------- */
  .schedule-list{ display:flex; flex-direction:column; }
  .schedule-row{
    display:grid;
    grid-template-columns: 120px 1fr auto;
    gap:24px; align-items:center;
    padding:22px 0;
    border-bottom:1px solid var(--line);
  }
  .schedule-row .day{
    font-family:'Cormorant Garamond', serif; font-weight:600; font-size:20px; color:var(--gold);
  }
  .schedule-row .what b{ display:block; font-size:17px; color:var(--cream); margin-bottom:4px; }
  .schedule-row .what span{ color:var(--muted); font-size:14px; }
  .schedule-row .time{
    font-size:14px; font-weight:600; color:var(--pink);
    border:1px solid rgba(211,139,167,0.35);
    padding:6px 14px; border-radius:999px; white-space:nowrap;
  }
  @media (max-width:640px){
    .schedule-row{ grid-template-columns:1fr; gap:8px; }
  }

  /* ---------- RASPORED (day cards, multi-slot) ---------- */
  .schedule-days-grid{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px;
  }
  .schedule-day-card{
    background:var(--bg-deep-2);
    border:1px solid var(--line);
    border-radius:16px;
    padding:28px 26px;
  }
  .schedule-day-card h3{
    font-family:'Cormorant Garamond', serif; font-weight:600; color:var(--pink);
    font-size:22px; margin-bottom:18px;
  }
  .schedule-list-mini{ list-style:none; margin:0; padding:0; }
  .schedule-list-mini li{
    display:flex; align-items:baseline; gap:14px;
    padding:11px 0; border-bottom:1px solid var(--line);
  }
  .schedule-list-mini li:last-child{ border-bottom:none; }
  .schedule-list-mini .time{
    font-family:'Cormorant Garamond', serif; font-weight:600; color:var(--gold);
    font-size:13px; white-space:nowrap; min-width:96px;
  }
  .schedule-list-mini .group{ font-size:15px; color:var(--muted); }
  .schedule-list-mini .group b{ color:var(--cream); font-weight:600; }

  /* ---------- UPISI (forma + aktualnosti) ---------- */
  .upisi-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:48px;
    align-items:start;
  }
  .upisi-form{ display:flex; flex-direction:column; gap:16px; }
  .upisi-form label{
    display:block; font-size:13px; font-weight:700; letter-spacing:0.04em;
    text-transform:uppercase; color:var(--pink); margin-bottom:6px;
  }
  .upisi-form input,
  .upisi-form select,
  .upisi-form textarea{
    width:100%; padding:13px 16px;
    border:1px solid var(--line); border-radius:10px;
    background:var(--bg-deep-2); color:var(--cream);
    font-family:'Montserrat', sans-serif; font-size:15px;
    transition:border-color .2s ease;
  }
  .upisi-form input:focus,
  .upisi-form select:focus,
  .upisi-form textarea:focus{
    outline:none; border-color:var(--pink);
  }
  .upisi-form textarea{ resize:vertical; min-height:110px; }
  .upisi-form button{
    align-self:flex-start; border:none; cursor:pointer;
    font-family:inherit;
  }
  @media (max-width:800px){
    .upisi-grid{ grid-template-columns:1fr; gap:40px; }
  }

  /* ---------- PRIJAVE / CLANOVI ---------- */
  .join-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
  }
  .join-card{
    position:relative;
    border-radius:16px;
    overflow:hidden;
    display:flex; flex-direction:column;
    background:var(--white);
    box-shadow:0 10px 24px -18px rgba(45,30,58,0.35);
    transition:transform .25s ease, box-shadow .25s ease;
    cursor:zoom-in;
  }
  .join-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 34px -16px rgba(45,30,58,0.4);
  }
  .join-card-img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    background:linear-gradient(135deg, var(--gold), var(--pink));
    display:block;
  }
  .join-card-content{
    padding:18px 20px 20px;
    width:100%;
  }
  .join-card .age{
    display:inline-block;
    font-family:'Cormorant Garamond', serif; font-weight:600; color:var(--pink); font-size:11px; letter-spacing:0.06em;
    text-transform:uppercase;
    background:rgba(211,139,167,0.1);
    padding:4px 12px;
    border-radius:20px;
    margin-bottom:10px;
  }
  .join-card h3{ font-size:19px; margin-bottom:6px; color:var(--cream); }
  .join-card p{ color:var(--muted); font-size:13px; line-height:1.55; }
  @media (max-width:900px){
    .join-grid{ grid-template-columns:repeat(2, 1fr); }
  }
  @media (max-width:640px){
    .join-grid{ grid-template-columns:1fr; }
  }

  /* ---------- KONTAKT ---------- */
  .contact-box{
    background:linear-gradient(135deg, rgba(211,139,167,0.16), rgba(237,226,214,0.1));
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    padding:72px 0;
    text-align:center;
  }
  .contact-box h2{ font-size:clamp(28px,4vw,42px); margin-bottom:14px; }
  .contact-box p{ color:var(--muted); max-width:480px; margin:0 auto 30px; }
  .contact-links{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:28px; }
  .social-icons{ display:flex; gap:16px; justify-content:center; }
  .social-icons a{
    width:52px; height:52px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:1px solid var(--line); color:var(--cream);
    transition:transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
  }
  .social-icons svg{ width:22px; height:22px; }
  .social-icons a:hover{
    border-color:var(--pink); color:var(--pink);
    transform:translateY(-3px);
    background:rgba(211,139,167,0.08);
  }

  footer{
    border-top:1px solid var(--line);
    padding:56px 0 28px;
    color:rgba(247,237,228,0.65); font-size:13px;
    background:var(--cream);
  }
  footer .brand{
    display:flex; align-items:center; gap:10px;
    font-family:'Cormorant Garamond', serif; font-weight:600; font-size:18px; letter-spacing:0.03em;
    margin-bottom:12px; color:#fff;
  }
  footer .brand .dot{
    width:10px; height:10px; border-radius:50%;
    background:var(--pink);
    box-shadow:0 0 0 4px rgba(211,139,167,0.2);
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
    gap:40px;
    text-align:left;
    padding-bottom:32px;
  }
  .footer-about p{
    font-size:13px; line-height:1.65; color:rgba(247,237,228,0.55);
    max-width:280px; margin:0 0 18px;
  }
  .footer-social{ display:flex; gap:12px; }
  .footer-social a{
    width:36px; height:36px; border-radius:50%;
    border:1px solid rgba(247,237,228,0.25);
    display:flex; align-items:center; justify-content:center;
    color:#fff; transition:background .2s ease, border-color .2s ease;
  }
  .footer-social a:hover{ background:var(--pink); border-color:var(--pink); }
  .footer-social svg{ width:16px; height:16px; }
  .footer-heading{
    font-family:'Cormorant Garamond', serif; font-weight:600; font-size:12px; letter-spacing:0.1em;
    text-transform:uppercase; color:#fff; margin-bottom:16px;
  }
  .footer-links{ display:flex; flex-direction:column; gap:10px; }
  .footer-links a{
    color:rgba(247,237,228,0.7); text-decoration:none; font-size:14px;
    transition:color .2s ease;
  }
  .footer-links a:hover{ color:var(--gold); }
  .footer-contact{ display:flex; flex-direction:column; gap:10px; font-size:14px; color:rgba(247,237,228,0.7); }
  .footer-contact a{ color:inherit; text-decoration:none; }
  .footer-contact a:hover{ color:var(--gold); }
  .footer-bottom{
    border-top:1px solid rgba(247,237,228,0.15);
    padding-top:20px;
    text-align:center;
    font-size:12px;
    color:rgba(247,237,228,0.4);
  }
  @media (max-width:760px){
    .footer-grid{ grid-template-columns:1fr; gap:32px; text-align:center; }
    footer .brand{ justify-content:center; }
    .footer-about p{ max-width:none; margin-left:auto; margin-right:auto; }
    .footer-social{ justify-content:center; }
  }

  /* mobile nav */
  @media (max-width:760px){
    .navlinks{
      position:fixed; inset:64px 0 0 0;
      background:var(--bg-deep);
      flex-direction:column; align-items:center;
      justify-content:center;
      gap:32px; font-size:18px;
      transform:translateY(-110%);
      transition:transform .3s ease;
    }
    .navlinks a{ color:var(--cream); text-shadow:none; }
    .navlinks.open{ transform:translateY(0); }
    .navtoggle{
      display:block; background:none; border:none; color:var(--white);
      font-size:26px; cursor:pointer; line-height:1;
      transition:color .25s ease;
    }
    header.scrolled .navtoggle{ color:var(--cream); }
  }

  /* ---------- GLOBAL RESPONSIVE PASS ---------- */
  @media (max-width:900px){
    section{ padding:72px 0; }
    .stats-showcase{ padding:72px 0; }
    .hero{ min-height:460px; }
    .section-head{ margin-bottom:36px; }
  }
  @media (max-width:640px){
    .wrap{ padding:0 20px; }
    .brand-corner{ font-size:11px; letter-spacing:0.16em; }
    section{ padding:56px 0; }
    .stats-showcase{ padding:56px 0; }
    .stats-heading{ margin-bottom:40px; }
    .hero{ min-height:420px; }
    .stat-row{ gap:24px; }
    .stat b{ font-size:28px; }
    .schedule-day-card{ padding:22px 20px; }
    .join-card{ padding:24px 20px; }
    .schedule-list-mini .group{ flex:1 1 auto; min-width:0; }
    .contact-box{ padding:48px 0; }
    .contact-links{ flex-direction:column; align-items:stretch; }
    .contact-links .btn{ justify-content:center; }
    .schedule-row .time{ justify-self:start; }
    footer{ padding:32px 0; }
  }
  @media (max-width:380px){
    .navlinks{ gap:24px; font-size:16px; }
    .hero-logo{ font-size:44px; }
  }


/* WordPress dodatci */
.admin-bar header { top: 32px; }
.wp-blog-empty { padding: 2rem; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; text-align:center; }
.blog-card-image.wp-placeholder { background: linear-gradient(135deg, var(--gold), var(--pink)); min-height:220px; display:block; }
.shelly-content-page { max-width: 900px; margin: 140px auto 80px; padding: 0 24px; }
.shelly-content-page h1 { margin-bottom: 24px; }
.shelly-post-meta { opacity:.7; margin-bottom:24px; }
.shelly-post-image { width:100%; border-radius:20px; margin-bottom:28px; }
.shelly-post-content { line-height:1.8; font-size:1.05rem; }
.shelly-post-content img { max-width:100%; height:auto; }
.shelly-pagination { display:flex; justify-content:space-between; gap:20px; margin-top:40px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }


/* WordPress Aktualnosti: fiksni portal raspored */
#blog .blog-top{
  display:grid;
  grid-template-columns:minmax(0, 1.65fr) minmax(280px, 1fr);
  gap:24px;
  align-items:stretch;
  margin-bottom:24px;
}
#blog .blog-side-col{
  display:grid;
  grid-template-rows:repeat(2, minmax(0, 1fr));
  gap:24px;
}
#blog .blog-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}
#blog .blog-card{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#blog .blog-card-image{
  width:100%;
  display:block;
  object-fit:cover;
  flex:0 0 auto;
  background:linear-gradient(135deg, var(--gold), var(--pink));
}
#blog .blog-card.featured .blog-card-image{height:390px; aspect-ratio:auto;}
#blog .blog-side-col .blog-card-image{height:155px; aspect-ratio:auto;}
#blog .blog-grid .blog-card-image{height:210px; aspect-ratio:auto;}
#blog .blog-card-body{flex:1; display:flex; flex-direction:column;}
#blog .blog-card-more{margin-top:auto; padding-top:10px;}
#blog .blog-card h3{overflow-wrap:anywhere;}
#blog .blog-side-col .blog-card-body{padding:14px 16px 16px;}
#blog .blog-side-col .blog-card h3{font-size:18px; line-height:1.15; margin-bottom:5px;}
#blog .blog-side-col .blog-card p{font-size:12px; -webkit-line-clamp:2;}
#blog .blog-side-col .blog-card-date{font-size:11px; margin-bottom:6px;}
#blog .blog-side-col .blog-card-tag{font-size:9px; margin-bottom:6px;}
#blog .blog-grid .blog-card-body{padding:16px 18px 18px;}
#blog .blog-grid .blog-card h3{font-size:18px; line-height:1.2;}
#blog .blog-grid .blog-card p{font-size:12px; -webkit-line-clamp:3;}

/* Prijava za upis */
.upisi-message{
  max-width:480px;
  margin:0 auto 18px;
  padding:13px 16px;
  border-radius:10px;
  font-family:'Montserrat',sans-serif;
  font-size:14px;
}
.upisi-message.success{background:#e8f7ee;color:#23663c;border:1px solid #b9e3c7;}
.upisi-message.error{background:#fff0f0;color:#8a2d2d;border:1px solid #efc0c0;}

@media (max-width:900px){
  #blog .blog-top{grid-template-columns:1fr;}
  #blog .blog-side-col{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;}
  #blog .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #blog .blog-card.featured .blog-card-image{height:360px;}
}
@media (max-width:640px){
  #blog .blog-side-col,#blog .blog-grid{grid-template-columns:1fr;}
  #blog .blog-card.featured .blog-card-image,
  #blog .blog-side-col .blog-card-image,
  #blog .blog-grid .blog-card-image{height:230px;}
}

/* v1.3: WordPress aktualnosti ponovno se otvaraju u modalu. */
#articleModal .modal-box-article{
  max-height:90vh;
  overflow-y:auto;
  overscroll-behavior:contain;
}
#articleModal .article-modal-image{
  width:100%;
  max-height:440px;
  object-fit:cover;
}
#articleModal .article-content img{
  max-width:100%;
  height:auto;
}
.blog-card{cursor:pointer;}
