.mini-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 0;
    margin-bottom: 40px;
    color: #ffffff;
}

.mini-hero .container {
    text-align: center;
}

.mini-hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mini-hero {
        padding: 60px 0;
    }

    .mini-hero h1 {
        font-size: 2rem;
    }
}

/* Error Page Styles */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    margin-bottom: 30px;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #19A0A3 0%, #0d6e70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
    text-shadow: none;
}

.error-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.error-actions {
    margin-top: 40px;
}

.error-actions .th-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .error-page {
        padding: 60px 0;
    }

    .error-number {
        font-size: 5rem;
    }

    .error-content h1 {
        font-size: 1.75rem;
    }

    .error-message {
        font-size: 1rem;
    }
}

/* About modular — full-height image on the right half, no section margins */
article.about {
    padding: 0;
    margin: 0;
}

article.about .about-layout {
    display: flex;
    flex-direction: column;
    margin: 0;
}

article.about .about-layout__content {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: 35px 0;
}

article.about .about-layout__content-inner {
    width: 100%;
    padding-left: max(1rem, calc((100vw - 1320px) / 2 + 0.75rem));
    padding-right: 1.5rem;
}

article.about .about-layout__media {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 280px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

article.about .about-layout__media .about-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    article.about .about-layout {
        flex-direction: row;
        align-items: stretch;
    }

    article.about .about-layout__content {
        order: 1;
        flex: 0 0 50%;
        max-width: 50%;
        padding: 70px 0;
    }

    article.about .about-layout__media {
        order: 2;
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        min-height: 0;
        align-self: stretch;
        position: relative;
    }

    article.about .about-layout__media .about-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
    }
}

@media (min-width: 992px) {
    article.about .about-layout__content {
        padding: 100px 0;
    }
}

.contact-page {
    padding: 60px 0 100px;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.form-intro {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.form-label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #19A0A3;
    box-shadow: 0 0 0 3px rgba(25, 160, 163, 0.1);
}

.form-control textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-field {
    margin-bottom: 20px;
}

.contact-form .form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.contact-form .form-field label .required {
    color: #e74c3c;
}

.contact-form .form-field input[type="text"],
.contact-form .form-field input[type="email"],
.contact-form .form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
    outline: none;
    border-color: #19A0A3;
    box-shadow: 0 0 0 3px rgba(25, 160, 163, 0.1);
}

.contact-form .form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-message,
.contact-form .notices {
    margin-bottom: 20px;
}

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.info-intro {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #19A0A3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-details p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-details a {
    color: #19A0A3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #0d6e70;
    text-decoration: underline;
}

.social-links-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.social-links-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.social-links-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.social-links-contact ul li {
    margin: 0;
}

.social-links-contact ul li a {
    width: 40px;
    height: 40px;
    background: #19A0A3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links-contact ul li a:hover {
    background: #0d6e70;
    transform: translateY(-3px);
}

.social-links-contact ul li a i {
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .contact-info {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0 60px;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 30px 20px;
    }

    .contact-form-wrapper h2,
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* Events Module Styles */
.events {
    padding: 80px 0;
    background: #5EB8B9;
    color: #ffffff;
}

.events h4 {
    color: #ffffff;
}

.events h2 {
    color: #ffffff;
}

.events-blocks .event-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.events-blocks .event-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.events-blocks .event-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.events-blocks .event-card .event-date {
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-blocks .event-card .event-date i {
    color: #19A0A3;
    font-size: 1.1rem;
}

.events-blocks .event-card p {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.events-blocks .event-card .event-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.events-blocks .event-card .event-link {
    color: #19A0A3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.events-blocks .event-card .event-link:hover {
    color: #0d6e70;
    text-decoration: underline;
}

.events-blocks .event-card .btn-add-calendar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #19A0A3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
}

.events-blocks .event-card .btn-add-calendar:hover {
    background: #0d6e70;
    transform: translateY(-2px);
    color: #ffffff;
}

.events-blocks .event-card .btn-add-calendar i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .events {
        padding: 60px 0;
    }

    .events-blocks .event-card {
        padding: 25px 20px;
    }

    .events-blocks .event-card h4 {
        font-size: 1.25rem;
    }
}

/* Publication Module Improvements */
article.publication {
    padding: 80px 0;
}

article.publication .title-block {
    margin-bottom: 60px;
}

article.publication .pub-card {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

article.publication .pub-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

article.publication .pub-card .pub-cover {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

article.publication .pub-card .pub-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

article.publication .pub-card:hover .pub-cover img {
    transform: scale(1.05);
}

article.publication .pub-card .pub-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

article.publication .pub-card .title {
    margin-bottom: 0;
}

article.publication .pub-card .title h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

article.publication .pub-card .abstract {
    flex: 1;
}

article.publication .pub-card .abstract p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

article.publication .pub-card .download-action {
    margin-top: auto;
    padding-top: 10px;
}

article.publication .pub-card .download-action .th-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 992px) {
    article.publication .pub-card .pub-content {
        padding: 25px;
        gap: 18px;
    }

    article.publication .pub-card .title h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    article.publication {
        padding: 60px 0;
    }

    article.publication .title-block {
        margin-bottom: 40px;
    }

    article.publication .pub-card .pub-cover img {
        height: 200px;
    }

    article.publication .pub-card .pub-content {
        padding: 20px;
        gap: 15px;
    }

    article.publication .pub-card .title h3 {
        font-size: 1.25rem;
        min-height: auto;
        -webkit-line-clamp: 3;
    }

    article.publication .pub-card .abstract p {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }
}