/* Contact Page Specific Styles */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    padding: 150px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-color);
    color: white;
}

.contact-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-card p strong {
    color: #333;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Office Hours */
.hours-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hours-item span {
    color: #333;
    font-weight: 500;
}

.hours-note {
    padding-top: 15px;
    border-top: 1px solid #eee;
}


/* Map Card */
.map-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    height: 100%;
}

.map-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Departments Contact */
.dept-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.dept-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dept-card:hover .dept-icon {
    background: var(--primary-color);
    color: white;
}

.dept-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.dept-email {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.dept-phone {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.dept-contact {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 20px 25px;
    border: none;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(29, 117, 25, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d7519'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d7519'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background-color: white;
    color: #666;
    line-height: 1.6;
}

.accordion-body ul, .accordion-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.accordion-body li {
    margin-bottom: 8px;
}

.beasiswa-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.beasiswa-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.beasiswa-item small {
    color: #666;
    font-size: 0.8rem;
}

.more-questions .card {
    border: 2px dashed var(--primary-color);
    background: rgba(29, 117, 25, 0.05);
    border-radius: 15px;
}

.more-questions .card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.more-questions .card-text {
    color: #666;
    margin-bottom: 20px;
}

/* Social Media */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.social-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-item.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
}

.social-item.instagram:hover {
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.05);
}

.social-item.youtube:hover {
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.05);
}

.social-item.twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.05);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-item.facebook .social-icon {
    background: #1877F2;
    color: white;
}

.social-item.instagram .social-icon {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-item.youtube .social-icon {
    background: #FF0000;
    color: white;
}

.social-item.twitter .social-icon {
    background: #1DA1F2;
    color: white;
}

.social-info h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.social-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.social-info span {
    color: #888;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-hero {
        padding: 120px 0 60px;
    }
    
    .form-card, .map-card {
        margin-bottom: 30px;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-card, .dept-card {
        margin-bottom: 20px;
    }
    
    .form-card, .map-card {
        padding: 30px 20px;
    }
    
    .hours-card {
        padding: 30px 20px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .accordion-button {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 100px 0 40px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .dept-card {
        padding: 25px 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .more-questions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .more-questions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}