/* Additional Custom Styles for SEO Theme Đăng Ký XOSO66 */

/* Hero Slider / Carousel Styles */
.hero-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slider-container {
        height: 250px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
}

/* Content Image Styles */
.content-image {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.content-image:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Enhanced Navigation Styles */
.header-sticky {
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Menu Animation */
nav ul li {
    animation: fadeInDown 0.5s ease forwards;
    opacity: 0;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }
nav ul li:nth-child(5) { animation-delay: 0.5s; }
nav ul li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Underline Effect */
nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::before {
    width: 80%;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    nav ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul.active {
        max-height: 500px;
    }
    
    nav ul li {
        animation: none;
        opacity: 1;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

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

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

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
}

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

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #764ba2;
}

/* Post Navigation */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 10px 0;
}

.post-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-area {
    margin-top: 40px;
}

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

.comment {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

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

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

.comment-content {
    line-height: 1.6;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

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

.search-form input[type="submit"] {
    padding: 12px 25px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-form input[type="submit"]:hover {
    background: #764ba2;
}

/* Category Tags */
.category-tags {
    margin: 20px 0;
}

.category-tags a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.category-tags a:hover {
    background: #667eea;
    color: #fff;
}

/* Social Share */
.social-share {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.social-share h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.social-share a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.social-share a:hover {
    opacity: 0.8;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-zalo { background: #0068ff; }

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f5f5f5;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Content Image Styles */
.content-image {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.content-image:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

th {
    background: #667eea;
    color: #fff;
    font-weight: bold;
}

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

tr:hover {
    background: #f5f5f5;
}

/* Call to Action Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-box .btn {
    background: #fff;
    color: #667eea;
    font-size: 18px;
    padding: 15px 40px;
}

.cta-box .btn:hover {
    background: #f5f5f5;
}

/* Testimonial Section */
.testimonial {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.testimonial-content {
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: #667eea;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Step by Step Guide */
.step-guide {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.step-guide li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.step-guide li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 18px;
}

.step-guide h4 {
    margin-bottom: 10px;
    color: #667eea;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f9f9f9;
    padding: 20px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-answer {
    padding: 20px;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: #764ba2;
    transform: translateY(-5px);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-about {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-about h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.footer-social {
    text-align: center;
    margin-bottom: 30px;
}

.footer-social h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffd700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-payment {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.footer-payment p {
    margin-bottom: 10px;
    color: #ffd700;
}

.footer-payment span {
    display: inline-block;
    margin: 5px 10px;
    color: #e0e0e0;
}

.copyright {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.footer-note {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 80%;
        text-align: center;
    }
}

