/* Hero Section with Gradient - Fixed Position */
.contact-hero {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background:
        linear-gradient(135deg, rgba(200, 20, 31, 0.9), rgba(0, 139, 69, 0.8)),
        url('../uploads/images/branches.webp') center/cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 1;
}

.main-content-wrapper {
    position: relative;
    top: 0;
    background: white;
    border-radius: 40px 40px 0 0;
    margin-top: -80px;
    z-index: 2;
    padding-top: 40px;
    min-height: 400px;
}

.contact-hero .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: #FFD166;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
}

.breadcrumb a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Main Content */
.branch-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Branch Info Header - Updated for email hover */
.branch-info-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(200, 20, 31, 0.1);
    border: 1px solid rgba(200, 20, 31, 0.1);
}

.branch-title-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.branch-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(200, 20, 31, 0.1), rgba(0, 139, 69, 0.1));
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 10px;
    border: 2px solid rgba(200, 20, 31, 0.2);
}

.branch-actions-header {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(220, 40, 51));
    color: white !important;
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, rgb(0, 139, 69), rgb(0, 159, 89));
    color: white !important;
    border: none;
}

.btn-light {
    background: white;
    color: rgb(200, 20, 31) !important;
    border: 2px solid rgb(200, 20, 31);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 20, 31, 0.3);
}

.btn-light:hover {
    box-shadow: 0 10px 30px rgba(0, 139, 69, 0.3);
}

/* Email button hover text effect */
.email-btn-wrapper {
    position: relative;
    display: inline-block;
}

.email-btn-wrapper .btn {
    transition: all 0.3s ease;
}

.email-btn-wrapper:hover .btn {
    background: white;
    color: rgb(200, 20, 31);
}

.email-text {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgb(200, 20, 31);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.email-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgb(200, 20, 31);
}

.email-btn-wrapper:hover .email-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Branch Content Layout */
.branch-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 20px 0 60px;
}

@media (max-width: 992px) {
    .branch-content {
        grid-template-columns: 1fr;
    }
}

/* Main Content Sections */
.branch-main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(200, 20, 31, 0.1);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(200, 20, 31, 0.15);
}

.section-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    color: #2d3748;
}

.section-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
    border-radius: 2px;
}

/* Location Details - 3 items in one row */
.location-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .location-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .location-details {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(200, 20, 31, 0.03);
    border-radius: 15px;
    border-left: 4px solid rgb(200, 20, 31);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(200, 20, 31, 0.08);
    transform: translateX(10px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Different icons for each location detail */
.detail-item:nth-child(1) .detail-icon::before {
    /* content: "🏛️"; */
    content: "📍";
}

.detail-item:nth-child(2) .detail-icon::before {
    content: "📍";
}

.detail-item:nth-child(3) .detail-icon::before {
    /* content: "🏢"; */
    content: "📍";
}

.detail-item:nth-child(4) .detail-icon::before {
    content: "🏠";
}

.detail-item:nth-child(5) .detail-icon::before {
    content: "📮";
}

.detail-text strong {
    display: block;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-text p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(200, 20, 31, 0.2);
}

.team-image-container {
    height: 250px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
    position: relative;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.team-position {
    color: rgb(0, 139, 69);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 139, 69, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

.team-qualification {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Albums Section */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.album-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-card:hover .album-image {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.album-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* Sidebar */
.branch-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(200, 20, 31, 0.1);
    border: 1px solid rgba(200, 20, 31, 0.1);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2d3748;
    position: relative;
    padding-bottom: 10px;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-items {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(200, 20, 31, 0.1);
    transition: all 0.3s ease;
}

.contact-items:hover {
    background: rgba(200, 20, 31, 0.03);
    border-color: rgb(200, 20, 31);
    transform: translateX(5px);
}

.contact-icons {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(220, 40, 51));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-info a,
.contact-info p {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: rgb(200, 20, 31);
}

/* Quick Actions - Hidden text by default */
.quick-actions-card {
    background: linear-gradient(135deg, rgba(200, 20, 31, 0.05), rgba(0, 139, 69, 0.05));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(200, 20, 31, 0.2);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    background:  white;
    border: 2px solid rgba(200, 20, 31, 0.2);
    border-radius: 12px;
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn-text {
    position: relative;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    min-width: 20px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.action-btn:hover {
    border-color: transparent;
    transform: translateX(10px);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover .action-btn-text {
    opacity: 1;
    color: white;
    transform: translateX(5px);
}

.action-btn:hover .action-btn-icon {
    transform: translateX(5px);
    color: white;
}

/* Map Section - Fixed URL handling */
.map-section {
    margin: 80px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 500px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-section:hover iframe {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-overlay a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(200, 20, 31);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-overlay a:hover {
    color: rgb(0, 139, 69);
    gap: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        position: relative;
        height: 60vh;
        min-height: 400px;
        padding-bottom: 80px;
    }

    .main-content-wrapper {
        position: relative;
        top: 0;
        margin-top: -60px;
        padding-bottom: 50px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
        padding-top: 40px;
    }

    .branch-info-header {
        padding: 25px;
    }

    .branch-title-section h1 {
        font-size: 2rem;
    }

    .team-grid,
    .albums-grid {
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 25px;
    }

    .map-section {
        height: 300px;
        margin: 40px 0;
    }

    .email-text {
        display: none;
    }
    .breadcrumb {
        font-size: 0.9rem;
        padding: 8px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgb(220, 40, 51), rgb(0, 159, 89));
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgb(200, 20, 31);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgb(220, 40, 51);
    transform: rotate(90deg);
}

/* Fix footer contact section colors - Make it more specific */
footer .contact-section .contact-icons {
    background: linear-gradient(135deg, #1a365d, #2d3748) !important;
}

footer .contact-section .contact-items:hover .contact-icons {
    background: linear-gradient(135deg, rgb(200, 20, 31), rgb(0, 139, 69)) !important;
}

/* Ensure footer stays at bottom */
.main-content-wrapper {
    padding-bottom: 100px;
}
