Assignment 2
Assignment 2
QUESTION 2:
/* Top Bar */
.top-bar {
background-color: #FF7043;
color: white;
padding: 8px 50px;
display: flex;
justify-content: space-between;
align-items: center;
}
.social-icons {
display: flex;
}
.social-icons a {
color: white;
margin-right: 15px;
text-decoration: none;
font-size: 14px;
}
.contact-container {
display: flex;
}
/* Header */
header {
background-color: white;
padding: 15px 50px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
}
.logo {
display: flex;
align-items: center;
}
.logo i {
color: #FF7043;
font-size: 24px;
margin-right: 10px;
}
.logo span {
color: #333;
font-size: 22px;
font-weight: bold;
letter-spacing: 1px;
}
/* Navigation */
nav ul {
display: flex;
list-style: none;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: #333;
text-decoration: none;
font-size: 14px;
font-weight: 600;
padding: 10px 0;
}
nav ul li a i {
font-size: 10px;
margin-left: 4px;
}
.registration-btn {
background-color: #FF7043;
color: white;
padding: 10px 20px;
border: none;
border-radius: 3px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
}
/* Hero Section */
.hero {
background-image: linear-gradient(rgba(0,0,0,0.7),
rgba(0,0,0,0.7)), url('graduation-student.jpg');
background-size: cover;
background-position: center;
height: 500px;
color: white;
padding: 80px 50px;
position: relative;
}
.hero-content {
max-width: 600px;
}
.hero-content h5 {
font-size: 14px;
font-weight: 500;
margin-bottom: 15px;
position: relative;
padding-left: 30px;
}
.hero-content h5:before {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 20px;
height: 2px;
background-color: #FF7043;
transform: translateY(-50%);
}
.hero-content h1 {
font-size: 36px;
font-weight: 700;
line-height: 1.3;
margin-bottom: 20px;
}
.hero-content p {
font-size: 14px;
line-height: 1.6;
margin-bottom: 30px;
opacity: 0.8;
}
.btn {
display: inline-block;
padding: 12px 25px;
border-radius: 3px;
font-size: 14px;
font-weight: bold;
text-decoration: none;
margin-right: 10px;
}
.btn-primary {
background-color: #FF7043;
color: white;
}
.btn-secondary {
background-color: #2980b9;
color: white;
}
/* Services Section */
.services {
display: flex;
justify-content: space-between;
padding: 0 50px;
margin-top: -70px;
position: relative;
z-index: 10;
}
.service-box {
width: 32%;
padding: 30px;
border-radius: 5px;
color: white;
}
.service-box i {
font-size: 24px;
margin-bottom: 15px;
}
.service-box h3 {
font-size: 18px;
margin-bottom: 15px;
}
.service-box p {
font-size: 14px;
line-height: 1.6;
margin-bottom: 15px;
opacity: 0.8;
}
.education-box {
background-color: #2980b9;
}
.international-box {
background-color: #FF7043;
}
.bachelor-box {
background-color: #3F51B5;
}
.read-more {
color: white;
font-size: 14px;
font-weight: bold;
text-decoration: none;
}
/* About Section */
.about {
padding: 80px 50px;
background-color: #f8f9fa;
}
.about-heading {
text-align: center;
color: #FF7043;
font-size: 14px;
font-weight: 600;
margin-bottom: 40px;
}
.about-content {
display: flex;
align-items: flex-start;
gap: 40px;
}
.about-text {
flex: 1;
}
.about-text h2 {
font-size: 30px;
color: #333;
margin-bottom: 20px;
}
.about-text p {
font-size: 14px;
color: #666;
line-height: 1.6;
margin-bottom: 20px;
}
.about-images {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}
.about-image {
border-radius: 5px;
overflow: hidden;
height: 200px;
}
.about-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Features */
.features {
display: flex;
margin-top: 30px;
margin-bottom: 30px;
}
.feature {
flex: 1;
display: flex;
align-items: flex-start;
margin-right: 30px;
}
.feature-icon {
background-color: #FF7043;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
}
.feature-icon i {
color: white;
font-size: 16px;
}
.feature-text h3 {
font-size: 16px;
color: #333;
margin-bottom: 8px;
}
.feature-text p {
font-size: 13px;
color: #666;
line-height: 1.5;
}
</style>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.m
in.css">
</head>
<body>
<!-- Top Bar -->
<div class="top-bar">
<div class="social-icons">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
<a href="#"><i class="fab fa-pinterest-p"></i></a>
</div>
<div class="contact-container">
<div class="contact-info">
<i class="fas fa-phone"></i>
<span>Call Us: +123 456 789</span>
</div>
<div class="email-info">
<i class="fas fa-envelope"></i>
<span>Email: [email protected]</span>
</div>
<div class="address-info">
<i class="fas fa-map-marker-alt"></i>
<span>Address: Your Best World</span>
</div>
</div>
</div>
<div class="features">
<div class="feature">
<div class="feature-icon">
<i class="fas fa-graduation-cap"></i>
</div>
<div class="feature-text">
<h3>Doctoral Degrees</h3>
<p>Consectetur adipiscing elit sed do eiusmod
tempor incididunt know more.</p>
</div>
</div>
<div class="feature">
<div class="feature-icon">
<i class="fas fa-globe"></i>
</div>
<div class="feature-text">
<h3>Global Students</h3>
<p>Consectetur adipiscing elit sed do eiusmod
tempor incididunt know more.</p>
</div>
</div>
</div>
OUTPUT: