/**
 * Custom CSS for Jamaica Embassy Theme
 */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007847;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #FED100;
    color: #000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Form Styles */
.error {
    border-color: #dc3545 !important;
}

.valid {
    border-color: #28a745 !important;
}

.form-error {
    color: #dc3545;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

.form-success {
    color: #28a745;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

/* Application Success */
.application-success {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.application-success h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.application-success .button {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.application-success .button:hover {
    background-color: #FED100;
    color: #000;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.archive-grid article {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.archive-grid .entry-header {
    padding: 20px 20px 0;
}

.archive-grid .entry-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.archive-grid .entry-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.archive-grid .entry-thumbnail {
    height: 200px;
    overflow: hidden;
}

.archive-grid .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-grid article:hover .entry-thumbnail img {
    transform: scale(1.05);
}

.archive-grid .entry-content {
    padding: 20px;
}

.archive-grid .read-more-link {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.archive-grid .read-more-link:hover {
    background-color: #FED100;
    color: #000;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #007847;
    color: #fff;
}

.pagination .page-numbers:hover {
    background-color: #FED100;
    color: #000;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 50px 0;
}

.error-404 .page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.error-404-widget h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.error-404-widget ul {
    list-style: none;
    padding: 0;
}

.error-404-widget li {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 30px;
}

.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info-item {
    margin-bottom: 15px;
}

.contact-info-label {
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-map {
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.contact-form-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-success {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
}

.contact-success h2 {
    color: #28a745;
    margin-bottom: 20px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .contact-grid,
    .error-404-widgets {
        grid-template-columns: 1fr;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
}
