/*
Theme Name: Han Pijesak
Theme URI: 
Author: Ivan Ećimović
Description: Tema za opštinu Han Pijesak
Version: 1.0
*/

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #1e2a3a;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: #0a2647;
    color: #ffffff;
    padding: 15px 0;
    border-bottom: 4px solid #e8b830;
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-left .logo img {
    max-height: 70px;
    width: auto;
}
.header-left .site-title h1 {
    color: #e8b830;
    font-size: 41px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.header-left .site-title p {
    color: #e8b830;
    font-size: 18px;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    margin-top: -10px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-social a {
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1877f2;
    border-radius: 50%;
    transition: background 0.3s;
}
.header-social a:hover {
    background: #0c5cdd;
}
.header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(255,255,255,0.2);
}
.header-search .search-form input[type="search"] {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 0;
    outline: none;
    font-size: 14px;
    width: 120px;
}
.header-search .search-form input[type="search"]::placeholder {
    color: rgba(255,255,255,0.6);
}
.header-search .search-form button {
    background: #e8b830;
    border: none;
    border-radius: 30px;
    padding: 8px 14px;
    cursor: pointer;
    color: #0a2647;
    font-size: 16px;
    transition: background 0.3s;
}
.header-search .search-form button:hover {
    background: #d4a520;
}

/* ===== MENI ===== */
.main-navigation {
    background: #0a2647;
    padding: 0;
    border-bottom: 4px solid #e8b830;
}
.main-navigation .container {
    display: flex;
    justify-content: center;
}
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.main-navigation ul li a {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background: #214a7b !important;
    color: #e8b830 !important;
}
.main-navigation ul li:last-child a {
    border-right: none;
}

/* ===== PODMENI (VERTIKALNO) ===== */
.main-navigation ul li {
    position: relative;
}
.main-navigation ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a2647;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
    border-top: 3px solid #e8b830;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.main-navigation ul li:hover ul.sub-menu {
    display: block;
}
.main-navigation ul li ul.sub-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-navigation ul li ul.sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    text-transform: none;
    color: #ffffff;
    background: #0a2647;
    border-right: none;
    text-align: left;
    white-space: nowrap;
}
.main-navigation ul li ul.sub-menu li a:hover {
    background: #214a7b;
    color: #e8b830;
}
.main-navigation ul li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}
.hero-overlay {
    width: 100%;
    min-height: 500px;
    background: rgba(10, 38, 71, 0.6);
    display: flex;
    align-items: center;
}
.hero-content h2 {
    font-family: 'Roboto Condensed', 'Fira Sans', 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-content h2 span {
    font-weight: 700;
    color: #e8b830;
}
.hero-content p {
    font-family: 'Inter', 'Roboto', 'Fira Sans', sans-serif;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.hero-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #e8b830;
    color: #0a2647;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}
.hero-btn:hover {
    background: #f5c94a;
    transform: scale(1.05);
}

/* ===== VIJESTI ===== */
.news-section {
    padding: 50px 0;
}
.news-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #0a2647;
    border-left: 6px solid #e8b830;
    padding-left: 15px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-item .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-item .content {
    padding: 20px;
}
.news-item .content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0a2647;
}
.news-item .content p {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
}
.news-item .content .read-more {
    color: #e8b830;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-item .content .read-more:hover {
    color: #0a2647;
}

/* ===== SPOLJNE VEZE ===== */
.links-section {
    background: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}
.links-section h2 {
    text-align: center;
    font-size: 28px;
    color: #0a2647;
    margin-bottom: 25px;
}
.links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.links-grid a {
    display: inline-block;
    padding: 10px 30px;
    background: #f4f6f9;
    border-radius: 30px;
    color: #0a2647;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}
.links-grid a:hover {
    background: #0a2647;
    color: #ffffff;
}

/* ===== TIPOGRAFIJA ===== */
body, p, li, .entry-content, .text {
    font-family: 'Inter', 'Roboto', 'Fira Sans', sans-serif;
    font-size: 16px;
    color: #3d3d3d;
    line-height: 1.7;
}
h1, .h1, .site-title h1 {
    font-family: 'Roboto Condensed', 'Fira Sans', 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0a2647;
}
h2, .h2, .news-section h2, .links-section h2 {
    font-family: 'Roboto Condensed', 'Fira Sans', 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0a2647;
}
h3, .h3, .news-item .content h3 {
    font-family: 'Roboto Condensed', 'Fira Sans', 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0a2647;
}

/* ===== CENTRALNI DIO ===== */
.two-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0;
}
.left-column {
    width: 750px !important;
    flex-shrink: 0 !important;
    padding: 25px 15px 25px 25px;
    box-sizing: border-box;
    background: #ffffff;
}
.right-column {
    width: 500px !important;
    flex-shrink: 0 !important;
    padding: 25px 25px 25px 10px;
    box-sizing: border-box;
    background: #ffffff;
}

/* ===== SLIKE ===== */
.alignleft { float: left; margin: 5px 15px 5px 0; }
.alignright { float: right; margin: 5px 0 10px 15px; }
.aligncenter { display: block; margin: 10px auto; }
.post-content::after,
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}
.post-content img,
.entry-content img,
.news-item .thumb img,
.news-list .news-item .thumb img,
.single-post .post-thumb img,
.widget img,
.alignleft,
.alignright,
.aligncenter {
    border-radius: 5px;
}

/* ===== VIJESTI U LISTI ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.news-list .news-item {
    width: 100%;
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.news-list .news-item .thumb {
    flex: 0 0 200px;
}
.news-list .news-item .thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.news-list .news-item .content {
    padding: 15px 20px 15px 0;
    flex: 1;
}
.news-list .news-item .content h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
}
.news-list .news-item .content p {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #555;
}

/* ===== DESNA KOLONA ===== */
.right-column h3 {
    font-size: 20px;
    border-bottom: 3px solid #e8b830;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.right-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.right-column ul li {
    margin-bottom: 12px;
}
.right-column ul li a {
    color: #0a2647;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background 0.3s;
}
.right-column ul li a:hover {
    background: #e8b830;
    color: #ffffff;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a2647;
    color: #bddaef;
    padding: 40px 0 0 0;
    margin-top: 50px;
}
.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
    color: #e8b830;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Roboto Condensed', sans-serif;
}
.footer-col p,
.footer-col ul {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #bddaef;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #bddaef;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #e8b830;
}
.footer-col i {
    width: 20px;
    color: #e8b830;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}
.footer-social a:hover {
    background: #e8b830;
    color: #0a2647;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #bddaef;
}

/* ===== WIDGET IKONICE ===== */
.widget-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fde398;
    border-radius: 10px;
    padding: 20px;
}
.widget-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #06163a;
    text-decoration: none;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: background 0.2s;
}
.widget-link:hover {
    background: rgba(255, 255, 255, 0.7);
}
.widget-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
.widget-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.widget-link span:last-child {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== FORMA ===== */
.contact-form-wrapper {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-form-wrapper h2 {
    font-size: 22px;
    color: #0a2647;
    border-bottom: 3px solid #e8b830;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.kontakt-forma p {
    margin-bottom: 18px;
}
.kontakt-forma label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 6px;
    font-family: 'Roboto Condensed', sans-serif;
}
.kontakt-forma input[type="text"],
.kontakt-forma input[type="email"],
.kontakt-forma textarea {
    width: 400px;
    max-width: 100%;
    height: 35px;
    padding: 0 12px;
    border: 2px solid #0a2647;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #ffffff;
    transition: border 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.kontakt-forma textarea {
    height: 120px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.5;
}
.kontakt-forma input[type="text"]:focus,
.kontakt-forma input[type="email"]:focus,
.kontakt-forma textarea:focus {
    border-color: #e8b830;
    box-shadow: 0 0 5px rgba(232, 184, 48, 0.5);
    outline: none;
}
.kontakt-forma input[type="submit"] {
    background: #0a2647;
    color: #e8b830;
    border: none;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.kontakt-forma input[type="submit"]:hover {
    background: #1e3a6b;
    color: #f5c94a;
}
.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 750px;
    width: 100%;
}
.contact-map iframe {
    display: block;
    width: 750px;
    max-width: 100%;
    height: 450px;
    border-radius: 8px;
}

/* ============================================================
   HAMBURGER MENI
   ============================================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #e8b830;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ===== TABLET — ≤ 1024px ===== */
@media (max-width: 1024px) {
    .header-left .site-title h1 { font-size: 32px; }
    .header-left .site-title p { font-size: 15px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-wrapper { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MOBILNI — ≤ 768px ===== */
@media (max-width: 768px) {
    .site-header { padding: 10px 0; position: relative; }
    .header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .header-left { flex-direction: column; gap: 8px; }
    .header-left .site-title h1 { font-size: 22px; line-height: 1.2; }
    .header-left .site-title p { font-size: 12px; margin-top: -4px; }
    .header-right { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .header-search .search-form input[type="search"] { width: 140px; }
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 14px;
        right: 16px;
    }
    .main-navigation { padding: 0; }
    .main-navigation .container { display: block; }
    .main-navigation ul {
        display: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 0;
    }
    .main-navigation.is-open ul { display: flex !important; }
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-navigation ul li a {
        padding: 14px 20px !important;
        font-size: 15px !important;
        text-align: left;
        border-right: none !important;
        border-bottom: none !important;
        background: #0a2647 !important;
        color: #ffffff !important;
    }
    .main-navigation ul li a:hover,
    .main-navigation ul li.current-menu-item a {
        background: #214a7b !important;
        color: #e8b830 !important;
    }
    /* Podmeni na mobilnom */
    .main-navigation ul li ul.sub-menu {
        position: static;
        display: block;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
    }
    .main-navigation ul li ul.sub-menu li a {
        padding: 10px 20px;
        font-size: 13px;
        background: #1a3a5c;
    }
    .hero { min-height: 320px; }
    .hero-overlay { min-height: 320px; }
    .hero-content h2 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .hero-btn { padding: 10px 25px; font-size: 14px; }
    .news-section { padding: 30px 0; }
    .news-section h2 { font-size: 22px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .two-columns { flex-direction: column; }
    .left-column, .right-column {
        width: 100% !important;
        padding: 15px !important;
    }
    .news-list .news-item { flex-direction: column; gap: 0; }
    .news-list .news-item .thumb { flex: none; width: 100%; }
    .news-list .news-item .thumb img { width: 100%; height: auto; }
    .news-list .news-item .content { padding: 15px 20px; }
    .site-footer { padding: 30px 0 0 0; margin-top: 30px; }
    .footer-wrapper {
        grid-template-columns: 1fr !important;
        gap: 24px;
        text-align: center;
    }
    .footer-social { justify-content: center; }
    .footer-bottom { text-align: center; font-size: 12px; }
    .widget-links { grid-template-columns: 1fr 1fr; padding: 15px; }
}

/* ===== MALI MOBILNI — ≤ 480px ===== */
@media (max-width: 480px) {
    .header-left .site-title h1 { font-size: 18px; }
    .header-left .site-title p { font-size: 11px; }
    .header-left .logo img { max-height: 50px; }
    .header-search .search-form input[type="search"] { width: 110px; font-size: 13px; }
    .hero-content h2 { font-size: 22px; }
    .hero-content p { font-size: 13px; }
    .news-section h2 { font-size: 20px; }
    .widget-links { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
    .widget-icon img { width: 28px !important; height: 28px !important; }
    .widget-link span:last-child { font-size: 12px; }
}/* ===== CENTRIRANJE WIDGETA U DESNOJ KOLONI ===== */
.right-column .widget {
    text-align: center;
    margin-bottom: 30px;
}

.right-column .widget-title {
    text-align: center;
    border-bottom: 3px solid #e8b830;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #0a2647;
    font-size: 18px;
}

.right-column .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.right-column .widget ul li {
    margin-bottom: 10px;
    text-align: center;
}

.right-column .widget ul li a {
    display: inline-block;
    color: #0a2647;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    transition: color 0.3s;
}

.right-column .widget ul li a:hover {
    color: #e8b830;
}

/* Search widget */
.right-column .widget .search-form {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.right-column .widget .search-form input[type="search"] {
    padding: 8px 12px;
    border: 2px solid #0a2647;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 70%;
}

.right-column .widget .search-form button {
    background: #0a2647;
    color: #e8b830;
    border: none;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

/* Custom HTML widget */
.right-column .widget .widget-links {
    margin: 0 auto;
}

/* Text widget */
.right-column .widget.textwidget p {
    text-align: center;
}
/* ===== DAILY WEATHER — BOLD ===== */
#block-14,
#block-14 *,
.widget.widget-block,
.widget.widget-block * {
    font-weight: 700 !important;
}

/* Naslov widgeta */
#block-14 .widget-title,
#block-14 h3,
.widget.widget-block .widget-title,
.widget.widget-block h3 {
    font-weight: 700 !important;
    color: #0a2647 !important;
    font-size: 18px !important;
}

/* Tekst u widgetu */
#block-14 p,
#block-14 span,
#block-14 div,
.widget.widget-block p,
.widget.widget-block span,
.widget.widget-block div {
    font-weight: 700 !important;
}
/* ===== PAGINACIJA ===== */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f4f6f9;
    color: #0a2647;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0a2647;
    color: #e8b830;
}

.pagination .next,
.pagination .prev {
    padding: 8px 16px;
}