.team-box .overlay-box .img-back-side img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* Brand Area Styles */
.brand-area {
    height: 100px;
    background: #fff !important;
    position: relative;
}

.brand-area .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 90px !important;
    padding: 20px 10px !important;
}

.brand-box img {
    max-height: 40px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
}

.kon-carousel .owl-stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kon-carousel .owl-item {
    display: flex;
    justify-content: center;
    padding: 0 5px;
}

/* Slider Area */
.slider-area {
    height: 800px !important;
}

#ensign-nivoslider img {
    filter: brightness(0.7);
}



.slider-area img {
    height: 800px !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    transform: scale(1.05) !important;
}

/* Specific positioning for group photos 2 and 3 */
img[src*="hopur2.jpg"],
img[src*="hopur3.jpg"] {
    object-position: center 10% !important;
}

/* Override Nivo Slider default styles */
.nivoSlider {
    background: none !important;
}

.nivo-caption {
    background: none !important;
}

.theme-default .nivoSlider {
    background: none !important;
    box-shadow: none !important;
}

.theme-default .nivoSlider img {
    opacity: 1 !important;
}

/* Slider Overlay */
.slider-area {
    position: relative !important;
}

.slider-area .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Slider Text Styles */
.slider-content {
    position: relative !important;
    z-index: 3 !important;
}

.slider-content h1,
.slider-content h3,
.slider-content p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.slider-content .read-more a {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Hagabrekka 5 Image */
.featured-box img[src*="hagabrekka 5"] {
    width: 100% !important;
    height: 335px !important;
    object-fit: cover !important;
}

/* Reynihlid Image */
.featured-box img[src*="Reynihlid"] {
    width: 100% !important;
    height: 335px !important;
    object-fit: cover !important;
}

/* Popup Gallery */
.mfp-content img {
    /*max-height: 600px !important;*/
    max-width: 90% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

.mfp-figure {
    padding: 20px !important;
}

.mfp-figure:after {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: none !important;
}

/* Video Area */
.video-area {
    background: url('../boggur myndir/Verkefni/hagabrekka 5/hagaskogur14.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    position: relative !important;
    padding: 90px 0 !important;
}

.video-area .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.video-area h2,
.video-area p {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

/* Active Navigation Link */
.main-menu-area nav > ul > li > a[href="index.html"] {
    color: #ffb600;
}

/* Yellow Bars */
.yellow-bar {
    width: 50px;
    height: 3px;
    background-color: #ffb600;
    margin: 20px auto;
}

/* Navigation Arrows */
.kon-carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.kon-carousel .owl-nav {
    position: absolute;
    width: 100%;
    top: 5%;
}

.kon-carousel .owl-nav button {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    width: 25px !important;
    height: 25px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    margin: 0 !important;
}

.kon-carousel .owl-nav button span {
    line-height: 25px !important;
    font-size: 20px !important;
}

.kon-carousel .owl-nav .owl-prev {
    left: -40px !important;
}

.kon-carousel .owl-nav .owl-next {
    right: -40px !important;
}

.kon-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Services Styles */
.page-services-3-top-area {
    padding: 30px 0;
}

.page-services-3-top-area .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.page-services-3-top-area .col-lg-6 {
    padding: 15px;
    margin-bottom: 0;
}

.page-services-3-box {
    height: 100%;
    margin: 0;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.page-services-3-box .media {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 20px;
    height: 100%;
}

.page-services-3-box .featured-box {
    margin-right: 15px;
    width: 180px;
    min-width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
}

.page-services-3-box .featured-box img {
    width: 100%;
    height: 300px !important;
    object-fit: cover !important;
}

.page-services-3-box:hover .featured-box img {
    transform: scale(1.1);
}

.page-services-3-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-services-3-box .media {
    padding: 20px;
}

.page-services-3-box .media-body {
    flex: 1;
    padding-right: 15px;
}

.page-services-3-box .media-body p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.page-services-3-box .section-sub-title {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Footer Styles */
.footer-area-top {
    background: #ffffff;
    padding: 40px 0;
}

.footer-area-top .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-area-top .col-lg-3 {
    float: none;
    display: inline-block;
    vertical-align: top;
    margin: 0 10px;
    text-align: left;
}

.footer-area-top .col-lg-3 > * {
    margin-left: 30px;
}

.footer-area-top p {
    max-width: 300px;
}

.footer-area-top h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-area-top h4 {
    color: #fff;
    font-size: 16px;
    margin: 15px 0 10px;
}

.footer-area-top p,
.footer-area-top .corporate-address li {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-social {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.footer-social li {
    display: inline-block;
    margin: 0 10px;
}

.footer-social li a {
    color: #a3a3a3;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social li a i {
    font-size: 24px;
}

.footer-social li a:hover {
    color: #fff;
}



.corporate-address {
    padding: 0;
    list-style: none;
    text-align: left;
}

.corporate-address li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.corporate-address li i {
    width: 20px;
    margin-right: 10px;
    color: #666;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background: #1c1c1c;
    color: #fff;
    padding: 10px 25px;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-left: 30px;
}

.contact-btn:hover {
    background: #ffd700;
    color: #000;
    text-decoration: none;
}

/* ===== TEAM SECTION ===== */
@media (max-width: 767px){
  .team-section .row{display:flex;flex-wrap:wrap;margin:0 -15px;}
  .team-section .row > [class*="col-"]{flex:0 0 50%;max-width:50%;padding:0 15px;box-sizing:border-box;}
  .team-section img{width:100%;height:auto;}
}
