/* DPRD Kota Semarang - Main Stylesheet */

:root {
    --primary-red: #8d171b;
    --primary-yellow: #ffd700;
    --dark-red: #6b1215;
    --light-yellow: #fff9e6;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Topbar */
.topbar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 12px 0;
    font-size: 0.875rem;
}

.topbar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: var(--primary-yellow);
}

.social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .dropdown-menu {
    background: white;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 10px;
}

.navbar-nav .dropdown-item {
    color: var(--text-dark);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a252f 0%, #0d1419 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/lawang_sewu_pattern_1764557670353.png');
    opacity: 0.15;
    background-size: 400px 400px;
    background-repeat: repeat;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: var(--primary-yellow);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-red));
    border-radius: 2px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.footer-contact-text h6 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-contact-text p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(141, 23, 27, 0.3);
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.newsletter-box input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.newsletter-box input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-box button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(141, 23, 27, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}