web / static /css /style.css
Bubaa001's picture
Upload 3121 files
a65786e verified
Raw History Blame Contribute Delete
4.85 kB
/* static/css/style.css */
:root {
--primary: #1a4d8c;
--secondary: #f9a826;
--accent: #e74c3c;
--light: #f8f9fa;
--dark: #343a40;
}
body {
font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
line-height: 1.6;
}
/* Accessibility enhancements */
a:focus, button:focus {
outline: 3px solid var(--secondary);
outline-offset: 2px;
}
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--primary);
color: white;
padding: 8px;
z-index: 100;
}
.skip-link:focus {
top: 0;
}
/* Header */
.navbar-brand img {
max-height: 70px;
}
.navbar .nav-link {
font-weight: 500;
padding: 0.5rem 1rem;
transition: all 0.3s;
position: relative;
}
.navbar .nav-link:hover {
color: var(--primary);
}
.navbar .nav-link:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--secondary);
transition: width 0.3s;
}
.navbar .nav-link:hover:after,
.navbar .nav-link.active:after {
width: 100%;
}
/* Hero Section */
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
color: white;
padding: 100px 0;
text-align: center;
}
.hero h1 {
font-weight: 700;
font-size: 3rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 20px auto;
}
/* Cards */
.card {
border: none;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
height: 100%;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.card-img-top {
height: 200px;
object-fit: cover;
}
.card-title {
color: var(--primary);
font-weight: 700;
}
/* News section */
.news-card .date {
color: var(--secondary);
font-weight: 600;
}
/* Buttons */
.btn-primary {
background-color: var(--primary);
border-color: var(--primary);
}
.btn-primary:hover {
background-color: #0d3a6e;
border-color: #0d3a6e;
}
.btn-secondary {
background-color: var(--secondary);
border-color: var(--secondary);
color: #fff;
}
.btn-secondary:hover {
background-color: #e59400;
border-color: #e59400;
}
/* Section titles */
.section-title {
position: relative;
margin-bottom: 40px;
text-align: center;
}
.section-title:after {
content: '';
display: block;
width: 80px;
height: 4px;
background: var(--secondary);
margin: 15px auto 0;
}
/* Testimonials */
.testimonial {
background: var(--light);
padding: 30px;
border-radius: 10px;
position: relative;
}
.testimonial:after {
content: '"';
position: absolute;
top: 20px;
left: 20px;
font-size: 5rem;
color: rgba(0, 0, 0, 0.05);
font-family: Georgia, serif;
}
.testimonial .author {
font-weight: 600;
color: var(--primary);
margin-top: 20px;
}
/* Footer */
footer {
background: linear-gradient(to right, #0a3a6d, #1a4d8c);
}
footer h5 {
position: relative;
padding-bottom: 15px;
}
footer h5:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background: var(--secondary);
}
footer a {
color: #ddd;
text-decoration: none;
transition: color 0.3s;
}
footer a:hover {
color: var(--secondary);
}
.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
text-align: center;
line-height: 40px;
transition: all 0.3s;
}
.social-links a:hover {
background: var(--secondary);
transform: translateY(-5px);
}
/* WhatsApp Button */
.whatsapp-button {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
background: #25d366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
transition: all 0.3s;
}
.whatsapp-button:hover {
transform: scale(1.1);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
color: white;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.hero {
padding: 60px 0;
}
.hero h1 {
font-size: 2.2rem;
}
.navbar-brand img {
max-height: 50px;
}
}