@font-face {
    font-family: 'MyTitleFont';
    src: url('../fonts/Font1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* @font-face {
    font-family: 'MyBodyFont';
    src: url('../fonts/Font2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} */


h1, h2, h3 {
    font-family: 'MyTitleFont', sans-serif;
}

:root{
    --first-color: #2B506F;
    --secend-color: #182937;
    --third-color: #B1BED2;
    --forth-color: #4C7097;
    --fifth-color: #7591BB;


}

/* Paragraphs and normal text use the body font */
/* body, p, a, li {
    font-family: 'MyBodyFont', sans-serif;
} */

/* body {
    background-color: var(--secend-color); 
}*/

html {
    height: 100%;
}

body {
    background-color: var(--secend-color);
    position: relative;
    min-height: 100%;
    margin: 0;
    padding-bottom: 120px; /* height of your footer */
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* same as padding-bottom */
}



body.company-page {
    padding-top: 56px;
}

body.job-detial {
    padding-top: 78px;
}



/* Hero Image */
.hero {
    height: 100vh;
    overflow: hidden;
}
.hero-img {
    height: 100%;
    object-fit: cover;
}

.hero-a {
    padding-top: 1000px;
}

.hero-text {
    top: 70%; /* Lower than 50% */
    transform: translate(-50%, -50%);
}

/* Game Poster */
#our-game h1 {
    font-size: 64px;
    font-family: 'MyTitleFont', sans-serif;  /* your custom title font */
    color: var(--first-color);                /* or any color you want */
    margin-bottom: 1.5rem;
}

/* Make game poster responsive */
.game-poster {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for desktop */
.game-poster:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .game-poster {
    width: 90%;       /* keep some margin */
    margin: 0 auto;   /* center the image */
    display: block;
  }
}


/* Continue Message */
.continue-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
}
.continue-message.show {
    opacity: 1;
}
/* Dropdown background and shadow */
.navbarc .dropdown-menu {
  background-color: var(--fifth-color);
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 10rem;
  border: none;
}

/* Dropdown items */
.navbarc .dropdown-menu .dropdown-item {
  color: var(--first-color);
  padding: 0.5rem 1.5rem;
  font-family: 'MyTitleFont', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect on dropdown items */
.navbarc .dropdown-menu .dropdown-item:hover,
.navbarc .dropdown-menu .dropdown-item:focus {
  background-color: var(--third-color);
  color: var(--first-color);
  transform: scale(1.05);
  border-radius: 6px;
}

/* Dropdown toggle arrow color */
.navbarc .nav-link.dropdown-toggle::after {
  filter: brightness(0) invert(1); /* make arrow white or light */
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.navbarc .nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}


.navbarc a {
    color: white; /* default icon color */
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.3rem; /* a bit bigger */

    font-family: 'MyTitleFont', sans-serif;
}

.navbarc a:hover {
    color: var(--third-color);
    transform: scale(1.2); 
    font-size: 20px;
     
}
#mainNavbar .navbar-brand {
  color: white;
  transition: color 0.3s ease;
   font-size: 30px;
   margin-left: 30px;
} 


#mainNavbar.scrolled {
  background-color: rgba(44, 70, 100, 0.75); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
#mainNavbar{
  background-color: rgba(44, 70, 100, .5); 
  
}


/* Company Section */
#companytext {
    padding: 60px 20px;
    color: var(--third-color);
}

.company-banner {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-in-out;
}

.company-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
    animation: fadeInUp 1.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* Blog Card Styles */
.blog-card {
    background-color: var(--forth-color); /* Bootstrap primary blue */
    color: white;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Image container with fixed size */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .image-container img {
    transform: scale(1.05);
}

/* Category badge */
.category-badge {
    background-color: white;
    color: black;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Post title link */
.card-title-link {
    text-decoration: none;
    color: white;
}

.card-title-link:hover {
    text-decoration: underline;
}

/* Post meta info */
.post-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Footer tag badge */
.blog-card-footer {
    background-color: transparent;
    border-top: none;
}

.tag-badge {
    background-color: white;
    color: black;
    font-weight: 500;
    margin-right: 0.25rem;
}

/* Job Prat */
.job-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--third-color);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.job-card {
    background:var(--fifth-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease;
}
.job-card:hover {
    transform: translateY(-5px);
}
.job-card h2 {
    margin: 0;
    color: white;
}
.job-card .location {
    color: white;
    font-size: 0.9rem;
    margin: 10px 0;
}
.job-card .btn {
    display: inline-block;
    padding: 10px 15px;
    background: var(--first-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.job-detail {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.job-section h2 {
    margin-top: 20px;
    color: #333;
}
.job-section img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.job-text {
    margin-top: 10px;
    line-height: 1.6;
}
.application-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 40px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.apply-form .form-group {
    margin-bottom: 20px;
}

.apply-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="url"],
.apply-form textarea,
.apply-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.apply-form input:focus,
.apply-form textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 6px rgba(0,102,255,0.2);
    outline: none;
}

.apply-form textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload input {
    border: none;
    padding: 5px;
}

.btn-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #0066ff, #004ecc);
    color: #fff;
    font-size: 1rem;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #004ecc, #003bb5);
    transform: translateY(-2px);
}


/* --- MOBILE NAVBAR FIXES --- */
@media (max-width: 991px) {
  /* Navbar background for mobile */
  #mainNavbar {
    background-color: rgba(44, 70, 100, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #mainNavbar .navbar-brand {
    color: white;
    transition: color 0.3s ease;
    font-size: 20px;
    margin-left: 30px;
    } 


  /* Collapse menu container */
  #mainNavbar .navbar-collapse {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(30, 50, 80, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    margin-top: 0.8rem;
  }

  /* Nav links */
  #mainNavbar .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
  }

  #mainNavbar .nav-link:hover {
    transform: scale(1.05);
    color: var(--third-color);
  }

  /* Dropdown menu full width */
  .navbarc .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 10px;
  }

  .navbarc .dropdown-menu .dropdown-item {
    text-align: center;
    padding: 0.7rem;
    font-size: 1.1rem;
  }

  /* Social icons centered */
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
  .social-icons a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
  }
}

/* --- TOGGLE BUTTON STYLING --- */
.navbar-toggler {
  border: none;
  outline: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}


@media (max-width: 400px) {
  footer p {
    font-size: 12px !important;
  }
}


/* CKEditor Image Alignment Styles */
.image-style-align-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.image-style-align-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.image-style-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    float: none !important; /* override any float that CKEditor/Bootstrap applies */
    text-align: center;
}


.image-style-side {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 50%;
}
