@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* Ferrari Red */
:root {
  --ferrari-red: #FF2800;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
    padding: 10px;
}

.banner {
  display: flex;
  align-items: center;
  background: black;
}

h3 {
  color: whitesmoke;
}

.logo {
    width: 70px;
    height: auto;
    display: block;
    padding: 5px;
    
}

.title {
    font-size: 3.1rem;
    text-align: center;
    padding: 50px 0;
    background: black; 
}

/* video background */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: black;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  z-index: -1;
}

.hero-content {
  z-index: 1;
  color: white;
  margin-left: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-content h1 {
  font-size: 3.3rem;
  margin-bottom: 20px;
}


.cta-button {
  margin: 20px 0;
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--ferrari-red);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  
}


/* two column section layout */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 2rem;
}

.video-column video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.text-column {
  max-width: 700px;
  text-align: left;
}

.text-column h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.text-column p {
  font-size: 1rem;
  line-height: 2;
}

.btn {
  padding: 10px 20px;
  background: var(--ferrari-red);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 20px;
  display: inline-block;
}

/* below section content */

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.grid-container > div {
display: flex;
justify-content: center;
align-items: center;
}

.grid-container > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 10px;
    padding: 30px;
}



/* newsletter */
.newsletter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgb(11, 7, 7);
  color: whitesmoke;
  padding: 80px;
}

.newsletter-h1 {
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ferrari-red);
}


.subscribe:hover {
  cursor: pointer;
  background-color: red;
  color: white;
}

.newsletter-text {
  font-style: italic;
  padding: 16px;
}

.subscribe {
  background-color: rgb(247, 246, 246);
  border: none;
  padding: 15px 60px;
  border-radius: 3px;
  color: var(--ferrari-red);
  font-size: 1rem;
  font-weight: 700;
  margin: 10px;
}

/* blog formatting */
.blog-post {
   display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
    color:rgb(4, 4, 4);
    background: yellow;
    height: auto;
    width: 100%;  
}



.blog-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

.blog-intro p {
   line-height: 1.8;
   letter-spacing: 1px;
   font-size: .8rem; 
   margin: 10px;
}



h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 900;
}


/* footer */

.page-width {
 display: flex;
 align-items: center;
 justify-content: space-between;
  padding: 30px 0;
}

.footer-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.footer-left {
  padding-left: 20px;
}
a {
  text-decoration: none;
  color: whitesmoke;
}


/* footer */
footer {
  background-color: black;
  width: 100%;
}

footer h5 {
  color: var(--ferrari-red);
  font-size: .9rem;
}

.author {
  padding: 20px;
  text-align: center;
  color: var(--ferrari-red);
  background-color: yellow;
  
}

.site-footer a {
  font-size: .8rem;
}


@media (max-width: 880px) {

 .two-column-section {
    grid-template-columns: 1fr;
    background-color: black;
    color: whitesmoke;
  }
 
.text-column h2 {
  font-size: 1.7rem;
  font-weight: 900;
  font-style: italic;
  text-align: center;
}

.text-column {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

  h1 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    color: white;
  }

  p {
    font-size: 13px;
    text-align: center;
  }
  

  
  .grid-container {
    background: yellow;
  }
  .blog-post {
    display: grid;
    grid-template-columns: 1fr;
    background: rgb(244, 242, 242);
    color: rgb(4, 4, 4);
    padding: 20px;
  }

  .blog-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
  }
  .blog-intro p {
    font-size: 0.8rem;
    text-align: left;
    line-height: 1.5;
  }


  .right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    
  }
 

  .footer-left {
    padding: 10px;
  }

  h5 {
    padding: 5px 0;
  }

  .right-column img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .page-width {
    display: flex;
    flex-direction: column;
  }

  .footer-left {
    padding: 20px;
  }

  h5 {
    padding: 10px 0;
  }

}

@media (max-width: 560px) {

  .banner-text {
    font-size: .7rem;
    color: yellow;
  }

}



