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

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

/* ================ 2. FONT DECLARATIONS ================ */
@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);
}

/* ================ 3. BASE STYLES ================ */
* {
    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: 0.9rem;
    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;
}

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

/* Logo Section */
header .left-part {
    min-height: auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

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

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

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

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

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

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: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: bruumBoldFont;
    margin-left: 5px;
}

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);
}

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

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

header .right-part .nav3 ul li {
    position: relative;
    cursor: pointer;
}

header .right-part .nav3 a {
    color: #fff;
    font-family: bruumLightFont;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 8px;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

header .right-part .nav3 a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* 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);
}

/* ================ 5. MAIN BANNER ================ */
.main-banner {
    margin-top: 0;
    padding-top: 0;
}

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

/* ================ 6. COUNTER SECTIONS ================ */
.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: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 0;
    padding: 8px 20px;
    white-space: nowrap;
}

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

.counter-top .btns .col-md-7 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.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;
}

/* ================ 7. 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;
}

/* ================ 8. CARDS SECTION ================ */
.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;
    min-height: 490px;
}

.cards .card a.card-body {
    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);
}

/* ================ 9. BUTTONS ================ */
.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: 1.2rem;
    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: 1.1rem;
    margin-top: 3px;
}

footer .links span, 
footer .links a {
    color: var(--text-dark);
    font-size: 0.99rem;
    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. RESPONSIVE DESIGN - DESKTOP ================ */
@media only screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media only screen and (min-width: 768px) {
    header .nav1 .left-nav {
        margin-left: 0;
    }
}

/* ================ 12. RESPONSIVE DESIGN - TABLET ================ */
@media only screen and (max-width: 1199px) {
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    
    header .right-part .nav3 a {
        margin-right: 10px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 991px) {
    .counter h2 {
        font-size: 1.6rem;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    
    header .right-part .nav3 a {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .counter-desc {
        margin-bottom: 2rem;
    }
    
    footer .col-md-2,
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Tablet Newsletter Layout Fix (768px to 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    footer .d-flex.align-items-center.mt-4 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 15px;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 70% !important;
        margin-bottom: 15px;
        order: 1;
        text-align: center;
    }
    
    footer .col-lg-10.col-md-6 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    footer .g-recaptcha {
        order: 2;
        margin-bottom: 15px;
        transform: scale(0.9);
        transform-origin: center center;
    }
    
    footer #NewsLetterSubscriberSubmitPanel {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: auto !important;
        padding: 12px 25px;
        margin: 0 !important;
    }
    
    footer .row.d-flex.align-items-center {
        flex-direction: column;
        align-items: center !important;
        gap: 10px;
    }
}

/* ================ 13. RESPONSIVE DESIGN - MOBILE ================ */
@media only screen and (max-width: 767px) {
    /* Mobile Toggle Display */
    .mobile-toggle {
        display: block;
    }
    
    /* Header Adjustments */
    header .left-part {
        padding: 10px 0;
        justify-content: center;
    }
    
    header .left-part img {
        max-height: 60px;
    }
    
    /* Top Navigation Mobile */
    header .nav1 {
        background-color: var(--bg-light);
        padding: 15px;
        position: relative;
        flex-direction: column;
    }
    
    header .nav1 .left-nav {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 15px;
        margin-left: 0;
        padding-left: 1px;
        text-align: left;
    }
    
    header .nav1 .left-nav img {
        margin-right: 8px;
        height: 18px;
    }
    
    header .nav1 .left-nav a {
        font-size: 0.8rem;
    }
    
    /* 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;
        animation: fadeIn 0.3s ease;
    }
    
    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;
        margin-left: 0;
    }
    
    /* Continent Navigation - Initially Hidden */
    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;
        animation: slideDown 0.3s ease;
    }
    
    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;
        margin: 0;
    }
    
    header .right-part .nav3 a:hover,
    header .right-part .nav3 a:active {
        background-color: rgba(255,255,255,0.1);
        transform: none;
    }
    
    /* Counter Adjustments */
    .counter {
        margin: 20px 0 15px 0;
    }
    
    .counter-desc {
        padding: 0.5rem 0.3rem;
        margin-bottom: 1rem;
    }
    
    .counter h2 {
        margin: 8px 0 5px 0;
        font-size: 1.8rem;
    }
    
    .counter p {
        margin-bottom: 8px;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .counter img {
        margin: 8px auto 8px auto;
        height: 28px;
    }
    
    .counter .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .counter .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .counter-top .btn {
        width: auto !important;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Welcome Section */
    .welcome-section h2 {
        font-size: 1.6rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    /* Cards */
    .cards .card .card-body {
        min-height: auto;
    }
    
    /* Footer Mobile */
    footer .row.mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    footer .row.mt-4 .col-lg-5.col-md-6 {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    footer .row.mt-4 .col-7.col-md-6 {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    footer .subscribe-label {
        text-align: center;
        margin-bottom: 1.5rem;
        display: block;
        width: 100%;
    }
    
    footer .social {
        justify-content: center;
        margin: 0;
    }
    
    footer .row.d-flex.align-items-center {
        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: 80%;
        margin: 0 !important;
        padding: 12px 20px;
    }
    
    footer .logo {
        margin-bottom: 20px;
        text-align: center;
    }
}

/* ================ 14. RESPONSIVE DESIGN - SMALL MOBILE ================ */
@media only screen and (max-width: 575px) {
    /* Header */
    header .nav1 {
        padding: 10px;
    }
    
    header .nav1 .left-nav a {
        font-size: 0.73rem;
    }
    
    header .left-part {
        padding: 8px 0;
    }
    
    header .left-part img {
        max-height: 50px;
    }
    
    .mobile-toggle {
        padding: 8px 12px;
        font-size: 1rem;
        right: 10px;
        top: 10px;
    }
    
    header .right-part .nav3 ul {
        max-width: 95%;
        gap: 6px;
    }
    
    header .right-part .nav3 a {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    /* Counter */
    .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;
    }
    
    .counter-top .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    /* Typography */
    .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 */
    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;
    }
    
    footer #NewsLetterSubscriberEmail {
        width: 90%;
        font-size: 0.9rem;
    }
    
    footer .g-recaptcha {
        transform: scale(0.75);
    }
    
    footer #NewsLetterSubscriberSubmitPanel button {
        width: 80%;
        font-size: 0.9rem;
    }
    
    footer .subscribe-label {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* ================ 15. RESPONSIVE DESIGN - EXTRA SMALL MOBILE ================ */
@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;
    }
}

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

/* ================ 16. ANIMATIONS ================ */
@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 .right-part .nav3 a {
    color: #fff;
    font-family: bruumLightFont;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 8px;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

header .right-part .nav3 a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Add white divider lines between menu items */
header .right-part .nav3 ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

header .right-part .nav3 ul li {
    position: relative;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important; /* Ensure perfect circle */
    border: 0 !important; /* Remove any borders */
    margin: 0 5px !important; /* Adjust spacing */
    background-color: #007bff !important; /* Default blue color */
    opacity: 0.5 !important; /* Slightly reduce opacity for inactive */
    transition: opacity 0.3s ease !important;
}

.carousel-indicators .active {
    background-color: #fff !important; /* Active white color */
    opacity: 1 !important; /* Full opacity for active */
}

.carousel-indicators button:hover {
    opacity: 0.7 !important; /* Optional: slight change on hover */
}

/* Custom style for more visible vertical dividers */
.column-divider-visible {
    border-right: 3px solid var(--border-light) !important; /* Adjust '3px' for desired thickness */
}

/* Ensure border is consistent on smaller screens if needed, override Bootstrap's removal */
@media (max-width: 767.98px) {
    .column-divider-visible {
        border-right: none !important; /* Typically dividers are removed on mobile */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .column-divider-visible {
        border-right: 3px solid var(--border-light) !important; /* Keep on tablet */
    }
}