/* Custom CSS for PD Mekar Agung Website */

/* Global Styles */
:root {
    --primary-color: #2196F3;
    --secondary-color: #90CAF9;
    --accent-color: #FFA726;
    --dark-color: #37474F;
    --light-color: #F5F7FA;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #37474F;
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.7rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 50%;
    left: 25%;
}

/* Hero Section */
header.bg-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    padding: 7rem 0 !important;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -1px;
}

.btn-light {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    border: none;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: white;
}

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--dark-color);
}

section h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
}

section h2.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: none;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 167, 38, 0.2);
}

/* List Styles */
ul:not(.navbar-nav):not(.footer-links):not(.footer-contact) {
    list-style: none;
    padding-left: 0;
}

ul:not(.navbar-nav):not(.footer-links):not(.footer-contact) li {
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
}

ul:not(.navbar-nav):not(.footer-links):not(.footer-contact) li:before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
/* Gallery Page Specific Styles */
.gallery-section {
    padding: 5rem 0;
}

.gallery-section h1 {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.gallery-section h1:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-img:hover img {
    transform: scale(1.05);
}

/* Navigation (same as index.html) */
.navbar {
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.7rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 50%;
    left: 25%;
}
.wa-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .wa-float img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
  }
  .wa-float:hover {
    background-color: #128c7e;
  }

/* Footer (same as index.html) */
.footer-section {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    padding: 60px 0 0;
}

.footer-section h4 {
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.social-links {
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    color: #adb5bd;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
}

.copyright-text {
    color: #adb5bd;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-img img {
        height: 200px;
    }
    
    .footer-section {
        padding-top: 40px;
    }
    
    .footer-bottom {
        margin-top: 20px;
    }
}