File size: 4,028 Bytes
2e2be89
156abc2
2e2be89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156abc2
 
2e2be89
 
 
 
156abc2
 
 
2e2be89
156abc2
2e2be89
 
 
 
 
 
 
 
156abc2
 
 
2e2be89
 
 
156abc2
 
2e2be89
 
 
 
156abc2
 
2e2be89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156abc2
 
2e2be89
156abc2
2e2be89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156abc2
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
/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #2c3e50;
}

/* Header Styles */
h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* Search Box */
.search-box {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-box button {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2980b9;
}

/* News Container */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-card h3 {
    margin: 0;
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.news-card p {
    margin: 0;
    padding: 0 20px 10px;
    color: #7f8c8d;
}

.news-card p strong {
    color: #3498db;
}

.news-card a {
    display: inline-block;
    margin: 15px 20px 20px;
    padding: 8px 15px;
    background: #ecf0f1;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.news-card a:hover {
    background: #3498db;
    color: white;
}

/* Chat Box */
.chat-box {
    max-width: 800px;
    margin: 50px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-box h2 {
    margin-top: 0;
    color: #2ecc71;
    font-size: 1.8rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

#chat-container {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

#chat-container p {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    border-radius: 5px;
}

#chat-container p:nth-child(odd) {
    background: #e3f2fd;
    margin-right: 20%;
}

#chat-container p:nth-child(even) {
    background: #f1f8e9;
    margin-left: 20%;
}

#user-input {
    width: calc(100% - 110px);
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.chat-box button {
    width: 90px;
    padding: 12px 0;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-left: 10px;
}

.chat-box button:hover {
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .chat-box {
        margin: 30px 20px;
    }
    
    #user-input {
        width: calc(100% - 20px);
        margin-bottom: 10px;
    }
    
    .chat-box button {
        width: 100%;
        margin-left: 0;
    }
}