/*==============================================================
  TIMELINE.CSS
  Premium Oil & Gas Corporate Website
==============================================================*/

.timeline-section{
    position:relative;
    padding:120px 0;
    background:linear-gradient(180deg,#06121E,#081C2D);
    overflow:hidden;
}

.timeline-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right,
        rgba(212,175,55,.08),
        transparent 35%);
    pointer-events:none;
}

/*==============================================================
 SECTION TITLE
==============================================================*/

.timeline-header{
    max-width:760px;
    margin:0 auto 80px;
    text-align:center;
}

.timeline-header h6{
    color:var(--primary);
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:15px;
}

.timeline-header h2{
    color:#fff;
    margin-bottom:20px;
}

.timeline-header p{
    color:#C7D0DD;
}

/*==============================================================
 CONTAINER
==============================================================*/

.timeline{

    position:relative;

    max-width:1200px;

    margin:auto;

}

/*==============================================================
 CENTER LINE
==============================================================*/

.timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:4px;

    height:100%;

    transform:translateX(-50%);

    background:linear-gradient(
        to bottom,
        rgba(212,175,55,.25),
        var(--primary),
        rgba(212,175,55,.20)
    );

    border-radius:10px;

}

/*==============================================================
 ITEMS
==============================================================*/

.timeline-item{

    position:relative;

    width:50%;

    padding:20px 70px;

    margin-bottom:70px;

}

.timeline-item.left{

    left:0;

    text-align:right;

}

.timeline-item.right{

    left:50%;

}

/*==============================================================
 DOT
==============================================================*/

.timeline-item::before{

    content:"";

    position:absolute;

    top:45px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:var(--primary);

    border:5px solid #081C2D;

    box-shadow:0 0 0 8px rgba(212,175,55,.15);

    z-index:5;

}

.timeline-item.left::before{

    right:-11px;

}

.timeline-item.right::before{

    left:-11px;

}

/*==============================================================
 CARD
==============================================================*/

.timeline-card{

    background:rgba(255,255,255,.04);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:35px;

    transition:.45s;

    box-shadow:0 20px 45px rgba(0,0,0,.25);

}

.timeline-card:hover{

    transform:translateY(-10px);

    border-color:rgba(212,175,55,.35);

    box-shadow:0 30px 70px rgba(0,0,0,.40);

}

.timeline-card h3{

    color:#fff;

    margin-bottom:12px;

}

.timeline-card p{

    color:#CCD3DF;

    margin-bottom:0;

    line-height:1.8;

}

/*==============================================================
 YEAR BADGE
==============================================================*/

.timeline-year{

    display:inline-block;

    margin-bottom:18px;

    padding:8px 18px;

    border-radius:40px;

    background:rgba(212,175,55,.15);

    color:var(--primary);

    font-weight:700;

    letter-spacing:1px;

}

/*==============================================================
 ICON
==============================================================*/

.timeline-icon{

    width:72px;

    height:72px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:22px;

    background:rgba(212,175,55,.10);

    color:var(--primary);

    font-size:28px;

    transition:.4s;

}

.timeline-card:hover .timeline-icon{

    background:var(--primary);

    color:#111;

    transform:rotateY(180deg);

}

/*==============================================================
 IMAGE
==============================================================*/

.timeline-image{

    margin-top:25px;

    border-radius:18px;

    overflow:hidden;

}

.timeline-image img{

    width:100%;

    display:block;

    transition:.6s;

}

.timeline-card:hover .timeline-image img{

    transform:scale(1.08);

}

/*==============================================================
 CONNECTOR
==============================================================*/

.timeline-item::after{

    content:"";

    position:absolute;

    top:55px;

    width:55px;

    height:2px;

    background:rgba(212,175,55,.35);

}

.timeline-item.left::after{

    right:12px;

}

.timeline-item.right::after{

    left:12px;

}

/*==============================================================
 HOVER GLOW
==============================================================*/

.timeline-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:22px;

    background:linear-gradient(
        135deg,
        rgba(212,175,55,.10),
        transparent 70%
    );

    opacity:0;

    transition:.4s;

    pointer-events:none;

}

.timeline-card:hover::before{

    opacity:1;

}

/*==============================================================
 MOBILE
==============================================================*/

@media(max-width:991px){

.timeline::before{

    left:24px;

}

.timeline-item{

    width:100%;

    left:0 !important;

    padding-left:75px;

    padding-right:20px;

    text-align:left;

}

.timeline-item::before{

    left:13px !important;

    right:auto;

}

.timeline-item::after{

    left:24px !important;

    width:30px;

}

}

@media(max-width:768px){

.timeline-section{

    padding:80px 0;

}

.timeline-card{

    padding:28px;

}

.timeline-icon{

    width:60px;

    height:60px;

    font-size:22px;

}

.timeline-header{

    margin-bottom:50px;

}

}

@media(max-width:576px){

.timeline-card{

    padding:22px;

}

.timeline-card h3{

    font-size:1.35rem;

}

.timeline-year{

    font-size:.85rem;

}

}