forked from Lakshminair9746/eduplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
433 lines (370 loc) · 9.27 KB
/
Copy pathstyle.css
File metadata and controls
433 lines (370 loc) · 9.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
color: #343a40;
line-height: 1.7;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}
header {
background-color: #007bff; /* Primary Blue */
color: #fff;
padding: 1rem 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);position: fixed; /* Make header sticky */
width: 100%;
top: 0;
left: 0;
z-index: 1000;
transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth transition for changes */
}
header.scrolled {
background-color: #007bff; /* Darker background when scrolled */
padding: 10px 0; /* Reduced padding when scrolled */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
header.scrolled .logo a,
header.scrolled nav ul li a {
color: #fff; /* Change text color to white when scrolled */
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
margin: 0;
font-size: 2.2rem;
}
header h1 a {
color: #fff;
text-decoration: none;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 25px; /* Space between nav items */
}
nav ul li a {
text-decoration: none;
color: #343a40; /* Dark gray for text */
font-weight: 500;
font-size: 1.1rem;
transition: color 0.3s ease;
position: relative;
overflow: hidden; /* Hide the underline until hover */
}
nav ul li a:hover {
color: #007bff; /* Blue on hover */
}
nav ul li a span {
position: relative;
z-index: 1; /* Ensure text is above the pseudo-element */
}
nav ul li a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px; /* Height of the underline */
background-color: #007bff; /* Underline color */
transform: translateX(-100%); /* Start off-screen to the left */
transition: transform 0.3s ease-out; /* Smooth transition for the underline */
z-index: 0; /* Place it below the text */
}
nav ul li a:hover::after {
transform: translateX(0); /* Slide in from the left on hover */
}
nav ul li a.active::after {
transform: translateX(0);
background-color: #28a745;
}
main {
padding: 40px 0;
}
section {
background-color: #fff;
margin-bottom: 30px;
padding: 40px 0; /* Adjust padding for sections */
}
section:last-of-type {
margin-bottom: 0;
}
h2, h3 {
color: #007bff;
text-align: center;
margin-bottom: 30px;
font-weight: 600;
}
h2 {
font-size: 3rem;
}
h3 {
font-size: 2.2rem;
position: relative;
padding-bottom: 10px;
}
h3::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: #007bff;
}
.page-hero {
background: linear-gradient(to right, #007bff, #0056b3);
color: #fff;
padding: 60px 0;
margin-bottom: 40px;
text-align: center;
}
.page-hero h2 {
font-size: 3rem;
color: #fff;
margin-bottom: 15px;
}
.page-hero p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto;
opacity: 0.9;
}
.cta-section {
background: url('https://via.placeholder.com/1500x400?text=Learn+Anything') no-repeat center center/cover; /* Placeholder background image */
color: #fff;
padding: 80px 0;
text-align: center;
margin-top: 40px; /* Space from previous section */
position: relative;
overflow: hidden; /* Ensure pseudo-element doesn't overflow */
}
.cta-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
z-index: 1;
}
.cta-section .container {
position: relative;
z-index: 2;
}
.cta-section h2 {
color: #fff; /* White heading */
margin-bottom: 20px;
font-size: 2.8rem;
}
.cta-section p {
font-size: 1.3rem;
max-width: 700px;
margin: 0 auto 30px auto;
line-height: 1.6;
}
.cta-section .btn {
padding: 15px 30px;
font-size: 1.2rem;
border-radius: 50px; /* Pill-shaped button */
background-color: #28a745; /* Green color for CTA */
border-color: #28a745;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-section .btn:hover {
background-color: #218838;
transform: translateY(-3px);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.hero {
text-align: center;
background: linear-gradient(to right, #007bff, #0056b3); /* Gradient Blue */
color: #fff;
padding: 80px 0;
margin-bottom: 40px; /* More space below hero */
border-radius: 0; /* Remove border-radius here, applied to general sections */
box-shadow: none; /* Remove box-shadow */
}
.hero h2 {
font-size: 3.5rem;
margin-bottom: 20px;
color: #fff; /* Ensure white text */
}
.hero p {
font-size: 1.4rem;
max-width: 800px;
margin: 0 auto 40px auto;
opacity: 0.9;
}
.hero button, .btn {
background-color: #28a745; /* Green Call to Action */
color: #fff;
border: none;
padding: 15px 30px;
font-size: 1.2rem;
border-radius: 50px; /* Pill shape */
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
text-decoration: none; /* For .btn class */
display: inline-block; /* For .btn class */
}
.hero button:hover, .btn:hover {
background-color: #218838;
transform: translateY(-2px);
}
ul {
list-style: disc; /* Default disc bullet points */
margin-left: 20px;
margin-bottom: 20px;
}
ul li {
margin-bottom: 10px;
font-size: 1.1rem;
line-height: 1.5;
}
.featured-courses .course-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}
.course-card {
background-color: #fff;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 25px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}
.course-card img {
max-width: 100%;
border-radius: 8px;
margin-bottom: 15px;
height: auto;
}
.course-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.course-card h4 {
color: #007bff;
font-size: 1.6rem;
margin-bottom: 15px;
}
.course-card p {
font-size: 1rem;
color: #555;
margin-bottom: 25px;
}
.testimonials {
background-color: #e9ecef; /* Light Grey background */
}
.testimonials .testimonial-card {
background-color: #fff;
border-left: 5px solid #007bff;
padding: 25px;
margin-top: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
font-style: italic;
position: relative;
}
.testimonials .testimonial-card p {
font-size: 1.1rem;
color: #495057;
margin-bottom: 15px;
}
.testimonials .testimonial-card span {
display: block;
text-align: right;
font-weight: bold;
color: #007bff;
}
footer {
text-align: center;
padding: 30px 0;
background-color: #343a40; /* Darker Grey */
color: #e9ecef;
font-size: 0.95rem;
}
.text-center {
text-align: center;
}
.text-center {
text-align: center;
}
.section-content {
background-color: #fff;
padding: 40px; /* Consistent inner padding */
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.contact-form-section .section-content {
max-width: 700px;
margin: 0 auto; /* Center the form content */
}
.contact-form {
display: flex;
flex-direction: column;
gap: 15px; /* Space between form groups */
margin-top: 30px;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group label {
font-weight: bold;
margin-bottom: 8px;
color: #343a40;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
padding: 12px;
border: 1px solid #ced4da;
border-radius: 5px;
font-size: 1rem;
width: 100%; /* Full width within its container */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.form-group textarea {
resize: vertical; /* Allow vertical resizing */
}
.contact-form .btn {
align-self: flex-start; /* Align button to the left within the flex container */
margin-top: 10px; /* Space above the button */
}
/* Back to Top Button Styles */
#backToTopBtn {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 30px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: #007bff; /* Set a background color */
color: white; /* Text color */
cursor: pointer; /* Add a mouse pointer on hover */
padding: 15px; /* Some padding */
border-radius: 10px; /* Rounded corners */
font-size: 18px; /* Increase font size */
transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}
#backToTopBtn:hover {
background-color: #0056b3; /* Darker background on hover */
transform: translateY(-2px); /* Slightly lift button on hover */
}