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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', sans-serif;
    background-color: #f8f9fa;
    color: #202122;
    line-height: 1.6;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #a7d7f9;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 6px 12px;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    width: 300px;
}

.search-box button {
    padding: 6px 16px;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    cursor: pointer;
}

.search-box button:hover {
    background: #e9ecef;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 20px;
    width: 210px;
    padding: 15px;
    background: #f8f9fa;
    height: calc(100vh - 20px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .logo-img {
    width: 180px !important;
    height: 180px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 180px !important;
    margin: 0 0 15px 0;
    display: block !important;
    object-fit: contain;
}

.sidebar h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #54595d;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 15px;
}

.sidebar ul li {
    margin: 5px 0;
}

.sidebar ul li a {
    color: #0645ad;
    text-decoration: none;
    font-size: 14px;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    margin-left: 230px;
    padding: 20px;
    width: calc(100% - 250px);
}

.content-wrapper {
    background: #fff;
    border: 1px solid #a7d7f9;
    padding: 20px 30px;
    border-radius: 2px;
}

.page-title {
    font-size: 28px;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #000;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 30px;
}

.beta-logo {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 2080px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-title {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #54595d;
}

/* Grid Sections */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.box {
    border: 1px solid #a2a9b1;
    padding: 15px;
    border-radius: 2px;
    background: #f8f9fa;
}

.box-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #a2a9b1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-content {
    font-size: 14px;
    line-height: 1.8;
}

.box-content ul {
    list-style: none;
    padding-left: 0;
}

.box-content ul li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.box-content ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0645ad;
}

.box-content a {
    color: #0645ad;
    text-decoration: none;
}

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

/* Featured Article */
.featured-article {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.featured-image {
    width: 200px;
    height: 150px;
    background: #e9ecef;
    border: 1px solid #a2a9b1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.featured-text {
    flex: 1;
}

/* Footer */
.footer {
    margin-left: 230px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    font-size: 12px;
    color: #54595d;
    text-align: center;
}

.footer a {
    color: #0645ad;
    text-decoration: none;
}

/* Responsive */
@media (min-width: 1600px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 2000px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .footer {
        margin-left: 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 200px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
}

.header {
    display: flex;
    align-items: center; /* centraliza verticalmente logo e texto */
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

/* Force sidebar logo size - must be at the end to override any other styles */
.sidebar img.logo-img,
div.sidebar .logo-img,
.sidebar > .logo-img {
    width: 180px !important;
    height: 180px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 180px !important;
    min-height: 180px !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
    object-fit: contain !important;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.event-card {
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #f8f9fa;
}

.event-card-title {
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    color: #202122;
    font-size: 14px;
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
}

.event-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.event-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.event-card.disabled .event-card-title::after {
    content: " (Em breve)";
    font-size: 11px;
    color: #6c757d;
    font-weight: normal;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.curandeira-card-imag {
    width: 100%;
    height: 150px;
    object-position: top;    /* mantém o topo visível */
    object-fit: cover;
    display: block;
    background: #f8f9fa;
}

.curandeira-full-imag {
    width: 100%;
    max-width: 1080px;
    object-position: top;    /* mantém o topo visível */
    height: 100%;
    object-fit: cover;
}