📂 FileMgr
📍
/home/sgssmau.org/public_html/assets/css
✏️ Edit File: /home/sgssmau.org/public_html/assets/css/style.css
⬅ Kembali
/* Professional NGO Website Styles */ :root { --primary-color: #2563eb; --secondary-color: #10b981; --accent-color: #f59e0b; --dark-color: #1f2937; --light-color: #f8fafc; --border-color: #e5e7eb; --menu-color: #ff5733; /* Added new menu color variable */ --text-muted: #6b7280; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1); --gradient-primary: linear-gradient(135deg, var(--primary-color), #3b82f6); --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #059669); } /* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--dark-color); overflow-x: hidden; } /* Typography */ .section-title { font-size: 2.5rem; font-weight: 700; color: var(--dark-color); margin-bottom: 1rem; position: relative; } .section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--gradient-primary); border-radius: 2px; } .section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; } /* Top Bar */ .top-bar { font-size: 0.9rem; background: var(--gradient-primary) !important; } .top-bar .social-links a { transition: all 0.3s ease; } .top-bar .social-links a:hover { transform: translateY(-2px); opacity: 0.8; } /* Navigation */ /* Admin Navigation Styles */ .navbar.bg-dark { background-color: #ff5733 !important; /* Main menu color */ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .navbar-brand { color: white !important; font-size: 1.5rem; padding: 0.5rem 0; } .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.85) !important; padding: 0.75rem 1rem; margin: 0 0.25rem; border-radius: 4px; transition: all 0.3s ease; font-weight: 500; } .navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { background-color: rgba(255, 255, 255, 0.15); color: white !important; } .navbar-nav .nav-link.active { background-color: rgba(255, 255, 255, 0.25); color: white !important; font-weight: 600; } .navbar-nav .nav-link i { width: 20px; text-align: center; } /* Dropdown menu styling */ .dropdown-menu { border: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 0.5rem 0; margin-top: 0.5rem; } .dropdown-item { padding: 0.5rem 1.5rem; color: #333; transition: all 0.2s; } .dropdown-item:hover { background-color: #ff5733; color: white !important; } .dropdown-divider { margin: 0.5rem 0; } /* Responsive adjustments */ @media (max-width: 992px) { .navbar-nav { padding: 1rem 0; } .navbar-nav .nav-item { margin: 0.25rem 0; } .navbar-nav .nav-link { padding: 0.75rem 1.5rem; } } /* Toggler icon color */ .navbar-toggler { border-color: rgba(255, 255, 255, 0.5); } .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); } /* Hero Section */ .hero-slider { position: relative; height: 100vh; overflow: hidden; } .hero-slide { height: 100vh; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; } .default-hero { background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.8)), url('https://images.pexels.com/photos/6646918/pexels-photo-6646918.jpeg?auto=compress&cs=tinysrgb&w=1600'); } .hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); } .hero-content { position: relative; z-index: 2; } .hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; } .hero-content .lead { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; } .hero-buttons .btn { padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; margin: 0.5rem; } .hero-buttons .btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } /* Carousel Controls */ .carousel-control-prev, .carousel-control-next { width: 5%; opacity: 0.8; } .carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; } .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; } /* Stats Section */ .stats-section { background: var(--gradient-primary); position: relative; overflow: hidden; } .stats-section::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 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>'); opacity: 0.3; } .stat-item { position: relative; z-index: 2; padding: 2rem; } .stat-item i { opacity: 0.8; margin-bottom: 1rem; } .stat-item h2 { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; } .stat-card { padding: 2rem; background: white; border-radius: 15px; box-shadow: var(--shadow); transition: all 0.3s ease; } .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } /* Service Cards */ .service-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border-color); } .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); } .service-image { height: 200px; overflow: hidden; } .service-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; } .service-card:hover .service-image img { transform: scale(1.1); } .service-content { padding: 2rem; text-align: center; } .service-icon { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: white; } .service-content h5 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark-color); } /* Event Cards */ .event-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; } .event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); } .event-image { height: 200px; overflow: hidden; position: relative; } .event-image img { width: 100%; height: 100%; object-fit: cover; } .event-content { padding: 1.5rem; position: relative; } .event-date { position: absolute; top: -25px; right: 20px; background: var(--gradient-primary); color: white; padding: 0.5rem 1rem; border-radius: 10px; text-align: center; box-shadow: var(--shadow); } .event-date .day { display: block; font-size: 1.5rem; font-weight: bold; line-height: 1; } .event-date .month { display: block; font-size: 0.8rem; text-transform: uppercase; opacity: 0.9; } /* Gallery */ .gallery-item { position: relative; overflow: hidden; border-radius: 15px; box-shadow: var(--shadow); transition: all 0.3s ease; } .gallery-item:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); } .gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: all 0.3s ease; } .gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(37, 99, 235, 0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s ease; } .gallery-item:hover .gallery-overlay { opacity: 1; } .gallery-overlay h6 { color: white; font-weight: 600; margin-bottom: 1rem; } .gallery-link { color: white; font-size: 1.5rem; text-decoration: none; transition: all 0.3s ease; } .gallery-link:hover { color: var(--accent-color); transform: scale(1.2); } /* Member Cards */ .member-card { background: white; padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border-color); } .member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); } .member-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--primary-color); display: block; } .member-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: white; } .member-name { font-size: 1.1rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.5rem; } .member-location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; } /* Team Cards */ .team-card { background: white; padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border-color); } .team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); } .team-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 5px solid var(--primary-color); display: block; } .team-photo-placeholder { width: 150px; height: 150px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: white; } .team-name { font-size: 1.3rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.5rem; } .team-position { color: var(--primary-color); font-weight: 600; margin-bottom: 1rem; } .team-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; } .team-social { display: flex; justify-content: center; gap: 1rem; } .social-link { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: all 0.3s ease; } .social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: white; } /* Testimonial Cards */ .testimonial-card { background: rgba(255, 255, 255, 0.1); padding: 2rem; border-radius: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; } .testimonial-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); } .testimonial-content { font-style: italic; font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; color: white; } .testimonial-author { display: flex; align-items: center; gap: 1rem; } .testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.3); } .testimonial-avatar-placeholder { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: white; } .author-info h6 { color: white; font-weight: 600; margin-bottom: 0.25rem; } /* News Cards */ .news-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border-color); } .news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); } .news-image { height: 200px; overflow: hidden; } .news-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; } .news-card:hover .news-image img { transform: scale(1.1); } .news-content { padding: 1.5rem; } .news-meta { margin-bottom: 1rem; } .news-date { color: var(--text-muted); font-size: 0.9rem; } .news-title { font-size: 1.2rem; font-weight: 700; color: var(--dark-color); margin-bottom: 1rem; line-height: 1.3; } .news-excerpt { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; } /* Contact Section */ .contact-info { padding: 2rem 0; } .contact-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; } .contact-icon { width: 60px; height: 60px; border-radius: 15px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; } .contact-details h5 { font-weight: 700; color: var(--dark-color); margin-bottom: 0.5rem; } .contact-details p { color: var(--text-muted); margin-bottom: 0; line-height: 1.6; } .contact-form { background: white; padding: 2.5rem; border-radius: 20px; box-shadow: var(--shadow-lg); } .contact-form .form-control { border: 2px solid var(--border-color); border-radius: 10px; padding: 1rem; font-size: 1rem; transition: all 0.3s ease; } .contact-form .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } /* Footer */ footer { background: linear-gradient(135deg, #1f2937, #111827); position: relative; } .footer-brand h5 { font-size: 1.5rem; margin-bottom: 1rem; } .footer-social { display: flex; gap: 1rem; } .footer-social .social-link { width: 45px; height: 45px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: all 0.3s ease; } .footer-social .social-link:hover { background: var(--primary-color); transform: translateY(-3px); color: white; } .footer-links { list-style: none; padding: 0; } .footer-links li { margin-bottom: 0.5rem; } .footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s ease; } .footer-links a:hover { color: white; padding-left: 5px; } .newsletter-form .form-control { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; } .newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.6); } .newsletter-form .form-control:focus { background: rgba(255, 255, 255, 0.15); border-color: var(--primary-color); color: white; box-shadow: none; } /* Buttons */ .btn { border-radius: 10px; font-weight: 600; padding: 0.75rem 1.5rem; transition: all 0.3s ease; border: none; } .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn-primary { background: var(--gradient-primary); border: none; } .btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, var(--primary-color)); } .btn-warning { background: linear-gradient(135deg, var(--accent-color), #fbbf24); border: none; color: white; } .btn-warning:hover { background: linear-gradient(135deg, #d97706, var(--accent-color)); color: white; } .btn-outline-primary { border: 2px solid var(--primary-color); color: var(--primary-color); } .btn-outline-primary:hover { background: var(--primary-color); color: white; } /* Responsive Design */ @media (max-width: 768px) { .hero-content h1 { font-size: 2.5rem; } .section-title { font-size: 2rem; } .hero-buttons .btn { display: block; width: 100%; margin: 0.5rem 0; } .contact-item { text-align: center; flex-direction: column; } .stat-item h2 { font-size: 2.5rem; } .team-photo, .team-photo-placeholder { width: 120px; height: 120px; } .member-photo, .member-photo-placeholder { width: 80px; height: 80px; } } @media (max-width: 576px) { .hero-content h1 { font-size: 2rem; } .section-title { font-size: 1.8rem; } .contact-form { padding: 1.5rem; } .service-content, .team-card, .member-card { padding: 1.5rem; } } /* Animation Classes */ .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; } .fade-in.visible { opacity: 1; transform: translateY(0); } /* Loading Spinner */ .spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #1d4ed8; } /* Utility Classes */ .text-primary { color: var(--primary-color) !important; } .bg-primary { background: var(--gradient-primary) !important; } .border-primary { border-color: var(--primary-color) !important; } .shadow-custom { box-shadow: var(--shadow); } .shadow-lg-custom { box-shadow: var(--shadow-lg); } .rounded-custom { border-radius: 15px; } .rounded-lg-custom { border-radius: 20px; }
💾 Simpan File
Batal
⬅ Naik ke assets
1 item
Nama
Tipe
Ukuran
Diubah
Aksi
🎨
style.css
css
18.3 KB
2025-07-12 22:56
✏️ Edit
👁️ View
🗑 Hapus