/* ============================================
   CSS i Përbashkët për të gjitha faqet
   Komuna e Tearcës
   ============================================ */

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #0b2a4a;
    color: #fff;
    padding: 0.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.logo span {
    color: #fff;
}

.logo span i {
    color: #f1c40f;
}

.logo .subtitle {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.6;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: #1e3f62;
    color: #fff;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid #f1c40f;
    padding: 0.5rem 0;
    z-index: 999;
}

.dropdown-content a {
    color: #1e2a3a !important;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    background: transparent !important;
    font-size: 0.8rem;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #e8eff7 !important;
    color: #0b2a4a !important;
}

.dropdown-content a i {
    width: 18px;
    color: #f1c40f;
    font-size: 0.8rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a i:last-child {
    margin-left: 4px;
    font-size: 0.6rem;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: 0.3rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid #5a7a9a;
    color: #ddd;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: #f1c40f;
    color: #0b2a4a;
    border-color: #f1c40f;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.content-with-sidebar {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    align-self: flex-start;
}

#sidebar .sidebar-logo {
    text-align: center;
    padding: 0.5rem 0 1rem;
    border-bottom: 2px solid #f1c40f;
    margin-bottom: 1.5rem;
}

#sidebar .sidebar-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1c40f;
}

#sidebar .sidebar-logo h3 {
    color: #0b2a4a;
    font-size: 1rem;
    margin: 0.3rem 0 0;
}

#sidebar .sidebar-logo p {
    color: #888;
    font-size: 0.7rem;
    margin: 0;
}

#sidebar h2 {
    color: #0b2a4a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 0.5rem;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

#sidebar ul li:last-child {
    border-bottom: none;
}

#sidebar ul li a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.9rem;
}

#sidebar ul li a:hover {
    color: #f1c40f;
    padding-left: 5px;
}

#sidebar ul li a i {
    width: 20px;
    color: #0b2a4a;
}

#sidebar .ads {
    margin: 0.8rem 0;
}

#sidebar .ads img {
    max-width: 100%;
    border-radius: 6px;
}

#sidebar hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #eee;
}

#sidebar .singel {
    margin-top: 1.5rem;
}

/* ===== CONTENT BOX ===== */
.content-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    min-height: 400px;
}

.content-box h1 {
    color: #0b2a4a;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #f1c40f;
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
}

.content-box h1 i {
    color: #f1c40f;
}

/* ===== FOOTER ===== */
footer {
    background: #0b2a4a;
    color: #aaa;
    margin-top: 2rem;
    padding: 2rem 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.footer-logo img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid #1a3a5c;
    border-bottom: 1px solid #1a3a5c;
}

.footer-content h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-content p,
.footer-content a {
    color: #aaa;
    font-size: 0.8rem;
    margin: 0.2rem 0;
    display: block;
    text-decoration: none;
}

.footer-content a:hover {
    color: #f1c40f;
}

.footer-content i {
    width: 18px;
    color: #f1c40f;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-bottom i {
    color: #f1c40f;
}

/* ============================================
   ANIMACIONI I GRADIENTIT PER HERO
   ============================================ */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-section {
    background: linear-gradient(135deg, #0b2a4a, #1a4a6e, #2a5a8e, #1a4a6e, #0b2a4a);
    background-size: 300% 300%;
    animation: gradientMove 12s ease-in-out infinite;
    color: #fff;
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 4px 25px rgba(11,42,74,0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(241,196,15,0.05);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(241,196,15,0.03);
    border-radius: 50%;
    animation: pulseGlow 10s ease-in-out infinite reverse;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hero-text h1 i {
    color: #f1c40f;
}

.hero-text p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 500px;
}

.hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-image img {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(241,196,15,0.3);
    box-shadow: 0 0 30px rgba(241,196,15,0.1);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(-5deg);
}

/* ============================================
   RESPONSIVE - PËR TË GJITHA PAJISJET
   ============================================ */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        order: 2;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-image img {
        height: 80px;
        width: 80px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hamburger shfaqet */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 0.1rem;
        padding: 0.5rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        text-align: center;
        padding: 0.5rem;
        font-size: 0.85rem;
        white-space: normal;
    }

    /* Navbar - Vertical */
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 45px;
        width: 45px;
    }

    /* Dropdown - Full width */
    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        text-align: center;
        display: block;
        padding: 0.5rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: 2px solid #f1c40f;
        width: 100%;
    }

    .dropdown-content a {
        justify-content: center;
        padding: 0.4rem 1rem;
        white-space: normal;
    }

    .lang-switch {
        justify-content: center;
        margin: 0.5rem 0;
    }

    /* Container */
    .container {
        padding: 0 0.8rem;
    }

    /* Sidebar */
    #sidebar {
        padding: 1rem;
    }

    #sidebar .sidebar-logo img {
        width: 60px;
        height: 60px;
    }

    #sidebar ul li a {
        font-size: 0.85rem;
    }

    /* Content Box */
    .content-box {
        padding: 1.5rem;
    }

    .content-box h1 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-logo img {
        height: 45px;
        width: 45px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .hero-section {
        padding: 1.5rem 1.2rem;
        margin: 1rem 0 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-image img {
        height: 70px;
        width: 70px;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 0.85rem;
        gap: 8px;
    }

    .logo img {
        height: 38px;
        width: 38px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .content-box {
        padding: 1rem;
    }

    .content-box h1 {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #sidebar .sidebar-logo img {
        width: 50px;
        height: 50px;
    }

    #sidebar ul li a {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .hero-section {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }

    .hero-image img {
        height: 60px;
        width: 60px;
    }
}

/* Mobile Extra Small (max-width: 360px) */
@media (max-width: 360px) {
    .logo {
        font-size: 0.75rem;
        gap: 6px;
    }

    .logo img {
        height: 32px;
        width: 32px;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .content-box h1 {
        font-size: 1rem;
    }

    .dropdown-content a {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-text h1 {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1rem 0.8rem;
    }
}

/* ============================================
   KLASA NDIHMËSE RESPONSIVE
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== FORMA RESPONSIVE ===== */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f1c40f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2);
}

/* ===== BUTONA ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: #0b2a4a;
    color: #fff;
}

.btn-primary:hover {
    background: #f1c40f;
    color: #0b2a4a;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #ccc;
}

img {
    max-width: 100%;
    height: auto;
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Stili i kartave të shpalljeve */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.post-card .card-image {
    height: 180px;
    background: linear-gradient(135deg, #2c5f8a, #0b2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.03);
}

.post-card .card-body {
    padding: 1.2rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .card-body .card-date {
    color: #999;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.post-card .card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    flex: 1;
}

.post-card .card-body h3 a {
    color: #0b2a4a;
    text-decoration: none;
    transition: 0.2s;
}

.post-card .card-body h3 a:hover {
    color: #f1c40f;
}

.post-card .card-body p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex: 1;
}

/* Butonat në karta */
.post-card .btn-group {
    display: flex;
    gap: 6px;
    margin-top: auto;
    flex-wrap: wrap;
}

.post-card .btn-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0b2a4a;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.2s;
    padding: 4px 12px;
    background: #f0f4f8;
    border-radius: 4px;
}

.post-card .btn-read:hover {
    background: #0b2a4a;
    color: #fff;
}

.post-card .btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e74c3c;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: 0.2s;
}

.post-card .btn-pdf:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* Badge PDF */
.post-card .pdf-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}