-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlearn.css
120 lines (103 loc) · 2.14 KB
/
learn.css
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
b/* 🌍 General Styles */
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(to right, #4facfe, #00f2fe);
color: #333;
text-align: center;
}
/* 🔍 Search Bar */
.search-container {
margin: 20px auto;
text-align: center;
}
#search-bar {
width: 80%;
max-width: 500px;
padding: 12px;
border-radius: 20px;
border: 2px solid #511515;
font-size: 18px;
outline: none;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
/* 🌍 Learn Section */
.learn {
text-align: center;
padding: 50px;
}
.learn h2 {
text-align: center;
font-size: 40px;
margin-bottom: 20px;
color: #982424;
}
.learn p {
font-size: 20px;
margin-bottom: 40px;
color: #9b3030;
}
/* 🌟 Resource Cards */
.resource-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
}
.resource-section {
width: 350px;
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.resource-section:hover {
transform: translateY(-10px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.resource-section img {
width: 100%;
height: 200px;
object-fit: cover;
}
.resource-content {
padding: 20px;
}
.resource-content h3 {
font-size: 22px;
color: #333;
margin-bottom: 10px;
}
.resource-content p {
font-size: 16px;
color: #555;
margin-bottom: 15px;
}
.resource-content a {
background: #ff6b6b;
color: white;
padding: 12px 25px;
border-radius: 8px;
text-decoration: none;
font-size: 16px;
display: inline-block;
transition: background 0.3s ease;
}
.resource-content a:hover {
background: #ff4757;
}
/* 🔄 Responsive Design */
@media (max-width: 768px) {
.learn {
padding: 20px;
}
.resource-container {
flex-direction: column;
align-items: center;
}
#search-bar {
width: 90%;
}
}