/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Global Responsive Improvements */
body {
  overflow-x: hidden;
  min-width: 320px;
}

main {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure images are responsive globally */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll */
* {
  box-sizing: border-box;
}

/* Fix for potential layout issues */
.swiper-container,
.swiper-wrapper,
.swiper-slide {
  width: 100%;
  box-sizing: border-box;
}

/* Main content padding to account for fixed header */
main {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Responsive main padding */
@media (max-width: 768px) {
    main {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 65px;
        min-height: calc(100vh - 65px);
    }
}

@font-face {
    font-family: 'Octagram';
    src: url('../uploads/fonts/Octagram.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Octagram';
    src: url('../uploads/fonts/Octagram-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body, ul {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Octagram-Bold', Arial, Helvetica, sans-serif;
}
/* Navigation Bar */
nav {
    padding: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 0px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9900;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Hero responsive adjustments */
@media (max-width: 992px) {
    .hero {
        height: 100vh;
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 40px;
        margin-bottom: 18px;
    }
    
    .hero-content p {
        font-size: 20px;
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 95%;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 18px;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 100vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0 12px;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff9900;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e68a00;
}

/* Button Responsive Improvements */
@media (max-width: 768px) {
  .btn-primary {
    padding: 10px 25px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .btn-primary {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* Footer Styles */
.footer {
    background-color: #000000;
    color: white;
    padding: 40px 0 0;
    margin: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    margin-right: 40px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

.separator {
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

/* Footer copyright text */
.footer-copyright {
    color: #ccc !important;
    font-size: 16px;
    margin-top: 20px;
    text-align: left;
    line-height: 1.4;
}

/* Footer decorative lines */
.footer-lines {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  background-color: #000000;
  overflow: visible;
  position: relative;
  min-height: 400px;
  border-bottom: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-lines-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  z-index: 1;
  order: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.footer-logo-overlay {
  position: relative;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 40px 0 20px 0;
  order: 1;
}

.footer-logo {
  width: 1260px;
  height: auto;
  max-width: 96%;
  max-height: 250px;
  opacity: 1;
  filter: brightness(1.5) contrast(1.2);
  pointer-events: none;
  margin-top: 0;
  position: relative;
}

/* Responsive adjustments for footer lines */
@media (max-width: 768px) {
  .footer-lines {
    min-height: auto;
    padding: 0;
  }
  
  .footer-lines-image {
    width: 100%;
    height: auto;
  }
  
  .footer-logo-overlay {
    padding: 20px 0 10px 0;
  }
  
  .footer-logo {
    width: 500px;
    max-width: 100%;
    max-height: 200px;
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .footer-lines {
    min-height: auto;
    padding: 0;
  }
  
  .footer-lines-image {
    width: 100%;
    height: auto;
  }
  
  .footer-logo-overlay {
    padding: 15px 0 5px 0;
  }
  
  .footer-logo {
    width: 450px;
    max-width: 100%;
    max-height: 150px;
    margin-top: 0;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        padding: 0 20px;
        margin-bottom: 30px;
        gap: 30px;
    }

    .footer-section {
        margin-right: 0;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 16px;
    }

    .social-links {
        justify-content: center;
        margin-top: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0 10px;
    }

    .footer-content {
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 16px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header transparent state on scroll */
.header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 28px;
    width: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #000000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Navigation Styles */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.nav-list a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Octagram', Arial, sans-serif;
}

.nav-list a:hover {
    color: #007bff;
}

/* Search Styles */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    width: 200px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 250px;
    outline: none;
    border-color: #007bff;
}

.search-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #000000;
    font-size: 29px;
}

.search-button:hover {
    color: #007bff;
}

/* Header Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        padding: 12px 15px;
    }
    
    .search-input {
        width: 160px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .header-right {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: #ffffff;
        flex-direction: column;
        padding: 30px 0;
        transition: left 0.3s ease;
        margin: 0;
        justify-content: flex-start;
        align-items: center;
        z-index: 999;
    }

    .header-right.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .nav-list a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .search-form {
        width: calc(100% - 40px);
        max-width: 300px;
        margin: 0 auto;
    }

    .search-input {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .search-button {
        padding: 12px 15px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .header-right {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 20px 0;
    }
    
    .nav-list {
        gap: 20px;
        padding: 15px 0;
    }
    
    .nav-list a {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .search-form {
        width: calc(100% - 30px);
    }
}

/* Search Results Styles */
.search-results {
    padding-top: 80px;
    padding-right: 20px;
    padding-bottom: 0;
    padding-left: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.search-summary {
    margin-bottom: 30px;
    color: #666;
}

.results-count {
    margin-bottom: 20px;
    font-weight: 500;
}

.results-grid {
    display: grid;
    gap: 30px;
}

.result-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-type {
    display: inline-block;
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.result-card h2 {
    margin: 0 0 10px 0;
}

.result-card h2 a {
    color: #333;
    text-decoration: none;
}

.result-card h2 a:hover {
    color: #007bff;
}

.result-card p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
.results-grid {
    display: grid;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 32px 0;
}
}

.result-meta {
    color: #999;
    font-size: 14px;
}

.result-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 0;
    transition: transform 0.2s ease;
}
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}
.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.error-message {
    background: #fff3f3;
    color: #dc3545;
.result-card img {
    border-radius: 0 !important;
}
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* About Page Styles */
.about-page {
    padding-top: 60px;
}

/* Hero Section */
.about-hero {
    background-color: #000;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.about-hero .lead {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Container and Overview Section */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
}

.about-overview {
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.overview-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
}

/* Values Section */
.about-values {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-values h2 {
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
}

/* Team Section */
.about-team {
    padding: 80px 0;
}

.about-team h2 {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.member-role {
    color: #666;
}

/* CTA Section */
.about-cta {
    padding: 100px 0;
    text-align: center;
    background: #000;
    color: white;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }
}

/* Clients Section Styles */
.clients-section {
    padding: 60px 0;
    background: white;
    overflow: hidden;
}

.clients-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.clients-slider {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: calc(200px * 12); /* Adjust based on number of slides */
    animation: scroll 25s linear infinite;
}

.slide {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.slide img {
    max-width: 150px;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6)); /* Half of total width */
    }
}

/* Pause animation on hover */
.clients-slider:hover .slide-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        width: 150px;
    }
    
    .slide img {
        max-width: 120px;
    }
    
    .slide-track {
        width: calc(150px * 12);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 6));
        }
    }
}

/* Social Icons for Team */
.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

/* Contact Page Styles */
.contact-page {
    padding-top: 60px;
}

/* Hero Section */
.contact-hero {
    background-color: #000;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact-hero .lead {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Contact Information */
.contact-info h2 {
    margin-bottom: 20px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: white;
}

/* Contact Form */
.contact-form {
    background: rgba(248, 249, 250, 0.103);
    padding: 40px;
    border-radius: 8px;
    box-shadow: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #0056b3;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 30px;
    }
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Select Styles */
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

/* Company Fields Styling */
.company-fields {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 10px;
}

.company-fields label {
    margin-top: 15px;
    display: block;
}

.company-fields label:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Technologies Section */
.technologies-section {
    padding: 60px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.technologies-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}

.tech-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    height: 140px;
}

.tech-slider {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.tech-track {
    display: flex;
    width: calc(180px * 24); /* Double the items for seamless loop */
    animation: tech-scroll 40s linear infinite;
    align-items: center;
    height: 100%;
}

.tech-item {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease;
    height: 140px;
    justify-content: center;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
}

.tech-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

@keyframes tech-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 12)); /* Half of total width for seamless loop */
    }
}

/* Pause animation on hover */
.tech-slider:hover .tech-track {
    animation-play-state: paused;
}

/* Legacy styles for backward compatibility */
.tech-row {
    display: none; /* Hide the old grid layout */
}

/* Responsive Design */
@media (max-width: 992px) {
    .tech-track {
        width: calc(160px * 24);
        animation: tech-scroll-tablet 35s linear infinite;
    }
    
    .tech-item {
        flex: 0 0 160px;
    }
    
    @keyframes tech-scroll-tablet {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 12));
        }
    }
}

@media (max-width: 576px) {
    .tech-grid,
    .tech-slider {
        height: 120px;
    }
    
    .tech-track {
        width: calc(140px * 24);
        animation: tech-scroll-mobile 30s linear infinite;
    }
    
    .tech-item {
        flex: 0 0 140px;
        height: 120px;
        padding: 15px;
    }

    .tech-item img {
        width: 50px;
        height: 50px;
    }
    
    .tech-item p {
        font-size: 12px;
    }
    
    @keyframes tech-scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 12));
        }
    }
}

/* News Page Enhanced Responsiveness */
.news-page {
    padding: 40px 0;
    padding-top: 100px;
}

/* Featured Post Responsive Improvements */
.featured-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 40px;
}

.featured-post .post-image {
    height: 400px;
    width: 100%;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Posts Grid Enhanced Responsiveness */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 200px;
    width: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.post-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.post-meta {
    font-size: 14px;
    color: #666;
}

.portfolio-meta {
    background: #fff;
    padding: 10px 12px 12px 12px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: auto;
    overflow: hidden;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    min-height: 60px;
    box-sizing: border-box;
}

.portfolio-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-description {
    font-size: 16px !important;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    max-width: 100%;
    min-height: 2.7em;
    height: auto;
}

/* Make .portfolio-featured description exactly two lines with natural text flow */
.portfolio-featured .portfolio-description {
  font-size: 16px !important;
  line-height: 1.5 !important; 
  margin-top: 8px;
  color: #666;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  text-overflow: ellipsis !important;
  width: 100%;
  text-align: left !important;
  white-space: normal !important;
}

/* Featured Post Styles */
.featured-post {
    position: relative;
    margin-bottom: 40px;
}

.featured-post .post-content {
    text-align: left;
    padding: 20px 0; /* Removed side padding */
}

.featured-post .post-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.featured-post .post-title {
    text-align: left;
    margin: 10px 0;
}

.featured-post .post-title a {
    color: #000;
    text-decoration: none;
    font-size: 32px;
    line-height: 1.3;
}

.featured-post .post-meta {
    text-align: left;
    color: #666;
    font-size: 14px;
}

.featured-post .post-date {
    display: inline-block;
}

.single-post-page {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-meta {
    margin-bottom: 20px;
}

.post-category {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content h2 {
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Post Styles */
.featured-post {
    position: relative;
    margin-bottom: 40px;
}

.featured-post .post-content {
    text-align: left;
    padding: 20px 0; /* Removed side padding */
}

.featured-post .post-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.featured-post .post-title {
    text-align: left;
    margin: 10px 0;
}

.featured-post .post-title a {
    color: #000;
    text-decoration: none;
    font-size: 32px;
    line-height: 1.3;
}

.featured-post .post-meta {
    text-align: left;
    color: #666;
    font-size: 14px;
}

.featured-post .post-date {
    display: inline-block;
}

.single-post-page {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header .post-meta {
    margin-bottom: 20px;
    text-align: left;
}

.post-header .post-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.post-header .post-title {
    font-size: 32px;
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
}

.post-content h2 {
    text-align: left;
    margin: 40px 0 20px;
    font-size: 24px;
}

.post-content p {
    margin-bottom: 20px;
    text-align: left;
    font-size: 18px;
    color: #333;
}

.post-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Featured Post Section */
.featured-posts {
    margin-bottom: 40px;
}

.featured-post {
    position: relative;
}

.featured-post .post-content {
    padding: 20px 0;
}

.featured-post .post-category {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-post .post-title {
    margin: 10px 0;
}

.featured-post .post-title a {
    color: #000;
    text-decoration: none;
    font-size: 32px;
    line-height: 1.3;
}

/* Work Section Responsive Improvements */
.work-section {
  margin-bottom: 60px;
  padding: 10px 0;
  overflow: hidden;
}

.work-section:last-child {
  margin-bottom: 60px;
}

.work-section .section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 70px; /* Further increase space below the section title */
  color: #000;
  text-align: left;
  word-wrap: break-word;
}

@media (max-width: 992px) {
  .work-section {
    margin-bottom: 50px;
    padding: 8px 0;
  }
  
  .work-section .section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .work-section {
    margin-bottom: 40px;
    padding: 5px 0;
  }
  
  .work-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .work-section {
    margin-bottom: 30px;
    padding: 0;
  }
  
  .work-section .section-title {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
  }
}

/* --- Portfolio Layout for Home Grid --- */
.portfolio-layout {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Match the gap between .portfolio-bottom-grid and .portfolio-side-grid/featured */
}

.portfolio-top {
  display: flex;
  gap: 10px; /* Ensure the gap between .portfolio-side-grid and .portfolio-featured matches .portfolio-bottom-grid */
}

.portfolio-featured {
  flex: 2;
  min-width: 0;
  height: 550px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.portfolio-featured .portfolio-link {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.portfolio-featured .portfolio-image {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100% - 60px);
  display: block;
  overflow: hidden;
  position: relative;
}

.portfolio-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.portfolio-side-grid {
  flex: 1.5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  height: 550px;
  max-width: 100%;
}

.portfolio-side-grid .portfolio-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  width: 100%;
  height: 100%;
}

.portfolio-side-grid .portfolio-link {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.portfolio-side-grid .portfolio-image {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100% - 35px);
  display: block;
  overflow: hidden;
  position: relative;
}

.portfolio-side-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.portfolio-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
  width: 100%;
}

.portfolio-bottom-grid .portfolio-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4/3;
  min-height: 340px;
  background: none !important;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none !important;
}

.portfolio-bottom-grid .portfolio-image {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
}

.portfolio-bottom-grid .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .portfolio-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .portfolio-bottom-grid .portfolio-meta {
    padding: 10px 12px 12px 12px;
    min-height: 65px;
  }
  
  .portfolio-bottom-grid .portfolio-title {
    font-size: 1.1rem;
  }
  
  .portfolio-bottom-grid .portfolio-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .portfolio-bottom-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 4px;
  }
  
  .portfolio-bottom-grid .portfolio-meta {
    padding: 8px 10px 10px 10px;
    min-height: 60px;
  }
  
  .portfolio-bottom-grid .portfolio-title {
    font-size: 1rem;
  }
  
  .portfolio-bottom-grid .portfolio-description {
    font-size: 0.85rem;
  }
}

/* Add these responsive styles for portfolio sections */
@media (max-width: 768px) {
    .portfolio-layout {
        flex-direction: column;
    }
    
    .portfolio-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-featured {
        width: 100%;
        max-width: none;
        height: 400px !important; /* Ensure fixed height */
        display: flex !important;
        flex-direction: column;
    }
    
    .portfolio-featured .portfolio-image {
        height: 400px !important; /* Fixed height for image */
        width: 100% !important;
        display: block !important;
        overflow: hidden;
    }
    
    .portfolio-featured .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .portfolio-side-grid {
        width: 100%;
        grid-template-columns: 1fr !important;
        gap: 20px;
        height: 400px !important;
    }
    
    .portfolio-side-grid .portfolio-item {
        height: 400px !important;
        display: flex !important;
        flex-direction: column;
    }
    
    .portfolio-side-grid .portfolio-image {
        height: 550px !important;
        width: 100% !important;
        display: block !important;
        overflow: hidden;
    }
    
    .portfolio-side-grid .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .portfolio-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .portfolio-bottom-grid .portfolio-item {
        height: 300px !important;
        display: flex !important;
        flex-direction: column;
    }
    
    .portfolio-bottom-grid .portfolio-image {
        height: 240px !important;
        width: 100% !important;
        display: block !important;
        overflow: hidden;
    }
    
    .portfolio-bottom-grid .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
  .portfolio-featured,
  .portfolio-side-grid .portfolio-item,
  .portfolio-bottom-grid .portfolio-item {
        height: 400px !important;
    }
    
    .portfolio-featured .portfolio-image,
    .portfolio-side-grid .portfolio-image,
    .portfolio-bottom-grid .portfolio-image {
        height: 400px !important;
    }
}

/* Swiper Responsive Improvements */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 15px;
  height: 15px;
}

.swiper-pagination-bullet-active {
  background: #1F46C1;
}

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 14px;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
}

@media (max-width: 576px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 12px;
  }
  
  .swiper-button-next {
    right: 5px;
  }
  
  .swiper-button-prev {
    left: 5px;
  }
}

/* Main content responsive wrapper */
main {
  padding-top: 0;
  margin-top: 0;
}

/* Ensure work sections have proper spacing on mobile */
@media (max-width: 768px) {
  main {
    padding-top: 10px;
  }
}

@media (max-width: 576px) {
  main {
    padding-top: 5px;
  }
  
  /* Reduce excessive spacing on small screens */
  .work-section:first-child {
    margin-top: 0;
  }
}

/* Fix any potential overflow issues */
.portfolio-layout * {
  max-width: 100%;
}

/* Ensure all portfolio links are properly styled */
.portfolio-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-link:hover,
.portfolio-link:focus,
.portfolio-link:visited,
.portfolio-link:active {
  text-decoration: none;
  color: inherit;
}

/* Adding responsive breakpoint for very small mobile screens (400px and below) */
@media (max-width: 400px) {
  .portfolio-layout {
    gap: 10px;
  }
  
  .portfolio-featured {
    height: 400px;
    display: flex;
    flex: none;
    visibility: visible;
  }
  
  .portfolio-side-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 110px);
    gap: 5px;
  }
  
  .portfolio-side-grid .portfolio-item {
    height: 400px;
  }
  
  .portfolio-bottom-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(auto, 120px);
    gap: 5px;
  }
  
  .portfolio-bottom-grid .portfolio-item {
    height: 120px;
  }
}

/* === Motion Graphics Carousel Styles === */
.motion-graphics-section {
    padding: 60px 0;
    background: #222222;
}

.motion-graphics-carousel {
    position: relative;
    margin-top: 30px;
    background: #000;
    padding: 40px 0;
    border-radius: 5px;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    border-radius: 0;
    background: #000;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 13px;
    transition: none;
    padding: 0 20px;
    will-change: auto;
    cursor: default;
    width: max-content;
}

.carousel-slide {
    flex: 0 0 250px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-slide:active {
    cursor: default;
}

.carousel-slide:hover {
    transform: translateY(-5px);
}

.carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carousel-image {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 0;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.carousel-slide:hover .carousel-image img {
    transform: scale(1.05);
}

.carousel-info {
    padding: 16px 0 0 0;
    position: static;
    background: transparent;
}

.carousel-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.carousel-description {
    font-size: 16px !important;
    line-height: 1.4;
    color: #ccc;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #333;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Responsive Design for Motion Graphics Carousel */
@media (max-width: 768px) {
    .motion-graphics-carousel {
        margin: 20px 0 0;
        padding: 20px 0;
    }
    
    .carousel-track {
        padding: 0 15px;
    }
    
    .carousel-slide {
        flex: 0 0 280px;
        cursor: default;
    }
    
    .carousel-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 250px;
    }
    
    .carousel-image {
        height: 350px;
    }
    
    .carousel-title {
        font-size: 16px;
    }
    
    .carousel-description {
        font-size: 16px;
    }
}

/* Carousel dragging functionality - DO NOT CHANGE EXISTING SIZING */
.carousel-track {
    overflow-x: scroll !important;
    cursor: grab !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.carousel-track.dragging {
    cursor: grabbing !important;
}

/* --- Portfolio Grid Spacing Fixes for index.php --- */
/* Ensure clear space between portfolio images and titles, even if not direct siblings */
.portfolio-image + .portfolio-title,
.portfolio-item .portfolio-image + .portfolio-title,
.portfolio-meta .portfolio-title {
  margin-top: 32px !important;
}

/* Add extra margin below section titles before portfolio grids for all layouts */
.section-title + .portfolio-featured,
.section-title + .portfolio-side-grid,
.section-title + .portfolio-bottom-grid,
.container > .section-title + .portfolio-featured,
.container > .section-title + .portfolio-side-grid,
.container > .section-title + .portfolio-bottom-grid {
  margin-top: 36px !important;
}

/* Add margin-bottom directly to section-title in work-section and portfolio layouts for extra safety */
.section-title {
  margin-bottom: 36px !important;
}

/* Add margin-top to .portfolio-title in case image and title are not siblings */
.portfolio-title {
  margin-top: 10px !important;
}

.portfolio-featured .portfolio-info {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  max-width: 100%;
}

/* Mobile responsive - single column layout */
@media (max-width: 768px) {
    .portfolio-layout {
        flex-direction: column;
    }
    
    .portfolio-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-featured {
        width: 100%;
        max-width: none;
        height: auto;
    }
    
    .portfolio-side-grid {
        width: 100%;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 20px;
        height: 550px;
    }
    
    .portfolio-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 20px;
    }
    
    .portfolio-item {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: auto;
    }
}

@media (max-width: 480px) {
    .portfolio-side-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 15px;
        height: auto;
    }
    
    .portfolio-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .portfolio-item {
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .portfolio-featured {
        height: auto;
    }
    
    .portfolio-info {
        padding: 15px;
    }
    
    .portfolio-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Portfolio description text size - 16px for all devices */
.portfolio-description {
    font-size: 16px !important;
    line-height: 1.4;
}

.carousel-description {
    font-size: 16px !important;
    line-height: 1.4;
}

/* Override any existing responsive styles */
@media (max-width: 992px) {
    .portfolio-description {
        font-size: 16px !important;
    }
    
    .carousel-description {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .portfolio-description {
        font-size: 16px !important;
    }
    
    .carousel-description {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .portfolio-description {
        font-size: 16px !important;
    }
    
    .carousel-description {
        font-size: 16px !important;
    }
}

/* Hide Latest News section on work page - more specific selectors */
.work-page .latest-news-section,
body.work-page .latest-news-section,
.latest-news-section {
    display: none !important;
}

/* If the above doesn't work, try this more aggressive approach */
.work-section ~ .latest-news-section,
.portfolio-layout ~ .latest-news-section,
section:has(.portfolio-layout) ~ .latest-news-section {
    display: none !important;
}

/* Target by content - if Latest News appears after work sections */
.work-section:last-child ~ *:contains("Latest News"),
.container:has(.work-section) .latest-news-section {
    display: none !important;
}

/* Add this at the end of your style.css file */

/* Carousel dragging styles */
.carousel-track {
    display: flex !important;
    overflow-x: auto !important;
    cursor: grab !important;
    scroll-behavior: smooth !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.carousel-track::-webkit-scrollbar {
    display: none !important;
}

.carousel-track.dragging {
    cursor: grabbing !important;
}
/* CKEditor Image Alignment Styles */
.image-style-side {
    float: right;
    margin-left: 20px;
    max-width: 50%;
}

.image-style-align-left {
    float: left;
    margin-right: 20px;
}

.image-style-align-right {
    float: right;
    margin-left: 20px;
}

.image-style-align-center {
    display: block;
    margin: 0 auto;
}

.image-style-full {
    width: 100%;
    height: auto;
}

/* Media embed responsive */
.media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.media iframe,
.media object,
.media embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.instant-search-bg {
    z-index: 1 !important;
}
