/* Wedding24.pl — nowy CSS wzorowany na oryginalnym motywie tc_art_colors/green */
/* Joomla 1.5 portal ślubny (2008-2009) */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f4f4f0;
}

a { color: #2e7d32; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff6600; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1b5e20;
    line-height: 1.3;
}

h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1em; }

/* === LAYOUT WRAPPER === */
#tcWrapper, .site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

/* === HEADER === */
#headerMenu, .site-header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo */
.site-logo {
    padding: 12px 0;
}

.site-logo a {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo a:hover { color: #ffcc80; }

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

/* Navigation */
.main-nav {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 16px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s;
}

/* === HERO / HEADER IMAGE === */
#headerImage, .hero-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #4caf50 100%);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === MAIN CONTAINER === */
#tcContainer, .site-container {
    display: flex;
    gap: 25px;
    padding: 25px 20px;
}

/* Content area */
#tcContent, .content-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
#tcRightCol, #tcLeftCol, .sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* === CONTENT PANE (articles) === */
.contentpaneopen, .article-content {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.contentheading, .article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #1b5e20;
    margin-bottom: 8px;
    line-height: 1.3;
}

.contentheading a { color: #1b5e20; }
.contentheading a:hover { color: #ff6600; }

.createdate, .article-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.small { font-size: 0.85rem; color: #888; }

/* Author line */
.article-author {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

/* Article text */
.article-content p,
.contentpaneopen p {
    text-align: justify;
    line-height: 1.7;
}

.article-content img {
    border-radius: 4px;
    margin: 10px 0;
}

/* Read more */
.readmore a, .readon {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 6px 18px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.readmore a:hover, .readon:hover {
    background: #ff6600;
    color: #fff;
}

/* === MODULE / SIDEBAR BOXES === */
.moduletable, .module-box {
    background: #f9f9f6;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.moduletable h3, .module-box h3 {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    padding: 10px 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.moduletable ul, .module-box ul {
    list-style: none;
    padding: 10px 15px;
}

.moduletable li, .module-box li {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.moduletable li:last-child, .module-box li:last-child {
    border-bottom: none;
}

.moduletable li a {
    color: #333;
    font-size: 0.9rem;
}

.moduletable li a:hover { color: #ff6600; }

/* === PATHWAY / BREADCRUMB === */
#tcPathway, .breadcrumb {
    font-size: 0.8rem;
    color: #888;
    padding: 8px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#tcPathway a, .breadcrumb a { color: #2e7d32; }

/* === BAZA FIRM (directory) === */
.sobi2Details {
    background: #f9f9f6;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sobi2Details span {
    display: block;
    padding: 3px 0;
}

/* === CATEGORY INDEX LISTING === */
.blog-featured .article-content,
.category-list .article-content {
    padding: 15px 0;
}

.sectiontableentry1,
.sectiontableentry2 {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* === FOOTER === */
#footerPHP, .site-footer {
    background: linear-gradient(135deg, #1b5e20 0%, #263238 100%);
    color: rgba(255,255,255,0.8);
    padding: 25px 20px;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a {
    color: #a5d6a7;
    transition: color 0.2s;
}

.site-footer a:hover { color: #fff; }

#bottomMenu, .footer-nav {
    background: #1b5e20;
    padding: 10px 20px;
    text-align: center;
}

#bottomMenu a, .footer-nav a {
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    font-size: 0.8rem;
}

#bottomMenu a:hover, .footer-nav a:hover {
    color: #fff;
}

/* === BUTTON HEADING (PDF, Print, Email) === */
.buttonheading { display: none; }

/* === LOGIN FORM (hidden) === */
#mod_loginform { display: none; }

/* === JOOMLA SPECIFIC CLEANUP === */
.myfps_slide_menu { display: none; }
#aniWrapper { display: none; }

/* === IMAGES in articles === */
.article-content img[style*="float: right"],
.contentpaneopen img[style*="float: right"] {
    margin: 0 0 15px 20px;
    border-radius: 4px;
}

.article-content img[style*="float: left"],
.contentpaneopen img[style*="float: left"] {
    margin: 0 20px 15px 0;
    border-radius: 4px;
}

/* === TABLES in content === */
table {
    border-collapse: collapse;
    width: 100%;
}

td, th {
    padding: 6px 10px;
    vertical-align: top;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    #tcContainer, .site-container {
        flex-direction: column;
    }

    #tcRightCol, #tcLeftCol, .sidebar {
        width: 100%;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1b5e20;
        z-index: 99;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hamburger { display: block; }

    .hero-section h1 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .site-header-inner {
        padding: 0 12px;
    }

    .site-logo a { font-size: 1.2rem; }

    #tcContainer, .site-container {
        padding: 15px 12px;
    }

    .contentheading, .article-title {
        font-size: 1.3rem;
    }
}

/* === UTILITY === */
.clearfix::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.hidden { display: none; }
