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:
@@ -4,381 +4,9 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<title>Machine Learning - Gyannetra</title>
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<link rel="stylesheet" href="../css/benefits-cards.css" />
|
||||
<link rel="stylesheet" href="../css/style.css?v=202412291401" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Navbar scroll effect styles -->
|
||||
<style>
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Ensure body has top padding to account for fixed navbar */
|
||||
body {
|
||||
padding-top: 80px;
|
||||
}
|
||||
|
||||
/* General styles */
|
||||
body {
|
||||
/* Using standardized colors from main CSS */
|
||||
--card-bg: rgba(25, 35, 55, 0.7); /* Darker card background for contrast */
|
||||
--text-light: #e0e0e0;
|
||||
--text-muted: #b0b0b0;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
text-align: center;
|
||||
padding: 80px 20px 60px;
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
position: relative; /* Ensure hero content is above atmospheric bg */
|
||||
z-index: 2; /* Ensure hero content is above atmospheric bg */
|
||||
} .hero-section h1 {
|
||||
font-size: 3.2rem;
|
||||
margin-bottom: 25px;
|
||||
/* Inherit the beautiful gradient and glow from main h1 styling */
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.1rem;
|
||||
max-width: 750px;
|
||||
margin: 0 auto 30px auto;
|
||||
line-height: 1.7;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.solutions-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); /* Adjusted minmax for potentially smaller cards */
|
||||
gap: 35px;
|
||||
justify-items: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.solution-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
background-color: var(--card-bg);
|
||||
border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
border: 1px solid rgba(var(--primary-color-rgb), 0.3);
|
||||
width: 100%;
|
||||
height: 100%; /* Ensure items in a row have same height */
|
||||
}
|
||||
|
||||
.solution-item:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.solution-icon {
|
||||
width: 70px; /* Standardized icon size */
|
||||
height: 70px;
|
||||
margin-bottom: 20px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.solution-item h3 {
|
||||
font-size: 1.25rem;
|
||||
color: var(--text-light);
|
||||
margin-bottom: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.solution-item p {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.articles-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.article-card {
|
||||
background-color: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 25px;
|
||||
text-align: left;
|
||||
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid rgba(var(--primary-color-rgb), 0.3);
|
||||
height: 100%;/* Ensure cards in a row have same height */
|
||||
}
|
||||
.article-card:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 12px 25px rgba(var(--primary-color-rgb), 0.4);
|
||||
}
|
||||
.article-card img {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
} /* Enhanced styling for SVG images in article cards */
|
||||
.article-card img[src$=".svg"] {
|
||||
object-fit: contain;
|
||||
padding: 30px;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
.article-card h3 {
|
||||
font-size: 1.4rem;
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.article-card p {
|
||||
font-size: 1rem;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.6;
|
||||
flex-grow: 1; /* Allows paragraph to take available space */
|
||||
}
|
||||
|
||||
.read-more-link {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.3s ease, background-color 0.3s ease;
|
||||
align-self: flex-start; /* Aligns button to the bottom left */
|
||||
padding: 8px 15px;
|
||||
border: 1px solid var(--primary-color);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.read-more-link:hover {
|
||||
background-color: var(--primary-color-hover);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.overview-section h2,
|
||||
.key-offerings-section h2,
|
||||
.benefits-section h2,
|
||||
.blogs-case-studies-section h2, .related-content-section h2 {
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 30px; /* Standardized margin */
|
||||
/* Inherit the beautiful gradient and glow from main h2 styling */
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.key-offerings-section h2 {
|
||||
margin-bottom: 45px; /* Specific for this section if needed */
|
||||
}
|
||||
|
||||
.benefits-section ul {
|
||||
list-style-type: none; /* Consider using icons or custom bullets */
|
||||
padding: 0;
|
||||
margin-top: 20px;
|
||||
text-align: center; /* Or left-align if preferred */
|
||||
}
|
||||
|
||||
.benefits-section li {
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-light);
|
||||
/* Consider adding padding if using background or borders */
|
||||
}
|
||||
|
||||
.blogs-case-studies-section h2 {
|
||||
margin-bottom: 45px; /* Specific for this section */
|
||||
}
|
||||
.related-content-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 30px;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 40px; /* Space before final CTA */
|
||||
justify-items: center; /* Center align items when there's only one */
|
||||
} .related-content-item {
|
||||
background-color: var(--card-bg);
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(var(--primary-color-rgb), 0.3);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
max-width: 400px; /* Limit width when centered */
|
||||
text-align: center; /* Center align content within the item */
|
||||
}
|
||||
|
||||
.related-content-item:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
|
||||
} .related-content-image {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
object-fit: contain;
|
||||
margin-bottom: 15px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Make SVG images in related content white */
|
||||
.related-content-item img[src$=".svg"] {
|
||||
filter: brightness(0) invert(1);
|
||||
padding: 10px; /* Add some padding for better visibility */
|
||||
}
|
||||
|
||||
.related-content-item h3 {
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.related-content-item p {
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.read-more { /* General read-more link style if needed */
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
.read-more:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Ensure section padding is applied */
|
||||
.section-padding {
|
||||
padding-top: 60px;
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
/* General container for consistent width */
|
||||
.container {
|
||||
width: 90%;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
/* Adjustments for navbar within header */
|
||||
.site-header .navbar.container {
|
||||
width: 100%;
|
||||
max-width: 1400px;
|
||||
padding: 0.5rem 2.0rem;
|
||||
}
|
||||
/* Footer specific styling */
|
||||
.site-footer {
|
||||
background-color: #0f172a; /* Dark background for footer */
|
||||
color: var(--text-muted);
|
||||
padding: 50px 0;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.footer-content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 30px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.footer-col {
|
||||
flex: 1;
|
||||
min-width: 220px; /* Minimum width for columns */
|
||||
}
|
||||
.footer-col-logo .logo {
|
||||
font-size: 1.8rem;
|
||||
color: #fff;
|
||||
margin-bottom: 15px;
|
||||
display: inline-block;
|
||||
}
|
||||
.footer-col h3 {
|
||||
font-size: 1.2rem;
|
||||
color: #fff;
|
||||
margin-bottom: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.footer-col ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
.footer-col ul li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.footer-col ul li a {
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
.footer-col ul li a:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.footer-col p {
|
||||
margin-bottom: 10px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.footer-col .social-links a {
|
||||
color: var(--text-muted);
|
||||
margin-right: 15px;
|
||||
font-size: 1.3rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
.footer-col .social-links a:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.footer-bottom {
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.footer-col p a { /* Ensure links in paragraphs are styled */
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
.footer-col p a:hover {
|
||||
color: var(--primary-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="atmospheric-bg">
|
||||
|
||||
Reference in New Issue
Block a user