﻿/**
 * American Express Page template (template-americanexpress-page.php).
 */

.ivv-amex-page__breadcrumbs {
	margin: 20px;
	margin-bottom: 20px;
}

.ivv-amex-page__breadcrumbs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.ivv-amex-page__breadcrumbs-item {
	display: inline-flex;
	align-items: center;
}

.ivv-amex-page__breadcrumbs-item:not(:last-child)::after {
	content: "›";
	margin-left: 0.5rem;
	color: #666;
}

.ivv-amex-page__breadcrumbs-link {
	color: #046bd2;
	text-decoration: none;
}

.ivv-amex-page__breadcrumbs-link:hover {
	color: #0056b3;
	text-decoration: underline;
}

.ivv-amex-page__breadcrumbs-current {
	color: #333;
	font-weight: 500;
}

.ivv-amex-page__title-header .ivv-amex-page__title {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	font-weight: 700;
	color: #333;
}

.hero-title {
    font-size: 2.5rem !important;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Styles */
.faq-question:hover {
    background-color: #d0e8f5 !important;
}

.faq-question[aria-expanded="true"] {
    background-color: #046BD2 !important;
    color: white !important;
}

.faq-question[aria-expanded="true"] .faq-icon {
    color: white;
}

.faq-icon {
    font-weight: bold;
    user-select: none;
}

.faq-answer {
    background-color: white;
}

/* Table of Contents Styles */
.toc-toggle:hover {
    background-color: #d0e8f5 !important;
}

.toc-toggle[aria-expanded="true"] {
    background-color: #046BD2 !important;
    color: white !important;
}

.toc-toggle[aria-expanded="true"] .toc-icon {
    color: white;
    transform: rotate(45deg);
}

.toc-icon {
    font-weight: bold;
    user-select: none;
}

/* H2 Styling to match FAQ collapsed state */
.header-text-sections h2,
.header-text-sections h3,
.header-text-sections h4 {
    scroll-margin-top: 20px;
}

.header-text-sections h2 {
    background-color: #E8F4FD;
    color: #046BD2;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Flying Blue Cards Section */
.flying-blue-cards,
.amex-regular-cards {
    margin-top: 40px;
}

.flying-blue-cards h2,
.amex-regular-cards h2 {
    background-color: transparent;
    color: #046BD2;
    padding: 0;
    margin-bottom: 20px;
}

.flying-blue-cards .card-image-wrapper a:hover img,
.amex-regular-cards .card-image-wrapper a:hover img {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.flying-blue-cards .card-image-wrapper a:hover,
.amex-regular-cards .card-image-wrapper a:hover {
    text-decoration: none;
}

.flying-blue-cards .card-image-wrapper p a:hover,
.amex-regular-cards .card-image-wrapper p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .col-lg-9 {
        border-right: none !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
    
    .hero-image-wrapper {
        border-radius: 0 !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        padding: 15px !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
    
    .hero-badges {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    
    .hero-badge {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .faq-title {
        font-size: 1.5rem !important;
    }
    
    .faq-question {
        font-size: 1rem !important;
        padding: 15px !important;
    }
    
    .faq-answer > div {
        padding: 15px !important;
    }
    
    .section-image {
        margin: 15px 0 !important;
    }
    
    .section-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .flying-blue-cards > div,
    .amex-regular-cards > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .flying-blue-cards .card-image-wrapper p,
    .amex-regular-cards .card-image-wrapper p {
        font-size: 0.8rem !important;
    }
    
    .flying-blue-cards .card-image-wrapper img,
    .amex-regular-cards .card-image-wrapper img {
        max-width: 450px !important;
        width: 100% !important;
    }
}

/* Comments Section Styling - Match H2 colors */
.comments-section .comments-title,
.comments-section h2.comments-title {
    background-color: #E8F4FD !important;
    color: #046BD2 !important;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

.comments-section #reply-title {
    background-color: #046BD2 !important;
    color: white !important;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

.comments-section #comment {
    border: 1px solid #046BD2 !important;
}

.comments-section #commentform button,
.comments-section #commentform input[type="submit"] {
    background-color: #046BD2 !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.comments-section #commentform button:hover,
.comments-section #commentform input[type="submit"]:hover {
    background-color: #0056b3 !important;
}

.comments-section .comment-metadata a,
.comments-section .comment-reply-link {
    color: #046BD2 !important;
}

.comments-section .comment-metadata a:hover,
.comments-section .comment-reply-link:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

/* Social Media Sharing Buttons */
.social-share-section {
    margin: 20px 20px 25px 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #046BD2;
}

.social-share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #046BD2;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
    gap: 8px;
}

.social-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.social-share-button:active {
    transform: translateY(0);
}

.social-share-button.facebook {
    background-color: #1877f2;
}

.social-share-button.facebook:hover {
    background-color: #166fe5;
    color: white;
}

.social-share-button.twitter {
    background-color: #1da1f2;
}

.social-share-button.twitter:hover {
    background-color: #1a91da;
    color: white;
}

.social-share-button.linkedin {
    background-color: #0077b5;
}

.social-share-button.linkedin:hover {
    background-color: #006399;
    color: white;
}

.social-share-button.whatsapp {
    background-color: #25d366;
}

.social-share-button.whatsapp:hover {
    background-color: #20ba5a;
    color: white;
}

.social-share-button.email {
    background-color: #046BD2;
}

.social-share-button.email:hover {
    background-color: #0056b3;
    color: white;
}

.social-share-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .social-share-section {
        margin: 15px;
        padding: 15px;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    .social-share-button {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .social-share-button svg {
        width: 16px;
        height: 16px;
    }
}
