|
| 1 | + |
| 2 | + * { |
| 3 | + box-sizing: border-box; |
| 4 | + margin: 0; |
| 5 | + padding: 0; |
| 6 | +} |
| 7 | + |
| 8 | + |
| 9 | +:root { |
| 10 | + |
| 11 | + font-size: 62.5%; /* 10px for easier rem calculations */ |
| 12 | + --font-main: 'Poppins', sans-serif; |
| 13 | + --font-alt: 'Montserrat', sans-serif; |
| 14 | + |
| 15 | + |
| 16 | + --color-background: #f5f5f5; |
| 17 | + --color-primary: #f47d26; |
| 18 | + --color-text: black; |
| 19 | + --color-white: white; |
| 20 | + --color-overlay: rgba(0, 0, 0, 0.25); |
| 21 | + |
| 22 | + |
| 23 | + --spacing-main: 3rem; |
| 24 | + --spacing-small: 1rem; |
| 25 | + --spacing-medium: 2rem; |
| 26 | + --spacing-large: 5rem; |
| 27 | + |
| 28 | + |
| 29 | + --font-weight-bold: bold; |
| 30 | + --font-weight-bolder: bolder; |
| 31 | +} |
| 32 | + |
| 33 | + |
| 34 | +body { |
| 35 | + font-size: 1.6rem; |
| 36 | + background-color: var(--color-background); |
| 37 | + font-family: var(--font-main); |
| 38 | + -webkit-font-smoothing: antialiased; |
| 39 | +} |
| 40 | + |
| 41 | + |
| 42 | +.header { |
| 43 | + display: flex; |
| 44 | + justify-content: space-between; |
| 45 | + align-items: center; |
| 46 | + padding: var(--spacing-main); |
| 47 | + position: sticky; |
| 48 | + top: 0; |
| 49 | + background-color: var(--color-white); |
| 50 | + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1); |
| 51 | + max-height: 13rem; |
| 52 | + z-index: 1000; |
| 53 | +} |
| 54 | + |
| 55 | +.header-logo img { |
| 56 | + height: 7.5rem; |
| 57 | +} |
| 58 | + |
| 59 | +.header-top-menu { |
| 60 | + display: flex; |
| 61 | + list-style: none; |
| 62 | + gap: var(--spacing-small); |
| 63 | + padding-left: var(--spacing-large); |
| 64 | +} |
| 65 | + |
| 66 | +.header-top-menu a { |
| 67 | + text-decoration: none; |
| 68 | + color: var(--color-text); |
| 69 | + font-family: var(--font-main); |
| 70 | + font-weight: var(--font-weight-bold); |
| 71 | + letter-spacing: 0.1rem; |
| 72 | +} |
| 73 | + |
| 74 | +.header-top-menu a:hover { |
| 75 | + border-bottom: 2px solid var(--color-primary); |
| 76 | +} |
| 77 | + |
| 78 | +.sign-up-button { |
| 79 | + background-color: var(--color-primary); |
| 80 | + color: var(--color-white); |
| 81 | + padding: var(--spacing-small) var(--spacing-medium); |
| 82 | + border-radius: 0.5rem; |
| 83 | + font-family: var(--font-main); |
| 84 | + font-weight: var(--font-weight-bold); |
| 85 | + letter-spacing: 0.1rem; |
| 86 | + text-decoration: none; |
| 87 | +} |
| 88 | + |
| 89 | + |
| 90 | +.hero-section { |
| 91 | + position: relative; |
| 92 | + background-image: url("hero.jpg"); |
| 93 | + background-size: cover; |
| 94 | + background-position: center top 90px; |
| 95 | + height: 71.5rem; |
| 96 | + display: flex; |
| 97 | + align-items: center; |
| 98 | + justify-content: center; |
| 99 | + overflow: hidden; |
| 100 | + background-attachment: fixed; |
| 101 | +} |
| 102 | + |
| 103 | +.hero-overlay { |
| 104 | + position: absolute; |
| 105 | + width: 100%; |
| 106 | + height: 100%; |
| 107 | + background-color: var(--color-overlay); |
| 108 | + z-index: 1; |
| 109 | +} |
| 110 | + |
| 111 | +.hero-content { |
| 112 | + position: relative; |
| 113 | + color: var(--color-white); |
| 114 | + z-index: 3; |
| 115 | + font-family: var(--font-main); |
| 116 | + line-height: 1.2; |
| 117 | + padding-bottom: var(--spacing-large); |
| 118 | +} |
| 119 | + |
| 120 | +.hero-title { |
| 121 | + font-size: 5.4rem; |
| 122 | + z-index: 3; |
| 123 | + font-family: var(--font-alt); |
| 124 | + padding-left:20rem; |
| 125 | + letter-spacing: 0; |
| 126 | +} |
| 127 | + |
| 128 | +.hero-title .highlight { |
| 129 | + position: relative; |
| 130 | + display: inline-block; |
| 131 | + font-style: normal; |
| 132 | +} |
| 133 | + |
| 134 | +.hero-title .highlight::after { |
| 135 | + content: " "; |
| 136 | + position: absolute; |
| 137 | + display: flex; |
| 138 | + width: 50%; |
| 139 | + height: 1.5rem; |
| 140 | + background-color: var(--color-primary); |
| 141 | + padding-left: 23.5rem; |
| 142 | + bottom: 0.5rem; |
| 143 | + z-index: -1; |
| 144 | +} |
| 145 | + |
| 146 | +.hero-text { |
| 147 | + font-size: 2rem; |
| 148 | + margin-top: var(--spacing-small); |
| 149 | + z-index: 3; |
| 150 | + background: rgb(36, 62, 144); |
| 151 | + padding: var(--spacing-large) var(--spacing-large) var(--spacing-large) 20rem; |
| 152 | + max-width: 90%; |
| 153 | + height: 12.5rem; |
| 154 | +} |
| 155 | + |
| 156 | +.hero-text span { |
| 157 | + color: var(--color-primary); |
| 158 | +} |
| 159 | + |
| 160 | +/* Programs Section */ |
| 161 | +.programs-section { |
| 162 | + display: flex; |
| 163 | + flex-wrap: wrap; |
| 164 | + align-items: center; |
| 165 | + padding-bottom: var(--spacing-large); |
| 166 | + margin: 0 20rem; |
| 167 | +} |
| 168 | + |
| 169 | +.programs-section h2 { |
| 170 | + font-family: var(--font-alt); |
| 171 | + font-size: 3.4rem; |
| 172 | + font-weight: var(--font-weight-bolder); |
| 173 | + padding-bottom: var(--spacing-large); |
| 174 | + padding-top: 20rem; |
| 175 | +} |
| 176 | + |
| 177 | +.programs-section em::after { |
| 178 | + content: " "; |
| 179 | + position: absolute; |
| 180 | + display: flex; |
| 181 | + width: 50%; |
| 182 | + height: 1rem; |
| 183 | + background-color: var(--color-primary); |
| 184 | + padding-left: 8.9rem; |
| 185 | + bottom: 0.3rem; |
| 186 | + z-index: -1; |
| 187 | +} |
| 188 | + |
| 189 | +.programs { |
| 190 | + display: flex; |
| 191 | + flex-wrap: wrap; |
| 192 | + justify-content: space-between; |
| 193 | + list-style: none; |
| 194 | +} |
| 195 | + |
| 196 | +.program { |
| 197 | + width: 48%; |
| 198 | + margin-bottom: var(--spacing-small); |
| 199 | +} |
| 200 | + |
| 201 | +.program h3 { |
| 202 | + font-family: var(--font-alt); |
| 203 | + font-size: 2.2rem; |
| 204 | + font-weight: var(--font-weight-bolder); |
| 205 | +} |
| 206 | + |
| 207 | +.program p { |
| 208 | + font-family: var(--font-main); |
| 209 | + font-size: 1.8rem; |
| 210 | + padding-top: var(--spacing-main); |
| 211 | +} |
| 212 | + |
| 213 | +/* Footer */ |
| 214 | +.footer { |
| 215 | + height: 15rem; |
| 216 | + font-family: var(--font-main); |
| 217 | + font-size: 1.4rem; |
| 218 | + display: flex; |
| 219 | + justify-content: center; |
| 220 | + align-items: center; |
| 221 | + box-shadow: inset 0 20px 20px rgba(0, 0, 0, 0.1); |
| 222 | +} |
| 223 | + |
| 224 | + |
| 225 | +@media (min-width: 1440px){ |
| 226 | + .hero-content { |
| 227 | + margin-right: 50rem; |
| 228 | + } |
| 229 | + .hero-text { |
| 230 | + padding: 3rem 5em 3rem 5rem; |
| 231 | + } |
| 232 | +} |
| 233 | + |
| 234 | +@media (max-width: 1080px){ |
| 235 | + .hero-content { |
| 236 | + margin-right: 0; |
| 237 | + } |
| 238 | + .hero-title { |
| 239 | + padding-left: 0; |
| 240 | + text-align: center; |
| 241 | + margin: 0 auto; |
| 242 | + font-size: 3.78rem; |
| 243 | + width: 80%; |
| 244 | + } |
| 245 | + .hero-section { |
| 246 | + background-size: contain; |
| 247 | + height: 45rem; |
| 248 | + } |
| 249 | + .hero-title .highlight::after { |
| 250 | + padding-left: 16.3rem; |
| 251 | + height: 1rem; |
| 252 | + } |
| 253 | + |
| 254 | + .hero-text { |
| 255 | + max-width: 100%; |
| 256 | + text-align: left; |
| 257 | + padding: 2rem 4rem 2rem 0rem; |
| 258 | + } |
| 259 | + |
| 260 | + .programs-section h2 { |
| 261 | + font-size: 2.7rem; |
| 262 | + padding: 4rem 0rem 2rem 0rem; |
| 263 | + } |
| 264 | + |
| 265 | + .programs-section { |
| 266 | + margin: 0 8rem; |
| 267 | + } |
| 268 | + .programs { |
| 269 | + flex-direction: column; |
| 270 | + } |
| 271 | + .program h3 { |
| 272 | + font-size: 1.76rem; |
| 273 | + font-weight: 400; |
| 274 | + } |
| 275 | + .program { |
| 276 | + width: 100%; |
| 277 | + } |
| 278 | + .programs-section em::after { |
| 279 | + padding-left: 6.9rem; |
| 280 | + } |
| 281 | +} |
| 282 | + |
| 283 | +@media (max-width: 675px) { |
| 284 | + .header-top-menu { |
| 285 | + display: none; |
| 286 | + } |
| 287 | +} |
| 288 | + |
| 289 | +@media (max-width: 480px) { |
| 290 | + .header { |
| 291 | + padding: 1rem; |
| 292 | + } |
| 293 | + .header-logo img { |
| 294 | + height: 5rem; |
| 295 | + } |
| 296 | + .header-top-menu { |
| 297 | + display: none; |
| 298 | + } |
| 299 | + .hero-section { |
| 300 | + height: 70vh; |
| 301 | + background-size: cover; |
| 302 | + background-position: top right; |
| 303 | + } |
| 304 | + .hero-content { |
| 305 | + padding-bottom: 0; |
| 306 | + } |
| 307 | + .hero-title { |
| 308 | + font-size: 3.2rem; |
| 309 | + width: 100%; |
| 310 | + } |
| 311 | + .hero-text { |
| 312 | + height: fit-content; |
| 313 | + padding: 2rem 2rem 2rem 1rem; |
| 314 | + } |
| 315 | + .programs-section { |
| 316 | + margin: 0 2rem; |
| 317 | + } |
| 318 | +} |
0 commit comments