138
138
border-color : # c3e6cb ;
139
139
}
140
140
141
+ /* Section 3 Styles */
141
142
.section-2 {
142
- /*background-image: url('/assets/homepage3.webp');*/
143
- /*background-color: #010336;*/
144
- background-color : white;
143
+ background-color : # 03042C ;
145
144
margin-top : 50px ;
146
145
background-size : cover;
147
146
background-position : center;
148
147
background-repeat : no-repeat;
149
- height : 100vh ;
150
- max-height : 800px ;
151
- color : black;
152
- text-shadow : 2px 2px 4px rgba (0 , 0 , 0 , 0.5 );
153
- display : grid;
154
- grid-template-columns : 1fr 1fr ;
148
+ height : 50vh ;
149
+ display : flex;
150
+ /*place-items: center;*/
155
151
}
156
152
157
153
.box-2 {
158
154
display : flex;
155
+ /*grid-template-columns: 1fr 1fr; !* Two equal columns *!*/
159
156
flex-direction : column;
160
- justify-content : center;
161
- align-items : center;
162
- padding : 0 2rem ;
157
+ height : 100% ;
158
+ align-items : center; /* Vertically center content */
159
+ width : 100% ; /* Constrain overall width */
160
+ /*max-width: 1200px; !* Prevent the layout from being too wide *!*/
161
+ /*gap: 10rem; !* Add spacing between columns *!*/
163
162
}
164
163
165
- .box-2-container {
166
- border-radius : 0.5rem ;
167
- background-color : rgba (255 , 255 , 255 , 0.192 );
168
- backdrop-filter : blur (8px );
169
-
170
- }
171
-
172
-
173
164
.box-2-content {
165
+ direction : inherit;
174
166
color : white;
175
- margin-top : 70px ;
176
- }
177
-
178
- .box-2-video {
179
- margin-left : 500px ;
167
+ text-align : left;
168
+ align-items : flex-start;
169
+ margin : 85px ;
170
+ /*padding-left: 80px;*/
171
+ /*margin-left: 90%;*/
172
+ /*padding: 1rem; !* Add padding for spacing *!*/
180
173
}
181
174
182
175
.box-2-title {
183
- font-size : 2 rem ;
176
+ font-size : 3.5 rem ;
184
177
font-weight : 500 ;
185
- margin : 1rem auto 0.5rem ;
186
- padding : 0 2rem ;
178
+ margin-bottom : 1rem ;
187
179
}
188
180
189
181
.box-2-desc {
190
- font-size : 0.8 rem ;
182
+ font-size : 0.9 rem ;
191
183
font-weight : 300 ;
192
- margin : 1rem auto 0.5rem ;
193
- padding : 0 2rem ;
184
+ margin-bottom : 1.5rem ;
194
185
}
195
186
196
187
.box-2-btn {
197
- display : flex;
198
- justify-content : center;
199
- align-items : center;
200
188
padding : 1rem 2rem ;
201
- margin : 2rem 0 6rem 2rem ;
202
189
color : white;
203
190
background-color : # 010336 ;
204
191
border-radius : 2.4rem ;
205
192
border : none;
206
- transition : color 0.15 s ease-in-out , background-color 0.15 s ease-in-out , border-color 0.15 s ease-in-out , box-shadow 0.15 s ease-in-out;
193
+ transition : background-color 0.3 s ease-in-out;
207
194
}
208
195
209
196
.box-2-btn : hover {
210
197
background-color : # 0d6efd ;
211
198
cursor : pointer;
212
199
}
213
200
214
- /* For larger screens, increase height and maintain 1fr 1fr layout */
215
- @media (min-width : 1024px ) {
216
- .section-2 {
217
- height : 100vh ;
218
- max-height : 500px ;
219
- }
220
- }
201
+ .box-2-video {
202
+ display : flex;
203
+ /*justify-content: center;*/
204
+ height : 100% ;
221
205
222
- /* For tablet screens, reduce height slightly and adjust padding */
223
- @media (max-width : 1023px ) and (min-width : 768px ) {
224
- .section-2 {
225
- height : 45vh ;
226
- max-height : 450px ;
227
- padding : 15px ;
228
- }
229
206
}
230
207
231
- /* For mobile screens, make it a single column and reduce height */
232
- @media (max-width : 767px ) {
233
- .section-2 {
234
- height : 35vh ; /* Reduced height for smaller screens */
235
- max-height : 300px ;
236
- grid-template-columns : 1fr ; /* Single column layout */
237
- padding : 10px ;
208
+ .box-2-video video {
209
+ width : 100% ;
210
+ max-width : 500px ; /* Constrain the video size */
211
+ height : 100% ;
212
+ margin : 50px ;
213
+ /*border-radius: 10px;*/
214
+ /* Optional: Add rounded corners */
215
+ }
216
+
217
+ /* Responsive Design */
218
+ @media (max-width : 1024px ) {
219
+ .box-2 {
220
+ grid-template-columns : 1fr ; /* Stack columns for smaller screens */
221
+ gap : 1rem ;
222
+ }
223
+ .box-2-video {
224
+ margin-top : 1rem ;
225
+ }
226
+ .box-2-content {
227
+ text-align : center; /* Center text for small screens */
228
+ }
229
+ .box-2-btn {
230
+ margin : 0 auto; /* Center the button */
238
231
}
239
232
}
240
233
234
+
235
+
241
236
/* Section 3 Styling */
242
237
243
238
body {
@@ -254,20 +249,31 @@ body {
254
249
.section-3 {
255
250
background-color : rgba (255 , 255 , 255 , 0.61 );
256
251
padding : 6rem ;
252
+ display : flex; /* Ensure the section centers the row */
253
+ justify-content : center;
254
+ align-items : center;
257
255
}
258
256
259
- .section-3 . heading-container {
260
- display : flex;
257
+ .heading-container {
258
+
261
259
justify-content : center;
262
- align-items : center;
260
+ /* align-items: flex-start;*/
263
261
text-align : center;
264
262
margin-bottom : 40px ;
265
263
}
266
264
267
265
.section-3 .heading-container h2 {
268
- font-size : 1.5 rem ;
266
+ font-size : 3 rem ;
269
267
font-weight : bold;
270
268
position : relative;
269
+ margin-right : 15% ;
270
+ }
271
+
272
+ .row {
273
+ display : flex;
274
+ flex-wrap : wrap; /* Allow wrapping for responsive design */
275
+ justify-content : center; /* Center the containers horizontally */
276
+ gap : 5px ; /* Add a 5px gap between containers */
271
277
}
272
278
273
279
.section-3 .box-3 {
@@ -277,7 +283,14 @@ body {
277
283
border-radius : 5px ;
278
284
overflow : hidden;
279
285
justify-content : flex-start;
280
- width : 50% ;
286
+ width : 100% ;
287
+ transition : transform 0.3s ease, box-shadow 0.3s ease;
288
+
289
+ }
290
+
291
+ .box-3 : hover {
292
+ transform : translateY (-5px );
293
+ box-shadow : 0 6px 10px rgba (0 , 0 , 0 , 0.15 );
281
294
}
282
295
283
296
.section-3 .box-3 .img-box-3 {
@@ -310,22 +323,23 @@ body {
310
323
margin-bottom : 20px ;
311
324
}
312
325
313
- .row {
314
- display : flex;
315
- flex-wrap : wrap;
316
- justify-content : center;
317
- gap : 30px ;
318
- }
319
326
320
- . box-3-container {
321
- /*flex: 1 1 ; */
322
- /*!*max-width: 100%;*! */
323
- }
327
+
328
+ /*.box-3-container { */
329
+ /* align-items: flex-start; */
330
+ /*}*/
324
331
325
332
@media (min-width : 768px ) {
326
333
.box-3-container {
327
334
flex : 1 1 ;
328
- max-width : 50% ;
335
+ max-width : 100% ;
336
+ }
337
+ }
338
+
339
+ @media (max-width : 767px ) {
340
+ .box-3-container {
341
+ width : 100% ; /* Full width for small screens */
342
+ max-width : 100% ; /* Ensure proper scaling */
329
343
}
330
344
}
331
345
0 commit comments