CSS Consolidation: Merged all inline styles and separate CSS files into single style.css
- Consolidated benefits-cards.css into main style.css - Removed all inline <style> blocks from 19 HTML files - Added CSS versioning (?v=202412291400) for better caching - Extracted navbar scroll effects, hero layout stabilization, and mobile responsive styles - Fixed benefits cards visibility and animations - Improved website performance by reducing HTTP requests - Enhanced maintainability with single CSS file architecture
This commit is contained in:
@@ -1,106 +0,0 @@
|
||||
/* Benefits Cards Styling */
|
||||
.benefits-cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 25px;
|
||||
margin: 3rem auto;
|
||||
}
|
||||
|
||||
.benefit-card {
|
||||
background: rgba(30, 40, 60, 0.7);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.benefit-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.benefit-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: var(--primary-color);
|
||||
}
|
||||
|
||||
.benefit-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary-color));
|
||||
}
|
||||
|
||||
.benefit-card h3 {
|
||||
font-size: 1.2rem;
|
||||
color: #ffffff;
|
||||
margin-bottom: 15px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card p {
|
||||
color: var(--text-light);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.6;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card-icon {
|
||||
margin-bottom: 20px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(var(--primary-color-rgb), 0.15);
|
||||
border-radius: 50%;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card-icon i {
|
||||
font-size: 1.5rem;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.benefits-cards-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Animation for cards */
|
||||
.benefit-card {
|
||||
animation: fadeIn 0.6s ease-out forwards;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
|
||||
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
|
||||
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
|
||||
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
|
||||
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
|
||||
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
227
css/style.css
227
css/style.css
@@ -3084,4 +3084,231 @@ h6 {
|
||||
min-height: 35px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* =================================================================== */
|
||||
/* CONSOLIDATED INLINE STYLES FROM ALL HTML FILES */
|
||||
/* =================================================================== */
|
||||
|
||||
/* Navbar scroll effects - Common across all pages */
|
||||
.site-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: transparent !important;
|
||||
backdrop-filter: blur(0px);
|
||||
-webkit-backdrop-filter: blur(0px);
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-bottom: 1px solid transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.site-header.scrolled {
|
||||
background: transparent !important;
|
||||
backdrop-filter: blur(30px);
|
||||
-webkit-backdrop-filter: blur(30px);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.navbar {
|
||||
padding: 1rem 2rem;
|
||||
max-width: none !important;
|
||||
margin: 0 !important;
|
||||
background: transparent !important;
|
||||
border-radius: 0 !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* Override any existing navbar container styles */
|
||||
.site-header .navbar,
|
||||
.site-header .container,
|
||||
.navbar .container {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
/* Hero section layout stabilization - from index.html */
|
||||
/* Ensure body has top padding to account for fixed navbar */
|
||||
body {
|
||||
padding-top: 80px;
|
||||
}
|
||||
|
||||
/* HERO SECTION LAYOUT STABILIZATION */
|
||||
#hero {
|
||||
/* Prevent layout shift during load */
|
||||
min-height: calc(100vh - 80px);
|
||||
height: calc(100vh - 80px);
|
||||
margin-top: 0 !important;
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
/* Stabilize hero content positioning */
|
||||
height: 100%;
|
||||
min-height: inherit;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
/* Prevent content shifting */
|
||||
position: relative;
|
||||
transform: none !important;
|
||||
opacity: 1 !important;
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
/* Prevent FOUC and layout shifts */
|
||||
.hero-content h1,
|
||||
.hero-content p,
|
||||
.hero-content .btn-primary {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
/* Mobile adjustments for navbar spacing */
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
padding-top: 70px; /* Reduced for mobile */
|
||||
}
|
||||
|
||||
#hero {
|
||||
min-height: calc(100vh - 70px);
|
||||
height: calc(100vh - 70px);
|
||||
padding-top: 1rem; /* Add some top padding for mobile */
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
padding-top: 2rem; /* Ensure content doesn't touch navbar */
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
body {
|
||||
padding-top: 65px; /* Further reduced for small screens */
|
||||
}
|
||||
|
||||
#hero {
|
||||
min-height: calc(100vh - 65px);
|
||||
height: calc(100vh - 65px);
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
padding-top: 2.5rem; /* Extra spacing for very small screens */
|
||||
}
|
||||
}
|
||||
|
||||
/* Benefits Cards Styling - Consolidated from benefits-cards.css */
|
||||
.benefits-cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 25px;
|
||||
margin: 3rem auto;
|
||||
}
|
||||
|
||||
.benefit-card {
|
||||
background: rgba(30, 40, 60, 0.7);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
opacity: 1; /* Changed from 0 to 1 to ensure visibility */
|
||||
animation: fadeIn 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
.benefit-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.benefit-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: var(--primary-color);
|
||||
}
|
||||
|
||||
.benefit-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary-color));
|
||||
}
|
||||
|
||||
.benefit-card h3 {
|
||||
font-size: 1.2rem;
|
||||
color: #ffffff;
|
||||
margin-bottom: 15px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card p {
|
||||
color: var(--text-light);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.6;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card-icon {
|
||||
margin-bottom: 20px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(var(--primary-color-rgb), 0.15);
|
||||
border-radius: 50%;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.benefit-card-icon i {
|
||||
font-size: 1.5rem;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* Animation delays for benefit cards */
|
||||
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
|
||||
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
|
||||
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
|
||||
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
|
||||
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
|
||||
.benefit-card:nth-child(6) { animation-delay: 0.6s; }
|
||||
|
||||
/* Responsive adjustments for benefit cards */
|
||||
@media (max-width: 768px) {
|
||||
.benefits-cards-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Keyframes for fadeIn animation */
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0.3;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
3087
css/style.css.backup
Normal file
3087
css/style.css.backup
Normal file
File diff suppressed because it is too large
Load Diff
28875
css/style.css.bak
28875
css/style.css.bak
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user