/* PTIT Website Styles - Poland Version */

:root {
    --primary-orange: #e34622;
    --dark-orange: #d63a1a;
    --blue-accent: #3e6a8e;
    --text-color: #666666;
    --heading-color: #111111;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Lato', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Top Bar - Orange */
.topbar {
    background: var(--primary-orange);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-topbar {
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 13px;
}

.btn-topbar:hover {
    background: rgba(255, 255, 255, 0.15);
}

.social-icon {
    color: white;
    font-size: 18px;
    margin-left: 10px;
    padding: 5px 10px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Mid Bar - Logo Area */
.midbar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.midbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(227, 70, 34, 0.3);
}

/* Navigation Bar - Orange Gradient */
.navbar {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 15px;
    transition: background 0.3s;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    background: rgba(0, 0, 0, 0.15);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #39434d;
    min-width: 220px;
    list-style: none;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    color: #e1e3e7;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #47515a;
    transition: background 0.3s;
    font-size: 14px;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: #47515a;
    color: white;
}

/* Search Box */
.search-box {
    display: flex;
}

.search-input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 14px;
}

.search-btn {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2d5570;
}

/* Slider */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 0;
}

.slide-category {
    background: var(--primary-orange);
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.slide-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-desc {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.slide-meta {
    font-size: 14px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-orange);
    display: inline-block;
}

.section-title i {
    color: var(--primary-orange);
    margin-right: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.news-thumb {
    overflow: hidden;
    height: 200px;
    background: #f0f0f0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-orange);
}

.news-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.news-meta i {
    margin-right: 5px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    background: var(--blue-accent);
    color: white;
    padding: 12px 35px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-load-more:hover {
    background: #2d5570;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(62, 106, 142, 0.3);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
}

.widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.3s;
}

.widget-list a:hover {
    color: var(--primary-orange);
}

.widget-list a:hover .widget-date {
    background: var(--dark-orange);
}

.widget-date {
    background: var(--primary-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    flex-shrink: 0;
    font-weight: 500;
    transition: background 0.3s;
}

.widget-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--primary-orange);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.footer-name {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-col p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col i {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .navbar .container {
        flex-direction: column;
    }

    .search-box {
        margin-top: 10px;
        width: 100%;
    }

    .search-input {
        flex: 1;
    }

    .slide-title {
        font-size: 28px;
    }

    .slider {
        height: 350px;
    }

    .midbar-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}