swb-website/css/styles.css

306 lines
4.3 KiB
CSS

/* Global styles */
:root {
--navy-blue: #1B1E3B;
--orange: #F29100;
--dark-blue: #115C94;
--light-blue: #259ED5;
--gray-bg: #f5f5f5;
--white: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
line-height: 1.6;
color: #333;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
h1, h2, h3, h4 {
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--navy-blue);
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
p {
margin-bottom: 1rem;
}
a {
text-decoration: none;
color: var(--dark-blue);
}
ul {
list-style: none;
}
.btn {
display: inline-block;
padding: 0.8rem 1.5rem;
border-radius: 5px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-primary {
background-color: var(--orange);
color: white;
}
.btn-primary:hover {
background-color: #d98100;
}
.btn-secondary {
background-color: var(--dark-blue);
color: white;
}
.btn-secondary:hover {
background-color: #0e4a78;
}
.text-center {
text-align: center;
}
/* Header styles */
header {
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 60px;
margin-right: 10px;
border-radius: 50%;
}
.nav-links {
display: flex;
}
.nav-links li {
margin-left: 2rem;
}
.nav-links a {
font-weight: 600;
color: var(--navy-blue);
transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
color: var(--orange);
}
.language-toggle {
display: flex;
align-items: center;
font-weight: 600;
cursor: pointer;
}
.language-toggle i {
margin-right: 0.5rem;
}
.mobile-menu {
display: none;
font-size: 1.5rem;
cursor: pointer;
}
/* Page banner */
.page-banner {
height: 40vh;
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
margin-top: 80px;
}
.page-banner h1 {
color: white;
font-size: 3rem;
}
/* Hero section */
.hero {
height: 100vh;
display: flex;
align-items: center;
color: white;
margin-top: 80px;
}
.hero-content {
max-width: 600px;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
color: white;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
/* Footer */
footer {
background-color: var(--navy-blue);
color: white;
padding: 4rem 0 2rem;
}
.footer-content {
display: flex;
flex-wrap: wrap;
gap: 3rem;
margin-bottom: 2rem;
}
.footer-section {
flex: 1;
min-width: 250px;
}
.footer-section h3 {
color: white;
margin-bottom: 1.5rem;
}
.footer-links li {
margin-bottom: 0.5rem;
}
.footer-links a {
color: #ccc;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: var(--orange);
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.1);
color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
}
.social-links a:hover {
background-color: var(--orange);
}
.copyright {
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
color: #aaa;
}
/* Responsive styles */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu {
display: block;
}
.hero h1 {
font-size: 2.5rem;
}
.page-banner h1 {
font-size: 2.5rem;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}
.page-banner h1 {
font-size: 2rem;
}
.btn {
padding: 0.7rem 1.2rem;
font-size: 0.9rem;
}
}
.volunteer-form {
padding: 5rem 0;
background-color: var(--gray-bg);
}
.form-container {
max-width: 800px;
margin: 2rem auto 0;
}