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:
@@ -3,188 +3,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>AI in Media & Entertainment - Gyannetra</title> <link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/benefits-cards.css">
|
||||
<title>AI in Media & Entertainment - Gyannetra</title> <link rel="stylesheet" href="../css/style.css?v=202412291400">
|
||||
|
||||
<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"> <style>
|
||||
/* Media & Entertainment Page Specific Styles */ /* Hero section */ .media-hero {
|
||||
text-align: center;
|
||||
padding: 80px 20px 60px;
|
||||
background: url('../assets/media_hero_bg.jpg') no-repeat center center;
|
||||
background-size: cover;
|
||||
}.media-hero h1 {
|
||||
font-size: 3.2rem;
|
||||
margin-bottom: 15px;
|
||||
/* Inherit the beautiful gradient and glow from main h1 styling */
|
||||
text-shadow: 0 2px 10px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.media-hero .subtitle {
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 25px;
|
||||
color: var(--text-light);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.media-hero p {
|
||||
font-size: 1.1rem;
|
||||
max-width: 750px;
|
||||
margin: 0 auto 30px auto;
|
||||
line-height: 1.7;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Solutions grid */
|
||||
.solutions-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
|
||||
gap: 35px;
|
||||
}
|
||||
|
||||
.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-glow),0.4);
|
||||
}
|
||||
|
||||
.solution-item:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 12px 25px rgba(var(--primary-color-glow), 0.4);
|
||||
}
|
||||
|
||||
.solution-item img, .solution-item svg {
|
||||
height: 70px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Benefits section */
|
||||
.benefits-list-container {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.benefits-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
flex-basis: calc(50% - 20px);
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.benefits-list li {
|
||||
font-size: 1.15rem;
|
||||
color: var(--text-light);
|
||||
margin-bottom: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: rgba(var(--primary-color-glow), 0.1);
|
||||
padding: 12px 18px;
|
||||
border-radius: 8px;
|
||||
border-left: 4px solid var(--primary-color);
|
||||
}
|
||||
|
||||
.benefits-list li:before {
|
||||
content: "\f00c";
|
||||
font-family: "Font Awesome 5 Free";
|
||||
font-weight: 900;
|
||||
color: var(--primary-color);
|
||||
margin-right: 12px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
/* Articles/case studies section */
|
||||
.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-glow),0.4);
|
||||
}
|
||||
|
||||
.article-card:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 12px 25px rgba(var(--primary-color-glow), 0.4);
|
||||
}
|
||||
|
||||
.article-card img {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.read-more-link {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.3s ease;
|
||||
align-self: flex-start;
|
||||
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;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
text-align: center;
|
||||
font-size: 2.3rem;
|
||||
margin-bottom: 3rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
</style>
|
||||
<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">
|
||||
</head>
|
||||
<body class="theme-media">
|
||||
<div class="atmospheric-bg">
|
||||
|
||||
Reference in New Issue
Block a user