/* FiSMA Plain Site Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.site-header {
    background-color: #1e73be;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #13517a;
    color: #fff;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-top: 2px solid #0066cc;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    display: block;
}

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

.dropdown-link {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.dropdown-link:hover {
    background-color: #f0f0f0;
    color: #0066cc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Main Content */
.site-main {
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #0066cc;
}

.page-content {
    margin-top: 2rem;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.4rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.page-content p,
.post-content p {
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li,
.post-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: #0066cc;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #0066cc;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .main-nav {
        width: 100%;
        margin-top: 1rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.8rem 1rem;
    }

    .nav-item.has-dropdown > .nav-link::after {
        content: "▾";
        float: right;
        margin-left: 0.5rem;
        transition: transform 0.2s;
        display: inline-block;
    }

    .nav-item.has-dropdown.open > .nav-link::after {
        transform: rotate(180deg);
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f5f5f5;
    }

    .nav-item.has-dropdown .dropdown {
        display: none;
    }

    .nav-item.has-dropdown.open .dropdown {
        display: block;
    }

    .dropdown-overview {
        font-weight: 600;
    }

    .site-main {
        padding: 1rem;
        margin: 1rem auto;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Blog List Styles */
.blog-list {
    margin-top: 3rem;
}

.blog-item {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item__img {
    flex-shrink: 0;
}

.blog-item__img img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.blog-item__body {
    flex: 1;
}

.blog-item__body h2 {
    margin-top: 0;
}

.blog-item__body h2 a {
    color: #1e73be;
    text-decoration: none;
}

.blog-item__body h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #1e73be;
}

.blog-item__logo {
    background: #f0f0f0;
    padding: 20px;
}

@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-item__img img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 0.4rem;
    color: #aaa;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
