69 lines
1.1 KiB
CSS
69 lines
1.1 KiB
CSS
/* Hero Section Styling - Modular Support for Different Layouts */
|
|
.hero-section {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 65vh;
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
color: white;
|
|
}
|
|
|
|
.hero-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
max-width: 60%;
|
|
}
|
|
|
|
.hero-content h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.hero-content p {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.hero-content .btn {
|
|
font-size: 1rem;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* Compact Hero Style */
|
|
.hero-compact {
|
|
height: 40vh;
|
|
align-items: flex-start;
|
|
padding-top: 3rem;
|
|
}
|
|
|
|
/* Overlay Hero Style */
|
|
.hero-overlay .hero-content {
|
|
background: rgba(0, 0, 0, 0.6);
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Inline Hero Positioning */
|
|
.hero-inline {
|
|
height: auto;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.hero-inline .hero-content {
|
|
max-width: 80%;
|
|
}
|