/* 
 * Datamatix-Inspired Styling for World Summits and Conferences
 * Created to match Datamatix Group's corporate aesthetic
 */

/* ================ 1. VARIABLES AND ROOT SETTINGS ================ */
:root {
    --main-color: #09539f;
    --second-color: #1b75ba;
    --text-dark: #333;
    --text-light: #6c757d;
    --bg-light: #f2f2f2;
    --border-light: #e5e5e5;
}

/* ================ 2. FONTS AND TYPOGRAPHY ================ */
@font-face {
    font-family: bruumBoldFont;
    src: url(./../fonts/BruumFY-Bold.otf);
}
@font-face {
    font-family: bruumFont;
    src: url(./../fonts/BruumFY-Regular.otf);
}
@font-face {
    font-family: bruumFont;
    src: url(./../fonts/BruumFY-Black.otf);
}
@font-face {
    font-family: bruumLightFont;
    src: url(./../fonts/BruumFY-Light.otf);
}
@font-face{
    font-family: newJuneBoldFont;
    src: url(./../fonts/NewJune-Bold.otf);
}
@font-face{
    font-family: qatarBoldFont;
    src: url(./../fonts/Qatar2022Arabic-Bold.ttf);
}
@font-face{
    font-family: newJuneMedFont;
    src: url(./../fonts/NewJune-Medium.otf);
}
* {
    font-family: bruumLightFont, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h2, h3, h4, h5, h6 {
    font-family: bruumBoldFont, Arial, sans-serif;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--main-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--second-color);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ================ 3. HEADER STYLES ================ */
header {
    position: relative;
    width: 100%;
    min-height: 170px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .left-part {
    min-height: 165px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

header .right-part {
    width: 100%;
}

/* Top Navigation with Email and Login Buttons */
header .nav1 {
    background-color: var(--bg-light);
    min-height: 40px;
    display: flex;
    align-items: center;
}

header .nav1 .left-nav {
    margin-left: 10%;
    display: flex;
    align-items: center;
}

header .nav1 .left-nav img {
    margin-right: 8px;
}

header .nav1 .left-nav a {
    color: #000;
    font-size: 0.9rem;
}

header .nav1 .btn-group {
    display: flex;
    align-items: center;
}

header .nav1 .btn-group .btn {
    border-radius: 0;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: bruumBoldFont;
}

/* Main Navigation */
header .right-part .nav2 {
    background-color: #0070b6;
    min-height: 50px;
    margin-top: 1%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

header .nav2 ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

header .nav2 ul li {
    position: relative;
    cursor: pointer;
}

header .right-part .nav2 a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem !important;
    font-family: bruumLightFont;
    margin-right: 16px;
    padding: 6px 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

header .right-part .nav2 a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* Secondary Navigation - Continents */
header .right-part .nav3 {
    background-color: var(--main-color);
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .right-part .nav3 ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

header .right-part .nav3 a {
    color: #fff;
    font-family: bruumLightFont;
    font-weight: 600;
    font-size: 1.1rem !important;
    margin-right: 16px;
    position: relative;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

header .right-part .nav3 a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
}

header .nav3 ul li {
    position: relative;
    cursor: pointer;
    margin-right: 0 !important;
}

/* ================ 4. COUNTER SECTION ================ */
.counter-top {
    background-color: var(--bg-light);
    padding: 20px 30px;
}

.counter-top .btns {
    width: 90%;
}

.counter-top .btn {
    min-height: 35px;
    color: #fff;
    background-color: var(--second-color);
    border: none;
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    border-radius: 0;
}

.counter-top .btn a {
    text-decoration: none;
    color: #fff;
}

.counter-top p {
    font-size: 16px;
    margin-bottom: 0;
    text-align: center;
    color: #000;
}

/* Counter Statistics */
.counter {
    margin: 30px 0;
}

.counter h2 {
    font-family: bruumBoldFont;
    color: var(--main-color);
    font-size: 30px;
    font-weight: bold;
    margin: 5px;
}

.counter-desc {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.counter-desc:hover {
    transform: translateY(-5px);
}

.counter img {
    margin: 10px auto;
    height: 33px;
}

.counter p {
    color: #888686;
    text-align: center;
}

/* ================ 5. WELCOME SECTION ================ */
.welcome-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-family: bruumBoldFont;
    color: var(--main-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-align: center;
}

.welcome-content {
    max-width: 90%;
    margin: 0 auto;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.welcome-content strong {
    color: var(--main-color);
    font-family: bruumBoldFont;
}

/* ================ 6. CARDS AND CONTENT BLOCKS ================ */
.cards {
    margin-bottom: 3rem;
}

.cards .card {
    position: relative;
    border: none;
    padding: 10px;
    border-radius: 0;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cards .card:hover {
    transform: translateY(-5px);
}

.cards .card .card-body {
    position: relative;
    display: block;
    background-color: #f8f9fa;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 0;
}

.cards .card a.card-body {
    min-height: 490px;
    color: #fff;
}

.cards .card .card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cards .card:hover .card-body img {
    transform: scale(1.05);
}

.cards .card .card-body span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
}

.cards .card .card-body span h4 {
    margin-bottom: 0;
}

.cards .card .card-body span h4 a {
    color: white !important;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Advertisement Banners */
.advs1 {
    width: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    min-height: 235px;
    font-size: 1.25rem;
    font-weight: 500;
}

/* ================ 7. BANNER SECTIONS ================ */
.banner {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
	padding-bottom: 1px;
	padding-top: 0px;
}

.banner.bannerLeft {
    background-position: left;
}

.banner.bannerRight {
    background-position: right;
}

.banner .over {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

.banner .banner-text {
    position: relative;
    z-index: 2;
    margin-top: 25%;
}

.banner.bannerRight .banner-text {
    text-align: right;
    margin-right: 5%;
}

.banner.bannerLeft .banner-text {
    margin-left: 5%;
}

.banner .banner-text h3 {
    font-family: bruumBoldFont;
    color: #fff;
    font-size: 2.2rem;
    width: 85%;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.banner .banner-text h6,
.banner .banner-text h6 a {
    color: #fff;
    opacity: 0.9;
}

/* Side-by-side banner */
.bannerb {
    display: flex;
    background-color: var(--bg-light);
    height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 30px;
}

.bannerb .text {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(242, 242, 242, 0.95);
    z-index: 1;
}

.bannerb .text h3,
.bannerb .text h2 {
    color: var(--main-color);
    font-family: bruumBoldFont;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.bannerb .text .text-body {
    width: 70%;
    margin: auto;
    padding: 2rem;
}

.bannerb .text-body .btn {
    padding: 10px 30px;
    background-color: var(--second-color);
    color: #fff;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.bannerb .text-body .btn:hover {
    opacity: 0.9;
}

.bannerb .text-body .btn a {
    color: #fff;
}

.bannerb .img-bannerb {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    overflow: hidden;
}

.bannerb .img-bannerb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bannerb:hover .img-bannerb img {
    transform: scale(1.05);
}

/* Main Title Sections */
.main-title {
    margin: 32px 0;
}

.main-title h2,
.main-title h3 {
    font-family: bruumBoldFont;
    font-size: 2.2rem;
    line-height: 1.4;
    text-align: center;
    color: var(--main-color);
}

.main-title p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ================ 8. CAROUSEL ================ */
.carousel.slide {
    margin-top: 30px;
    margin-bottom: 30px;
}

.carousel.slide .carousel-caption {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 100%;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.carousel.slide .carousel-caption p {
    margin-bottom: 0;
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ================ 9. BUTTONS AND INTERACTIVE ELEMENTS ================ */
.btn {
    border-radius: 0;
    font-family: bruumBoldFont;
    transition: all 0.3s ease;
}

.btn-primary, 
.btn-warning, 
.btn-dark {
    background-color: var(--second-color);
    border-color: var(--second-color);
    color: #fff;
}

.btn-primary:hover, 
.btn-warning:hover, 
.btn-dark:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

button a {
    text-decoration: none !important;
    color: #fff;
}

/* ================ 10. FOOTER ================ */
footer {
    padding: 2rem 0 0;
    background-color: var(--bg-light);
    margin-top: 3rem;
}

footer .logo img {
    max-width: 250px;
    height: auto;
    margin-top: 3.5rem;
	margin-left: 1rem;
}

footer h5 {
    color: var(--main-color);
    font-size: 1rem;
    font-weight: bold;
    text-transform: none;
    margin-bottom: 1.25rem;
    border-left: 0px solid var(--main-color);
    padding-left: 10px;
}

footer .links {
    display: flex;
    margin-bottom: 5px;
    align-items: flex-start;
}

footer .links i {
    color: var(--main-color);
    margin-right: 8px;
    font-size: 0.9rem;
    margin-top: 3px;
}

footer .links span, 
footer .links a {
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

footer .links span:hover, 
footer .links a:hover {
    color: var(--main-color);
    font-weight: 500;
}

footer .subscribe-label {
    color: var(--main-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

footer form input {
    border-radius: 0;
    border: 1px solid #ddd;
    height: 38px;
    padding: 0.5rem 1rem;
}

footer form .btn {
    background-color: #b20507;
    color: #fff;
    border: none;
    height: 38px;
    padding: 0 1.5rem;
    font-size: 0.9rem;
}

footer .social {
    display: flex;
    margin-top: 1rem;
}

footer .social a i {
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

footer .social a i:hover {
    transform: translateY(-3px);
}

footer .copy-right {
    background-color: #000;
    color: #ababab;
    margin-top: 3rem;
}

footer .copy-right p {
    font-size: 0.9rem;
    margin: 0;
    padding: 1.5rem 0;
    text-align: center;
}

/* ================ 11. MEDIA QUERIES ================ */
@media only screen and (min-width: 1400px) {
    .banner {
        height: 820px;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .bannerb {
        height: 700px;
    }
}

@media only screen and (max-width: 1199px) {
    .banner {
        height: 550px;
    }
    
    .bannerb {
        height: 550px;
    }
    
    .bannerb .text h3,
    .bannerb .text h2 {
        font-size: 1.8rem;
    }
    
    .banner .banner-text h3 {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 991px) {
    .counter h2 {
        font-size: 1.6rem;
    }
    
    .bannerb {
        height: 450px;
    }
    
    .bannerb .text h3,
    .bannerb .text h2 {
        font-size: 1.6rem;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner .banner-text h3 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .banner .banner-text p {
        font-size: 1rem;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    
    header .right-part .nav3 a,
    header .right-part .nav2 a {
        margin-right: 10px;
        font-size: 0.9rem !important;
    }
    
    .counter-desc {
        margin-bottom: 2rem;
    }
    
    footer .col-md-2,
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media only screen and (max-width: 767px) {
    .cards .card .card-body {
        min-height: auto;
    }
    
    header .left-part {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .counter-top button.btn {
        width: 100%;
        margin: 20px auto;
    }
    
    .welcome-section h2 {
        font-size: 1.6rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner .banner-text {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }
    
    .banner .banner-text h3 {
        color: #fff;
        text-align: center;
        font-size: 1.4rem !important;
        line-height: 1.3;
        width: 100%;
    }
    
    .banner .banner-text p {
        color: #fff;
        text-align: center;
        width: 100%;
        line-height: 1.4;
    }
    
    .bannerb {
        height: auto;
        flex-direction: column;
    }
    
    .bannerb .img-bannerb,
    .bannerb .text {
        width: 100%;
        position: relative;
    }
    
    .bannerb .text {
        order: 2;
        padding: 2rem 0;
    }
    
    .bannerb .img-bannerb {
        order: 1;
        height: 250px;
    }
    
    .bannerb .text h3,
    .bannerb .text h2 {
        font-size: 1.4rem !important;
        text-align: center;
    }
    
    header .nav1 .btn-group {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }
    
    header .nav1 {
        padding: 20px;
        text-align: center;
        flex-direction: column;
    }
    
    header .nav1 .left-nav {
        margin-left: 0;
        justify-content: center;
    }
    
    .bannerb .text-body {
        width: 90%;
    }
    
    .bannerb .text-body .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        display: block;
        margin: 0 auto;
    }
    
    footer .logo {
        margin-bottom: 20px;
        text-align: center;
    }
    
    footer .social {
        justify-content: center;
        margin: 1.5rem 0;
    }
}

@media only screen and (max-width: 575px) {
    .nav2,
    .nav3 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    
    .nav2 ul,
    .nav3 ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav2 ul li,
    .nav3 ul li {
        width: auto;
        margin: 5px;
    }
    
    header .right-part .nav3 a,
    header .right-part .nav2 a {
        margin: 5px;
        padding: 5px 10px;
        font-size: 0.85rem !important;
    }
    
    .main-title h2,
    .main-title h3 {
        font-size: 1.8rem;
    }
    
    .counter h2 {
        font-size: 1.5rem;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner .banner-text h3 {
        font-size: 1.3rem !important;
    }
    
    .banner .banner-text p {
        font-size: 0.9rem;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer .links span,
    footer .links a {
        font-size: 0.9rem;
    }
    
    footer .copy-right p {
        font-size: 0.85rem;
    }
    
    .carousel.slide .carousel-caption {
        font-size: 0.9rem;
        padding: 10px;
    }
}
/* ================ PHOTO GALLERY BUTTON WIDTH FIX ================ */

/* Override the counter-top button width to fit content */
.counter-top .btn {
    width: auto !important;
    padding: 8px 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    white-space: nowrap;
}

/* Ensure the button container allows centering */
.counter-top .btns .col-md-7 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile responsiveness for the button */
@media only screen and (max-width: 767px) {
    .counter-top .btn {
        width: auto !important;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 575px) {
    .counter-top .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* ================ BANNER SECTION MOBILE RESPONSIVENESS ================ */

/* Remove gap between banners on all screen sizes */
.banner.banner-3.bannerRight.mt-5 {
    margin-top: 0 !important;
}

/* Desktop and larger screens - keep right positioning */
@media only screen and (min-width: 768px) {
    .banner.bannerRight {
        background-position: right center;
    }
}

/* Mobile screens - show left side of images */
@media only screen and (max-width: 767px) {
    .banner.bannerRight {
        background-position: left center;
    }
    
    /* Ensure text remains centered on mobile */
    .banner .banner-text {
        text-align: center;
        margin: 0;
        padding: 0 1rem;
        width: 100%;
    }
    
    /* Center the text container */
    .banner .container .row {
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    .banner .col-md-5.col-12 {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    /* Ensure banner height is maintained */
    .banner {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .banner .over {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small mobile screens - additional adjustments */
@media only screen and (max-width: 575px) {
    .banner.bannerRight {
        background-position: left center;
    }
    
    .banner .banner-text {
        padding: 0 0.5rem;
    }
}

/* Very small screens */
@media only screen and (max-width: 480px) {
    .banner.bannerRight {
        background-position: left center;
    }
}
/* ================ CLEANED MOBILE RESPONSIVENESS STYLES ================ */

/* Tablet and Mobile (767px and below) */
@media only screen and (max-width: 767px) {
    /* Header Adjustments */
    header .nav1 .btn-group .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    header .nav1 .left-nav {
        margin-bottom: 10px;
    }

    /* Footer Newsletter Subscription */
    footer .d-flex.align-items-center.mt-4 {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 80%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    footer .g-recaptcha {
        margin-bottom: 15px;
        transform: scale(0.85);
        transform-origin: center center;
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 60%;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    footer .social {
        justify-content: center;
        margin: 1rem 0;
    }
}

/* Small Mobile (575px and below) */
@media only screen and (max-width: 575px) {
    /* Navigation - Continents Menu */
    header .right-part .nav3 ul {
        flex-direction: column;
        align-items: center;
    }
    
    header .right-part .nav3 ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    header .right-part .nav3 a {
        margin-right: 0;
        display: block;
        padding: 10px;
        font-size: 1rem !important;
    }

    /* Typography Adjustments */
    .cards .card .card-body span h4 a {
        font-size: 1rem;
    }
    
    .welcome-section h2 {
        font-size: 1.7rem;
    }
    
    .welcome-video .play-button i {
        font-size: 3rem;
    }
    
    .container h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .counter-desc p {
        font-size: 0.9rem;
    }
    
    .counter-desc h2 {
        font-size: 1.8rem;
    }

    /* Footer Improvements */
    footer .links a, 
    footer .links span {
        font-size: 0.95rem;
        padding: 4px 0;
    }
    
    footer h5 {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }
    
    footer .links i {
        margin-top: 6px;
    }
    
    /* Newsletter Form Adjustments */
    footer #NewsLetterSubscriberEmail {
        width: 90%;
        font-size: 0.9rem;
    }
    
    footer .g-recaptcha {
        transform: scale(0.75);
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (480px and below) */
@media only screen and (max-width: 480px) {
    footer .logo img {
        max-width: 180px;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 95%;
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
    }
}

/* ================ MOBILE RESPONSIVE HEADER WITH TOGGLE ================ */

/* Remove excessive whitespace around logo */
header .left-part {
    min-height: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .left-part img {
    width: auto;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: var(--main-color);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--second-color);
}

.mobile-toggle.active {
    background: var(--second-color);
}

/* Desktop Styles - Clean up existing header */
@media only screen and (min-width: 768px) {
    header {
        position: relative;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    header .nav1 {
        background-color: var(--bg-light);
        padding: 10px 0;
    }
    
    header .nav1 .left-nav {
        display: flex;
        align-items: center;
        margin-left: 0;
    }
    
    header .nav1 .left-nav img {
        margin-right: 8px;
        height: 20px;
    }
    
    header .nav1 .btn-group .btn {
        padding: 8px 15px;
        margin-left: 5px;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    header .nav1 .btn.btnSupply {
        background-color: var(--main-color);
        color: white;
        border: 1px solid var(--main-color);
    }
    
    header .nav1 .btn.login {
        background-color: var(--second-color);
        color: white;
        border: 1px solid var(--second-color);
    }
    
    header .nav1 .btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }
    
    header .right-part .nav3 {
        background-color: var(--main-color);
        padding: 15px 0;
    }
    
    header .right-part .nav3 ul {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    
    header .right-part .nav3 a {
        color: white;
        padding: 10px 15px;
        margin: 0 5px;
        border-radius: 4px;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    header .right-part .nav3 a:hover {
        background-color: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }
}

/* Mobile Styles */
@media only screen and (max-width: 767px) {
    header {
        position: relative;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Top Navigation - Mobile */
    header .nav1 {
        background-color: var(--bg-light);
        padding: 15px;
        position: relative;
    }
    
    header .nav1 .left-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
        text-align: center;
    }
    
    header .nav1 .left-nav img {
        margin-right: 8px;
        height: 18px;
    }
    
    header .nav1 .left-nav a {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    /* Button Group - Initially Hidden */
    header .nav1 .btn-group {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
    }
    
    header .nav1 .btn-group.show {
        display: flex;
    }
    
    header .nav1 .btn-group .btn {
        width: 100%;
        padding: 12px 15px;
        border-radius: 4px;
        font-size: 0.9rem;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    header .nav1 .btn.btnSupply {
        background-color: var(--main-color);
        color: white;
        border: 1px solid var(--main-color);
    }
    
    header .nav1 .btn.login {
        background-color: var(--second-color);
        color: white;
        border: 1px solid var(--second-color);
    }
    
    /* Logo Section - Reduced Spacing */
    header .left-part {
        padding-top: 0;
        padding-bottom: 0;
        min-height: auto;
    }
    
    header .left-part img {
        max-height: 60px;
    }
    
    /* Continent Navigation - Initially Hidden with Grid Layout */
    header .right-part .nav3 {
        background-color: var(--main-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    header .right-part .nav3.show {
        max-height: 500px;
        padding-top: 0;
    }
    
    header .right-part .nav3 ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
        max-width: 90%;
        margin: 0 auto;
    }
    
    header .right-part .nav3 ul li {
        width: 100%;
        text-align: center;
    }
    
    header .right-part .nav3 a {
        color: white;
        padding: 10px 8px;
        display: block;
        border-radius: 4px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    header .right-part .nav3 a:hover,
    header .right-part .nav3 a:active {
        background-color: rgba(255,255,255,0.1);
    }
}

/* Very Small Mobile - Adjust for smaller screens */
@media only screen and (max-width: 575px) {
    header .nav1 {
        padding: 10px;
    }
    
    header .nav1 .left-nav a {
        font-size: 0.8rem;
    }
    
    header .left-part img {
        max-height: 50px;
    }
    
    .mobile-toggle {
        padding: 8px 12px;
        font-size: 1rem;
        right: 10px;
        top: 10px;
    }
    
    /* Adjust grid for very small screens */
    header .right-part .nav3 ul {
        max-width: 95%;
        gap: 6px;
    }
    
    header .right-part .nav3 a {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile - Single column for very long text */
@media only screen and (max-width: 400px) {
    header .right-part .nav3 ul {
        grid-template-columns: 1fr;
        max-width: 80%;
    }
    
    header .right-part .nav3 a {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

/* Animation for smooth transitions */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header .nav1 .btn-group.show {
    animation: fadeIn 0.3s ease;
}

header .right-part .nav3.show {
    animation: slideDown 0.3s ease;
}

/* ================ EMAIL LEFT-CENTER ALIGNMENT FIX ================ */

@media only screen and (max-width: 767px) {
    header .nav1 .left-nav {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 1px;
    }
    
    header .nav1 .left-nav a {
        font-size: 0.8rem !important;
    }
}

@media only screen and (max-width: 575px) {
    header .nav1 .left-nav a {
        font-size: 0.73rem !important;
    }
	header .left-nav a img{
	padding-top: 15px;
	}
}

/* ================ LOGO AND MAIN BANNER SPACING FIX ================ */

/* Remove spacing above main banner */
.main-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-banner img {
    display: block;
    margin: 0;
    padding: 0;
}

/* Reduce overall header height */
header {
    min-height: auto !important;
}

/* Desktop specific adjustments */
@media only screen and (min-width: 768px) {
    header .left-part {
        padding: 20px 0 !important;
    }
}

/* Mobile specific adjustments */
@media only screen and (max-width: 767px) {
    header .left-part {
        padding: 10px 0 !important;
    }
    
    header .left-part img {
        max-height: 60px;
    }
}

/* Very small mobile */
@media only screen and (max-width: 575px) {
    header .left-part {
        padding: 8px 0 !important;
    }
    
    header .left-part img {
        max-height: 50px;
    }
}

/* ================ COUNTER SECTION MOBILE SPACING FIX ================ */

@media only screen and (max-width: 767px) {
    /* Reduce overall counter section margins */
    .counter {
        margin: 20px 0 15px 0;
    }
    
    /* Reduce padding and margins for counter items */
    .counter-desc {
        padding: 0.5rem 0.3rem;
        margin-bottom: 1rem;
    }
    
    /* Reduce spacing between counter elements */
    .counter h2 {
        margin: 8px 0 5px 0;
        font-size: 1.8rem;
    }
    
    .counter p {
        margin-bottom: 8px;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Reduce icon spacing */
    .counter img {
        margin: 8px auto 8px auto;
        height: 28px;
    }
    
    /* Reduce row gutters */
    .counter .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .counter .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media only screen and (max-width: 575px) {
    /* Further reduce spacing on very small screens */
    .counter {
        margin: 15px 0 10px 0;
    }
    
    .counter-desc {
        padding: 0.3rem 0.2rem;
        margin-bottom: 0.8rem;
    }
    
    .counter h2 {
        margin: 5px 0 3px 0;
        font-size: 1.6rem;
    }
    
    .counter p {
        margin-bottom: 5px;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .counter img {
        margin: 5px auto 5px auto;
        height: 25px;
    }
}


/* ================ FOOTER MOBILE RESPONSIVENESS ================ */

/* Mobile-specific footer styles */
@media only screen and (max-width: 767px) {
    /* Target the row containing subscribe label and social icons */
    footer .row.mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Social icons container - show first on mobile */
    footer .row.mt-4 .col-lg-5.col-md-6 {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Subscribe label container - show second on mobile */
    footer .row.mt-4 .col-7.col-md-6 {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    /* Center the subscribe label text */
    footer .subscribe-label {
        text-align: center;
        margin-bottom: 1.5rem;
        display: block;
        width: 100%;
    }
    
    /* Ensure social icons remain centered */
    footer .social {
        justify-content: center;
        margin: 0;
    }
    
    /* Style the email input and form row */
    footer .row.d-flex.align-items-center {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    
    /* Email input styling */
    footer #NewsLetterSubscriberEmail {
        width: 80%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* reCAPTCHA styling */
    footer .g-recaptcha {
        margin-bottom: 15px;
        transform: scale(0.85);
        transform-origin: center center;
    }
    
    /* Submit button styling */
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
        margin: 0 !important;
        padding: 12px 20px;
    }
}

/* Extra small screens */
@media only screen and (max-width: 575px) {
    footer .subscribe-label {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 90%;
        font-size: 0.9rem;
    }
    
    footer .g-recaptcha {
        transform: scale(0.75);
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media only screen and (max-width: 480px) {
    footer .subscribe-label {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 95%;
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
    }
}

/* ================ TABLET NEWSLETTER LAYOUT FIX ================ */

/* Tablet view specific (768px to 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Newsletter subscription form container */
    footer .d-flex.align-items-center.mt-4 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 15px;
    }
    
    /* Email input field - position first */
    footer #NewsLetterSubscriberEmail {
        width: 70% !important;
        margin-bottom: 15px;
        order: 1;
        text-align: center;
    }
    
    /* Container for captcha and submit button */
    footer .col-lg-10.col-md-6 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* reCAPTCHA - position second */
    footer .g-recaptcha {
        order: 2;
        margin-bottom: 15px;
        transform: scale(0.9);
        transform-origin: center center;
    }
    
    /* Submit button - position third */
    footer #NewsLetterSubscriberSubmitPanel {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: auto !important;
        padding: 12px 25px;
        margin: 0 !important;
    }
    
    /* Ensure proper spacing for the entire form row */
    footer .row.d-flex.align-items-center {
        flex-direction: column;
        align-items: center !important;
        gap: 10px;
    }
}