/* Additional Custom Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    background-color: #f5f5f5;
    font-size: 14px;
}

.breadcrumb a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffcc00;
}

/* Pagination */
.pagination {
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #1e3c72;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #1e3c72;
    color: #fff;
    border-color: #1e3c72;
}

/* Mobile Menu */
.nav-mobile {
    display: none;
    background-color: #1e3c72;
    padding: 20px 0;
}

.nav-mobile .menu-toggle {
    display: flex;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 204, 0, 0.2);
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

/* Search Form */
.search-form {
    display: flex;
    margin-bottom: 20px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.search-form input[type="submit"] {
    padding: 12px 20px;
    background-color: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background-color: #ffcc00;
    color: #1e3c72;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.comments-title {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.comment-author {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

button,
input[type="button"],
input[type="submit"] {
    padding: 12px 30px;
    background-color: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #ffcc00;
    color: #1e3c72;
    transform: translateY(-2px);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #1e3c72;
    color: #fff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* Blockquote */
blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-left: 5px solid #ffcc00;
    font-style: italic;
    color: #666;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

/* Image Alignment */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

/* Caption */
.wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pagination a,
    .pagination span {
        padding: 8px 10px;
        margin: 0 3px;
        font-size: 14px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="search"] {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .search-form input[type="submit"] {
        border-radius: 5px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 8px 10px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1e3c72;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-to-top:hover {
    background-color: #ffcc00;
    color: #1e3c72;
    transform: translateY(-5px);
}
